/* ==========================================================================
   1.1 HERO BANNER STATS COUNTER OVERLAY
   ========================================================================== */
.banner-stats-overlay { 
    position: relative;
    z-index: 10;
    margin-top: -65px;
    margin-bottom: 0px;
}

.stats-counter-card {
    background: #ffffff;
    border: 1px solid #EDEDED;
    border-radius: 20px;
    box-shadow: 0px 4px 64px 0px #00000014;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    overflow: hidden;
}

.stats-counter-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px 10px;
    position: relative;
    transition: background-color 0.2s ease;
}

.stats-counter-item:hover {
    background-color: rgba(202, 60, 58, 0.015);
}

.stats-counter-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background-color: #e0e0e0;
}

.stats-counter-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-counter-icon svg {
    width: 50px;
    height: 50px;
    display: block;
}

.stats-counter-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stats-counter-number {
    font-family: "Manrope", sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #CA3C3A;
    line-height: 1.1;
}

.stats-counter-label {
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #1E1E1E;
    line-height: 1.2;
    white-space: nowrap;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .stats-counter-item {
        padding: 24px 16px;
        gap: 10px;
    }

    .stats-counter-number {
        font-size: 22px;
    }

    .stats-counter-label {
        font-size: 15px;

    }

    .stats-counter-icon svg {
        width: 40px;
        height: 40px;
    }


}

