/* General Go Green Styles */

/* .hero,
.slide-section,
.eco-labels,
.tabs,
.eco-blog,
.highlighted-section,
.cta-section,
.faq {
   width: 1288px;
   align-self: center;
} */

/* html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} */

html {
   scroll-snap-type: y;
   overflow-y: auto;
}

.snapable-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.go-green-global h1,
h2,
h3,
h4,
h5,
p {
    margin: 0;
}

.go-green-global h1 {
    /* responsive font-size from 56px to 32px */
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: bold;
}

.go-green-global h2 {
    /* responsive font-size from 48px to 32px */
    font-size: clamp(2rem, 4vw, 3rem);
    color: #000034;
    line-height: 3.5rem;
    font-weight: bold;
}

.go-green-global h3 {
    /* responsive font-size from 24px to 19.2px */
    font-size: clamp(1.3rem, 2vw, 1.5rem);
}

.go-green-global h4 {
    /* responsive font-size from 20px to 16px */
    font-size: clamp(1rem, 2vw, 1.3rem);
}

.go-green-global p {
    /* responsive font-size from 16px to 14.4px */
    font-size: clamp(.9rem, 2vw, 1rem);
    line-height: 1.3em;
}

.go-green-global a:hover {
    transition: none;
    color: initial;
}

.go-green-global .btn {
    background-color: #9BDC28;
    border: 2px solid #9BDC28;
    margin: 0;
    font-weight: 600;
    border-radius: 36px !important;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
}

.go-green-global .btn:hover {
    background-color: #bdfc50;
}

/* GoGreen-specific alignment for external-link icons inside action buttons. */
.go-green-global .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
}

.go-green-global .external-link-icon {
    vertical-align: middle;
    position: relative;
    top: -0.03em;
}

.go-green-global .btn .external-link-icon {
    margin-left: 0;
    font-size: 0.85em;
    line-height: 1;
}

@media screen and (max-width: 768px) {

    .go-green-global h1 {
        /* responsive font-size from 56px to 32px */
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }

    .go-green-global h2 {
        line-height: 2.5rem;
    }
}

.gogreen-section {
    padding: 100px 0;    
}

@media screen and (max-width: 768px) {
    .gogreen-section {
        padding: 50px 0;
    }
}

.content-wrapper {
    max-width: 1288px;
    /* Set the max width for the content */
    height: 100%;
    margin: 0 auto;
    /* Center the wrapper horizontally */
    padding: 0 20px;
    /* Add some horizontal padding for responsiveness */
    box-sizing: border-box;
    /* Ensure padding is included in the total width */
}

.section-headings {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

#heading-icon.section-heading-icon {
    /* scale: .65; */
    width: 70px;
    height: 70px;
    animation: 15s linear infinite running rotate360;
    border: 2px solid #fafafa;
    border-radius: 50%;
}

@media screen and (max-width: 768px) {
    #heading-icon.section-heading-icon {
        width: 60px;
        height: 60px;
    }
}

@media screen and (max-width: 480px) {
    #heading-icon.section-heading-icon {
        width: 50px;
        height: 50px;
    }
}

@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Navigation Bar */

.nav-bar-wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    height: 75px;
    z-index: 299; /* one less than main navbar (300) */
    background-color: #FAFAFA;
    justify-content: center;
    display: flex;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.35);
}

.go-green-navbar {
    width: 100%;
    max-width: 1288px;
    height: 75px;
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.nav-links a {
    font-size: 16px;
    text-decoration: none;
    color: #000034;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    display: block;
    background: #9BDC28;
    transition: width 0.4s ease;
}

.nav-links a:hover::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #9BDC28;
}

.nav-bar-wrapper .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #9BDC28;
    color: #233109;
    text-decoration: none;
    border-radius: 5px;
    /* margin: 0 10px; */
    transition: background-color 0.3s ease;
}

/* Hamburger Menu */
.go-green-navbar .menu-icon {
    display: none;
    cursor: pointer;
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    background-color: #FAFAFA;
    z-index: 299;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.35);
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }

    .nav-links.active {
        top: 49px;
    }

    .nav-links a {
        padding: 0 20px;
    }

    .nav-bar-wrapper {
        height: 50px;
    }

    .go-green-navbar {
        height: 100%;
        padding: 0 0 0 20px;
    }

    .nav-bar-wrapper .btn {
        padding: 5px 15px;
        margin: 0 20px;

    }

    .go-green-navbar .menu-icon {
        display: flex;
        width: auto;
    }
}


