*, *::before, *::after {
    box-sizing: border-box;
}

@font-face {
    font-family: "Manrope";
    src: url("./fonts/Manrope-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Manrope";
    src: url("./fonts/Manrope-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: "Cera Pro";
    src: url("./fonts/CeraPro-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Cera Pro";
    src: url("./fonts/CeraPro-ExtraBold.otf") format("opentype");
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: "Apple SD Gothic Neo";
    src: url("./fonts/AppleSDGothicNeo-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Apple SD Gothic Neo";
    src: url("./fonts/AppleSDGothicNeo-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Apple SD Gothic Neo";
    src: url("./fonts/AppleSDGothicNeo-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Apple SD Gothic Neo";
    src: url("./fonts/AppleSDGothicNeo-ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --accent-color: #00A870;
    --button-background-color: #00A870;
    --container-color: white;
    --container-radius: 40px;
    --container-width: clamp(80%, 75vw + 10%, 90%);
    --header-color: #DBDBDB;
    --outside-color: #EBEBEB;
    --main-padding: 24px 0 54px 0;
    --main-margin: clamp(30px, 7vw + 8px, 100px) auto;
}

@media (max-width: 768px) {
    :root {
        --container-color: #EBEBEB;
        --container-radius: 0;
        --container-width: 100%;
        --outside-color: white;
        --main-padding: 0;
        --main-margin: 200px 0 0 0;
    }
}

html, body {
    padding: 0;
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-weight: 400;
    font-optical-sizing: auto;
    font-style: normal;
}

.background-container {
    display: flex;
    width: 100%;
    background-color: var(--outside-color);
    justify-content: center;
    align-items: center;
}

.main-container {
    background-color: var(--container-color);
    background-color: white;
    margin: var(--main-margin);
    width: var(--container-width);
    border-radius: var(--container-radius);
    display: grid;
    grid-template-columns: clamp(12px, 1.5vw + 6px, 24px) 1fr 1fr clamp(12px, 1.5vw + 6px, 24px);
    row-gap: 30px;
    padding: var(--main-padding);
    position: relative;
    max-width: 1640px;
}

.desktop-view-only {
    display: grid;
}

.mobile-view-only {
    display: none;
}

.content {
    grid-column: 2 / 4;
    width: 100%;
    max-width: 1640px;
    justify-self: center;
    padding: 0;
}

.extra-padding {
    padding: 0 60px;
}

.row-break {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: clamp(12px, 1.5vw + 6px, 24px) 1fr 1fr clamp(12px, 1.5vw + 6px, 24px);
}

.breakout-left {
    grid-column: 1 / 3;
    grid-row: auto;
    justify-self: start;
    width: 150%;
    padding-left: 0;
    max-width: none;
    margin-top: 30px;
    margin-bottom: 30px;
}

.breakout-right {
    grid-column: 3 / 5;
    justify-self: end;
    grid-row: span 1;
    width: 150%;
    padding-right: 0;
    max-width: none;
    margin-top: 30px;
    margin-bottom: 30px;
}

.small-width {
    width: 40%;
}

.group-wrapper {
    position: relative;
    width: 100%;
}

.hero-image {
    width: 100%;
    display: block;
}

.btn {
    background-color: var(--button-background-color);
    color: white;
    border: none;
    border-radius: 26px;
    text-decoration: none;
    cursor: pointer;
}

#learn-more-btn {
    position: absolute;
    padding: clamp(5px, 0.6vw + 3px, 10px) clamp(12px, 1.5vw + 6px, 24px);
    font-size: clamp(12px, 0.5vw + 10px, 16px);
    top: 75%;
    left: 3%;
}

#partner-registration-btn {
    position: absolute;
    padding: clamp(5px, 0.68vw + 0.3px, 10px) clamp(8px, 0.95vw + 1.4px, 15px);
    font-size: clamp(10px, 0.54vw + 6.2px, 14px);
    top: 28%;
    left: clamp(64%, 69.23%, 67%);
}

.criteria-section-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    margin-top: 100px;
}

#evaluation-criteria-btn {
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 600;
    margin: 50px auto 80px auto;
}

.video-facade-wrapper {
    position: relative;
    display: block;
    width: 60%;
    justify-self: center;
    aspect-ratio: 16 / 9;
    border-radius: 30px;
    overflow: hidden;
    background-color: #000;
    margin: 30px auto clamp(30px, 10.65vw - 44.65px, 130px) auto;
}

.video-facade-trigger {
    width: 100%;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    position: relative;
}

.facade-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.facade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease;
}

.video-facade-wrapper:hover .facade-overlay {
    background-color: rgba(0, 0, 0, 0.3);
}

.youtube-play-btn {
    width: 68px;
    height: 48px;
    background-color: rgba(33, 33, 33, 0.8);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease;
}

.video-facade-wrapper:hover .youtube-play-btn {
    background-color: #FF0000;
}

.play-arrow {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 18px solid #FFF;
    margin-left: 4px;
}

.cards {
    display: flex;
    justify-content: center;
    padding: 0 50px;
    gap: 50px;
}

.card-container {
    /* width: 33%; */
    aspect-ratio: 9 / 16;
    perspective: 1000px;
    justify-self: center;
    margin: 30px auto;
}

.hover-card {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

@media (hover: hover) {
    .card-container:hover .hover-card {
        transform: rotateY(180deg);
    }
}

.card-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 8px 12px 20px rgba(0,0,0,0.15);
    transition: box-shadow 0.6s cubic-bezier(0.4,0,0.2,1);
}

.card-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-front {
    z-index: 2;
}

.card-back {
    transform: rotateY(180deg); 
}

.cards-learn {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 30px
}

.cards-learn a {
    display: block;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.cards-learn a img {
    width: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .desktop-view-only {
        display: none;
    }

    .background-container {
        flex-direction: column;
        justify-content: start;
        width: 100%;
    }

    .mobile-view-only {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .mobile-logo {
        display: block;
        width: 40%;
        margin: 30px auto;
        padding: 0;
        row-gap: 0;
    }

    .main-container.mobile-view-only {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0 auto;
        padding: 10px;
        row-gap: 0;
    }

    .mobile-section {
        margin: 80px 0;
    }

    .build-expertise {
        font-family: 'Apple SD Gothic Neo', sans-serif;
        font-weight: 400;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 30px auto;
    }
    
    .highlight-block {
        color: white;
        font-size: 22px;
        font-weight: 600;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 30px auto;
    }

    .highlight-text {
        background-color: var(--accent-color);
        text-align: center;
        padding: 10px 30px;
    }

    .build-expertise-content {
        color: black;
        font-size: 20px;
        font-weight: 400;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .content-text {
        text-align: center;
        margin-top: 10px;
    }

    .mobile-cta {
        display: inline-flex;
        background-color: var(--accent-color);
        color: white;
        text-decoration: none;
        font-weight: 400;
        padding: 20px 20px;
        font-size: 18px;
        border-radius: 100px;
        margin: 50px 0;
        align-items: center;
        white-space: nowrap;
        width: auto;
        align-self: center;
    }

    .how-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        width: 100%;
    }

    .how-link {
        position: absolute;
        padding: 6px 12px;
        font-size: 16px;
        font-weight: 400;
        top: 69%;
        left: 33%;
    }

    .how-img {
        width: 100%;
    }

    .breakout-left-mobile {
        padding: 0;
        width: 90%;
    }

    .video-facade-wrapper {
        width: 100%;
    }

    .carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    }

    .carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory; 
    padding: 0 10%; 
    gap: 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    }
    .carousel-track::-webkit-scrollbar {
    display: none;
    }

    .no-transition {
    scroll-behavior: auto !important;
    }

    .carousel-slide {
    flex: 0 0 80%;
    scroll-snap-align: center;
    opacity: 0.4;
    transform: scale(0.9);
    transition: transform 0.4s ease, opacity 0.4s ease;
    }

    .carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    }

    .carousel-slide.is-active {
    opacity: 1;
    transform: scale(1);
    }

    .no-transition {
        scroll-behavior: auto !important;
    }

    .carousel-track {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory; 
        padding: 0 10%; 
        gap: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .link-cards {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin: 0 auto;
        justify-content: center;
        align-items: center;
    }

    .link-cards img,
    .link-cards a {
        display: block;
        width: 100%;
    }

    .link-cards img.others-title {
        width: 75%;
        margin: 60px 0 20px 0;
    }

}