html {
    scroll-behavior: smooth;
}

body {
    background: var(--teflie-background-warm) !important;
}

.section-title {
    font-size: 40px;
    font-weight: 550;
    line-height: 120%;
    letter-spacing: 0.5px;
}

/* Banner Section Style */

.hero-banner-container {
    background-image: var(--desktop-bg);
    height: 536px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-banner-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
    position: absolute;
    inset: 0;
}

.hero-banner-content {
    position: relative;
    display: flex;
    padding: 100px 0;
    align-items: end;
    gap: var(--teflie-space-md);
}

.hero-banner-content .hero-banner-text {
    flex: 0 0 60%;
}

.hero-banner-content .hero-banner-accreditation {
    flex: 0 0 40%;
}

.hero-banner-slider .ast-container {
    height: 100%;
}

.hero-banner-title {
    color: var(--teflie-white);
    font-weight: var(--teflie-font-weight-semibold);
    font-size: 56px;
    line-height: 130%;
    letter-spacing: 0.5px;
    margin-bottom: var(--teflie-space-sm);
}

.hero-banner-summary {
    font-size: 18px;
    color: var(--teflie-white);
    font-weight: var(--teflie-font-weight-regular);
    margin-bottom: var(--teflie-space-lg);
    line-height: 1.5;
    letter-spacing: 0;
}

.hero-banner-buttons {
    display: flex;
    align-items: center;
    gap: var(--teflie-space-sm);
}

.hero-banner-buttons>* {
    min-width: 240px;
}

.hero-banner-ratings {
    margin-top: var(--teflie-space-md);
}

.hero-banner-ratings img {
    width: 200px;
}

.rating-image {
    margin-right: var(--teflie-space-sm);
}

.accreditation-text {
    line-height: 1.5;
    font-size: 16px;
    color: var(--teflie-white);
    margin-bottom: var(--teflie-space-md);
    font-weight: var(--teflie-font-weight-regular);
}

.hero-banner-button .mobile-text {
    display: none;
}

.accreditation-logos {
    display: inline-flex;
    align-items: center;
    gap: var(--teflie-space-md);
}

/* .accreditation-logo img {
    max-height: 36px;
    object-fit: contain;
} */

/* Features Section Style */

.features-section {
    padding: var(--teflie-space-xl) 0;
}

.features-section .ast-container {
    display: block;
}

.features-container .section-title {
    text-align: center;
}

.features-container .section-subtitle {
    font-size: 18px;
    font-weight: 400;
    line-height: 150%;
    color: var(--teflie-navy-blue);
    margin: 35px auto;
    text-align: center;
    width: 480px;
}

.features-container .features {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.features-container .feature-box {
    background: var(--teflie-white);
    border-radius: 24px;
    padding: 10px 15px 25px;
    text-align: center;
    width: 246px;
    height: 166px;
    box-shadow: 0px 4px 6px 0px #0000000A;
}

.feature-box .icon {
    width: 80px;
    margin: 0 auto 10px;
}

.feature-box .icon img {
    width: 80px;
    height: 80px;
}

.feature-box p {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    line-height: 120%;
}

/* Build Section */

.build-section {
    padding: 60px 20px;
    background: var(--teflie-background-vanilla);
}

.build-section .text-content {
    flex: 1;
}

.build-section .image-grid {
    flex: 1;
}

.build-section .ast-container {
    gap: 50px !important;
}

.build-section .section-title {
    color: #3F3F3F;
}

.build-section .section-subtitle {
    font-size: 18px;
    font-weight: 400;
    line-height: 150%;
    color: var(--teflie-navy-blue);
    margin: 30px 0;
    max-width: 500px;
}

.build-section ul.features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.build-section li {
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 12px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, rgba(177, 227, 228, 0.6) 0%, rgba(177, 227, 228, 0) 100%);
    font-size: 18px;
    color: var(--teflie-navy-blue);
}

.build-section .image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    position: relative;
}

.build-section .image-box {
    position: relative;
}

.build-section .image-box img {
    width: 100%;
    max-height: 250px;
    border-radius: 16px;
    object-fit: cover;
}

.build-section .stroke-decoration {
    position: absolute;
    bottom: -35px;
    left: -45px;
    width: 100px !important;
    height: 60px;
    z-index: 2;
    transform: rotate(180deg);
}

/* Courses CTA Section */

.courses-cta-section {
    padding: 70px 0 50px;
}

.courses-cta-section>.ast-container {
    display: block;
}

.courses-cta-section .section-title {
    text-align: center;
}

.courses-cta-section .section-description {
    text-align: center;
    margin: 15px auto 30px;
    width: 450px;
    font-size: 18px;
}

.courses-cta-section__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--teflie-space-sm);
}

.course-card {
    border-radius: 1.5rem;
    overflow: hidden;
}

.course-card__main {
    min-height: 530px;
    display: flex;
    align-items: end;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: top center !important;
    position: relative;
}

.course-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--teflie-white);
    padding: var(--teflie-space-xs);
    border-radius: var(--teflie-radius-md);
    color: var(--teflie-text-primary);
    font-weight: var(--teflie-font-weight-semibold);
    font-size: 14px;
}

