/*==================================================
    MOBILE APP (991px and Below)
==================================================*/

@media (max-width:991px) {

    /*==============================
        HEADER
    ==============================*/

    header {
        display: none;
    }

    #primaryNav,
    .mobile-menu-toggle,
    .nav-btn {
        display: none !important;
    }

    /*==============================
        HERO
    ==============================*/

    .hero {
        padding: 40px 0 130px;
        min-height: auto;
        overflow: hidden;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 35px;
    }

    .hero-left {
        width: 100%;
        order: 1;
    }

    .hero-right {
        display: flex;
        justify-content: center;
        width: 100%;
    }

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

    .hero-mobile-logo {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 24px;
    }

    .hero-mobile-image {
        display: flex;
    }

    .hero-mobile-logo img {
        width: 110px;
        height: auto;
    }

    /*==============================
        HERO TAG
    ==============================*/

    .hero-tag {
        margin: 0 auto 22px;
        padding: 10px 22px;
        font-size: 14px;
    }

    /*==============================
        HERO TEXT
    ==============================*/

    .hero-left h1 {
        font-size: 44px;
        line-height: 1.15;
        margin-bottom: 18px;
    }

    .hero-left p {
        width: 95%;
        margin: 0 auto 5px;
        font-size: 16px;
        line-height: 1.8;
    }

    /*==============================
        HERO IMAGE
    ==============================*/

    .hero-mobile-image {

        position: relative;

        display: flex;

        justify-content: center;

        align-items: center;

        width: 360px;

        max-width: 100%;

        margin: 25px auto 10px;

        overflow: visible;

    }

    /*==============================
        ORANGE GLOW
    ==============================*/

    .mobile-glow {

        position: absolute;

        width: 300px;

        height: 300px;

        border-radius: 50%;

        background: radial-gradient(circle,
                rgba(239, 144, 45, .22) 0%,
                rgba(239, 144, 45, .10) 50%,
                transparent 78%);

        z-index: 0;

    }

    .mobile-glow::after {

        content: "";

        position: absolute;

        inset: 25px;

        border-radius: 50%;

        border: 2px dashed rgba(239, 144, 45, .18);

    }

    @media (max-width:991px) {

        .hero-right {
            display: none;
        }

    }

    /*==============================
        HERO IMAGE
    ==============================*/

    .hero-mobile-image img {

        position: relative;

        z-index: 3;

        width: 100%;

        max-width: 340px;

        filter: drop-shadow(0 25px 35px rgba(0, 0, 0, .16));

        animation: heroFloat 4s ease-in-out infinite;
        display: block;
        margin: auto;
    }

    /*==============================
        FLOATING CARDS
    ==============================*/

    .mobile-card {

        position: absolute;

        display: flex;
        align-items: center;
        gap: 12px;

        width: 178px;
        min-height: 78px;

        padding: 12px 16px;

        background: rgba(255, 255, 255, .95);
        backdrop-filter: blur(18px);

        border-radius: 18px;

        box-shadow: 0 12px 30px rgba(0, 0, 0, .12);

        border: 1px solid rgba(255, 255, 255, .6);

        z-index: 10;
        animation: cardFloat 3.5s ease-in-out infinite;

    }

    .mobile-card i {

        width: 42px;

        height: 42px;

        display: flex;

        justify-content: center;

        align-items: center;

        border-radius: 50%;

        background: #ef902d;

        color: #fff;

        font-size: 18px;

        flex-shrink: 0;

    }

    .mobile-card>div {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .mobile-card h3,
    .mobile-card p {
        margin: 0;
    }

    .mobile-card h3 {

        margin: 0;

        font-size: 18px;

        font-weight: 700;

        line-height: 1.2;
        color: #222;
    }

    .mobile-card p {
        margin-top: 2px;
        font-size: 13px;
        line-height: 1.35;
        color: #666;
        white-space: normal;
        word-break: keep-all;
    }

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

    .mobile-card1 {

        top: 20px;
        left: -8px;
        --rotate: -4deg;
        transform: rotate(var(--rotate));

        animation-delay: 0s;

    }

    .mobile-card2 {

        top: 265px;
        right: -30px;

        --rotate: 4deg;
        transform: rotate(var(--rotate));

        animation-delay: 1s;

    }

    .mobile-card3 {

        bottom: 55px;
        left: -8px;


        --rotate: -3deg;
        transform: rotate(var(--rotate));

        animation-delay: 2s;

    }

    /*==============================
        BUTTONS
    ==============================*/

    .hero-buttons {

        flex-direction: column;

        gap: 16px;

    }

    .hero-buttons .btn-fill,
    .hero-buttons .btn-outline {

        width: 100%;

        justify-content: center;

    }

    /*==============================
        TRUST
    ==============================*/

    .hero-trust {

        justify-content: center;

        gap: 16px;

        margin-top: 28px;

    }

    .trust-item {

        width: 100%;

        justify-content: center;

    }

}

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

@media (min-width:768px) and (max-width:991px) {

    .hero-left h1 {
        font-size: 56px;
    }

    .hero-left p {
        max-width: 650px;
    }

    .hero-mobile-image {
        width: 470px;
    }

    .hero-mobile-image img {
        max-width: 430px;
    }

    .mobile-glow {
        width: 380px;
        height: 380px;
    }

    .mobile-card {
        width: 145px;
    }

}

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

@media (max-width:576px) {

    .hero-mobile-image {
        width: 340px;
    }

    .hero-mobile-image img {
        max-width: 320px;
    }

    .mobile-card {
        width: 178px;
        min-height: 78px;
        padding: 12px 14px;
        gap: 10px;
    }

    .mobile-card i {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .mobile-card h3 {
        font-size: 16px;
        line-height: 1.1;
        margin: 0;
    }

    .mobile-card p {
        font-size: 11px;
        line-height: 1.3;
        margin: 2px 0 0;
    }

}

/*==================================================
    EXTRA SMALL
==================================================*/

@media (max-width:400px) {

    .hero-mobile-image {
        width: 350px;
    }

    .hero-mobile-image img {
        max-width: 285px;
    }

    .mobile-card1 {
        left: -6px;
    }

    .mobile-card2 {
        right: -8px;
    }

    .mobile-card3 {
        left: -10px;
    }

}

/*==================================================
    ANIMATIONS
==================================================*/

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

}

@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0) rotate(var(--rotate, 0deg));
    }

    50% {
        transform: translateY(-10px) rotate(var(--rotate, 0deg));
    }

}