@media (max-width: 991px) {
    .banner-stats-overlay {
        margin-top: -100px;
        margin-bottom: 30px;
    }

    .stats-counter-card {
        grid-template-columns: repeat(2, 1fr);
        border-radius: 24px;
    }

    .stats-counter-item {
        border-right: 1px solid #EDEDED;
        border-bottom: 1px solid #EDEDED;
        padding: 30px 24px;
        padding-left: 35%;
        justify-content: flex-start;
        gap: 15px;
        position: relative;
    }

    .stats-counter-icon {
        width: 40px;
        height: 40px;
    }

    .stats-counter-icon svg {
        width: 40px;
        height: 40px;
    }

    .stats-counter-item::after {
        display: none !important;
    }

    .stats-counter-item:nth-child(2n) {
        border-right: none;
    }

    .stats-counter-item:nth-child(5),
    .stats-counter-item:nth-child(6) {
        border-bottom: none;
    }

    .banner-stats-overlay {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
  .stats-counter-item{padding-left: 30%;}
}

@media (max-width: 576px) {
    .banner-stats-overlay {
        margin-top: -120px;
    }

    .stats-counter-item {
        padding: 20px;
        padding-left: 12%;
        justify-content: flex-start;
        gap: 20px;
    }

    .stats-counter-label {
        white-space: normal;
    }
}

@media (max-width: 400px) {
    .stats-counter-item {
        padding: 20px;
        padding-left: 10%;
        justify-content: flex-start;
        gap: 10px;
    }
}




/* ==========================================================================
   2. STATS SECTION (stats-section: Scale, Reach, Impact)
   ========================================================================== */
.stats-section {
    background-color: var(--bg-main);
}

.stats-card {
    display: flex;
    background-color: var(--bg-surface);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    align-items: stretch;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Three-column Flex Layout */
.stats-info-col,
.stats-image-col,
.stats-list-col {
    flex: 1;
    min-width: 0;
}

/* Left Info Column with Gradient */
.stats-info-col {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        linear-gradient(270deg, #2E5399 0%, #8570B1 100%);
    color: #ffffff;
    padding: 60px 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stats-details {
    padding: 0 40px;
}

.stats-heading {
    font-family: "Manrope", sans-serif;
    color: #ffffff;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -2%;
    margin-bottom: 13px;
}



/* Desktop line break override */
.stats-heading br {
    display: block;
}

.stats-desc {
    font-family: "Manrope", sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

/* Middle Image Column */
.stats-image-col {
    padding: 0;
    margin: 0;
    overflow: hidden;
    display: flex;
}

.stats-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

/* Right Stats List Column */
.stats-list-col {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    background-color: var(--bg-surface);
}

/* Individual Stat Rows */
.stat-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    transition: background-color var(--transition-fast);
    margin-left: 20px;
}

.stat-item:last-child {
    border-bottom: none;
}

/* Stat Meta & Typography */
.stat-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: "Manrope", sans-serif;
    color: #CA3C3A;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.stat-label {
    font-family: "Manrope", sans-serif;
    color: #1E1E1E;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
}

/* Stat Icon styling with outline & responsive alignment */
.stat-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.stat-icon {
    width: 24px;
    height: 24px;
    transition: all var(--transition-normal);
}

/* ==========================================================================
   [RESPONSIVE] STATS SECTION
   ========================================================================== */
@media (max-width: 991px) {
    .stats-card {
        flex-direction: column;
        border-radius: 20px;
    }

    .stats-info-col,
    .stats-image-col,
    .stats-list-col {
        width: 100%;
        flex: none;
    }

    /* Stack order mapping: Info (1) -> Stats (2) -> Image (3) */
    .stats-info-col {
        order: 1;
        padding: 40px 32px;
    }

    .stats-list-col {
        order: 2;
    }

    .stats-image-col {
        order: 3;
        height: 350px;
    }

    /* Responsive Typography Overrides */
    .stats-heading {
        margin-bottom: 6px;
    }

    .stats-heading br {
        display: none;
        /* Flow inline on tablet/mobile */
    }

    .stats-desc {
        font-size: 16px;
    }

    .stat-label {
        font-size: 16px;
    }

    .stat-item {
        padding: 24px 32px;
    }

    .stat-number {
        font-size: 28px;
        /* Stays 28px */
    }

    .stats-info-col {
        padding: 32px 30px;
    }

    .stats-details {
        padding-left: 0;
    }

    .stat-item {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .stats-card {
        border-radius: 16px;
    }

    .stats-info-col {
        padding: 32px 20px;
    }

    .stats-image-col {
        height: 280px;
    }

    .stat-item {
        padding: 20px;
    }

    .stats-details {
        padding-right: 0;
    }

    .stats-desc,
    .stat-label {
        font-size: 14px;
    }
}




/* ==========================================================================
   3. Our Brand section
   ========================================================================== */
.brands-section {
    /* max-width: 1400px; */
    margin: auto;
    /* background: #ffffff; */
    position: relative;
}

/* ========================= */
/* TITLE */
/* ========================= */

.brands-title {
    font-weight: 400;
    color: #1e1e1e;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

/* ========================= */
/* GRID */
/* ========================= */

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 30px;
    position: relative;
    z-index: 123;
}

/* ========================= */
/* CARD */
/* ========================= */

.brand-card {
    background: #ECF8FC;
    border-radius: 24px;
    overflow: hidden;
    transition: 0.35s ease;
    cursor: pointer;
    height: 250px;
}

.brand-card:first-child .brand-top img{width: 178px; height: 62px; margin-top: 30px;} 
.brand-card:nth-child(3) .brand-top img{width: 154px; height: 92px;}
.brand-card:nth-child(4) .brand-top img{width: 119px; height: 92px;}

.brand-card a{width: 100%; height: 100%;}

/* ========================= */
/* TOP */
/* ========================= */

.brand-top {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.brand-top img {
    width: auto;
    object-fit: contain;
}

.brand-top .arrow-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
}

/* ========================= */
/* BOTTOM */
/* ========================= */

.brand-bottom {
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border-top: 1px solid #dddddd;
}

.know-more-text {
    font-weight: 600;
    color: #1E1E1E;
}

.arrow-btn {
    width: 28px;
    height: 29px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: 0.3s;
}

.ourbrand_random-a {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;

}

.ourbrand_random-b {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1;

}

.devider-mobile {
    display: none;
}

/* ========================= */
/* TABLET */
/* ========================= */

@media(max-width:1600px) {

    .brand-card {
        height: 160px;
    }

}

@media(max-width:1440px) {

    .brand-card {
        height: 150px;
    }

}

@media(max-width:1200px) {

    .brand-top img {
        width: 90px
    }

}

@media(max-width:992px) {

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* ========================= */
/* MOBILE */
/* ========================= */


@media(max-width:576px) {

    .brands-grid {
        margin-top: 25px;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .brand-card{height: 183px;}

    .brand-top {
        padding: 15px;
    }

    .brand-top img {
        width: 90px;
    }

    .brand-bottom {
        padding: 14px;
        gap: 8px;
    }

    .know-more-text {
        font-size: 14px;
    }

    .arrow-btn {
        width: 25px;
        height: 25px;
        border-radius: 8px;
        font-size: 16px;
    }

    .devider-mobile {
        display: block;
    }

    .ourbrand_random-a {
        left: -40px
    }

    .ourbrand_random-b {
        right: -0px;
        bottom: -50px;
        width: 165px;
    }

}

@media(max-width: 400px) {
    .brand-card{height: 150px;}
    .brand-top img{width: 70px;}
    .brand-card:nth-child(4) .brand-top img{width: 79px;}
    .brand-card:nth-child(3) .brand-top img{width: 135px;}
    .brand-card:first-child .brand-top img{margin-top: 0;}
}

/* ==========================================================================
   6. SUSTAINABILITY & IMPACT SECTION (sustainability-section)
   ========================================================================== */
.custom-sustainability-section {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Desktop Styles */
.sustain-desktop-container {
    position: relative;
    height: 467px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 50px;
    box-sizing: border-box;
    overflow: hidden;
}

.sustain-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.sustain-bg-layer.active {
    opacity: 1;
    z-index: 2;
}

.sustain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.45) 100%);
    z-index: 3;
}

.sustain-content-relative {
    position: relative;
    z-index: 4;
    width: 100%;
}

.sustain-tabs-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    width: 100%;
}

/* Tab Card Styling - Glassmorphism with Custom Radial/Linear Gradient Borders */
.sustain-tab-card {
    flex: 0 0 auto;
    position: relative;
    cursor: pointer;
    box-sizing: border-box;
    border-radius: 12px;
    backdrop-filter: blur(42px);
    -webkit-backdrop-filter: blur(42px);
    padding: 0 24px;
    height: 60px;
    width: 315px;
    display: flex;
    align-items: center;
    transition: height 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        background-color 0.5s ease;
    background-color: rgba(255, 255, 255, 0.08);
}

/* Pseudo-element overlay for the gradient border supporting border-radius */
.sustain-tab-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 1px; /* border thickness */
    background: 
        radial-gradient(100% 100% at 0% 0%, rgba(255, 255, 255, 0.7) 0%, #0C4876 67.71%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(339.16deg, #FFFFFF 1.98%, #FFFFFF 2.98%, rgba(255, 255, 255, 0) 50%),
        linear-gradient(200.29deg, #53555E 0.88%, rgba(255, 255, 255, 0) 49.44%);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.sustain-tab-card.active {
    height: 168px;
    width: 315px;
    /* Same width as inactive state */
    padding: 19px 20px;
    cursor: default;
    align-items: flex-start;
}

.sustain-tab-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertically center in closed state */
}

.sustain-tab-card.active .sustain-tab-inner {
    justify-content: space-between;
    /* Space content vertically in active state */
}

/* Hide description and button from flex layout when card is closed to vertically center the title */
.sustain-tab-card:not(.active) .sustain-tab-desc,
.sustain-tab-card:not(.active) .sustain-know-more {
    display: none !important;
}

.sustain-tab-title {
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.2;
    transition: transform 0.4s ease;
}

.sustain-tab-desc {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, height 0.4s ease, margin 0.4s ease;
}

.sustain-tab-card.active .sustain-tab-desc {
    opacity: 1;
    visibility: visible;
    height: auto;
    margin-top: 12px;
}

.sustain-know-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    margin-top: auto;
}

.sustain-tab-card.active .sustain-know-more {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.sustain-arrow-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sustain-toggle-icon {
    position: absolute;
    font-size: 26px;
    font-weight: 300;
    color: #FFFFFF;
    line-height: 1;
    right: 0px;
    transition: all 0.4s ease;
    pointer-events: none;
}

/* Align vertically in the center for closed pills, and in the bottom-right corner for open box. 
   Because all tab cards bottom-align, this keeps the toggle icons perfectly fixed on a horizontal line! */
.sustain-tab-card:not(.active) .sustain-toggle-icon {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}

.sustain-tab-card.active .sustain-toggle-icon {
    bottom: 0px;
    top: auto;
    transform: none;
}

/* Responsiveness on mid-tier desktop viewports */
@media (min-width: 1599px) {
.sustain-desktop-container{height: 620px;}
}
@media (max-width: 1200px) and (min-width: 992px) {
    .sustain-tab-card {
        width: 280px;
        padding: 0 20px;
        height: 60px;
    }

    .sustain-tab-card.active {
        width: 280px;
        height: 168px;
        padding: 20px;
    }

    .sustain-tab-desc {
        font-size: 12px;
    }
}

/* Mobile Layout Styling */
.sustain-mobile-container {
    display: none;
    padding: 30px 24px;
    box-sizing: border-box;
}

.sustain-mob-card {
    position: relative;
    height: 360px;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 24px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.sustain-mob-card:last-child {
    margin-bottom: 0;
}

.sustain-mob-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 1;
}

.sustain-mob-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}

.sustain-mob-text-group {
    flex: 1;
}

.sustain-mob-title {
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.2;
}

.sustain-mob-desc {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin: 8px 0 0 0;
    line-height: 1.4;
}

.sustain-mobile-container .sustain-know-more {
    opacity: 1;
    visibility: visible;
    transform: none;
    flex-shrink: 0;
    margin-top: 0;
}

@media (max-width: 991px) {
    .sustain-desktop-container {
        display: none;
    }

    .sustain-mobile-container {
        display: block;
    }

    .sustain-mobile-container a{margin-bottom: 24px;}
}

@media (max-width: 479px) {
    .sustain-mob-title {
        font-size: 14px;
    }

    .sustain-mob-desc {
        font-size: 12px;
    }

    .sustain-know-more {
        font-size: 13px;
    }
}