.course-card__content {
    position: relative;
    padding: var(--teflie-space-md);
    background: url('/wp-content/uploads/2025/10/Blur.png');
    background-size: cover !important;
}

.course-card__content-top {
    display: inline-flex;
    align-items: start;
    justify-content: space-between;
    padding-bottom: var(--teflie-space-sm);
    border-bottom: 1px solid #ffffff10;
    gap: var(--teflie-space-xs);
}

.course-title {
    margin: 0;
    color: var(--teflie-white);
    font-weight: var(--teflie-font-weight-bold);
    line-height: 130%;
    letter-spacing: -0.5px;
}

.course-price del {
    display: none;
}

.course-price .wcpbc-price {
    color: var(--teflie-white);
    font-size: 18px;
    font-weight: var(--teflie-font-weight-bold);
    line-height: 140%;
    letter-spacing: -0.5px;
}

.course-card__content-middle.course-summary {
    padding-top: var(--teflie-space-sm);
    color: var(--teflie-white);
    font-size: 16px;
    font-weight: var(--teflie-font-weight-medium);
    padding-bottom: var(--teflie-space-sm);
}

.course-card__content-bottom {
    display: flex;
    gap: var(--teflie-space-xs);
}

.course-card__content-bottom>* {
    flex: auto;
}

.course-card__content-bottom>a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.course-card__content-bottom .btn-glass {
    flex-direction: row-reverse;
}

.compare-courses.teflie-btn.btn-secondary {
    margin: var(--teflie-space-lg) auto;
    display: block;
    width: max-content;
}

/* Perfect Section */

.perfect-section {
    text-align: center;
    padding: 40px 20px;
    background: var(--teflie-background-light-blue);
}

.perfect-section .ast-container {
    display: block;
}

.perfect-section .cards {
    display: flex;
    margin-top: 40px;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    flex-wrap: wrap;
}

.card .image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 35px;
}

.card .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card h3 {
    color: #333333;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.card p {
    color: #333333CC;
    font-size: 18px;
    font-weight: 400;
}

/* Get Started Section */

.get-started-section {
    background-color: var(--teflie-background-vanilla);
    padding: 70px 20px;
    position: relative;
    overflow: hidden;
}

.get-started-section .ast-container {
    display: block;
    position: relative;
}

.get-started-section .content-container {
    position: relative;
}

.get-started-section .flight-icon {
    position: absolute;
    left: -14%;
    top: 0;
    opacity: 0.7;
}

.get-started-section .section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 450;
    margin-bottom: 60px;
    color: #3F3F3F;
}

.get-started-section .content {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.get-started-section .left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.get-started-section .left .item {
    background: var(--teflie-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 45px 6px 25px;
    border-radius: 24px;
    box-shadow: 0px 2px 10px 0px #00000014;
}

.get-started-section .left .item .icon img {
    width: 64px;
    height: 64px;
}

.get-started-section .left .item span {
    flex: 1;
    margin-left: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #3F3F3F;
}

.get-started-section .right {
    flex: 0 0 35%;
    position: relative;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 24px;
    height: 460px;
    overflow: hidden;
    padding: 40px;
}

.right .overlay {
    background: #00000099;
    position: absolute;
    inset: 0;
    backdrop-filter: blur(3px)
}

.get-started-section .right .text {
    position: relative;
    z-index: 2;
    max-width: 280px;
}

.get-started-section .right .text h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--teflie-white);
}

.get-started-section .right .text p {
    font-size: 18px;
    line-height: 160%;
    margin-bottom: 25px;
    color: var(--teflie-grey);
    font-weight: 400;
}

.get-started-section .right .btn {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
}

.get-started-section .right .btn .teflie-btn {
    width: 100%;
}