@media (max-width:576px) {

    .about {
        padding: 25px 0;
    }

    .about-container {
        gap: 18px;
    }

    .about-image img {
        max-width: 220px;
    }

    .about-shape {
        width: 180px;
        height: 180px;
    }

    .about-badge {
        bottom: -5px;
        right: 5px;
        padding: 10px 14px;
        gap: 10px;
    }

    .about-badge i {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .about-badge h3 {
        font-size: 16px;
    }

    .about-badge p {
        font-size: 12px;
    }

    .section-tag {
        margin-bottom: 8px;
        padding: 8px 18px;
        font-size: 12px;
    }

    .about-content h2 {
        font-size: 28px;
        line-height: 1.1;
        margin-bottom: 12px;
    }

    .about-content p {
        font-size: 14px;
        line-height: 1.55;
        margin-bottom: 18px;
        max-width: 100%;
    }

    .about-features {
        gap: 10px;
        margin-bottom: 20px;
    }

    .feature {
        padding: 12px 16px;
        border-radius: 14px;
    }

    .feature i {
        font-size: 18px;
    }

    .feature span {
        font-size: 15px;
    }

    .btn-fill {
        height: 52px;
        width: 220px;
    }
}

@media (max-width:576px) {

    .about-features {
        position: relative;
        min-height: 70px;
    }

    .about-features .feature {
        display: none !important;
        width: 100%;
    }

    .about-features .feature.active {
        display: flex !important;
        animation: fadeFeature .4s ease;
    }

}

@keyframes fadeFeature {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

}

/* Default (Desktop) */
.about-mobile-text {
    display: none;
}

.about-desktop-text {
    display: block;
}

/* Mobile & Tablet */
@media (max-width:991px) {

    .about-mobile-text {
        display: block;
        font-size: 15px;
        line-height: 1.7;
        color: #666;
        margin-bottom: 20px;
    }

    .about-desktop-text {
        display: none;
    }

}

/*==================================================
    WHY CHOOSE - APP STYLE
==================================================*/

@media (max-width:991px) {

    .why {

        padding: 10px 0px 10px 0px;

    }

    .why .container {

        padding-right: 0;

    }

    .why-grid {

        display: flex;

        gap: 18px;

        overflow-x: auto;

        scroll-snap-type: x mandatory;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;

        padding: 10px 20px;
        margin: -50px 0px 0px 0px;
    }

    .why-grid::-webkit-scrollbar {

        display: none;

    }

    .why-card {

        flex: 0 0 82%;

        max-width: 290px;

        min-height: 260px;

        padding: 28px;

        border-radius: 24px;

        scroll-snap-align: center;

        text-align: center;

    }

    .why-top {

        position: relative;

        margin-bottom: 22px;

    }

    .why-icon {

        width: 72px;

        height: 72px;

        margin: auto;

        border-radius: 20px;

    }

    .why-icon i {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 30px;

    }

    .why-number {

        position: absolute;

        top: -5px;

        right: 0;

        font-size: 34px;

        font-weight: 800;

        color: rgba(239, 144, 45, .18);

    }

    .why-card h3 {

        font-size: 24px;

        line-height: 1.3;

        margin-bottom: 16px;

    }

    .why-line {

        width: 44px;

        height: 4px;

        background: #ef902d;

        border-radius: 20px;

        margin: 0 auto 18px;

    }

    .why-card p {

        font-size: 15px;

        line-height: 1.8;

    }

}

@media(max-width:576px) {

    .why-card {

        flex: 0 0 86%;

        max-width: 275px;

        min-height: 240px;

        padding: 24px;

    }

    .why-icon {

        width: 64px;

        height: 64px;

    }

    .why-icon i {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 26px;

    }

    .why-number {

        font-size: 30px;

    }

    .why-card h3 {

        font-size: 22px;

    }

    .why-card p {

        font-size: 14px;

    }

}

/*==================================================
    COURSES - APP STYLE
==================================================*/

@media (max-width:991px) {

    .courses-home {

        padding: 80px 0;

    }

    .courses-home .container {

        padding-right: 0;

    }

    .courses-home .section-title {

        padding: 0 20px;

        margin-bottom: 35px;

    }

    .courses-home .section-title h2 {

        font-size: 22px;

        line-height: 1.2;

    }

    .courses-home .section-title p {

        font-size: 15px;

    }

    /*-------------------------------
        Horizontal Scroll
    --------------------------------*/

    .course-grid {

        display: flex;

        overflow-x: auto;

        overflow-y: hidden;

        scroll-snap-type: x proximity;

        scroll-behavior: smooth;

        -webkit-overflow-scrolling: touch;

        scroll-padding-left: 20px;

        scrollbar-width: none;

        overflow-y: hidden;

        gap: 18px;

        padding: 10px 20px 20px;



        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;

    }

    .course-grid::-webkit-scrollbar {

        display: none;

    }

    /*-------------------------------
        Course Card
    --------------------------------*/

    .course-card {
        flex: 0 0 78%;

        max-width: 320px;

        scroll-snap-align: center;

        transition: .35s ease;

        border-radius: 22px;

    }

    .course-card img {

        height: 210px;

    }

    .course-content {

        padding: 24px;

    }

    .course-content h3 {

        font-size: 26px;

    }

    .course-content p {

        font-size: 15px;

    }

    .course-content ul li {

        font-size: 14px;

    }

    /*-------------------------------
        View All Button
    --------------------------------*/

    .view-all {

        flex: 0 0 78%;

        max-width: 320px;

        scroll-snap-align: center;

        transition: .35s ease;

        display: flex;

        justify-content: center;

        align-items: center;

        margin-top: 0;

    }

}

@media (max-width:576px) {

    .course-card {

        flex: 0 0 80%;

    }

    .view-all {

        flex: 0 0 80%;

    }

}

/*==================================================
    ACHIEVEMENTS - APP STYLE
==================================================*/

@media (max-width:991px) {

    .achievements {
        padding: 5px 0;
    }

    .achievements .container {
        padding-right: 0;
    }

    .achievements .section-title {
        padding: 0 20px;
        margin-bottom: 10px;
    }

    .achievements .section-title h2 {
        font-size: 34px;
        line-height: 1.2;
    }

    .achievements .section-title p {
        font-size: 15px;
        line-height: 1.7;
    }

    /* Horizontal Scroll */

    .achievement-grid {

        display: flex;

        gap: 18px;

        overflow-x: auto;

        overflow-y: hidden;

        scroll-snap-type: x mandatory;

        scroll-behavior: smooth;

        -webkit-overflow-scrolling: touch;

        padding: 10px 20px 18px;

        margin-top: 0;

        scrollbar-width: none;

    }

    .achievement-grid::-webkit-scrollbar {
        display: none;
    }

    /* Card */

    .achievement-card {

        flex: 0 0 82%;

        max-width: 295px;

        min-height: 255px;

        padding: 28px;

        border-radius: 24px;

        scroll-snap-align: center;

        text-align: center;

    }

    .achievement-top {

        position: relative;

        margin-bottom: 22px;

    }

    .achievement-icon {

        width: 68px;

        height: 68px;

        margin: 0 auto;

        border-radius: 20px;

    }

    .achievement-icon i {

        font-size: 28px;

    }

    .achievement-index {

        position: absolute;

        top: -4px;

        right: 0;

        font-size: 34px;

    }

    .achievement-number {

        font-size: 38px;

        margin-bottom: 14px;

    }

    .achievement-title {

        font-size: 22px;

        margin-bottom: 14px;

    }

    .achievement-line {

        width: 42px;

        margin: 0 auto 18px;

    }

    .achievement-desc {

        font-size: 15px;

        line-height: 1.75;

    }

}

@media (max-width:576px) {

    .achievement-card {

        flex: 0 0 86%;

        max-width: 275px;

        min-height: 235px;

        padding: 24px;

    }

    .achievement-icon {

        width: 64px;

        height: 64px;

    }

    .achievement-icon i {

        font-size: 26px;

    }

    .achievement-index {

        font-size: 30px;

    }

    .achievement-number {

        font-size: 34px;

    }

    .achievement-title {

        font-size: 20px;

    }

    .achievement-desc {

        font-size: 14px;

    }

}

@media (max-width:400px) {

    .achievement-card {

        flex: 0 0 90%;

    }

}

/*==================================================
    TESTIMONIALS - APP STYLE
==================================================*/

@media (max-width:991px) {

    .testimonials {
        padding: 25px 0;
    }

    .testimonials .container {
        padding-right: 0;
    }

    .testimonials .section-title {
        padding: 0 20px;
        margin-bottom: 30px;
    }

    .testimonials .section-title h2 {
        font-size: 34px;
        line-height: 1.2;
    }

    .testimonials .section-title p {
        font-size: 15px;
        line-height: 1.7;
    }

    /*==============================
        Horizontal Scroll
    ==============================*/

    .testimonial-grid {

        display: flex;

        gap: 18px;

        overflow-x: auto;

        overflow-y: hidden;

        scroll-snap-type: x mandatory;

        scroll-behavior: smooth;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;

        padding: 10px 20px 20px;

        margin-top: 0;

    }

    .testimonial-grid::-webkit-scrollbar {
        display: none;
    }

    /*==============================
        Card
    ==============================*/

    .testimonial-card {

        flex: 0 0 82%;

        max-width: 295px;

        min-height: 360px;

        padding: 28px;

        border-radius: 24px;

        scroll-snap-align: center;

    }

    /*==============================
        Top Area
    ==============================*/

    .testimonial-top {

        position: relative;

        display: flex;

        justify-content: center;

        margin-bottom: 22px;

    }

    .testimonial-index {

        position: absolute;

        top: -4px;

        right: 0;

        font-size: 34px;

    }

    .quote-icon {

        width: 68px;

        height: 68px;

        margin: 0 auto;

        border-radius: 20px;

    }

    .quote-icon i {

        font-size: 26px;

    }

    /*==============================
        Rating
    ==============================*/

    .stars {

        justify-content: center;

        gap: 4px;

        margin-bottom: 14px;

    }

    .stars i {

        font-size: 15px;

    }

    .review-source {

        display: block;

        text-align: center;

        font-size: 13px;

        margin-bottom: 16px;

    }

    .testimonial-line {

        width: 42px;

        margin: 0 auto 18px;

    }

    /*==============================
        Review
    ==============================*/

    .testimonial-text {

        text-align: center;

        font-size: 15px;

        line-height: 1.75;

        margin-bottom: 26px;

    }

    /*==============================
        Student
    ==============================*/

    .student {

        gap: 12px;

        padding-top: 18px;

    }

    .student img {

        width: 56px;

        height: 56px;

    }

    .student h4 {

        font-size: 17px;

    }

    .course-badge {

        font-size: 12px;

        padding: 6px 12px;

    }

}

/*==============================
    Mobile
==============================*/

@media (max-width:576px) {

    .testimonial-card {

        flex: 0 0 86%;

        max-width: 275px;

        min-height: 330px;

        padding: 24px;

    }

    .quote-icon {

        width: 62px;

        height: 62px;

    }

    .quote-icon i {

        font-size: 24px;

    }

    .testimonial-index {

        font-size: 30px;

    }

    .testimonial-text {

        font-size: 14px;

    }

    .student img {

        width: 52px;

        height: 52px;

    }

    .student h4 {

        font-size: 16px;

    }

}

/*==============================
    Small Mobile
==============================*/

@media (max-width:400px) {

    .testimonial-card {

        flex: 0 0 90%;

    }

}

.why-card,
.course-card,
.achievement-card,
.testimonial-card {

    transition:
        transform .35s ease,
        box-shadow .35s ease;

}

.why-card:active,
.course-card:active,
.achievement-card:active,
.testimonial-card:active {

    transform: scale(.97);

}

@media (max-width: 768px) {

    .why-grid,
    .achievement-grid,
    .testimonial-grid {

        position: relative;
        animation: swipeHint 1.8s ease;

    }

}

@keyframes swipeHint {

    0% {

        transform: translateX(0);

    }

    25% {

        transform: translateX(-14px);

    }

    50% {

        transform: translateX(0);

    }

}

* {

    scrollbar-width: none;

}

*::-webkit-scrollbar {

    display: none;

}

@media (max-width:991px) {

    .course-accordion {

        scrollbar-width: thin;

        scrollbar-color: #ef902d #f5f5f5;

    }

    .course-accordion::-webkit-scrollbar {

        display: block;

        width: 4px;

    }

    .course-accordion::-webkit-scrollbar-track {

        background: #f5f5f5;

        border-radius: 20px;

    }

    .course-accordion::-webkit-scrollbar-thumb {

        background: #ef902d;

        border-radius: 20px;

    }

}

/*=====================================
    HIDE COURSES SECTION
=====================================*/

@media (max-width:991px) {

    .internship+.courses-home {
        display: none;
    }

}

/* need to add up */
@media (max-width: 576px) {
    .hero-buttons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .hero-buttons .btn {
        flex: 1;
        max-width: 160px;
        padding: 14px 0;
        font-size: 15px;
    }
}

@media (max-width:576px) {

    .hero-mobile-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 18px;
    }

    .hero-mobile-logo {
        display: block;
        margin: 0;
        flex-shrink: 0;
    }

    .hero-mobile-logo img {
        width: 90px;
        height: auto;
        display: block;
    }

    .hero-tag {
        flex: 1;
        margin: auto;
        padding: 12px 18px;
        text-align: center;
        font-size: 14px;
        line-height: 1.2;
        white-space: nowrap;
    }

}