/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    /* Full-screen height */
    width: 100%;
    overflow: hidden;
    /* Ensures no overflow from the video */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the video covers the entire section */
    z-index: 0;
    /* Places the video behind the content */

}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Black overlay with 50% opacity */
    z-index: 1;
    /* Ensure the overlay is above the video but below the content */
}

.hero-content {
    position: relative;
    z-index: 1;
    /* Ensures content appears above the video */
    text-align: center;
    color: #ffffff;
    /* White text for contrast */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 30px;
    animation: heroFadeIn 1s ease-in-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
    transform: translateY(50px);
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    /* font-size: 3rem; */
    margin-bottom: 20px;
    text-align: center;
    text-shadow: -4px 4px 10px rgb(0,0,0, 0.8);
}

.hero-content img {
    max-height: 25%;
    width: auto;
}

.hero-buttons .btn {
    display: inline-block;
    width: 170px;
    padding: 10px 20px;
    background-color: #9BDC28;
    color: #233109;
    text-decoration: none;
    border-radius: 4px;
    border: 2px solid #9bdc2a;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

.hero-buttons .button-transparent-bg {
    display: inline-block;
    padding: 10px 20px;
    width: 170px;
    color: #fafafa;
    text-decoration: none;
    position: relative;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(5px);
    border-radius: 4px;
    background-color: rgba(155, 220, 42, 0.1);
    border: 2px solid #9bdc2a;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.hero-buttons .button-transparent-bg:hover {
    background-color: rgba(155, 220, 42, 0.4);
    color: #fafafa;
}

@media screen and (max-width: 768px) {
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .hero h1 {
        /* font-size: 2rem; */
    }

    .hero-content img {
        max-height: 25%;
    }
}


@media screen and (max-width: 480px) {
    .hero h1 {
        /* font-size: 1.5rem; */
    }
}

/* Introduction Section */

.introduction-left .glistening-text {
    color: transparent;
    /* Adjust text size */
    font-weight: bold;
    /* Make it bold */
    background: linear-gradient(to right,
            #233109 20%,
            /* Base color */
            #9BDC28 50%,
            /* Highlight color */
            #233109 80%
            /* Base color */
        );
    background-size: 200%;
    /* Make the gradient larger than the text */
    background-clip: text;
    /* Clip the background to the text */
    -webkit-background-clip: text;
    /* For Webkit browsers */
    color: transparent;
    /* Ensure only the gradient is visible */
    animation: glisten 6s linear infinite;
    /* Move the gradient */
    animation-delay: 2s;
}

@keyframes glisten {
    0% {
        background-position: 200% 0;
        /* Start gradient far to the right */
    }

    100% {
        background-position: -200% 0;
        /* Move gradient far to the left */
    }
}


.introduction-section {
    display: block;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

.introduction-sub-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    gap: 50px;
    flex-wrap: nowrap;
    flex-direction: row;
}

.introduction-left {
    max-width: 50%;
    transition: transform 2s ease-in-out;
    transform: translateX(-100%);
}

.introduction-left.visible {
    transform: translateX(0);
}

.introduction-left h2 {
    margin-bottom: 20px;
}

.introduction-left h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #9BDC28;
    margin-top: auto;
}

.introduction-left p {
    text-align: justify;
    /* font-size: 16px; */
    line-height: 1.3em;
    color: #233109;
    margin-bottom: 15px;
}

.introduction-section img {
    width: 100%;
    border-radius: 36px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: auto;
    object-fit: cover;
}

.introduction-right {
    display: flex;
    /* width: 100%; */
    max-width: 50%;
    transition: transform 2s ease-in-out;
    transform: translateX(100%);
}

.introduction-right.visible {
    transform: translateX(0);
}

@media screen and (max-width: 768px) {

    .introduction-left,
    .introduction-right {
        max-width: 100%;
    }

    /* .introduction-left p {
        font-size: 16px;
    } */

    .introduction-right {
        display: none;
    }

}