@media screen and (max-width:768px) {
    .section-title {
        font-size: 24px !important;
    }

    .hero-banner-slider .ast-container {
        height: 100%;
        padding-left: var(--teflie-space-sm) !important;
        padding-right: var(--teflie-space-sm) !important;
    }

    /* Banner Section Style */

    .hero-banner-container {
        height: 100vh;
        min-height: 600px;
        background-image: var(--mobile-bg) !important;
    }

    .hero-banner-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    }

    .hero-banner-content {
        flex-direction: column;
        padding: 40px 0 60px;
        justify-content: flex-end;
        height: 100%;
        gap: var(--teflie-space-lg);
        overflow: hidden;
    }

    .hero-banner-content .hero-banner-text {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        width: 100%;
    }

    .hero-banner-button .desktop-text {
        display: none;
    }

    .hero-banner-button .mobile-text {
        display: inline;
    }

    .hero-banner-content .hero-banner-accreditation {
        flex: 0 0 auto;
        width: 100%;
    }

    .hero-banner-title {
        font-size: 32px;
        line-height: 120%;
        margin-bottom: var(--teflie-space-md);
    }

    .hero-banner-summary {
        font-size: 16px;
        line-height: 130%;
    }

    .hero-banner-buttons {
        gap: 8px;
    }

    .hero-banner-buttons>* {
        min-width: 168px;
        padding: 12px;
    }

    .hero-banner-ratings {
        margin-top: var(--teflie-space-sm);
        display: flex;
        flex-wrap: wrap;
        gap: var(--teflie-space-xs);
    }

    .rating-image {
        margin-right: 0;
    }

    .rating-image img {
        max-height: 24px;
    }

    .accreditation-text {
        font-size: 14px;
        margin-bottom: var(--teflie-space-sm);
    }

    .accreditation-logos {
        flex-wrap: wrap;
        gap: var(--teflie-space-sm);
    }

    /* .accreditation-logo img {
        max-height: 28px;
    } */

    /* Features Section Style */

    .features {
        flex-wrap: wrap;
        gap: 12px !important;
    }

    .feature-box {
        width: calc(50% - 10px) !important;
        height: 110px !important;
        display: flex;
        align-items: baseline;
        justify-content: center;
        padding: 8px 16px 16px !important;
        border-radius: 12px !important;
        flex-direction: column;
        background: linear-gradient(270deg, #F6F1D1 -93.17%, #B1E2E3 100%) !important;
    }

    .feature-box:nth-child(even) {
        background: linear-gradient(270deg, #F6F1D1 0%, #B1E2E3 224.37%) !important;
    }

    .features-container .feature-box:last-child {
        width: 100% !important;
        background: linear-gradient(273.97deg, #F6F1D1 1.09%, #B1E2E3 99%) !important;
    }

    .feature-box .icon {
        width: 64px;
        margin: 0;
    }

    .feature-box .icon img {
        width: 64px;
        height: 64px;
    }

    .feature-box p {
        font-size: 14px;
        font-weight: 500;
        line-height: 120%;
    }

    /* Build Section */

    section.build-section {
        padding: 40px 10px;
    }

    .build-section .section-subtitle {
        font-size: 16px;
    }

    .build-section li {
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%);
        font-size: 14px;
        gap: 16px;
    }

    .build-section .image-box img {
        height: 100%;
    }

    .build-section .image-grid {
        gap: 10px;
    }

    .build-section .teflie-btn.btn-primary,
    .build-section .stroke-decoration {
        display: none;
    }

    /* Courses CTA Section */

    .courses-cta-section {
        position: relative;
        padding: 40px 0;
    }

    .course-card__content-top,
    .course-card__content-bottom {
        flex-direction: column;
    }

    .course-card__content-bottom>a {
        justify-content: center;
    }

    /* Perfect Section */

    .perfect-section {
        padding: 50px 10px;
    }

    .perfect-section .cards {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .card {
        display: flex;
        align-items: center;
        gap: 20px;
        max-width: 100%;
        justify-content: center;
        text-align: left;
    }

    .card .image {
        width: 80px;
        height: 80px;
        margin: 0;
        flex-shrink: 0;
    }

    .card h3 {
        font-size: 16px;
        margin-bottom: 0;
    }

    .card p {
        font-size: 14px;
        line-height: 150%;
        margin-bottom: 0;
    }

    /* Get Started Section */

    .get-started-section {
        padding: 40px 10px;
    }

    .get-started-section .flight-icon {
        display: none;
    }

    .get-started-section .content {
        flex-direction: column;
        gap: 20px;
    }

    .get-started-section .left {
        gap: 10px;
    }

    .get-started-section .left .item .icon img {
        width: 48px;
        height: 48px;
    }

    .get-started-section .left .item span {
        font-size: 16px;
    }

    .get-started-section .left .item {
        padding: 6px 20px;
    }

    .get-started-section .right {
        padding: 25px 20px;
        min-height: 300px !important;
    }

    .get-started-section .right .text p {
        font-size: 16px;
    }

    .get-started-section .right .btn {
        width: 90%;
    }
}


/* Course Slider on mobile */

@media screen and (max-width:768px) {
    .custom-slider {
        position: relative;
    }

    .slider-container {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 10px;
    }

    .slider-container::-webkit-scrollbar {
        display: none;
    }

    .slider-item {
        flex: 0 0 90%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        flex-shrink: 0;
    }

    .slider-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .slider-nav-btn {
        background: #fff;
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 0;
    }

    .slider-nav-btn img {
        width: 40px;
        height: 40px;
        transition: transform 0.3s ease;
    }

    .slider-prev img {
        transform: rotate(180deg);
    }

    .slider-nav-btn:hover:not(.disabled),
    .slider-nav-btn:focus:not(.disabled) {
        background: #000;
        transform: scale(1.05);
    }

    .slider-nav-btn:hover:not(.disabled) img,
    .slider-nav-btn:focus:not(.disabled) img {
        filter: brightness(0) invert(1);
    }

    .slider-nav-btn.disabled,
    .slider-nav-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
        border-color: #ccc;
    }

    .slider-nav-btn.disabled:hover,
    .slider-nav-btn:disabled:hover {
        background: #fff;
        transform: none;
    }

    .slider-nav-btn:active:not(.disabled) {
        transform: scale(0.95);
    }

    .teaching-card {
        min-height: 200px;
    }
}