@media (max-width:576px) {

    .hero {
        padding-top: 20px;
        /* or 10px if needed */
    }

    .hero-container {
        padding-top: 0;
        margin-top: 0;
        align-items: flex-start;
    }

    .hero-left {
        margin-top: 0;
        padding-top: 0;
    }

    .hero-mobile-top {
        margin-top: 0;
    }

}

@media (max-width: 991px) {

    .hero-trust {
        position: relative;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }

    .hero-trust .trust-item {
        position: absolute;
        display: flex;
        align-items: center;
        gap: 8px;

        opacity: 0;
        transform: translateY(15px);
        transition: all .5s ease;
    }

    .hero-trust .trust-item.active {
        opacity: 1;
        transform: translateY(0);
    }

}

@media (max-width: 991px) {

    .hero {
        min-height: auto;
        height: auto;
        padding-bottom: 10px;
    }

    .hero-container {
        min-height: auto;
        align-items: flex-start;
    }

    .hero-left {
        padding-bottom: 0;
        margin-bottom: 0;
    }

}

@media (max-width:991px) {

    .hero-trust {
        height: 30px;
        margin: 20px 0 0;
    }

}

/* Mobile & Tablet */
@media (max-width: 991px) {

    .hero-left h1 {
        font-size: clamp(38px, 8vw, 52px);
        line-height: 1.1;
        margin-bottom: 16px;
    }

    .hero-left h1 span {
        font-size: inherit;
    }

}

