
@import url("variables.css");

.construction-container {
    text-align: center;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 50px 0;
}

.construction-container img {
    width: 80px;
    height: auto;
}

.construction-container h1 {
    font-size: 20px;
    font-weight: 400;
    color: #333;
}


/* Contact Form */
.contact-form-div {
    margin-top: 8px;
}

.contact-form-div .contact-form-background {
    height: 400px;
}

.contact-form-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.background-overlay {
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.contact-heading {
    color: white;
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 700;
    z-index: 3;
    width: 100%;
    text-align: center;
    margin-top: 15px;
}

.contact-form-container {
    margin-top: -200px;
    z-index: 4;
}

.contact-info-col {
    padding: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.icon-circle {
    width: 40px;
    height: 40px;
    background: navy;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-form-div .dashicons {
    color: white;
}

.contact-info-col h5 {
    margin-bottom: 0.25rem;
}

.contact-info-col p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

.contact-info-col a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info-col a:hover {
    color: rgb(76, 174, 255);
}

.contact-form-col {
    padding: 2rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    gap: 1rem;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-control {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    width: 100%;
    border-radius: 4px;
}

.form-control:focus {
    box-shadow: none;
    border-color: #0d6efd;
}

textarea.form-control {
    min-height: 120px;
}

.submit-btn {
    padding: 0.5rem 1.5rem;
    margin-top: 10px;
    background-color: var(--xinshengBlue);
    color: white;
    border: none;
}

.submit-btn:hover {
    background-color: var(--xinshengGreen);
    color: white;
}

.submit-btn:disabled {
    background-color: var(--xinshengBlue);
    color: white;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .contact-heading {
        font-size: 2.5rem;
    }

    .contact-info-col,
    .contact-form-col {
        padding: 20px !important;
    }

    .form-row {
        flex-direction: column;
        gap: 0 !important;
        margin-bottom: 0;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .submit-btn {
        margin-top: 0;
    }
}


/* New Xinsheng Products */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 8px;
    background-color: white;
}

.new-products-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 10px;
    width: 100%;
    scrollbar-width: none;
}

.new-products-carousel::-webkit-scrollbar {
    display: none;
}

.new-product-item {
    flex: 0 0 auto;
    width: 180px;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.new-product-item:hover {
    transform: translateY(-5px);
}

.product-image-container {
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
}

.product-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.new-product-item:hover .product-image-container img {
    transform: scale(1.05);
}

.product-title {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    padding: 0 5px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    background: #f0f0f0;
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

@media (max-width: 768px) {
    .new-product-item {
        width: 140px;
    }

    .product-image-container {
        width: 120px;
        height: 120px;
    }

    .carousel-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* Company Gallery */
.company-gallery .main-gallery {
    background-color: white;
    margin-top: 8px;
}

.company-gallery .main-gallery p {
    font-size: 1rem;
    text-align: center;
    padding: 20px;
    margin-bottom: 0;
}

.company-gallery .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 8px;
    margin: 0 auto;
}

.company-gallery .gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.company-gallery .gallery img:hover {
    transform: scale(1.03);
}

/* Mobile */
@media (max-width: 400px) {
    .company-gallery .gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}


/* Latest News */
/* Latest News */
.latest-news-section .news-title {
    margin-bottom: 0;
}

.news-container {
    margin: 0;
}

.news-container .left-section {
    padding-right: 4px;
    padding-left: 0;
}

.news-container .right-section {
    padding-left: 4px;
    padding-right: 0;
}

a.news-link,
a.news-link:hover {
    text-decoration: none;
    color: inherit;
}

.featured-news-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    background-color: white;
    margin-top: 8px;
}

.featured-news-img-container {
    height: 300px;
    overflow: hidden;
}

.featured-news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-news-content {
    padding: 15px;
}

.featured-news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.news-meta {
    margin-bottom: 10px;
    font-size: 13px;
    color: #777;
}

.featured-news-excerpt {
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}

.secondary-news-card {
    margin-top: 8px;
    border: 1px solid #eee;
    height: 150px;
    background-color: white;
}

.secondary-news-card-left {
    padding: 0;
}

.secondary-news-card .row {
    height: 100%;
    margin: 0;
}

.secondary-news-card .col-md-4,
.secondary-news-card .col-md-8 {
    padding: 0;
    height: 100%;
}

.secondary-news-img-container {
    height: 100%;
    overflow: hidden;
}

.secondary-news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.secondary-news-content {
    padding: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.secondary-news-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.secondary-news-excerpt {
    color: #666;
    font-size: 13px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 576px) {
    .secondary-news-card {
        height: auto !important;
        margin-bottom: 15px;
    }

    .secondary-news-img-container {
        height: 300px;
    }

    .secondary-news-content {
        padding: 15px;
    }
}


/* Latest Insights */
/* Blog Posts Section */
.latest-blog-posts .blog-title {
    margin-bottom: 0;
}

.latest-blog-posts .left-section {
    padding-right: 4px;
}

.latest-blog-posts .right-section {
    padding-left: 4px;
}

.blog-post-card {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 160px;
    overflow: hidden;
    margin-top: 8px;
}

.blog-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-post-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.blog-post-thumbnail {
    height: 160px;
    overflow: hidden;
}

.blog-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-default-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    color: #ccc;
}

.blog-post-default-image .dashicons {
    font-size: 50px;
    width: auto;
    height: auto;
}

.blog-post-content {
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-post-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.post-comments {
    margin-left: 15px;
    display: inline-flex;
    align-items: center;
}

.post-comments .dashicons {
    font-size: 16px;
    margin-right: 3px;
}

.blog-post-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    font-size: 13px;
    color: #0066cc;
    font-weight: 500;
    margin-top: auto;
}

.read-more-link .dashicons {
    font-size: 14px;
    vertical-align: middle;
}

@media (max-width: 991px) {
    .col-lg-5 {
        width: 100%;
    }

    .blog-post-card {
        height: auto;
        margin-bottom: 30px;
    }

    .blog-post-thumbnail {
        height: 180px;
    }

    .blog-post-content {
        padding: 20px 15px;
    }
}