* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: DM Sans, sans-serif;
    color: #161616;
    margin: 0;
    padding: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    /* padding: 0 clamp(1rem, 3vw, 2rem); */
    box-sizing: border-box;
}


.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    z-index: 1000;
    height: clamp(60px, 8vh, 75px);
}

.header .container {
    padding: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(0.5rem, 2vw, 1rem) clamp(1rem, 3vw, 2rem);
    margin: 0;
    gap: clamp(0.5rem, 2vw, 1rem);
    width: 100%;
}

.logo {
    padding-left: clamp(1rem, 4vw, 3rem);
}

.logo img {
    height: 38px;
    width: auto;
    background-color: black;
    border-radius: 50px;
}

.nav-menu {
    display: none;
    /* Hidden by default on larger screens */
    list-style: none;
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-menu a {
    text-decoration: none;
    color: #161616;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #0071E3;
}

.header-cta-button {
    background: #0071E3;
    color: white;
    border: none;
    padding: clamp(0.4rem, 1.5vw, 0.5rem) clamp(1rem, 3vw, 1.5rem);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
    border-radius: 25px;
    font-size: clamp(0.6rem, 1.8vw, 0.9rem);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0;
    margin-right: clamp(1rem, 4vw, 3rem);
    white-space: nowrap;
}

.header-cta-button:hover {
    background: #005AAC;
    transform: none;
}

.hamburger {
    display: none;
    /* Hidden by default on larger screens */
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #161616;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu-close {
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.hero .container {
    padding: 0;
}

.hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin-top: 82px;
}

.hero-logo {
    width: clamp(100px, 15vw, 500px);
    height: auto;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    /* margin-bottom: 1rem; */
}

.hero-logo-mobile {
    width: clamp(100px, 14vw, 400px);
}

.hero-logo-animate {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 500;
    line-height: 1;
    opacity: 0;
    text-align: center;
    transform: translateY(50px);
    max-width: 900px;
    /* margin-bottom: 1rem; */
}

.cta-button {
    margin-bottom: 0.5rem;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 2rem;
    opacity: 0;
    transform: scale(0.8);
    white-space: nowrap;
}

.hero-subheadline {
    color: #1976d2;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-weight: 400;
    opacity: 1;
    transform: translateX(-30px);
    max-width: 600px;
    text-align: center;
    align-items: center;
}

.hero-img {
    position: absolute;
    /* width: 50dvw; */
    height: auto;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transform: scale(0.5);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-img-1 {
    top: 0;
    left: 0;
    transform: rotate(-18deg);
    width: clamp(250px, 30vw, 450px);
    max-width: 550px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}


.hero-img-2 {
    top: clamp(20px, 4vh, 80px);
    right: 0;
    transform: rotate(-16deg);
    width: clamp(250px, 30vw, 450px);
    max-width: 400px;
    height: auto;
    max-height: 430px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}


.hero-img-3 {
    bottom: 4vh;
    left: 0;
    transform: rotate(-8deg);
    width: clamp(260px, 32vw, 500px);
    max-width: 500px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bottom-right: Phone */
.hero-img-4 {
    bottom: 0;
    right: clamp(5px, 5vw, 100px);
    transform: rotate(10deg);
    width: clamp(150px, 28vw, 400px);
    max-width: 400px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {

    .hero-content {
        padding: 0;
    }

    .hero-title {
        font-size: 5rem;
    }

    .cta-button {
        font-size: 1.3rem;
        padding: 1.2rem 3rem;
    }

    .hero-subheadline {
        font-size: 1.3rem;
    }
}

/* Desktop (1024px - 1399px) */
@media (max-width: 1399px) and (min-width: 1024px) {
    .hero-content {
        padding: 0;
    }

    .hero-title {
        font-size: clamp(3rem, 4.5vw, 4rem);
    }
}

/* Tablet Landscape (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .hero-content {
        padding: 0;
        margin-top: 60px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
        margin-bottom: 0.8rem;
    }

    .cta-button {
        margin-bottom: 1rem;
    }

    .hero-subheadline {
        margin-top: 1.5rem;
    }

    .hero-img-1 {
        width: clamp(140px, 28vw, 350px);
    }

    .hero-img-2 {
        width: clamp(130px, 26vw, 320px);
    }

    .hero-img-3 {
        width: clamp(150px, 30vw, 380px);
    }

    .hero-img-4 {
        width: clamp(140px, 25vw, 320px);
    }

    /* Header adjustments for tablets */
    .nav-menu {
        gap: clamp(0.8rem, 2vw, 1.5rem);
    }

    .header-cta-button {
        padding: clamp(0.4rem, 1.2vw, 0.5rem) clamp(0.8rem, 2.5vw, 1.2rem);
        font-size: clamp(0.6rem, 1.5vw, 0.7rem);
    }


    .container {
        padding: 0 clamp(1rem, 2.5vw, 1.5rem);
    }
}

/* Mobile Hero Section (less than 700px) */
@media (max-width: 700px) {
    .hero {
        /* height: 110vh; */
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        /* padding: 0 1rem; */
    }

    .hero-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 0 1rem;
        text-align: center;
        z-index: 2;
        width: 90%;
    }

    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }

    .cta-button {
        padding: 0.8rem 1.8rem;
        font-size: clamp(0.9rem, 2vw, 1rem);
    }

    .hero-subheadline {
        position: absolute;
        bottom: 12vh;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        text-align: center;
        width: 85%;
        z-index: 3;
    }

    .hero-img-1 {
        top: 12vh;
        left: 24vw;
        width: clamp(120px, 18vh, 220px);
        transform: rotate(-15deg);
        z-index: 1;
    }

    .hero-img-2 {
        top: 8vh;
        right: 8vw;
        width: clamp(110px, 16vh, 200px);
        transform: rotate(-12deg);
        z-index: 1;
    }

    .hero-img-3 {
        bottom: 18vh;
        left: 8vw;
        width: clamp(130px, 12vh, 240px);
        height: 45dvh;
        transform: rotate(-4deg);
        z-index: 1;
    }

    .hero-img-4 {
        bottom: 22vh;
        right: 8vw;
        width: clamp(100px, 15vh, 180px);
        transform: rotate(10deg);
        z-index: 1;
    }

    /* Mobile-specific hero layout styles */
    .hero-content-mobile {
        position: absolute;
        top: 38%;
        left: 50%;
        transform: translate(-50%, -50%);
        /* padding: 0 2rem; */
        text-align: center;
        z-index: 2;
        width: 100%;
        height: 100dvh;
        max-width: 350px;
    }

    .hero-title-mobile {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
        margin-bottom: 2rem !important;
        line-height: 1.1;
        font-weight: 600;
    }

    .cta-button-mobile {
        padding: clamp(0.6rem, 1.5vw, 0.8rem) clamp(0.9rem, 1.6vw, 1rem);
        font-size: clamp(0.6rem, 1.5vw, 0.8rem);
        border-radius: 50px;
        font-weight: 300;
        background: #0071E3;
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
        transition: all 0.3s ease;
        white-space: nowrap;
        margin-bottom: 1.5rem;
        margin-top: 1rem;
    }

    .cta-button-mobile:hover {
        background: #005AAC;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 113, 227, 0.3);
    }

    .hero-subheadline-mobile {
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        font-size: clamp(0.9rem, 2.2vw, 1rem);
        text-align: center;
        width: 90%;
        z-index: 1000;
        font-weight: 400;
    }

    .hero-img-mobile-1 {
        top: 8vh;
        left: -5vw;
        width: clamp(140px, 25vh, 320px);
        transform: rotate(-10deg);
        z-index: 1;
        position: absolute;
        opacity: 0;
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .hero-img-mobile-2 {
        top: 8vh;
        right: -4vw;
        width: clamp(150px, 23vh, 300px);
        transform: rotate(-10deg);
        z-index: 1;
        position: absolute;
        opacity: 0;
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .hero-img-mobile-3 {
        bottom: 4vh;
        left: -9vw;
        width: clamp(20px, 23vh, 340px);
        transform: rotate(-8deg);
        z-index: 1;
        height: 360px;
        position: absolute;
        opacity: 0;
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .hero-img-mobile-4 {
        bottom: 11vh;
        right: -5vw;
        width: clamp(140px, 21vh, 280px);
        transform: rotate(12deg);
        z-index: 1;
        position: absolute;
        opacity: 0;
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
}



@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .hero-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}


@media print {
    .hero {
        min-height: auto;
        height: auto;
    }

    .hero-img {
        display: none;
    }

    .hero-content {
        margin-top: 0;
        padding: 2rem;
    }
}



@media (min-width: 768px) {
    .hero-title-justify {
        text-align: justify;
        text-justify: inter-word;
    }
}

.hero-black {
    color: #161616;
}

.hero-blue {
    color: #005AAC;
}

.highlight {
    color: #005AAC;
}

.cta-button {
    background: #0071E3;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.cta-button:hover {
    background: #005AAC;
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}

.hero-subtitle {
    color: #0071E3;
    font-size: 1.1rem;
    font-weight: 500;
}


main {
    margin: 0;
    padding: 0;
    width: 100%;

}

section {
    padding: 0 0.5rem;
}

.hero {
    padding: 0 !important;
}


.intro-section {
    background: white;
    margin-top: 0;
    padding-top: 0;
}

.intro-content {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2rem);
    max-width: 700px;
    font-weight: 600;
    margin: 0 auto;
    color: linear-gradient(245.34deg, #0071E3 17.85%, #3AA0F3 64.46%, #0071E3 83.74%);
    background: linear-gradient(245.34deg, #0071E3 17.85%, #3AA0F3 64.46%, #0071E3 83.74%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0 2rem 2rem 2rem;
    align-items: center;
}

.intro-content p {
    color: #0071E3;
    font-size: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.4;
    background: linear-gradient(245.34deg, #0071E3 17.85%, #3AA0F3 64.46%, #0071E3 83.74%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    justify-items: center;
}


@media (max-width: 1399px) and (min-width: 1024px) {
    .intro-content {
        font-size: clamp(1.8rem, 3.5vw, 2.4rem);
        max-width: 800px;
    }

    .intro-content p {
        font-size: clamp(1.8rem, 3.5vw, 2.4rem);
        /* margin-bottom: 1.3rem; */
    }
}

@media (max-width: 1023px) and (min-width: 768px) {
    .intro-content {
        font-size: clamp(1.6rem, 3vw, 2.2rem);
        max-width: 700px;
        /* padding: 0 1.5rem; */
    }

    .intro-content p {
        font-size: clamp(1.6rem, 3vw, 2.2rem);
        /* margin-bottom: 1.2rem; */
        line-height: 1.5;
    }
}

@media (max-width: 767px) and (min-width: 368px) {
    .intro-section {
        margin-top: 0;
        padding-top: 0;
    }

    .intro-content {
        font-size: clamp(1.4rem, 4vw, 1.8rem);
        max-width: 600px;
        padding: 0 1rem;
    }

    .intro-content p {
        font-size: clamp(1.4rem, 4vw, 1.8rem);
        /* margin-bottom: 1rem; */
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .intro-section {
        margin-top: 0;
        padding-top: 0;
    }

    .intro-content {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
        max-width: 500px;
        padding: 0 0.8rem;
    }

    .intro-content p {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
        /* margin-bottom: 0.8rem; */
        line-height: 1.3;
    }
}

@media (max-width: 368px) {
    .intro-section {
        margin-top: 0;
        padding-top: 0;
    }

    .intro-content {
        font-size: clamp(1rem, 6vw, 1.3rem);
        max-width: 400px;
        padding: 0 0.5rem;
    }

    .intro-content p {
        font-size: clamp(1rem, 6vw, 1.3rem);
        /* margin-bottom: 0.6rem; */
        line-height: 1.2;
    }
}



/* BILDUP COMPONENT & SECTION */

.bildup-section {
    background: white;
}

.bildup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.bildup-image {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    margin-top: 2rem;
}

.bildup-subtitle {
    color: #0071E3;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: left;
}

.bildup-title {
    font-size: clamp(5.5rem, 9vw, 7.5rem);
    margin-bottom: 1.5rem;
    line-height: 0.9;
    font-weight: 500;
    text-align: start;

    background: radial-gradient(18.27% 145.21% at 23.31% 58.65%,
            #46B83D 0%,
            #111E0B 100%);
    -webkit-background-clip: text;
    /* Safari/Chrome */
    -webkit-text-fill-color: transparent;
    /* Safari/Chrome */
    background-clip: text;
    /* Standard (for Firefox support) */
    color: transparent;
    /* fallback */
}

.bildup-description {
    font-size: 1.5rem;
    color: #696969;
    font-weight: 300;
    text-align: justify;
    margin-bottom: 1.5rem;
}

.bildup-description:last-child {
    margin-bottom: 0;
}

.bildup-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}


.final-bildup-section .bildup-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    max-width: 1200px;
    padding-top: 3rem;
    /* margin: 0 auto; */
}

.final-bildup-section .bildup-subtitle {
    text-align: left;
    width: 100%;
}

.final-bildup-section .bildup-title {
    text-align: left;
    width: 100%;
}

.final-bildup-section .bildup-description {
    text-align: left;
    width: 100%;
}

.final-bildup-section .bildup-text {
    width: 100%;
    max-width: 100%;
}

.final-bildup-section .bildup-image {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    margin-top: 2rem;
}

.final-bildup-section .bildup-image img {
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.final-bildup-section .bildup-image .cta-button {
    background: #0071E3;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
    align-self: flex-start;
    display: flex;
    margin-bottom: 1rem;
    z-index: 10;
    margin-left: -3.2rem;
    position: relative;
    opacity: 1;

}

.final-bildup-section .bildup-image .cta-button:hover {
    background: #0071E3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.25);
}


@media (max-width: 768px) {
    .final-bildup-section .bildup-image .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        /* opacity: 1; */
        width: 120%;
        margin-left: -2%;
        align-self: center;
        text-align: center;
        justify-content: center;
        /* display: block; */
    }

    .final-bildup-section .bildup-content {
        gap: 0.3rem;
    }

    .final-bildup-section .bildup-image {
        gap: 1rem;
        margin-top: 1.5rem;
        align-items: center;
    }
}


@media (max-width: 1399px) and (min-width: 1024px) {
    .bildup-content {
        gap: 1.5rem;
    }

    .bildup-title {
        font-size: clamp(6rem, 7vw, 6.5rem);
    }

    .bildup-description {
        font-size: 1.8rem;
    }

    .bildup-subtitle {
        font-size: 1.4rem;
    }
}

@media (max-width: 1023px) and (min-width: 768px) {
    .bildup-content {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .bildup-title {
        font-size: clamp(3.5rem, 4vw, 4rem);
        margin-bottom: 1.5rem;
    }

    .bildup-description {
        font-size: 1.6rem;
        line-height: 1.6;
    }

    .bildup-subtitle {
        font-size: 1.5rem;
    }

    .bildup-image img {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 767px) and (min-width: 368px) {
    .bildup-content {
        gap: 1rem;
        padding: 0 1rem;
        max-width: 95%;
    }

    .bildup-title {
        font-size: clamp(2.5rem, 5vw, 4rem);
        margin-bottom: 1rem;
        text-align: left;
    }

    .bildup-description {
        font-size: 1.4rem;
        line-height: 1.5;
        text-align: left;
    }

    .bildup-subtitle {
        font-size: 1.3rem;
        text-align: left;
        margin-bottom: 0.8rem;
    }

    .bildup-image {
        margin-top: 1rem;
    }

    .bildup-image img {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .bildup-content {
        gap: 0.8rem;
        padding: 0 0.5rem;
        max-width: 98%;
    }

    .bildup-title {
        font-size: clamp(3.5rem, 6vw, 4.5rem);
        margin-bottom: 0.8rem;
        text-align: left;
    }

    .bildup-description {
        font-size: 1.2rem;
        line-height: 1.4;
        text-align: left;
    }

    .bildup-subtitle {
        font-size: 1.2rem;
        text-align: left;
        margin-bottom: 0.6rem;
    }

    .bildup-image {
        margin-top: 0.8rem;
    }

    .bildup-image img {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 368px) {
    .bildup-content {
        gap: 0.6rem;
        padding: 0 0.3rem;
        max-width: 100%;
    }

    .bildup-title {
        font-size: clamp(2.5rem, 7vw, 3.5rem);
        margin-bottom: 0.6rem;
        text-align: left;
    }

    .bildup-description {
        font-size: 1rem;
        line-height: 1.3;
        text-align: left;
    }

    .bildup-subtitle {
        font-size: 1rem;
        text-align: left;
        margin-bottom: 0.5rem;
    }

    .bildup-image {
        margin-top: 0.6rem;
    }

    .bildup-image img {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}


.second-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.second-section .bildup-content {
    flex-direction: column-reverse;
}

.second-section .bildup-title {
    color: #0071E3;
}



/* Section Content */
.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-text h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #161616;
}

.section-text p {
    font-size: 1.2rem;
    color: #696969;
    line-height: 1.7;
}

.section-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}


.custom-section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Apply rounded bottom corners to all sections with background images */
section[style*="background-image"],
section[class*="section"],
.intro-section,
.second-section,
.feature-section,
.final-cta-section,
.study-anywhere-section,
.at-home-section,
.exam-prep-section {
    border-radius: 0 0 30px 30px !important;
    overflow: hidden;
}

.bildup-section,
.final-bildup-section {
    border-radius: 0 0 30px 30px !important;
}

.custom-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0 0 30px 30px;
    z-index: -1;
}

/* Background image overlay for better text readability */
.custom-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}


.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* gap: 1rem; */
    padding: 1rem 0;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.2;
    max-width: 600px;
    margin: 0 auto;
}

.hero-image-container {
    margin-top: 2rem;
}

.hero-main-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


/* FEATURE COMPONENT */
/* Cards Layout */
.feature-section {
    padding-top: 3rem;
}

.cards-content {
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}


.section-top-content {
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;
    text-align: center;
}

.section-top-title {
    font-size: clamp(2.5rem, 8.5vw, 9rem);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-top: 2rem;
    text-align: left;
    line-height: 1;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
}

/* Gradient text support */
.section-top-title[style*="gradient"] {
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 100% 100%;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    color: transparent !important;

}


.section-top-title[style*="gradient"] {
    text-shadow: none;
    -webkit-text-stroke: 0;
    background-attachment: scroll;
}

/* Gradient text class for enhanced styling */
.gradient-text {
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;

}

/* Ensure gradient text works in all browsers */
@supports (background-clip: text) {

    .section-top-title[style*="gradient"],
    .section-description[style*="gradient"],
    .card-title[style*="gradient"],
    .card-description[style*="gradient"] {
        background-clip: text;
        color: transparent;
    }
}

.section-image-text-container {
    display: grid;
    grid-template-columns: 0.7fr 1fr;
    align-items: start;
    text-align: left;
}

.section-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-text-container {
    display: flex;
    flex-direction: column;
    font-weight: 300;

}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Special layout for study anywhere section */
.cards-special-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
}

/* Mobile top image styles */
.mobile-top-image-container {
    display: none;
    width: 100%;
    margin-bottom: 1rem;
}

.mobile-top-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.cards-special-layout .top-card {
    width: 100%;
    max-width: 85%;
    align-self: center;
    margin: 0;
}

.bottom-cards-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.bottom-cards-row .bottom-card {
    flex: 1;
    align-self: center;
    max-width: calc(40% - 3rem);
}

.feature-card {
    background: transparent;
    border-radius: 12px;
    padding: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card:hover {
    transform: scale(1.05);
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}


.card-image {
    width: 80%;
    max-height: none;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Desktop and Mobile Image Display */
.desktop-image {
    display: block;
}

.mobile-image {
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .desktop-image {
        display: none;
    }

    .mobile-image {
        display: block;
    }

    /* .card-image {
        width: 120%;
        margin-left: -6%;
        margin-right: -6%;
    } */
}

/* Gradient Layout */
.gradient-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    padding: 3rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.gradient-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gradient-description {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1 !important;
    max-width: 650px;
    margin: 0 auto;
}

.gradient-image-container {
    margin-top: 2rem;
}

.gradient-main-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Text-Image Layout */
.text-image-content {
    display: grid;
    grid-template-columns: 0.5fr 2fr;
    align-items: center;
    padding: 3rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.text-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: #0071E3;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-align: left;
}

.section-description {
    font-size: clamp(1.5rem, 2vw, 1.5rem);
    max-width: 550px;
    padding-top: 1rem;
    text-align: start;
    line-height: 1.2 !important;
    color: #696969;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-main-image {
    width: auto;
    height: auto;
    transition: transform 0.3s ease;
}

.section-main-image:hover {
    transform: scale(1.02);
}

/* Responsive styles for Section Component */
@media (max-width: 1399px) and (min-width: 1024px) {
    .text-image-content {
        gap: 3rem;
    }

    .section-title {
        font-size: clamp(1.8rem, 3vw, 2.5rem);
    }



    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 1023px) and (min-width: 902px) {
    .text-image-content {
        gap: 2.5rem;
        padding: 2rem 0;
    }

    .section-title {
        font-size: clamp(1.6rem, 3vw, 2.2rem);
        margin-bottom: 0.8rem;
    }

    .section-description {
        font-size: clamp(1.6rem, 2.5vw, 1.6rem);
        line-height: 1.2 !important;
    }

    .section-top-content {
        margin-bottom: 2rem;
    }

    .section-top-title {
        font-size: clamp(5.8rem, 6vw, 7rem);
    }


    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .cards-special-layout .top-card {
        max-width: 100%;
    }

    .bottom-cards-row {
        gap: 1.5rem;
    }

    .bottom-cards-row .bottom-card {
        min-width: 250px;
        max-width: calc(50% - 0.75rem);
    }

    .feature-card {
        padding: 1.5rem;
        min-height: 250px;
    }

    /* .card-image {
        width: 85%;
        max-height: none;
    } */

    .custom-section {
        padding: 3rem 0;
    }

    .custom-section::before {
        border-radius: 0 0 20px 20px;
    }

    /* Apply rounded bottom corners to all sections on tablet */
    section[style*="background-image"],
    section[style*="background"],
    .feature-section,
    .study-anywhere-section,
    .at-home-section,
    .exam-prep-section {
        border-radius: 0 0 20px 20px;
    }
}

@media (max-width: 901px) and (min-width: 368px) {
    .text-image-content {
        grid-template-columns: 1fr;
        /* gap: 2rem; */
        text-align: center;
        padding: 2rem 0;
    }

    .section-title {
        font-size: clamp(1.8rem, 4vw, 2.2rem);
        margin-bottom: 0.8rem;
    }

    .section-description {
        font-size: clamp(1.5rem, 3.5vw, 1.5rem);
        line-height: 1.2 !important;
    }

    .section-top-content {
        text-align: center;
        margin-bottom: 2rem;
    }

    .section-top-title {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
        margin-right: 0 !important;
        padding-right: 0 !important;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cards-special-layout {
        gap: 1.5rem;
    }

    .cards-special-layout .top-card {
        max-width: 100%;
    }

    .bottom-cards-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .bottom-cards-row .bottom-card {
        min-width: 100%;
        max-width: 100%;
    }

    .feature-card {
        padding: 1.5rem;
        min-height: 200px;
    }

    /* .card-image {
        width: 120%;
        margin-left: -10%;
        max-height: none;
    } */

    .custom-section {
        padding: 2.5rem 0;
    }

    .custom-section::before {
        border-radius: 0 0 20px 20px;
    }

    .section-main-image {
        max-width: 80%;
        margin: 0 auto;
        display: block;
    }

    .hero-main-image {
        max-width: 80%;
    }

    .gradient-main-image {
        max-width: 80%;
    }
}

@media (max-width: 480px) {
    .text-image-content {
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 1.8rem);
        margin-bottom: 0.6rem;
    }

    .section-description {
        font-size: clamp(1.3rem, 4vw, 1.3rem);
        line-height: 1.2 !important;
        padding: 0 0.8rem;

    }

    .cards-grid {
        gap: 1rem;
    }

    .cards-special-layout {
        gap: 1rem;
    }

    .bottom-cards-row {
        gap: 1rem;
    }

    .feature-card {
        padding: 1rem;
        min-height: 180px;
    }

    .card-image {
        width: 100%;
        /* margin-left: -10%; */
        max-height: none;
    }

    .custom-section {
        padding: 2rem 0;
    }

    .custom-section::before {
        border-radius: 0 0 20px 20px;
    }

    /* Apply rounded bottom corners to all sections on mobile */
    section[style*="background-image"],
    section[style*="background"],
    .second-section,
    .feature-section,
    .study-anywhere-section,
    .at-home-section,
    .exam-prep-section {
        border-radius: 0 0 20px 20px;
    }

    .section-main-image {
        max-width: 90%;
    }

    .hero-main-image {
        max-width: 90%;
    }

    .gradient-main-image {
        max-width: 90%;
    }
}

@media (max-width: 368px) {
    .text-image-content {
        gap: 1.2rem;
        padding: 1.2rem 0;
    }

    .section-title {
        font-size: clamp(1.3rem, 6vw, 1.5rem);
        margin-bottom: 0.5rem;
    }

    .section-description {
        font-size: clamp(1.5rem, 4.5vw, 1.5rem) !important;
        line-height: 1.2 !important;
        padding: 0 1rem;
    }

    .cards-grid {
        gap: 0.8rem;
    }

    .cards-special-layout {
        gap: 0.8rem;
    }

    .bottom-cards-row {
        gap: 0.8rem;
    }

    .feature-card {
        padding: 1rem;
        min-height: 160px;
    }

    .card-image {
        width: 120%;
        margin-left: -10%;
        max-height: none;
    }

    .custom-section {
        padding: 1.5rem 0;
    }

    .custom-section::before {
        border-radius: 0 0 15px 15px;
    }

    /* Apply rounded bottom corners to all sections on very small mobile */
    section[style*="background-image"],
    section[style*="background"],
    .second-section,
    .feature-section,
    .study-anywhere-section,
    .at-home-section,
    .exam-prep-section {
        border-radius: 0 0 15px 15px;
    }

    .section-main-image {
        max-width: 95%;
    }

    .hero-main-image {
        max-width: 95%;
    }

    .gradient-main-image {
        max-width: 95%;
    }
}

/* Mobile width adjustments for feature sections */
@media (max-width: 901px) and (min-width: 368px) {

    .cards-content,
    .text-image-content,
    .gradient-content {
        max-width: 95% !important;
    }
}

@media (max-width: 480px) {

    .cards-content,
    .text-image-content,
    .gradient-content {
        max-width: 98% !important;
    }
}

@media (max-width: 368px) {

    .cards-content,
    .text-image-content,
    .gradient-content {
        max-width: 100% !important;
    }
}

/* For screen sizes below 366px, make bottom cards vertical */
@media (max-width: 366px) {
    .bottom-cards-row {
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        gap: 0.8rem;
    }

    .bottom-cards-row .bottom-card {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .feature-card {
        padding: 0.8rem;
        min-height: 140px;
        width: 100%;
    }

    .card-image {
        width: 120%;
        margin-left: -10%;
        max-height: none;
    }
}

@media (max-width: 1023px) and (min-width: 768px) {
    .section-content {
        gap: 2.5rem;
    }

    .section-text h2 {
        font-size: clamp(1.6rem, 2.2vw, 2.2rem);
        margin-bottom: 1.2rem;
    }

    .section-text p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .feature-section {
        padding: 3rem 0;
    }
}

@media (max-width: 901px) and (min-width: 368px) {
    .section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .section-text h2 {
        font-size: clamp(1.8rem, 4vw, 2.2rem);
        margin-bottom: 1rem;
    }

    .section-text p {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .feature-section {
        padding: 2.5rem 0;
    }

    .section-image img {
        max-width: 80%;
        margin: 0 auto;
        display: block;
    }
}

/* Hide main images on mobile for FeatureSection component */
@media (max-width: 901px) {

    /* Hide images completely */
    .section-main-image,
    .gradient-main-image {
        display: none !important;
    }

    /* Hide image containers completely so they don't take up any space */
    .section-image-container,
    .gradient-image-container,
    .image-container {
        display: none !important;
    }

    /* Force single column layout and remove all spacing */
    .text-image-content,
    .section-image-text-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }


    /* Force text containers to be the only visible element taking full width */
    .text-container,
    .section-text-container,
    .gradient-content {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        display: block !important;
    }



    /* Increase font sizes for better readability on mobile */
    .section-title,
    .section-top-title,
    .gradient-title {
        font-size: clamp(3.2rem, 9vw, 4rem) !important;
        line-height: 1.2 !important;
        text-align: left !important;
    }

    .section-top-title {
        margin-right: 0 !important;
        padding-right: 0 !important;
    }



    /* Force section-top-title to ignore parent container padding */
    .section-top-title {
        margin-right: calc(-1 * clamp(1rem, 3vw, 2rem)) !important;
        padding-right: 0 !important;
    }


    .gradient-description {
        font-size: clamp(1.3rem, 3.5vw, 1.3rem) !important;
        margin-top: 1rem !important;
        text-align: justify !important;
        line-height: 1 !important;
    }

    .section-subtitle {
        font-size: clamp(1rem, 3vw, 1.2rem) !important;
        text-align: center !important;
    }


}

@media (max-width: 480px) {
    .section-content {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .section-text h2 {
        font-size: clamp(1.5rem, 5vw, 1.8rem);
        margin-bottom: 0.8rem;
    }

    .section-text p {
        font-size: 1rem;
        line-height: 1.4;
    }

    .feature-section {
        padding: 2rem 0;
    }

    .section-image img {
        max-width: 90%;
    }
}

@media (max-width: 368px) {
    .section-content {
        gap: 1.2rem;
        padding: 0 0.5rem;
    }

    .section-text h2 {
        font-size: clamp(1.3rem, 6vw, 1.5rem);
        margin-bottom: 0.6rem;
    }

    .section-text p {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .feature-section {
        padding: 1.5rem 0;
    }

    .section-image img {
        max-width: 95%;
    }
}




/* Footer */
.footer {
    background: url('../public/Footer background web.png') no-repeat center center;
    background-size: cover;
    padding: 3rem 1.5rem 2rem 1.5rem;
    color: #333;
    overflow: hidden;
}

.footer-content-wrapper {
    background: white;
    border-radius: 0 0 20px 20px;
    margin: 0 0.15rem 0.25rem 0.15rem;
    padding: 4rem 2.5rem 3rem 2.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 0.5fr 1fr 0.7fr 1fr;
    gap: 1rem;
    align-items: start;
    padding: 0 0.15rem 0 0.15rem;
    margin-bottom: 2rem;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.footer-logo {
    width: 24px;
    height: 24px;
    margin-left: 0;
    background-color: black;
    border-radius: 50px;
    padding: 1.5px;
    margin: 0;
}

.footer-nav-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-nav-links a {
    color: #161616;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-nav-links a:hover {
    color: #1976d2;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.legal-links a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: #1976d2;
}

.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-title {
    font-size: 1rem;
    font-weight: 400;
    color: #161616;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.input-group {
    display: flex;
    position: relative;
    align-items: center;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem 1rem;
    padding-right: 120px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 0.9rem;
    color: #161616;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-input:focus {
    border-color: #1976d2;
}

.newsletter-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.newsletter-submit:hover {
    background: #1565c0;
}

.newsletter-consent {
    font-size: 0.8rem;
    color: #969696;
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform 0.2s;
}

.footer-separator {
    border: none;
    height: 1px;
    background: #e0e0e0;
    margin: 2rem 0 1rem 0;
}

.footer-copyright {
    text-align: center;
    align-items: center;
    justify-content: center;
    justify-items: center;
    display: flex;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}

.copyright-text {
    color: #737373;
    font-size: 0.9rem;

}

.copyright-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}


@media (max-width: 1024px) and (min-width: 901px) {
    .footer-content-wrapper {
        margin: 0 0.15rem 0.25rem 0.15rem;
        padding: 4rem 2rem 3rem 2rem;
        border-radius: 0 0 20px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1.5rem;
    }

    .footer-logo-section {
        grid-column: 1;
    }

    .footer-nav-section {
        grid-column: 2;
    }

    .footer-legal {
        grid-column: 3;
    }

    .footer-newsletter {
        grid-column: 1 / -1;
        margin-top: 1rem;
        text-align: center;
    }

    .newsletter-form {
        max-width: 500px;
        margin: 0 auto;
    }

    .input-group {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .newsletter-input {
        flex: 1;
        padding: 0.8rem 1rem;
        border: 1px solid #ddd;
        border-radius: 25px;
        font-size: 0.9rem;
        outline: none;
        max-width: 100%;
        box-sizing: border-box;
    }

    .newsletter-submit {
        padding: 0.8rem 1.5rem;
        background: #0071E3;
        color: white;
        border: none;
        border-radius: 25px;
        font-size: 0.9rem;
        cursor: pointer;
        transition: background 0.3s;
    }

    .newsletter-submit:hover {
        background: #005AAC;
    }

    .social-links {
        justify-content: center;
        margin-top: 1rem;
        gap: 1rem;
    }
}

/* Medium Tablet responsive */
@media (max-width: 900px) and (min-width: 769px) {
    .footer-content-wrapper {
        margin: 0 0.15rem 0.25rem 0.15rem;
        padding: 4rem 1.5rem 3rem 1.5rem;
        border-radius: 0 0 20px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-logo-section {
        grid-column: 1;
        text-align: left;
    }

    .footer-nav-section {
        grid-column: 2;
        text-align: left;
    }

    .footer-legal {
        grid-column: 1;
        text-align: left;
    }

    .footer-newsletter {
        grid-column: 2;
        text-align: left;
    }

    .newsletter-form {
        max-width: 100%;
    }

    .input-group {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .newsletter-input {
        flex: 1;
        padding: 0.7rem 1rem;
        border: 1px solid #ddd;
        border-radius: 25px;
        font-size: 0.9rem;
        outline: none;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .newsletter-submit {
        padding: 0.7rem 1.2rem;
        background: #0071E3;
        color: white;
        border: none;
        border-radius: 25px;
        font-size: 0.9rem;
        cursor: pointer;
        white-space: nowrap;
    }

    .social-links {
        justify-content: flex-start;
        margin-top: 1rem;
        gap: 0.8rem;
    }
}

/* Tablet Portrait responsive */
@media (max-width: 900px) and (min-width: 769px) {
    .footer-content-wrapper {
        margin: 0 0.15rem 0.25rem 0.15rem;
        padding: 4rem 1.2rem 3rem 1.2rem;
        border-radius: 0 0 20px 20px;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .section-image-text-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .section-text-container {
        margin-top: 0;
    }

    .newsletter-input {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    .newsletter-submit {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .social-links {
        justify-content: center;
        margin-top: 1rem;
        gap: 1rem;
    }

    .social-icon {
        width: 24px;
        height: 24px;
    }

    .footer-logo {
        width: 24px;
        height: 24px;
    }

    .footer-copyright {
        text-align: center;
        padding: 1rem 0;
    }

    .copyright-text {
        font-size: 0.9rem;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .footer {
        background: url('../public/Footer background mobile.png') no-repeat center center;
        background-size: cover;
        padding: 3rem 0.5rem 1rem 0.5rem;
        border-radius: 0 0 20px 20px;
    }

    .footer-content-wrapper {
        margin: 0 0.15rem 0.25rem 0.15rem;
        padding: 4rem 1rem 3rem 1rem;
        border-radius: 0 0 15px 15px;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        display: flex !important;
        flex-direction: column;
    }

    .footer-logo-section {
        order: 1;
        align-items: flex-start;
        text-align: left;
    }

    .footer-nav-section {
        order: 2;
        text-align: left;
    }

    .footer-legal {
        order: 3;
        text-align: left;
    }

    .footer-newsletter {
        order: 4;
        text-align: left;
    }


    .newsletter-input {
        flex: 1;
        padding: 0.8rem 1rem;
        padding-right: 120px;
        border: 1px solid #ddd;
        border-radius: 25px;
        font-size: 0.9rem;
        color: #161616;
        outline: none;
        transition: border-color 0.2s;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .social-links {
        justify-content: flex-start;
        margin-top: 1rem;
    }

    .legal-links {
        justify-content: flex-start;
        flex-direction: column;
        gap: 0.5rem;
        text-align: left;
    }

    .footer-copyright {
        text-align: center;
        color: #737373;
    }


}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 1.2rem;
        font-size: 0.8rem;
        margin-top: -1.2rem;
    }

    .bildup-title {
        font-size: 3.5rem;
    }

    .section-text h2 {
        font-size: 1.8rem;
    }
}


/* CSS Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(80px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromCorner {
    from {
        opacity: 0;
        transform: translate(-50vw, 50vh) scale(0.5);
    }

    to {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes slideInFromTopRight {
    from {
        opacity: 0;
        transform: translate(50vw, -50vh) scale(0.5);
    }

    to {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes slideInFromTopLeft {
    from {
        opacity: 0;
        transform: translate(-50vw, -50vh) scale(0.5);
    }

    to {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes slideInFromBottomRight {
    from {
        opacity: 0;
        transform: translate(50vw, 50vh) scale(0.5);
    }

    to {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes slideInFromBottomLeft {
    from {
        opacity: 0;
        transform: translate(-50vw, 50vh) scale(0.5);
    }

    to {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes buttonHover {
    to {
        transform: scale(1.1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(100px);
    }

    50% {
        opacity: 1;
        transform: scale(1.05) translateY(0);
    }

    70% {
        transform: scale(0.9) translateY(0);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideInWithBounce {
    0% {
        opacity: 0;
        transform: translateX(-100px) scale(0.8);
    }

    60% {
        opacity: 1;
        transform: translateX(10px) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-img-animate {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

.hero-img-bottom-left {
    animation: slideInFromBottomLeft 1s ease-in-out forwards;
}

.hero-img-top-right {
    animation: slideInFromTopRight 1s ease-in-out forwards;
}

.hero-img-top-left {
    animation: slideInFromTopLeft 1s ease-in-out forwards;
}

.hero-img-bottom-right {
    animation: slideInFromBottomRight 1s ease-in-out forwards;
}

/* Mobile hero image animations */
.hero-img-mobile-1.hero-img-animate {
    animation: slideInFromBottomLeft 1s ease-in-out forwards;
}

.hero-img-mobile-2.hero-img-animate {
    animation: slideInFromTopRight 1s ease-in-out forwards;
}

.hero-img-mobile-3.hero-img-animate {
    animation: slideInFromTopLeft 1s ease-in-out forwards;
}

.hero-img-mobile-4.hero-img-animate {
    animation: slideInFromBottomRight 1s ease-in-out forwards;
}

.hero-title-animate {
    opacity: 0;
    animation: bounceIn 1.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.hero-subtitle-animate {
    opacity: 0;
    animation: slideInWithBounce 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.cta-button-animate {
    opacity: 0;
    animation: bounceIn 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.image-scale-in {
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-scale-in.visible {
    opacity: 1;
    transform: scale(1);
}



.nav-link-animate {
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}



.footer-link-animate {
    opacity: 0;
    animation: fadeInUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

.cta-button:active {
    transform: translateY(0);
}


.section-image img:hover,
.bildup-image img:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

.final-cta-container {
    background: linear-gradient(180deg, #00486F 0%, #002C44 60%, #00080C 100%);
    border-radius: 20px;
    padding: 4.5rem 2.5rem 3.5rem 2.5rem;
    max-width: 650px;
    width: 100%;
    min-height: 520px;
    text-align: center;
    color: #fff;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.final-cta-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
}

.final-cta-desc {
    font-size: 1.5rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
}

.final-cta-desc p {
    margin-bottom: 1.5rem;
}

.final-cta-desc p:last-child {
    margin-bottom: 0;
}

.final-cta-sub {
    font-size: 1.2rem;
}

.final-cta-title,
.final-cta-desc,
.final-cta-sub {
    text-align: center;
    width: 100%;
}

.final-cta-btn {
    background: #fff;
    color: #002C44;
    border: none;
    border-radius: 2rem;
    padding: 0.5rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 2rem;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.final-cta-btn-link {
    color: #002C44;
}


.footer .container {
    padding: 0;
}



/* Mobile button - hidden by default on larger screens */
.header-cta-button-mobile {
    display: none;
}

/* Mobile menu styles */
@media (max-width: 768px) {

    /* Ensure mobile header elements are properly aligned */
    .nav-container {
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }

    .header-cta-button {
        display: none;
    }

    .header-cta-button-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        background: #0071E3;
        color: white;
        border: none;
        border-radius: 50px;
        cursor: pointer;
        height: auto !important;
        align-self: center !important;
        flex-shrink: 0;
    }

    .mobile-hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 1rem;
    }

    .mobile-menu-close {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: left;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        display: flex;
        height: 100vh;
        z-index: 1000;
        justify-content: start;
        align-items: start;
        text-align: left;
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-header {
        display: flex;
        justify-content: flex-end;
        align-items: flex-start;
        padding: 1rem 2rem;
        background-color: #ffffff;
        width: 100%;
    }

    .mobile-menu-close {
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
        color: #161616;
        border-radius: 50%;
        transition: background-color 0.3s ease;
        line-height: 1;
        margin-left: auto;
        align-self: flex-end;
    }

    .mobile-menu-close:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }

    .nav-menu li {
        margin: 0;
        padding: 0;
        text-align: left;
        opacity: 0;
        transform: translateX(-20px);
        animation: slideInLeft 0.4s ease forwards;
    }

    .nav-menu li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-menu li:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav-menu li:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-menu li:nth-child(4) {
        animation-delay: 0.4s;
    }

    @keyframes slideInLeft {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .nav-menu a {
        display: block;
        padding: 0.75rem 2rem;
        font-size: 1.1rem;
        font-weight: 400;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-align: left;
        border-radius: 12px;
        margin: 0.1rem 1rem;
        position: relative;
        overflow: hidden;
    }

    .nav-menu a:hover {
        background-color: rgba(0, 113, 227, 0.1);
        color: #0071E3;
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
    }

    .nav-menu a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(0, 113, 227, 0.1), transparent);
        transition: left 0.5s ease;
        border-radius: 12px;
    }

    .nav-menu a:hover::before {
        left: 100%;
    }

    .mobile-menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-menu-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Final CTA Section Base Styles */
.final-cta-section {
    padding: 4rem 1rem 3rem 1rem;
}

/* Final CTA Section Responsive */
@media (max-width: 1024px) {
    .final-cta-container {
        max-width: 90%;
        padding: 3rem 2rem 2rem 2rem;
        min-height: 480px;
    }

    .final-cta-title {
        font-size: 2.2rem;
    }

    .final-cta-desc {
        font-size: 1.3rem;
    }

    .final-cta-sub {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .final-cta-container {
        display: flex;
        justify-content: start;
        align-items: flex-start;
        padding: 4rem 0;

    }


    .final-cta-section {
        padding: 4rem 1rem 3rem 1rem;

    }

    .final-cta-container {
        max-width: 90%;
        padding: 4.5rem 1.5rem 2.5rem 1.5rem;
        min-height: 450px;
    }

    .final-cta-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        text-align: left;
    }

    .final-cta-desc {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        text-align: left;
    }

    .final-cta-sub {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        text-align: left;
    }

    .final-cta-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        margin-top: 1.5rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .final-cta-section {
        padding: 4rem 0.5rem 2rem 0.5rem;
    }

    .final-cta-container {
        max-width: 98%;
        padding: 4rem 1rem 3.5rem 1.5rem;
        min-height: 400px;
    }

    .final-cta-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        text-align: left;
    }

    .final-cta-desc {
        font-size: 1rem;
        margin-bottom: 1rem;
        line-height: 1.4;
        text-align: left;
    }

    .final-cta-sub {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        text-align: left;
    }

    .final-cta-btn {
        padding: 0.7rem 1.8rem;
        font-size: 0.9rem;
        margin-top: 1rem;
        width: 100%;
    }

    .final-cta-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 1.5rem;
    }

    /* Mobile top image styles */
    .mobile-top-image-container {
        display: block !important;
        /* Show on mobile */
        width: 100%;
        margin-bottom: 1rem;
    }

    .top-card {
        display: none !important;
        /* Hide top card on mobile */
    }

    .mobile-top-image {
        width: 100%;
        height: auto;
        border-radius: 8px;
        object-fit: cover;
    }
}

/* Learner Page Specific Styles */
.learner-herosection {
    background-color: #ffffff;
}

.learner-hero {
    padding: clamp(2rem, 12vh, 6rem) 0 clamp(2rem, 8vh, 5rem) 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    justify-content: center;
}

.learner-hero-content {
    max-width: 900px;
    /* margin: 0 auto 0rem auto; */
    padding: 0 2rem;
}

.learner-hero-title {
    font-size: clamp(1.5rem, 6vw, 4.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-align: center;
    color: #161616;
}

.learner-hero-learning,
.learner-hero-bildup {
    color: #005AAC;
    display: inline;
}

.learner-hero-description {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: #161616;
    line-height: 1;
    margin-bottom: 1.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.learner-cta-button {
    background: #0071E3;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.25);
    margin-bottom: 1.5rem;
    display: inline-block;
    text-decoration: none;
}

.learner-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
    background: #357ABD;
}

.learner-hero-subheadline {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: #0071E3;
    font-weight: 400;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.learner-hero-devices {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 3rem;
    transition: transform 0.3s ease;
}


/* Learner Intro Section */
.learner-intro-section {
    padding: clamp(4rem, 8vh, 6rem) 0;
    background: #FFFFFF;
    font-size: clamp(2.1rem, 2.5vw, 4.3rem);
}


/* Section-specific styling */
.powering-schools-section {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    padding: clamp(3rem, 9vh, 8rem) 0;
}

.powering-schools-section .gradient-title {
    color: #FFFFFF;
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 2rem;
}

.powering-schools-section .gradient-description {
    color: #E8F4FD;
    text-align: center;
    font-size: clamp(1rem, 1vw, 1.3rem);
    max-width: 600px;
    margin: 0 auto 3rem auto;
    line-height: 1 !important;
}

.powering-schools-section .gradient-main-image {
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.late-night-section {
    background: linear-gradient(135deg, #2D1B69 0%, #1E0D4F 100%);
    color: white;
    padding: clamp(5rem, 10vh, 8rem) 0;
}

.late-night-section .section-top-title {
    color: #FFFFFF;
}

.late-night-section .section-description {
    color: #C8B9E8;
    line-height: 1.2 !important;
}

/* Mobile Responsiveness for Learner Hero */
@media (max-width: 768px) {
    .learner-hero {
        padding: clamp(2rem, 10vh, 3rem) 0 clamp(3rem, 6vh, 3rem) 0;
        min-height: 100vh;
    }

    .learner-hero-content {
        margin-top: 3.5rem;
        margin-bottom: 1.5rem;
        padding: 0 1.2rem;
    }

    .learner-hero-title-mobile {
        font-size: clamp(1rem, 7vw, 2rem);
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }

    .learner-hero-description-mobile {
        font-size: clamp(1rem, 4vw, 2.1rem);
        margin-bottom: 1.5rem;
    }

    .learner-cta-button-mobile {
        padding: 0.8rem 1.2rem;
        font-size: clamp(0.9rem, 4vw, 1rem);
        margin-bottom: 0.5rem;
    }

    .learner-hero-subheadline-mobile {
        font-size: clamp(0.75rem, 4vw, 1rem);
        margin-top: 1rem;
    }

    .learner-hero-devices-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 1.5rem;
    }

    .learner-hero-devices-mobile img {
        max-width: 90%;
        height: auto;
        border-radius: 10px;
    }


}

@media (max-width: 768px) {
    .section-image img {

        display: block;
    }
}

/* Mobile adjustments for gradient sections */
.powering-schools-section .gradient-main-image {
    max-width: 280px;
    margin-top: 1.5rem;
}

.powering-schools-section {
    padding: clamp(3rem, 8vh, 5rem) 0;
}

.late-night-section {
    padding: clamp(3rem, 8vh, 5rem) 0;
}

/* Mobile responsiveness for learner sections */
/* @media (max-width: 901px) {

    .powering-schools-section .gradient-main-image,
    .on-the-go-section .section-main-image,
    .before-class-section .section-main-image,
    .performance-section .section-main-image,
    .after-work-section .section-main-image,
    .late-night-section .section-main-image {
        display: none !important;
    }

    .powering-schools-section .section-image-container,
    .on-the-go-section .section-image-container,
    .before-class-section .section-image-container,
    .performance-section .section-image-container,
    .after-work-section .section-image-container,
    .late-night-section .section-image-container {
        display: none !important;
    }

    .powering-schools-section .section-image-text-container,
    .on-the-go-section .section-image-text-container,
    .before-class-section .section-image-text-container,
    .performance-section .section-image-text-container,
    .after-work-section .section-image-text-container,
    .late-night-section .section-image-text-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .powering-schools-section .section-text-container,
    .on-the-go-section .section-text-container,
    .before-class-section .section-text-container,
    .performance-section .section-text-container,
    .after-work-section .section-text-container,
    .late-night-section .section-text-container {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        display: block !important;
    }
} */