@media (max-width: 991px) {

    .about {
        padding-top: 40px;
        /* Adjust as needed */
    }

    .about-container {
        padding-top: 0;
        margin-top: 0;
    }

    .about-image {
        margin-top: 0;
        padding-top: 0;
    }

}

@media (max-width: 991px) {

    /* About Section */
    .about {
        padding-bottom: 25px;
        /* Reduce from 80-100px */
        margin-bottom: 0;
    }

    /* Why Choose Section */
    .why-choose {
        padding-top: 25px;
        /* Reduce top spacing */
        margin-top: 0;
    }

}

/* Mobile & Tablet */
@media (max-width:991px) {

    .hero-mobile-title {
        flex: 1;
        text-align: center;
        margin-left: 18px;
    }

    .hero-mobile-title h2 {
        margin: 0;
        font-size: 25px;
        line-height: 1.1;
        font-weight: 800;
        color: #ef902d;
    }

    /* Hide desktop heading */
    .hero-left h1 {
        display: none;
    }

    /* Hide hero tag since title replaces it */
    .hero-tag {
        display: none;
    }

}

.hero-mobile-title {
    display: none;
}

@media (max-width:991px) {
    .hero-mobile-title {
        display: block;
    }
}

/* Hide icon by default */
.btn-contact-icon {
    display: none;
}