@media screen and (max-width: 480px) {
    /* .introduction-left h2 {
        font-size: 32px;
    } */

    /* .introduction-left p {
        font-size: 14px;
    } */
}

/* Pilares Section */

/* --- MAIN SECTION (Holds Everything) --- */
.pilares {
    background-color: #000034;
    scroll-snap-type: y mandatory; /* Enables full-page snapping */
    overflow: hidden;
    height: 100vh;
}

/* To hide scrollbar */
.pilares { 
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For Internet Explorer and Edge */
}

.pilares::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}

@media screen and (max-width: 768px) {
    .pilares {
        display: flex;
        height: 100vh;
        scroll-snap-type: none;
        overflow-y: unset;
        flex-direction: column;
    }
    
}

/* --- Scrollable Main Container (Holds Left & Right Columns) --- */
.sticky-container {
    display: flex;
    flex-direction: row;
    height: auto; /* Allow it to grow */
    min-height: 100vh;
    overflow: visible;
    z-index: 298;
}

/* --- Left Column (Sticky Icons & Logo) --- */
.left-column {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: left;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 10;
    pointer-events: none; /* Ensures content doesn't interfere */
    gap: 40px;
}

/* Responsive Layout - Move Left Column on Top for Mobile */
@media screen and (max-width: 768px) {

    .sticky-container {
        flex-direction: column; /* Stack elements vertically */
        padding: 0;
    }

    .left-column {
        display: flex;
        position: sticky;
        top: 50px; /*the height of the navbar*/
        width: 100%;
        height: max-content;
        flex: none;
        background-color: #000034;
        z-index: 1000;
        flex-direction: row;
        padding: 10px;
        gap: 20px;
        align-items: center;
        justify-content: center;

    }
    
}

/* --- Inner Layout for Left Column --- */
.left-inner {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 40px;
}

@media screen and (max-width: 1200px) {
    .left-inner {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .left-inner {
        justify-content: space-evenly;
    }
}

/* Logo */
.logo-column img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(to right, #000034 80%, #9bdc2a 110%);
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    border-image-slice: 1;
    padding: 3px;
}

@media screen and (max-width: 1200px) {
    .logo-column img {
        width: 120px;
        height: 120px;
    }
}

@media screen and (max-width: 768px) {
    .logo-column img {
        width: 100px;
        height: 100px;
    }
}

@media screen and (max-width: 480px) {
    .logo-column img {
        width: 75px;
        height: 75px;
    }
}

/* Icons */
#icon-pilares {
    color: #000034;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icons-column {
    width: 60px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

@media screen and (max-width: 768px) {
    .icons-wrapper {
        flex-direction: row;
        gap: 20px;
    }

    .icons-column {
        width: 100%;
        justify-content: center;
    }
}

.icons-wrapper .icon-logo {
    font-size: 32px;
    color: #fafafa;
    transition: transform 0.3s ease-in-out;
}

/* Active Icon */
.icon-logo.active {
    color: #9BDC28;
    transform: scale(1.3);
}

@media screen and (max-width: 768px) {
    .icons-wrapper .icon-logo {
        font-size: 24px;
    }
}

/* --- Right Column (Content that Scrolls) --- */
.right-column {
    flex: 2;
    display: flex;
    flex-direction: column;
    width: 70%;
}

@media screen and (max-width: 768px) {
    .right-column {
        width: 100%;
        scroll-snap-type: y mandatory;
        overflow-y: auto;
        overflow: hidden;
    }
}

/* --- Snap Scrolling Sections --- */
.info {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 100vh; /* Adjusted from 100vh to 60vh */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
    background-color: #fafafa;
}

@media (max-width: 768px) {
    .info {
        min-height: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .info {
        min-height: 100%;
    }
}

/* Ensuring wrapper takes full height */
.info-elements-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 0 40px;
    height: 60vh; /* Adjusted from 100vh to 60vh */
}

@media screen and (max-width: 768px) {
    .info-elements-wrapper {
        height: auto;
        padding: 0;
        gap: 10px;
    }
}

@media screen and (max-width: 480px) {
    .info-elements-wrapper {
        /* padding: 20px; */
        gap: 0;
    }
}

.info-elements-wrapper ul li {
    list-style-position: outside;
    padding: 10px;
}

@media screen and (max-width: 480px) {
    .info-elements-wrapper ul li {
        padding: 5px;
    }
}

/* --- Headings and Dividers --- */
.info-heading {
    padding-bottom: 20px;
}

@media screen and (max-width: 768px) {
    .info-heading {
        padding-bottom: 5px;
    }
    
}

.icon-heading-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    gap: 20px;
}

