/* 
    Tile: Home Page or Front Page CSS Styles
*/

@import url("variables.css");

.front-page-carousel {
    margin-top: -70px;
}

.front-page-carousel img {
    object-fit: cover;
    width: 100%;
    height: 500px;
}

.front-page-carousel .carousel-inner .carousel-caption {
    margin-bottom: 20px;
}

.front-page-carousel .carousel-text {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 5px;
}

.front-page-carousel .carousel-inner .heading {
    font-size: 30px;
}

.front-page-carousel .carousel-inner .content {
    font-size: 16px;
    font-weight: 300;
}

.front-page-carousel .slide-btn {
    background-color: var(--xinshengBlue);
    padding: 10px 20px 10px 20px;
    text-decoration: none;
    color: white;
}

.front-page-carousel .slide-btn:hover {
    cursor: pointer;
    background-color: var(--xinshengBlue);
}


@media screen and (max-width: 992px) {
    .front-page-carousel img {
        height: 400px;
    }
}

@media screen and (max-width: 556px) {

    .front-page-carousel {
        display: none;
    }
}

/* Mobile view stripe topnav */
.stripe-topnav {
    display: none;
    background-size: cover;
    padding: 3.1rem 0;
    background-position: center;
    margin-top: -2px;
    text-align: center;
}

.stripe-topnav .header-title {
    color: white;
    font-size: 1.7rem;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.4;
}

@media (max-width: 556px) {
    .stripe-topnav {
        display: block;
    }
}

/* Industry Section */
.home-page-container {
    margin-top: 15px;
}

.industry-section .title {
    text-align: center;
}

.industry-section .title .section-subtitle {
    background-color: white;
    padding: 15px 10px;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0;
}

.industry-section .title h2 {
    font-size: 25px;
    background-color: white;
    padding: 15px 0;
    margin-top: 8px;

}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.industry-card {
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.industry-thumb {
    height: 250px;
    overflow: hidden;
}

.industry-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.industry-content {
    padding: 20px;
}

.industry-title {
    text-decoration: none;
}

.industry-title h3:hover {
    color: blue;
}

.industry-title h3 {
    font-size: 1.2rem;
    color: #222;
    margin: 0 0 10px 0;
}

.industry-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .industries-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Dynamic Product Finder Section */
.front-page-div-title {
    font-size: 25px;
    background-color: white;
    padding: 15px 0;
    margin-top: 8px;
    text-align: center;
    position: relative;
}

.front-page-div-title .learn-more {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 20px;
    bottom: 20px;
}

/* Default colors */
.front-page-div-title .learn-more a,
.front-page-div-title .learn-more span {
    font-size: 14px;
    text-decoration: none;
    color: var(--xinshengBlue);
    transition: color 0.3s ease;
}

/* Make the arrow icon slightly larger */
.front-page-div-title .learn-more span {
    font-size: 18px;
    display: flex;
    align-items: center;
}

/* Hover effect applied to the parent .learn-more */
.front-page-div-title .learn-more:hover a,
.front-page-div-title .learn-more:hover span {
    color: var(--xinshengGreen);
    cursor: pointer;
}

/* What we do section */
.front-page-services-div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 8px;
    background-color: #f8f9fa;
}

.service-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    padding: 25px 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.service-card:hover {
    background-color: #005da8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-card .dashicons {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--xinshengBlue, #005da8);
    transition: color 0.3s ease;
}

.service-card:hover .dashicons {
    color: white;
}

.service-card h3 {
    font-size: 18px;
    margin: 10px 0;
    font-weight: 600;
}

.service-card p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 968px) {
    .front-page-div-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 500px) {
    .front-page-div-title {
        font-size: 1rem;
        text-align: start;
        padding-left: 20px;
    }
}

@media (max-width: 400px) {
    .front-page-services-div {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}


/* Sustainabilkty Corner */
.sustainable-corner {
    background-color: white;
    margin-top: 8px;
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.sustainable-corner .text-and-button {
    position: relative;
    padding-left: 50px;
    z-index: 2;
}

.sustainable-corner .text-and-button h3 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: #222;
    max-width: 400px;
}

.sustainable-corner .sustainable-button {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 20px;
    background-color: var(--xinshengGreen);
    color: white;
    text-decoration: none;
    font-weight: 400;
    border-radius: 5px;
}

.sustainable-corner .sustainable-button:hover {
    background-color: var(--xinshengBlue);
}

.sustainable-corner .background-image {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 500px;
    z-index: 1;
}

.sustainable-corner .background-image img {
    max-width: 100%;
    object-fit: contain;
}

.sustainable-corner .compliant-logo {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.sustainable-corner .compliant-logo .logo {
    max-width: 150px;
}

@media (max-width: 992px) {
    .sustainable-corner .background-image {
        display: none;
    }
}

@media (max-width: 668px) {
    .sustainable-corner {
        flex-direction: column-reverse;
        min-height: auto;
    }

    .sustainable-corner .text-and-button {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-left: 0;
        padding: 20px;
    }

    .sustainable-corner .text-and-button h3 {
        max-width: fit-content;
        margin-right: 7px;
        font-size: 1.3rem;
        text-align: center;
    }

    .sustainable-corner .compliant-logo {
        position: unset;
        flex-direction: row;
        transform: none;

    }

    .sustainable-corner .compliant-logo .logo {
        max-width: 120px;
    }

    @media (max-width: 450px) {
        .sustainable-corner .text-and-button .title h3 {
            margin-right: 7px;
            font-size: 1rem;
        }
    }
}

/* Why Choose Xinsheng Section */
.xinsheng-benefits {
    margin-top: 8px;
}

.xinsheng-benefits .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 8px;
    justify-items: center;
}

.xinsheng-benefits .flip-card {
    width: 100%;
    height: 270px;
}

.xinsheng-benefits .flip-card-inner {
    position: relative;
    height: 100%;
    text-align: center;
    transition: transform 1s;
    transform-style: preserve-3d;
}

.xinsheng-benefits .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.xinsheng-benefits .flip-card-front,
.xinsheng-benefits .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
}

.xinsheng-benefits .flip-card-front {
    background-color: #fff;
    color: #333;
    border: 1px solid #eee;
}

.xinsheng-benefits .flip-card-back {
    background-color: darkgreen;
    color: white;
    transform: rotateY(180deg);
}

.xinsheng-benefits .flip-card-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    object-fit: contain;
}

.xinsheng-benefits .flip-card-title {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #333;
}

.xinsheng-benefits .flip-card-description {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .xinsheng-benefits .flip-card {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .xinsheng-benefits .flip-card {
        height: 260px;
    }

    .xinsheng-benefits .flip-card-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 400px) {
    .xinsheng-benefits .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .xinsheng-benefits .flip-card {
        height: 240px;
    }

    .xinsheng-benefits .flip-card-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
}

.xinsheng-benefits .flipped {
    transform: rotateY(180deg) !important;
}