/* Mobile & Tablet */
@media (max-width:991px) {

    /* Hide text button */
    .btn-contact-text {
        display: none;
    }

    /* Show icon button */
    .btn-contact-icon {
        display: flex;
        justify-content: center;
        align-items: center;

        width: 60px;
        height: 60px;

        border-radius: 50%;
        background: #ef902d;
        color: #fff;

        font-size: 22px;
        text-decoration: none;

        box-shadow: 0 12px 25px rgba(239, 144, 45, .35);
        transition: .3s ease;
    }

    .hero-buttons {
display: flex;
        align-items: center;
        justify-content: center;
        gap: 90px;
        flex-direction: row;
    }

    .btn-fill {
        flex: 1;
    }
}

/*==================================================
    RESPONSIVE CLEANUP - TABLET AND MOBILE
==================================================*/

@media (max-width:991px) {

    .why,
    .achievements,
    .testimonials {
        overflow: hidden;
    }

    .why .container,
    .achievements .container,
    .testimonials .container {
        width: 100%;
        max-width: none;
        padding-right: 0;
    }

    .why .section-title,
    .achievements .section-title,
    .testimonials .section-title {
        width: 90%;
        max-width: 720px;
        margin-inline: auto;
    }

    .why-grid,
    .achievement-grid,
    .testimonial-grid {
        display: flex;
        align-items: stretch;
        gap: 18px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scroll-padding-inline: 5vw;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 12px 5vw 24px;
        margin-inline: 0;
    }

    .why-grid::-webkit-scrollbar,
    .achievement-grid::-webkit-scrollbar,
    .testimonial-grid::-webkit-scrollbar {
        display: none;
    }

    .why-card,
    .achievement-card,
    .testimonial-card {
        flex: 0 0 clamp(295px, 42vw, 360px);
        max-width: none;
        height: auto;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .why-card,
    .achievement-card {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .testimonial-card {
        display: flex;
        flex-direction: column;
    }

    .testimonial-text {
        flex: 1;
    }

    .student {
        margin-top: auto;
    }

}

@media (max-width:767px) {

    .hero {
        padding-bottom: 100px;
    }

    .about,
    .internship,
    .director,
    .cta {
        overflow: hidden;
    }

    .why-card,
    .achievement-card,
    .testimonial-card {
        flex-basis: min(86vw, 315px);
    }

    .btn-fill,
    .btn-outline,
    .course-btn,
    .cta-buttons a {
        min-height: 46px;
    }

}

@media (max-width:400px) {

    .why-card,
    .achievement-card,
    .testimonial-card {
        flex-basis: min(90vw, 292px);
    }

    .hero-left h1,
    .section-title h2 {
        overflow-wrap: anywhere;
    }

}

@media (max-width:991px) {

    .mobile-card p {

        width: auto !important;

        max-width: none !important;

        margin: 2px 0 0 !important;

        padding: 0 !important;

        position: static !important;

        text-align: left !important;

        display: block !important;

        transform: none !important;

    }

    .mobile-card h3 {

        width: auto !important;

        margin: 0 !important;

        text-align: left !important;

    }

}

/* Hide Gallery Stats on Tablet & Mobile */
@media (max-width: 991px) {
    .gallery-stats {
        display: none !important;
    }
}

@media (max-width: 991px) {

    .gallery-hero-wrapper {
        display: block;
    }

    .gallery-hero-content {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }
}

/* Mobile */
@media (max-width:576px) {

    .internship-features {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }

    .internship-item {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px 16px;
        border-radius: 14px;
        justify-content: flex-start;
    }

    .internship-item i {
        font-size: 18px;
        flex-shrink: 0;
    }

    .internship-item span {
        font-size: 15px;
        font-weight: 600;
    }

}

@media (max-width:400px) {

    .internship-item {
        padding: 10px 14px;
    }

    .internship-item i {
        font-size: 16px;
    }

    .internship-item span {
        font-size: 14px;
    }

}

@media (max-width:576px) {

    .internship-features {
        position: relative;
        min-height: 65px;
    }

    .internship-features .internship-item {
        display: none !important;
        width: 100%;
    }

    .internship-features .internship-item.active {
        display: flex !important;
        animation: fadeInternship .4s ease;
    }

}

@keyframes fadeInternship {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

}

/* Desktop */
.internship-mobile-text {
    display: none;
}

.internship-desktop-text {
    display: block;
}

/* Mobile & Tablet */
@media (max-width:991px) {

    .internship-mobile-text {
        display: block;
        font-size: 15px;
        line-height: 1.7;
        color: #666;
        margin-bottom: 20px;
    }

    .internship-desktop-text {
        display: none;
    }

}

/* Hide on Tablet & Mobile */
@media (max-width:991px) {

    .director-desktop-text {
        display: none;
    }

}

/* @media (max-width:991px) {

    html,
    body {
        overflow: hidden;
        height: 100%;
    }

    main {
        height: 100vh;
        overflow: hidden;
    }

    section {
        height: 100vh;
        overflow: hidden;
    }

} */

@media (max-width:991px){

    .footer-grid{
        display:none;
    }

    .footer hr{
        display:none;
    }

    .footer-bottom{
        justify-content:center;
        text-align:center;
        padding:10px 0;
    }

    .footer-bottom-links{
        display:none;
    }

}

/*=========================================
  ENROLL PAGE - HIDE HERO CONTENT
=========================================*/

@media (max-width: 991px) {

    .enroll-hero h1,
    .enroll-hero p {

        display: none;

    }

    .enroll-hero {

        padding: 30px 0 10px;

        min-height: auto;

    }

    .enroll-hero-content {

        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;

    }

    .enroll-hero .section-tag {

        margin-bottom: 0;

    }

}

/*=========================================
  COURSES PAGE - HIDE PAGE BANNER
=========================================*/

@media (max-width: 991px) {

    .page-banner {

        display: none;

    }

}

/* ============================================================
   TABLET SECTION-SCROLL FIX
   768px–991px only.
   Keep major home sections inside one tablet viewport so the
   global section-scroll controller never falls back to mid-section
   native scrolling.
   ============================================================ */
@media (min-width: 768px) and (max-width: 991px) {

    /* Major full-page sections must remain viewport-sized on tablet. */
    .about,
    .internship,
    .director {
        min-height: 0 !important;
        height: auto !important;
        padding-top: clamp(22px, 3vh, 30px) !important;
        padding-bottom: clamp(22px, 3vh, 30px) !important;
        overflow: visible;
    }

    /* Undo the max-width:991px column rules that make tablet sections
       taller than the viewport. */
    .about-container,
    .internship-container,
    .director-container {
        width: 100%;
        max-width: 1180px;
        margin-inline: auto;
        display: grid !important;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        align-items: center;
        gap: clamp(24px, 4vw, 42px) !important;
        text-align: left !important;
    }

    /* About */
    .about-image {
        width: 100%;
        min-width: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .about-image img {
        width: min(100%, 330px) !important;
        height: auto !important;
        max-height: 43dvh;
        object-fit: cover;
    }

    .about-content {
        width: 100%;
        min-width: 0;
        max-width: none !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .about-content h2,
    .internship-content h2,
    .director-content h2 {
        font-size: clamp(30px, 4.2vw, 40px) !important;
        line-height: 1.08 !important;
        margin-top: 8px !important;
        margin-bottom: 12px !important;
    }

    .about-content p,
    .internship-content p,
    .director-content p {
        font-size: clamp(13px, 1.65vw, 15px) !important;
        line-height: 1.55 !important;
        margin-bottom: 14px !important;
    }

    .about-features,
    .internship-features {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    .about-features .feature,
    .internship-features .internship-item {
        min-height: 46px !important;
        padding: 9px 11px !important;
        border-radius: 14px !important;
    }

    .about-features .feature span,
    .internship-features .internship-item span {
        font-size: 12px !important;
        line-height: 1.25 !important;
    }

    /* Internship — image and text side-by-side instead of stacked. */
    .internship-image {
        width: 100%;
        min-width: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        order: 1;
    }

    .internship-content {
        width: 100%;
        min-width: 0;
        max-width: none !important;
        align-items: flex-start !important;
        text-align: left !important;
        order: 2;
    }

    .internship-image-wrapper {
        width: min(100%, 350px);
    }

    .internship-image img {
        width: 100% !important;
        max-width: 350px !important;
        max-height: 42dvh;
        object-fit: cover;
    }

    .intern-card {
        padding: 8px 10px !important;
        border-radius: 14px !important;
    }

    .intern-card i {
        width: 34px !important;
        font-size: 14px !important;
    }

    .intern-card h3,
    .intern-card-content h3 {
        font-size: 14px !important;
    }

    .intern-card p,
    .intern-card-content p {
        font-size: 10px !important;
    }

    .intern-card.card-a {
        left: -8px !important;
    }

    .intern-card.card-b {
        right: -8px !important;
    }

    /* Director */
    .director-image {
        width: 100%;
        min-width: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .director-image-wrapper {
        width: min(100%, 330px);
        margin-inline: auto;
    }

    .director-image-wrapper img {
        width: 100% !important;
        max-height: 45dvh;
        object-fit: cover;
    }

    .director-content {
        width: 100%;
        min-width: 0;
        max-width: none !important;
        text-align: left !important;
    }

    .director-quote blockquote,
    .director-content blockquote {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-block: 10px !important;
        text-align: left !important;
    }

    /* Keep the CTA/button compact enough to remain in the viewport. */
    .about .btn-fill,
    .internship .btn-fill,
    .director .btn-fill {
        min-height: 44px !important;
        height: 44px !important;
        padding: 8px 18px !important;
        margin-top: 4px !important;
        font-size: 13px !important;
    }
}

/* ============================================================
   TABLET SAFE SIDE GUTTERS
   Keeps the existing section navigation clear of section content
   and prevents tablet layouts from touching either viewport edge.
   Does NOT alter section height, vertical centering or snap logic.
   ============================================================ */
@media (min-width: 768px) and (max-width: 991px) {

    .hero-container,
    .about-container,
    .internship-container,
    .director-container,
    .cta .container,
    .contact .container,
    .gallery .container,
    .gallery-hero .container,
    .enroll-hero .container,
    .courses-hero .container,
    .page-banner .container {
        box-sizing: border-box;
        padding-left: clamp(58px, 7vw, 72px) !important;
        padding-right: clamp(38px, 5vw, 56px) !important;
    }

    /* Section headings in horizontally-scrollable card sections also
       get a safe inset, while the card tracks themselves remain swipeable. */
    .why .section-title,
    .courses-home .section-title,
    .achievements .section-title,
    .testimonials .section-title {
        box-sizing: border-box;
        padding-left: clamp(58px, 7vw, 72px) !important;
        padding-right: clamp(38px, 5vw, 56px) !important;
    }
}


/* ============================================================
   TABLET LANDSCAPE SAFE PAGE GUTTERS
   992px–1199px only. The desktop-style header/layout remains,
   but content no longer touches the viewport edges.
   ============================================================ */
@media (min-width: 992px) and (max-width: 1199px) {

    .container {
        box-sizing: border-box;
        width: calc(100% - 80px) !important;
        max-width: 1120px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* These home containers set width:100% in their base files,
       so explicitly restore the tablet landscape gutter. */
    .hero-container,
    .about-container,
    .internship-container,
    .director-container {
        width: calc(100% - 80px) !important;
        max-width: 1120px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Keep floating hero/internship artwork inside the visible area. */
    .hero-right,
    .hero-image-wrapper,
    .internship-image-wrapper,
    .director-image-wrapper {
        max-width: 100%;
    }
}

/* ============================================================
   HERO FLOATING CARDS — CONSISTENT RESPONSIVE POSITIONING
   Keep the mobile/tablet cards aligned like the desktop hero:
   top-left, centre-right, lower-left. Positions scale with image.
   ============================================================ */
@media (max-width: 991px) {

    .hero-mobile-image {
        position: relative;
        overflow: visible !important;
    }

    .hero-mobile-image > img {
        display: block;
        position: relative;
        z-index: 3;
    }

    .mobile-card {
        width: clamp(150px, 42%, 190px) !important;
        min-height: clamp(62px, 9vw, 78px) !important;
        padding: clamp(9px, 1.8vw, 13px) clamp(10px, 2vw, 15px) !important;
        gap: clamp(8px, 1.5vw, 12px) !important;
        border-radius: clamp(14px, 2.4vw, 18px) !important;
        box-sizing: border-box;
        transform: none !important;
        --rotate: 0deg !important;
    }

    .mobile-card i {
        width: clamp(34px, 7vw, 44px) !important;
        height: clamp(34px, 7vw, 44px) !important;
        font-size: clamp(14px, 2.8vw, 18px) !important;
        flex: 0 0 auto;
    }

    .mobile-card > div {
        min-width: 0;
        flex: 1 1 auto;
        overflow: visible;
    }

    .mobile-card h3 {
        margin: 0 !important;
        font-size: clamp(15px, 2.8vw, 18px) !important;
        line-height: 1.12 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    .mobile-card p {
        margin: 3px 0 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        font-size: clamp(10px, 2.1vw, 13px) !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none;
        display: -webkit-box !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden !important;
        text-align: left !important;
    }

    /* Reference layout from desktop hero */
    .mobile-card1 {
        top: 7% !important;
        left: -4% !important;
        right: auto !important;
        bottom: auto !important;
    }

    .mobile-card2 {
        top: 43% !important;
        right: -5% !important;
        left: auto !important;
        bottom: auto !important;
    }

    .mobile-card3 {
        left: -8% !important;
        bottom: 9% !important;
        top: auto !important;
        right: auto !important;
    }

    /* Preserve the existing float motion, but never rotate the cards. */
    .mobile-card {
        animation-name: cardFloatResponsive !important;
    }
}

@keyframes cardFloatResponsive {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Narrow phones: pull the cards slightly inward so none is clipped. */
@media (max-width: 430px) {
    .mobile-card {
        width: clamp(142px, 45%, 165px) !important;
    }

    .mobile-card1 {
        left: -1% !important;
    }

    .mobile-card2 {
        right: -1% !important;
    }

    .mobile-card3 {
        left: -3% !important;
    }
}