.icon-heading-wrapper h3 {
    font-weight: bold;
}

img.icon-heading {
    width: 50px;
    height: 50px;
    border: 2px solid #000034;
    border-radius: 50px;
}

hr.pilares-divider {
    border: 1px solid #000034;
    width: 100%;
    margin: 8px 0;
}

.bullet-points {
    margin-bottom: 0;
}

/* --- Active Section (Optional) --- */
.info.active {
    background-color: #fafafa;
}




/* Eco Labels Section */
.eco-labels {
    /* padding: 40px 20px; */
    background-color: #ffffff;
}

.eco-labels h2 {
    text-align: center;
}


.eco-labels img {
    height: 150px;
    width: auto;
    mix-blend-mode: multiply;
    transition: height 0.5s ease;
}

.eco-labels h3 {
    /* font-size: 24px; */
    font-weight: bold;
    transition: font-size 0.5s ease;
    text-align: center;
}


.carousel .card p {
    max-height: 0%;
    overflow: hidden;
    text-align: justify;
    transition: max-height 0.5s ease;
    font-size: 16px;
}

.carousel .card img {
    height: 150px;
    transition: height 0.5s ease;
}


/* Hover effect */
.carousel .card:hover img,
.carousel .card.active img {
    height: 80px; /* Shrinks image */
    transition: height 0.5s ease;
}

.carousel .card:hover h3,
.carousel .card.active h3 {
    font-size: 24px; /* Enlarges title */
    transition: font-size 0.5s ease;
}

.carousel .card:hover p,
.carousel .card.active p {
    max-height: 100%; /* Expands paragraph */
    transition: max-height 0.5s ease;
    overflow: hidden;
}


@media screen and (max-width: 900px) {
    /* Hover effect */
    .carousel .card:hover img,
    .carousel .card.active img {
        height: 50px; /* Shrinks image */
        transition: height 0.5s ease;
    }

    .carousel .card:hover h3,
    .carousel .card.active h3 {
        font-size: 18px; /* Enlarges title */
        transition: font-size 0.5s ease;
    }

    .carousel .card:hover p,
    .carousel .card.active p {
        max-height: 100%; /* Expands paragraph */
        transition: max-height 0.5s ease;
        overflow: auto;

    }
}

.carousel .card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    transition: none;
    overflow: auto;
}

.eco-labels a:hover {
    text-decoration: none;
    color: inherit;
    transition: none;
}

.eco-labels a.disabled {
    pointer-events: none;
}

.eco-labels .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #9BDC28;
    color: #233109;
    text-decoration: none;
    border-radius: 5px;
    margin: 0 10px;
    transition: background-color 0.3s ease;
    align-self: center;
}

.eco-labels .content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wrap {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 auto;
}

.wrap #left,
#right {
    height: 50px;
    width: 50px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000034;
    font-size: 26px;
}

.wrap #left {
    left: -22px;
}

.wrap #right {
    right: -22px;
}

.wrap .carousel {
    width: 100%;
    display: grid;
    gap: 16px;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 3) - 12px);
    padding: 0 0 5px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}


.carousel.no-transition {
    scroll-behavior: auto;
}


