@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%;
    height: 220px;
    scrollbar-width: none;
    align-items: center;
    justify-content: center;
}

.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: white;
    border-radius: 4px;
    overflow: hidden;
}

.product-image-container img {
    max-width: 75%;
    max-height: 75%;
    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 {
        display: none;
    }
}

/* 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(350px, 1fr));
    gap: 8px;
    margin: 0 auto;
}

.company-gallery .gallery img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.company-gallery .gallery img:hover {
    transform: scale(1.03);
}

@media (max-width: 1100px) {
    .company-gallery .gallery {
        padding: 8px;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 952px) {
    .company-gallery .gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 500px) {
    .company-gallery .gallery {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .company-gallery .gallery img {
        width: 100%;
    }

}


/* Mobile */
@media (max-width: 400px) {
    .company-gallery .gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Latest News */

.news-title {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 10px;
}

.news-title h2 {
    margin-bottom: 0;
    font-size: 24px;
}

.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 {
    border: 1px solid #eee;
    background-color: white;
    margin-top: 8px;
    height: 99%;
}

.featured-news-img-container {
    aspect-ratio: 10/7;
    overflow: hidden;
}

.featured-news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-news-content {
    padding: 15px;
}

.latest-news-section .featured-news-title,
.latest-news-section .secondary-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;
}

.latest-news-section .right-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* News Card Container */
.secondary-news-card {
    display: flex;
    flex-direction: row;
    background-color: #fff;
    text-decoration: none;
    color: inherit;
    margin-top: 8px;
    height: 180px;
}

/* Image Container with fixed aspect ratio */
.secondary-news-img-container {
    flex: 0 0 35%;
    aspect-ratio: 10/7;
    overflow: hidden;
    display: flex;
}

.secondary-news-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Content Section */
.secondary-news-content {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Title Styling */
.secondary-news-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
    line-height: 1.3;
}

/* Meta Info */
.news-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

/* Excerpt Styling */
.secondary-news-excerpt {
    font-size: 14px;
    line-height: 1.4;
    color: #555;
    flex-grow: 1;
}


.latest-news-section .featured-news-card:hover .featured-news-content h3,
.latest-news-section .secondary-news-card:hover .secondary-news-content h3 {
    color: var(--xinshengGreen);
}


@media (max-width: 992px) {

    .latest-news-section .right-section {
        padding-left: 0;
    }

    .latest-news-section .left-section {
        padding-right: 0;
    }

    .latest-news-section .featured-news-card {
        height: auto;
    }

    .latest-news-section .featured-news-card .news-link,
    .latest-news-section .secondary-news-card {
        display: flex;
        flex-direction: row;
        padding: 10px;
        height: auto;
    }

    .latest-news-section .featured-news-card .featured-news-img-container,
    .latest-news-section .secondary-news-card .secondary-news-img-container {
        flex: 0 0 35;
        aspect-ratio: 10/7;
        overflow: hidden;
        display: flex;
    }

    .latest-news-section .featured-news-card .featured-news-img-container .secondary-news-img,
    .latest-news-section .secondary-news-card .secondary-news-img-container .secondary-news-img {
        object-fit: cover;
        height: auto;
    }

    .latest-news-section .news-title,
    .latest-blog-posts .blog-title {
        justify-content: start;
    }

    .latest-news-section .news-title h2,
    .latest-blog-posts .blog-title h2 {
        font-size: 1rem !important;
        text-align: start;
    }
}





/* Latest Insights */
/* Blog Posts Section */

.blog-title {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 10px;
}

.blog-title h2 {
    margin-bottom: 0;
    font-size: 24px;
}

.latest-blog-posts .blog-title {
    margin-bottom: 0;
}

.latest-blog-posts .blog-title {
    margin-bottom: 0;
}

.latest-blog-posts .left-section {
    padding-right: 4px;
}

.latest-blog-posts .right-section {
    padding-left: 4px;
}

.latest-blog-posts .blog-post-card .blog-post-link {
    display: flex;
    text-decoration: none;
    background-color: white;
    padding: 10px;
    margin-top: 8px;
}

.latest-blog-posts .blog-post-card .blog-post-link .blog-post-thumbnail {
    flex: 0 0 35%;
    aspect-ratio: 10/7;
    overflow: hidden;
    display: flex;
}

.latest-blog-posts .blog-post-card .blog-post-thumbnail .blog-post-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.latest-blog-posts .blog-post-content {
    padding-left: 10px;
}

.latest-blog-posts .blog-post-content .blog-post-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
    line-height: 1.3;
}

.latest-blog-posts .blog-post-content .blog-post-meta,
.latest-blog-posts .blog-post-content .blog-post-excerpt {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
    flex-grow: 1;
}

.latest-blog-posts .blog-post-card:hover .blog-post-content .blog-post-title {
    color: var(--xinshengGreen);
}

@media (max-width: 992px) {
    .latest-blog-posts .blog-posts {
        margin: 0 12px 0 12px;
    }

    .latest-blog-posts .row>* {
        padding: 0;
    }

    .latest-blog-posts .left-section {
        padding-right: 0;
    }

    .latest-blog-posts .right-section {
        padding-left: 0;
    }
}

@media (max-width: 950px) {

    .latest-blog-posts .blog-title h2,
    .latest-news-section .news-title h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 550px) {

    .latest-news-section .featured-news-card .featured-news-img-container,
    .latest-news-section .secondary-news-card .secondary-news-img-container {
        display: none;
    }

    .latest-blog-posts .blog-title h2 {
        width: 200px;
    }
}

@media (max-width: 450px) {
    .latest-blog-posts .blog-post-content {
        padding-left: 0;
    }

    .latest-blog-posts .blog-post-content .blog-post-title {
        font-size: 1.1rem;
    }

    .latest-blog-posts .blog-post-thumbnail {
        display: none !important;
    }
}