.carousel.dragging {
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.carousel.dragging .slide {
    cursor: grab;
    user-select: none;
}

.carousel .card {
    scroll-snap-align: start;
    background: #f0f0f0;
    height: 475px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 36px;
    box-shadow: 2px 4px 4px rgba(0, 0, 0, 0.25);
    padding: 20px 30px;
    gap: 15px;
}

@media screen and (max-width: 900px) {
    .wrap .carousel {
        grid-auto-columns: calc((100% / 2) - 9px);
    }

    .carousel .card {
        height: 300px;
        justify-content: flex-start;
    }
}

@media screen and (max-width: 768px) {
    .wrap .carousel {
        grid-auto-columns: calc(100%);
    }

    .eco-labels h3 {
        /* font-size: 20px; */
    }

    .carousel .card:hover img {
        height: 150px;
        transition: none;
    }

    .carousel .card:hover h3 {
        transition: none;
    }

    .carousel .card:hover p {
        max-height: 0;
        transition: none;
    }
}

/* Rolling Numbers section */

.rolling-numbers-section {
    position: relative;
    background: url('../images/SUR.jpg') no-repeat center center/cover;
    background-size: cover;
    height: 300px;
    text-align: center;
    color: #fafafa;
    /* margin: 0px 0px 100px 0px; */
}

.rolling-numbers-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Black overlay with 50% opacity */
    z-index: 1;
}

.rolling-numbers-section .content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 50px 20px;
    justify-content: center;
}

.rolling-numbers-section h2 {
    z-index: 2;
    position: relative;
    color: #FAFAFA;
    text-shadow: -4px 4px 10px rgb(0,0,0, 0.8);
}

.rolling-numbers {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-around;
    background-color: rgba(240, 240, 240, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 35px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.single-rolling-number {
    text-align: center;
    color: #000034;
    padding: 0 20px;
}

.single-rolling-number h3 {
    margin: 0;
    /* font-size: 24px; */
    font-weight: 500;
    /* line-height: 1.2em; */
}

.counter {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    color: #000034;
}


@media screen and (max-width: 768px) {
    .rolling-numbers-section {
        height: 250px;
    }

    .rolling-numbers {
        bottom: -30px;
        padding: 20px;
    }

    .counter {
        font-size: 32px;
    }
}

@media screen and (max-width: 480px) {
    .rolling-numbers-section {
        height: 100%;
        margin: 0;
    }

    .rolling-numbers {
        flex-direction: column;
        align-items: center;
        position: unset;
        bottom: 0;
        left: 0;
        transform: none;
    }

    .single-rolling-number {
        margin-bottom: 20px;
    }

    .counter {
        font-size: 28px;
    }
}


/* Tab Buttons */
.tab-buttons {
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    display: inline-flex;
    flex-wrap: wrap;
}

.tab {
    cursor: pointer;
    flex: 1 1 0;
    border-radius: 36px;
    overflow: hidden;
    border: 2px #000034 solid;
    justify-content: center;
    align-items: center;
    display: flex;
    background: #FFFFFF;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 15px 0;
}

.tab.active {
    background: #000034;
    /* White background for active tabs */
    color: #9BDC2A;
    /* Dark blue text for active tabs */
}

.tab-label {
    flex: 1 1 0;
    height: auto;
    text-align: center;
    /* font-size: 32px; */
    font-size: clamp(1.2rem, 3vw, 2rem);
    /* font-family: Jost; */
    font-weight: 700;
    line-height: 44.8px;
    word-wrap: break-word;
    color: #000034;
    /* Green for inactive tabs */
    transition: color 0.3s ease, background-color 0.3s ease;
}

.tab.active .tab-label {
    color: #9BDC2A;
    /* Green text for active tabs */
}

/* Hide all tab content by default */
.tab-pane {
    display: none;
}

/* Show active tab content */
.tab-pane.active {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    flex-direction: column;
}

/* Tab's Elements */
.document-item {
    display: flex;
    gap: 25px;
    justify-content: space-between;
    align-items: center;
    border: solid;
    border-radius: 36px;
    padding: 15px;
    border-width: 1px;
    border-color: #D9D9D9;
    background-color: #F5F5F5;
}

.document-title {
    display: flex;
    flex: auto;
}

.document-title p {
    font-weight: 600;
    /* font-size: 16px; */
    color: #000034;
}

.document-button {
    border-radius: 36px;
    background-color: #9BDC2A;
    padding: 14px 20px;
    font-size: 20px;
    font-weight: 600;
    color: #000034;
    text-decoration: none;
    word-break: keep-all;
    transition: background-color 0.3s ease;
    min-width: 100px;
}

.document-button:hover {
    background-color: #bdfc50;
    transition: background-color 0.3s ease;
}

.pdf-icon {
    font-size: 35px;
    color: #9BDC2A;
}

@media screen and (max-width: 900px) {
    .tab-label {
        /* font-size: 24px; */
        line-height: 32px;
    }

    .document-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .document-button {
        width: 100%;
        text-align: center;
        padding: 14px 0;
    }

    .tab-buttons {
        display: grid;
        justify-content: stretch;
    }
}

@media screen and (max-width: 480px) {
    .tab-label {
        /* font-size: 18px; */
        line-height: 20px;
    }

    /* .document-title p {
        font-size: 14px;
    } */

    .document-button {
        font-size: 16px;
        padding: 14px 0;
    }
}

/* Power BI Statistics */

.power-bi-statistics {
    /* padding: 40px 20px; */
    background-color: #233109;
    text-align: center;
}

.power-bi-statistics h2 {
    color: #fafafa;
}

/* Eco Blog Section */
.eco-blog {
    background-color: #fafafa;
    color: #fff;
    text-align: center;
}

.eco-blog h2 {
    color: #000034;
}

.blog-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.blog-card {
    min-width: 25%;
    max-height: 400px;
    border-radius: 36px;
    overflow: hidden;
    transition: flex 0.3s;
    position: relative;
    flex: 1;
}

.blog-card:hover {
    flex: 1.5;
}

.card-media {
    width: 100%;
    position: absolute;
    height: 100%;
    /* background-color: #9BDC28; */
    background-color: transparent;
    background-size: auto;
    background-position: center;
    padding: 0;
}

.card-media img {
    /* object-fit: cover;
    width: 100%;
    height: 120%; */
    opacity: 0.5;
    position: relative;
    margin-inline-start: 105px;
    margin-top: 2rem;
    width: 40rem;
    height: 40rem;
}

.eco-blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 1) 100%);
    z-index: 1;
    /* Ensure the overlay is above the video but below the content */
}

.blog-card:hover .eco-blog-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 52, 0.2) 10%, rgba(0, 0, 52, 0.9) 50%);
    backdrop-filter: blur(2px);
}

.blog-content {
    height: 250px;
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 20px;
    gap: 10px;
    justify-content: flex-end;
    z-index: 2;
}

.blog-content .to-hide {
    display: flex;
    max-height: 0;
    flex-direction: column;
    align-items: start;
    gap: 10px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.blog-card:hover .blog-content {
    display: flex;
    justify-content: flex-end;
}

.blog-card:hover .blog-content .to-hide {
    max-height: 100%;
    transition: max-height 0.4s ease;
}

.blog-content p {
    text-align: start;
}

.to-hide a {
    color: #9BDC28;
    cursor: pointer;
    text-decoration: underline;
}

.to-hide a:hover {
    color: #bdfc50;
}

.blog-content .to-hide p {
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;

    /* Fallback for non-WebKit browsers */
    max-height: 5.5rem; /* Adjust as needed */
    text-overflow: ellipsis;
    white-space: normal; /* Important for multi-line */
    word-break: break-word; /* Ensures proper wrapping */
}

@media screen and (max-width: 1200px) {
    .blog-card {
        min-width: 45%;
    }
}

@media screen and (max-width: 768px) {
    .blog-cards {
        flex-direction: column;
    }

    .blog-card {
        max-width: 100%;
    }

    .blog-content p {
        font-size: 14px;
    }
}

/* Contratos Maestros Section */

.contracts-section-wrapper {
    width: 1288px;
    height: 100%;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    gap: 50px;
}

.contracts-section {
    display: flex;
    flex-direction: column;
    gap: 50px;
    justify-content: space-between;
    align-items: center;
    background-color: #233109;
    color: #FAFAFA;
    position: relative;
    /* Allows better control over absolute positioning if needed */
    padding-right: 20px;
    overflow: hidden;
}

.contracts-content {
    display: flex;
    max-width: 50%;
    flex-direction: column;
    justify-content: space-evenly;
    transform: translateX(-100%);
    transition: transform 1.5s ease-in-out;
}

.contracts-content.visible {
    transform: translateX(0);
}

.contracts-content h2 {
    color: #FAFAFA;
    /* line-height: 3rem; */
}

.contracts-content p {
    /* font-size: 1rem; */
    line-height: 1.6;
    color: #FAFAFA;
    margin-bottom: 20px;
    text-align: justify;
}

.contracts-content .btn {
    padding: 10px 20px;
    background-color: #9BDC28;
    color: #233109;
    text-decoration: none;
    border-radius: 5px;
    width: fit-content;
}

.contracts-image {
    width: 50%;
    display: flex;
    /* justify-content: flex-end; */
    align-items: center;
    transform: translateX(100%);
    transition: transform 1.5s ease-in-out;
}

.contracts-image.visible {
    transform: translateX(0);
}


.contracts-image img {
    max-width: 100%;
    /* Ensures the image scales properly */
    height: auto;
    /* Maintain aspect ratio */
    border-radius: 36px;
    border: 5px #FAFAFA solid;
}

@media screen and (max-width: 1200px) {
    .contracts-section {
        flex-direction: column;
        /* text-align: center; */
        padding-left: 20px;
    }

    .contracts-content {
        /* max-width: 100%; */
        /* order: 2; */
        align-items: center;
    }

    .contracts-content h2 {
        text-align: center;
    }

    .contracts-image {
        /* width: 100%; */
        /* order: 1; */
        /* margin-bottom: 20px; */
        /* align-items: center;
        justify-content: center; */
    }
}

@media screen and (max-width: 900px) {
    .contracts-section-wrapper {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .contracts-content {
        max-width: 100%
    }

    .contracts-image {
        width: 100%;
    }

    .contracts-image img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }
}

@media screen and (max-width: 768px) {
    .contracts-content {
        max-width: 100%
    }

    .contracts-content h2 {
        /* font-size: 2rem; */
    }

    .contracts-content p {
        font-size: 0.9rem;
    }

    /* .contracts-section-wrapper {
        flex-direction: column;
    }

    .contracts-image img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }

    .contracts-image {
        width: 100%;
    } */
}

@media screen and (max-width: 480px) {
    .contracts-content h2 {
        /* font-size: 1.5rem; */
        /* line-height: 1rem; */
    }

    .contracts-content p {
        font-size: 0.8rem;
    }

    .contracts-image img {
        display: none;
    }
}

/* CTA Section */
.cta-section {
    position: relative;
    background: url('../images/CUEVA_VENTANA.jpg') no-repeat center center/cover;
    background-size: cover;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
}

.cta-wrapper {
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Black overlay with 50% opacity */
    z-index: 1;
}

.cta-section h2 {
    /* font-size: 32px; */
    margin-bottom: 20px;
    font-weight: 700;
    z-index: 2;
    color: #FAFAFA;
    text-shadow: -4px 4px 10px rgb(0,0,0, 0.8);
}

.cta-section .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #9BDC28;
    color: #233109;
    text-decoration: none;
    border-radius: 5px;
    z-index: 2;
    align-self: center;
}

.cta-section .btn:hover {
    z-index: 2;
}

/* FAQ Section */
.faq {
    background-color: #233109;
    color: #fff;
}

.faq h2 {
    text-align: center;
    color: #FAFAFA;
}

.faq p {
    text-align: justify;
    line-height: 1.3rem;
}

.faq .accordion-item {
    cursor: pointer;
    margin-bottom: 20px;
    background-color: #7DB220;
    border-radius: 36px 36px 36px 36px;
}

.faq .accordion-title {
    /* font-size: 20px; */
    padding: 15px;
    border-radius: 36px 36px 36px 36px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.faq .accordion-title h3 {
    font-weight: bold;
    color: #233109;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}


.faq .accordion-title svg {
    fill: #233109;
    width: 16px;
    flex-shrink: 0;
}

.faq .accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    border-radius: 0 0 36px 36px;
    transition: max-height 0.5s ease, padding 0.5s ease;
    /* Smooth transition for height */
}

.faq .accordion-content p{
    color: #233109;
    font-weight: bold;
}

.faq .accordion-item.active .accordion-content {
    max-height: 400px !important;
    /* Adjust based on expected content height */
    padding: 15px;
    border-radius: 0px 0px 36px 36px;

}
