/* ================== CSS VARIABLES ================== */
:root {
    --primary-brown: #e62020;
    --light-pink: #FFF5F5;
    --light-brown: #F5F0E6;
    --dark-text: #333;
    --white: #FFFFFF;
    --black: #000000;
    --rounded: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --section-margin: 20px;
}

/* ================== PRELOADER STYLES ================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(1deg, black 0%, red 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
    position: relative;
}

.preloader-logo {
    width: 120px;
    height: 120px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    margin: 0;
}

.preloader-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-top: 15px;
    animation: fadeInOut 1.5s ease-in-out infinite alternate;
}

.loading-spinner {
    width: 155px;
    height: 155px;
    border: 4px solid var(--light-pink);
    border-top: 4px solid var(--primary-brown);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    position: relative;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

/* Founder Modal Styles */
.founder-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.founder-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

.founder-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    display: flex;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease-out;
}

.founder-modal-image {
    flex: 0 0 40%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
}

.founder-modal-details {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.founder-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.founder-modal-close:hover {
    background: white;
    transform: scale(1.1);
}

.founder-modal-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.founder-modal-title {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.founder-modal-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.founder-modal-social {
    display: flex;
    gap: 15px;
}

.founder-modal-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.founder-modal-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .founder-modal-content {
        flex-direction: column;
        max-width: 95%;
        max-height: 95vh;
    }
    
    .founder-modal-image {
        flex: 0 0 250px;
        min-height: 250px;
    }
    
    .founder-modal-details {
        padding: 30px 25px;
    }
    
    .founder-modal-name {
        font-size: 2rem;
    }
    
    .founder-modal-title {
        font-size: 1.1rem;
    }
    
    .founder-modal-description {
        font-size: 1rem;
    }
}

/* ================== RESET AND BASE STYLES ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #ffffff;
}

    .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        section {
            padding: 40px 0;
        }

        h1, h2, h3, h4 {
            font-weight: 700;
            line-height: 1.3;
        }

        img {
            max-width: 100%;
            height: auto;
        }

/* ================== BUTTON STYLES ================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-brown);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: #6B3100;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-brown);
    border: 2px solid var(--primary-brown);
}

.btn-secondary:hover {
    background-color: var(--primary-brown);
    color: var(--white);
}

   /* ================== SECTION HEADING STYLES ================== */
        .section-heading {
            text-align: center;
            margin-bottom: 40px;
        }

        .section-heading h2 {
            font-size: 2rem;
            margin-bottom: 15px;
        }

        .section-heading .black-text {
            color: var(--black);
        }

        .section-heading .brown-text {
            color: var(--primary-brown);
        }

        .section-heading p {
            max-width: 700px;
            margin: 0 auto;
            color: #666;
        }
/* ================== COUNTDOWN BANNER ================== */
.countdown-banner {
    background: linear-gradient(135deg, #000000 0%, #f71c1c 100%);
    color: white;
    padding: 10px 0;
    text-align: center;
    position: relative;
    z-index: 1001;
    margin: 0 60px;
    border-radius: 0 0 var(--rounded) var(--rounded);
    box-shadow: var(--shadow);
}

.countdown-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.countdown-text {
    font-weight: 600;
    font-size: 1.1rem;
}

.countdown-timer {
    display: flex;
    gap: 10px;
    font-weight: 700;
}

.countdown-unit {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    min-width: 40px;
    text-align: center;
}

.countdown-value {
    font-size: 1.2rem;
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
}

.countdown-apply {
    margin-left: 15px;
}

.countdown-apply .btn {
    background: #fff;
    color: var(--primary-brown);
    font-weight: 700;
    padding: 8px 20px;
    animation: pulse 2s infinite;
}

.countdown-apply .btn:hover {
    background: #ffd700;
    transform: scale(1.05);
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

/* ================== HERO SECTION ================== */
.hero {
    background: url('../images/bg1.avif');
    padding: 60px 20px;
    border-radius: var(--rounded);
    margin: 15px 60px 0;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 69, 19, 0.1) 0%, transparent 70%);
    transform: rotate(15deg);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    padding-right: 30px;
}

.tagline {
    background-color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    animation: fadeIn 1s ease;
}

.hero-heading {
    font-size: 3rem;
    color: var(--primary-brown);
    margin-bottom: 15px;
    line-height: 1.2;
    background: linear-gradient(45deg, var(--primary-brown), #d2691e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideInLeft 1s ease;
}

.hero-subheading {
    font-size: 1.5rem;
    margin-bottom: 25px;
    animation: fadeIn 1.5s ease;
}

.hero-features {
    margin-bottom: 30px;
    animation: fadeIn 2s ease;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.feature-item i {
    color: var(--primary-brown);
    margin-right: 10px;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.hero-buttons {
    animation: fadeInUp 2s ease;
}

.hero-buttons .btn {
    margin-right: 15px;
    margin-bottom: 15px;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
    animation: fadeInRight 1s ease;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--rounded);
    transform: perspective(800px) rotateY(-10deg);
    transition: transform 0.5s ease;
    height: 400px;
    width: auto;
    object-fit: cover;
}

.hero-image img:hover {
    transform: perspective(800px) rotateY(0);
}

/* ================== CO-FOUNDERS SECTION ================== */
.cofounders-section {
    border-radius: var(--rounded);
    margin: 15px 60px 25px;
}

.cofounders-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.cofounder-card {
    background-color: var(--white);
    padding: 25px;
    text-align: center;
    width: 300px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    border-radius: 0px 60px 0px 60px;
    box-shadow: var(--shadow);
}

.cofounder-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(139, 69, 19, 0.2);
}

.cofounder-image-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    z-index: 2;
}

.cofounder-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-brown);
    transition: all 0.5s ease;
}

.cofounder-card:hover .cofounder-image {
    border-color: var(--white);
    transform: scale(1.1);
}

.cofounder-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-brown) 0%, #6B3100 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.5s ease;
    border-radius: var(--rounded);
    z-index: 3;
}

.cofounder-card:hover .cofounder-overlay {
    opacity: 1;
    transform: translateY(0);
}

.cofounder-overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: all 0.5s ease;
    opacity: 0;
}

.cofounder-card:hover .cofounder-overlay-content {
    transform: translateY(0);
    opacity: 1;
}

.cofounder-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.cofounder-social a {
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.cofounder-social a:hover {
    color: #ffd700;
    transform: translateY(-3px);
}

.cofounder-name {
    font-size: 1.3rem;
    color: var(--primary-brown);
    margin-bottom: 10px;
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
}

.cofounder-card:hover .cofounder-name {
    color: var(--white);
}

.cofounder-details {
    font-size: 0.9rem;
    color: #666;
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
}

.cofounder-card:hover .cofounder-details {
    color: rgba(255, 255, 255, 0.8);
}

.cofounder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, var(--primary-brown) 0%, #6B3100 100%);
    transition: all 0.5s ease;
    z-index: 1;
    border-radius: 0 0 50% 50%;
}

.cofounder-card:hover::before {
    height: 100%;
    border-radius: var(--rounded);
}

 /* ================== UNIVERSITY COLLABORATION CARDS ================== */
        .universities-grid-three {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 0;
        }

        .university-card-modern {
            position: relative;
            border-radius: var(--rounded);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: all 0.4s ease;
            width: 100%;
            max-width: 400px;
            height: 350px;
        }

        .university-card-modern:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(139, 69, 19, 0.2);
        }

        .university-image-container {
            position: relative;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        .university-image-full {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .university-card-modern:hover .university-image-full {
            transform: scale(1.05);
        }

        .university-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 0;
            background: linear-gradient(to top, rgba(107, 49, 0, 0.95) 0%, transparent 100%);
            display: flex;
            align-items: flex-end;
            padding: 20px;
            transition: height 0.5s ease;
            color: var(--white);
            overflow: hidden;
        }

        .university-card-modern:hover .university-overlay {
            height: 100%;
        }

        .university-info {
            transform: translateY(20px);
            opacity: 0;
            transition: all 0.5s ease;
            width: 100%;
        }

        .university-card-modern:hover .university-info {
            transform: translateY(0);
            opacity: 1;
        }

        .university-name {
            font-size: 1.4rem;
            font-weight: 600;
            margin-bottom: 15px;
            text-transform: capitalize;
        }

        .university-details p {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
            font-size: 0.9rem;
        }

        .university-details i {
            margin-right: 10px;
            width: 16px;
            text-align: center;
        }

        .btn-university {
            display: inline-block;
            margin-top: 15px;
            padding: 8px 15px;
            background-color: var(--white);
            color: var(--primary-brown);
            text-decoration: none;
            border-radius: 20px;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .btn-university:hover {
            background-color: #ffd700;
            transform: translateY(-2px);
        }

        /* ================== RESPONSIVE STYLES ================== */
        @media screen and (max-width: 768px) {
            #collabs {
                margin: 15px 20px 25px !important;
            }
            
            .section-heading h2 {
                font-size: 1.7rem;
            }
            
            .section-heading p {
                font-size: 0.95rem;
            }
            
            .university-card-modern {
                height: 300px;
                max-width: 100%;
            }
            
            .university-name {
                font-size: 1.2rem;
            }
            
            .university-details p {
                font-size: 0.85rem;
            }
        }

        @media screen and (max-width: 480px) {
            #collabs {
                margin: 15px 10px 25px !important;
            }
            
            .section-heading h2 {
                font-size: 1.5rem;
            }
            
            .university-card-modern {
                height: 250px;
            }
            
            .university-overlay {
                padding: 15px;
            }
            
            .btn-university {
                padding: 6px 12px;
                font-size: 0.85rem;
            }
        }

        /* Mobile touch devices - overlay only on click/tap */
        @media (hover: none) {
            .university-card-modern {
                cursor: pointer;
            }
            
            .university-card-modern.active .university-overlay {
                height: 100%;
            }
            
            .university-card-modern.active .university-info {
                transform: translateY(0);
                opacity: 1;
            }
            
            .university-card-modern.active:hover {
                transform: none;
            }
        }

/* ================== TESTIMONIALS SECTION ================== */
.testimonials {
    background: url('../images/bg1.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    border-radius: var(--rounded);
    margin: 15px 60px 25px;
    color: var(--white);
    position: relative;
    padding: 80px 0;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--rounded);
    z-index: 1;
}

.testimonials .container {
    position: relative;
    z-index: 2;
}

.testimonials .section-heading h2 {
    color: var(--white);
}

.testimonials .section-heading p {
    color: rgba(126, 81, 81, 0.9);
}

.video-carousel {
    display: flex;
    overflow-x: auto;
    padding: 30px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 15px;
}

.video-carousel::-webkit-scrollbar {
    display: none;
}

.video-item {
    flex: 0 0 auto;
    width: 350px;
    margin-right: 25px;
    border-radius: var(--rounded);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.video-item iframe {
    width: 100%;
    height: 220px;
    border: none;
    display: block;
}

.video-content {
    padding: 20px;
    background: var(--white);
    color: var(--dark-text);
}

.video-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-brown);
}

.video-desc {
    font-size: 0.9rem;
    color: #666;
}

/* ================== CORPORATE SECTION ================== */
.corporate-section {
    background: url('../images/bg.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--rounded);
    margin: 15px 0 25px; /* removed left/right margins */
    color: var(--white);
    position: relative;
}

.corporate-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--rounded);
    z-index: 1;
}

.corporate-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap; /* allow wrapping on small screens */
    margin: 0; /* remove container side margins */
    padding: 15px; /* uniform padding inside */
    position: relative;
    z-index: 2;
}

.discover-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--rounded);
    box-shadow: var(--shadow);
    padding: 20px;
    width: 45%;
    margin-bottom: 20px;
}

.discover-text {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-brown);
}

.logo-carousel {
    width: 45%;
    height: 300px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
}

.logo-column {
    width: 48%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.logo-track {
    position: absolute;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* First column - scrolls upward */
.logo-column:first-child .logo-track {
    animation: scrollUp 20s linear infinite;
}

/* Second column - scrolls downward */
.logo-column:last-child .logo-track {
    animation: scrollDown 20s linear infinite;
}

.logo-item {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--rounded);
    margin: 10px 0;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.logo-item:hover {
    transform: scale(1.05);
    background-color: var(--white);
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Animation for upward scrolling */
@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* Animation for downward scrolling */
@keyframes scrollDown {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

/* Pause animation on hover */
.logo-column:hover .logo-track {
    animation-play-state: paused;
}

/* ================== MOBILE RESPONSIVE ================== */
@media (max-width: 768px) {
    .corporate-container {
        flex-direction: column;
        align-items: center;
        padding: 15px; /* uniform padding all sides */
    }

    .discover-card,
    .logo-carousel {
        width: 100%; /* full width */
    }

    .logo-carousel {
        height: 400px;
        margin-bottom: 20px;
    }

    .logo-column {
        width: 100%; /* each column full width */
    }

    .discover-text {
        font-size: 1.25rem;
        text-align: center;
    }

    .btn {
        display: block;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .logo-carousel {
        height: 500px;
    }

    .discover-text {
        font-size: 1.1rem;
    }

    .discover-card {
        padding: 15px;
    }
}

/* ================== DREAM CARDS SECTION ================== */
.dream-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0 15px;
}

.dream-card {
    background-color: var(--white);
    border-radius: var(--rounded);
    box-shadow: var(--shadow);
    padding: 25px;
    position: relative;
    transition: transform 0.3s ease;
}

.dream-card:hover {
    transform: translateY(-5px);
}

.dream-card h3 {
    color: var(--primary-brown);
    margin-bottom: 15px;
}

.dream-card i {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--primary-brown);
    opacity: 0.3;
}

/* ================== CERTIFICATIONS SECTION ================== */
.certifications {
    background: url('../images/bg1.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--rounded);
    margin: 15px 60px 25px;
    padding: 80px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cert-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 15px;
    position: relative;
    z-index: 2;
}

.cert-carousel {
    width: 45%;
    position: relative;
    border-radius: var(--rounded);
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.cert-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.cert-slide {
    min-width: 100%;
    height: 350px;
}

.cert-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cert-carousel-nav {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
}

.cert-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cert-nav-dot.active {
    background: var(--primary-brown);
    transform: scale(1.2);
}

.cert-content {
    width: 70%;
    padding: 40px;
    border-radius: var(--rounded);
}

.cert-content h2 {
    color: var(--primary-brown);
    margin-bottom: 25px;
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.cert-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-brown);
}

.cert-features {
    list-style: none;
}

.cert-feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.cert-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
}

.cert-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--light-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-brown);
    font-size: 1.2rem;
}

.cert-text {
    flex: 1;
}

.cert-text h3 {
    color: var(--dark-text);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.cert-text p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cert-cta {
    margin-top: 30px;
    text-align: center;
}

/* Increase left image height */
.cert-slide img {
    height: 450px;
    width: auto;
    object-fit: cover;
    border-radius: 12px;
}
/* ================== MOBILE CENTERING FIX ================== */
@media (max-width: 1024px) {
    .cert-carousel {
        width: 100%;
        margin: 0 auto; /* center the carousel */
    }

    .cert-slides {
        display: block; /* stack slides properly */
        position: relative;
    }

    .cert-slide {
        width: 100%; /* full width */
        margin: 0 auto; /* center each slide */
        height: 350px; /* adjusted height */
    }

    .cert-carousel-nav {
        justify-content: center; /* nav dots centered */
        bottom: 10px;
    }

    .cert-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
        display: block;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .cert-slide {
        height: 250px;
    }
}@media (max-width: 1024px) {
    .cert-container {
        flex-direction: column;
        align-items: center;
        padding: 0 15px;
    }

    .cert-carousel,
    .cert-content {
        width: 100%;
        margin-bottom: 30px;
    }

    /* Keep flex layout for slides */
    .cert-slides {
        display: flex; /* keep flex for sliding */
        transform: translateX(0); /* start at first slide */
    }

    .cert-slide {
        min-width: 100%; /* each slide takes full carousel width */
        height: 350px;
    }

    .cert-carousel-nav {
        justify-content: center;
        bottom: 10px;
    }

    .cert-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 12px;
    }

    .cert-content h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .cert-content {
        padding: 20px;
    }

    .cert-feature-item {
        flex-direction: row;
        align-items: center;
        padding: 10px;
    }

    .cert-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-right: 10px;
    }

    .cert-text h3 {
        font-size: 1rem;
    }

    .cert-text p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .cert-slide {
        height: 250px;
    }

    .cert-content h2 {
        font-size: 1.4rem;
        padding-bottom: 10px;
    }

    .cert-content {
        padding: 15px;
    }

    .cert-feature-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 8px;
    }

    .cert-icon {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .cert-text h3 {
        font-size: 0.95rem;
    }

    .cert-text p {
        font-size: 0.8rem;
    }
}


/* ================== COMPARISON SECTION ================== */
.comparison-modern {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin: 0 15px;
}

.comparison-column {
    flex: 1;
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.comparison-column:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(139, 69, 19, 0.15);
}

.traditional-column:hover {
    border-top: 5px solid #ccc;
}

.advantage-column:hover {
    border-top: 5px solid var(--primary-brown);
}

.column-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.column-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
}

.traditional-column .column-icon {
    background-color: #f8f9fa;
    color: #6c757d;
}

.advantage-column .column-icon {
    background-color: var(--light-pink);
    color: var(--primary-brown);
}

.column-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.traditional-column .column-header h3 {
    color: #6c757d;
}

.advantage-column .column-header h3 {
    color: var(--primary-brown);
}

.column-header p {
    color: #666;
    font-size: 0.95rem;
}

.comparison-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comparison-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.traditional-column .comparison-item:hover {
    background-color: #f8f9fa;
}

.advantage-column .comparison-item:hover {
    background-color: var(--light-pink);
}

.icon-container {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.traditional-column .icon-container {
    background-color: #f8d7da;
    color: #dc3545;
}

.advantage-column .icon-container {
    background-color: #d4edda;
    color: #28a745;
}

.point-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.traditional-column .point-content h4 {
    color: #495057;
}

.advantage-column .point-content h4 {
    color: var(--dark-text);
}

.point-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* VS Separator */
.vs-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 80px;
    flex-shrink: 0;
}

.vs-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-brown) 0%, #6B3100 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    position: relative;
    z-index: 2;
}

.vs-separator::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, transparent 0%, var(--primary-brown) 50%, transparent 100%);
    transform: translateX(-50%);
}

/* ================== RECOGNITION CARDS ================== */
.recognition-card {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 12px;
    width: 150px;
    text-align: center;
    font-weight: bold;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-in-out;
    animation: floatUp 1s ease-out;
}

.recognition-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Tablet Screens */
@media (max-width: 1024px) {
    .comparison-modern {
        flex-direction: column; /* stack columns */
        gap: 30px;
        align-items: center;
        margin: 0 auto;
        width: 90%; /* slightly smaller than full width */
    }

    .comparison-column {
        width: 100%;
        padding: 20px;
        max-width: 500px;
    }

    .vs-separator {
        width: 60px;
        height: 60px;
        margin: 20px 0;
    }

    .vs-circle {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

/* Mobile Screens */
@media (max-width: 480px) {
    .comparison-modern {
        flex-direction: column;
        gap: 20px;
        margin: 0; /* remove side margins */
        width: 100%; /* full width on mobile */
    }

    .comparison-column {
        width: 100%;
        padding: 15px;
        border-radius: 0; /* optional: remove rounded corners to fit full width */
    }

    .column-header h3 {
        font-size: 1.2rem;
    }

    .column-header p {
        font-size: 0.85rem;
    }

    .comparison-item {
        flex-direction: row; /* icon + text side by side */
        gap: 10px;
        padding: 12px;
    }

    .icon-container {
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }

    .point-content h4 {
        font-size: 1rem;
    }

    .point-content p {
        font-size: 0.8rem;
    }

    .vs-separator {
        width: 50px;
        height: 50px;
        margin: 15px auto; /* center horizontally */
    }

    .vs-circle {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}
/* Mobile Screens: Full-width, no side margins */
@media (max-width: 480px) {
    #advantage {
        margin: 0 !important;        /* remove all margins */
        padding-left: 15px;          /* optional small padding for content */
        padding-right: 15px;
        border-radius: 0;            /* optional: make edges flush */
    }

    .comparison-modern {
        flex-direction: column;      /* stack columns vertically */
        gap: 20px;
        width: 100%;                 /* full width */
        margin: 0;                   /* remove any container margin */
    }

    .comparison-column {
        width: 100%;                 /* take full width */
        padding: 15px;               /* reduce padding for mobile */
    }

    .vs-separator {
        margin: 20px auto;           /* center the VS circle */
    }
}

/* ================== LEARNING JOURNEY SECTION ================== */
.learning-journey {
    background-color: var(--light-brown);
    border-radius: var(--rounded);
    margin: 15px 60px 25px;
}

.journey-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.journey-content {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
}

.timeline-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.timeline-card {
    background-color: var(--white);
    border-radius: var(--rounded);
    box-shadow: var(--shadow);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-card:hover {
    transform: translateY(-5px);
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary-brown);
}

.timeline-image {
    width: 100%;
    height: 180px;
    border-radius: var(--rounded);
    object-fit: cover;
    margin-bottom: 20px;
}

.timeline-card h3 {
    color: var(--primary-brown);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.timeline-card p {
    color: #666;
    font-size: 0.95rem;
}

/* ================== STUDENT LIFE SECTION ================== */
.tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    padding: 12px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    position: relative;
}

.tab-btn.active {
    color: var(--primary-brown);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-brown);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.student-video {
    width: 100%;
    height: 400px;
    border-radius: var(--rounded);
    margin-bottom: 30px;
}

.gallery-carousel {
    display: flex;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-carousel::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 auto;
    width: 300px;
    height: 200px;
    margin-right: 15px;
    border-radius: var(--rounded);
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================== HIRING COMPANIES SECTION ================== */
.companies-scroll {
    overflow: hidden;
    position: relative;
    height: 200px;
}

.companies-row {
    display: flex;
    position: absolute;
    animation: scroll-horizontal 20s linear infinite;
}

.companies-row:nth-child(even) {
    animation-direction: reverse;
    top: 100px;
}

.company-logo {
    margin: 0 30px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================== MEDIA SECTION ================== */
.media-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 0 15px;
}

.media-card {
    background-color: var(--white);
    border-radius: var(--rounded);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.media-image {
    height: 200px;
    overflow: hidden;
}

.media-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-card:hover .media-image img {
    transform: scale(1.05);
}

.media-content {
    padding: 20px;
}

.media-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.media-source {
    font-weight: 600;
    color: var(--primary-brown);
    margin-bottom: 10px;
}

/* ================== COUNSELLOR CTA SECTION ================== */
.counsellor-cta {
    text-align: center;
    background-color: var(--light-pink);
    padding: 60px 0;
    border-radius: var(--rounded);
    margin: 15px 60px 25px;
}

/* ================== MODAL ================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeInUp 0.4s ease;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary-brown);
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-brown);
}

/* Simple animation */
@keyframes fadeInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


/* ================== FAQ SECTION ================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: var(--rounded);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 20px;
    background-color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f9f9f9;
}

.faq-answer.open {
    padding: 20px;
    max-height: 300px;
}

/* ================== FOOTER ================== */
footer {
    background: linear-gradient(120deg, #000000, #b30000); /* black to red gradient */
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: var(--section-margin);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-logo {
    display: flex;
    flex-direction: column; /* stack logo + text vertically */
    align-items: flex-start; /* keep aligned to left */
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 80px; /* increased size */
    width: auto;
    margin: 0 0 10px 0;
    max-width: 100%; /* responsive */
}

.footer-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.4;
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    color: var(--white);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-brown);
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
}

/* ✅ Responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-logo {
        align-items: center; /* center on mobile */
        text-align: center;
    }
    .footer-logo-text {
        font-size: 1.2rem;
    }
}

/* ================== WHATSAPP FLOAT ================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

         /* ================== POPUP STYLES ================== */
        .admissions-popup {
            display: none;
            position: fixed;
            inset: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 15, 15, 0.6);
            backdrop-filter: blur(6px);
            z-index: 9999;
            animation: fadeIn 0.4s ease;
        }

        .popup-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 85%;
            max-width: 850px;
            background: #fff;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
            display: flex;
            overflow: hidden;
            animation: scaleIn 0.4s ease;
            max-height: 90vh;
        }

        .popup-left {
            flex: 1;
            padding: 40px;
            background: linear-gradient(135deg, #e62020 0%, #6b3100 100%);
            color: #fff;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .popup-title {
            font-size: 2rem;
            margin-bottom: 15px;
            position: relative;
            padding-bottom: 10px;
        }

        .popup-title::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background: #fff;
        }

        .popup-features {
            list-style: none;
            margin: 25px 0;
            padding: 0;
        }

        .popup-feature-item {
            display: flex;
            align-items: center;
            margin-bottom: 14px;
            font-size: 1rem;
            gap: 12px;
        }

        .popup-feature-item i {
            width: 35px;
            height: 35px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-shrink: 0;
        }

        .popup-button {
            display: inline-block;
            background: #fff;
            color: #e62020;
            padding: 12px 28px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            margin-top: 15px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            text-align: center;
        }

        .popup-button:hover {
            transform: translateY(-3px);
            background: #ffd700;
            color: #000;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        }

        .popup-right {
            flex: 1;
            background: #f5f5f5;
            display: flex;
            align-items: center;
            justify-content: center;
        }

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

        .popup-close {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 18px;
            color: #fff;
            background: rgba(255, 255, 255, 0.25);
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 10;
        }

        .popup-close:hover {
            background: rgba(255, 255, 255, 0.4);
            transform: rotate(90deg);
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes scaleIn {
            from {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.9);
            }
            to {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1);
            }
        }

        /* ================== RESPONSIVE STYLES ================== */
        @media screen and (max-width: 768px) {
            .popup-content {
                flex-direction: column;
                width: 90%;
                max-height: 85vh;
                overflow: hidden;
            }
            
            .popup-left {
                padding: 25px;
                order: 2;
                flex: none;
                max-height: none;
                overflow: visible;
            }
            
            .popup-right {
                order: 1;
                flex: none;
                height: 200px;
                overflow: hidden;
            }
            
            .popup-title {
                font-size: 1.6rem;
            }
            
            .popup-feature-item {
                font-size: 0.9rem;
            }
            
            .popup-feature-item i {
                width: 30px;
                height: 30px;
                font-size: 0.9rem;
            }
            
            .popup-button {
                padding: 10px 20px;
                font-size: 0.9rem;
            }
        }

        @media screen and (max-width: 480px) {
            .popup-content {
                width: 95%;
                max-height: 90vh;
            }
            
            .popup-left {
                padding: 20px;
            }
            
            .popup-title {
                font-size: 1.4rem;
            }
            
            .popup-features {
                margin: 15px 0;
            }
            
            .popup-feature-item {
                margin-bottom: 12px;
            }
            
            .popup-right {
                height: 180px;
            }
        }

        /* Special layout for very small devices */
        @media screen and (max-height: 600px) and (max-width: 768px) {
            .popup-content {
                max-height: 95vh;
            }
            
            .popup-right {
                height: 150px;
            }
            
            .popup-left {
                padding: 15px;
            }
            
            .popup-features {
                margin: 10px 0;
            }
            
            .popup-feature-item {
                margin-bottom: 8px;
                font-size: 0.85rem;
            }
        }

/* ================== HEADER STYLES ================== */
.header {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--rounded, 12px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin: 0 40px 25px;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 52px;
    width: 100px;
    border-radius: 50%;
    object-fit: contain;
}

.institute-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.nav-wrapper {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a i {
    color: var(--primary-brown, #e62020);
    font-size: 1rem;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-brown, #e62020);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary-brown, #e62020);
}

.hamburger {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    margin-left: 15px;
    z-index: 1100;
    color: #333;
    transition: transform 0.3s ease;
}

.hamburger i {
    transition: transform 0.3s ease;
}

/* ================== MENTORS SECTION ================== */
.mentors-section {
    margin: 15px 0 25px;
    padding: 60px 0;
    width: 100%;
    position: relative;
    background: linear-gradient(135deg, #f8f4eb 0%, #fff9f2 100%);
    font-family: 'Poppins', sans-serif;
}

.mentors-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.mentors-carousel {
    overflow: hidden;
    position: relative;
    height: 600px;
    margin: 0 15px;
}

.mentors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    height: 100%;
}

.mentors-column {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.col-track {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mentor-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    padding: 20px;
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
}

.mentor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .15);
}

.mentor-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid #e62020;
}

.mentor-card h3 {
    color: #e62020;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.mentor-card p {
    color: #666;
    margin-bottom: 5px;
    font-size: .9rem;
}

@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes scrollDown {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

.mentors-column.up .col-track {
    animation: scrollUp 28s linear infinite;
}

.mentors-column.down .col-track {
    animation: scrollDown 28s linear infinite;
}

.mentors-carousel:hover .col-track {
    animation-play-state: running !important;
}
/* Tablet & Mobile Screens */
@media (max-width: 1024px) {
    .mentors-grid {
        grid-template-columns: 1fr; /* single column */
        gap: 20px;
        height: auto; /* let content expand naturally */
    }

    .mentors-carousel {
        height: auto;
        margin: 0;
    }

    .mentors-column {
        height: auto;
    }

    .col-track {
        animation: none; /* disable infinite scroll on small screens */
    }

    .mentor-card {
        max-width: 90%;
        margin: 0 auto 20px; /* center cards */
        padding: 15px;
    }

    .mentor-image {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }

    .mentor-card h3 {
        font-size: 1.1rem;
    }

    .mentor-card p {
        font-size: 0.85rem;
    }

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

    .section-heading p {
        text-align: center;
        font-size: 0.95rem;
    }
}

/* Small Mobile Screens */
@media (max-width: 480px) {
    .mentor-card {
        max-width: 95%;
        padding: 12px;
    }

    .mentor-image {
        width: 70px;
        height: 70px;
        margin-bottom: 8px;
    }

    .mentor-card h3 {
        font-size: 1rem;
    }

    .mentor-card p {
        font-size: 0.8rem;
    }

    .section-heading h2 {
        font-size: 1.5rem;
    }

    .section-heading p {
        font-size: 0.85rem;
    }
}

/* ================== RECOGNIZED SECTION ================== */
.recognized-section .recognitions-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin: 0 15px;
}

.recognized-section .recognition-badge {
    --badge-bg: rgba(255, 255, 255, 0.7);
    --badge-border: rgba(255, 255, 255, 0.8);
    --glow: rgba(230, 32, 32, 0.25);
    background: var(--badge-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--badge-border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.recognized-section .recognition-badge:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px var(--glow);
    border-color: rgba(230, 32, 32, 0.4);
}

.recognized-section .badge-inner {
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recognized-section .badge-inner img {
    height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.recognized-section .badge-inner img:hover {
    transform: scale(1.07);
}

/* ================== LEARNING JOURNEY STYLES ================== */
.learning-journey {
    background: url('../images/bg1.avif') center/cover no-repeat fixed;
    border-radius: var(--rounded);
    margin: 15px 60px 25px;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.learning-journey::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 150, 150, 0.55);
    z-index: 1;
    border-radius: var(--rounded);
}

.journey-container {
    position: relative;
    z-index: 2;
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
}

.lj-heading {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.lj-subheading {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
}

.timeline {
    position: relative;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 28px;
    width: 4px;
    height: 100%;
    background: #ddd;
    z-index: 1;
    border-radius: 10px;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 28px;
    width: 4px;
    height: 0;
    background: var(--primary-brown);
    z-index: 2;
    border-radius: 10px;
    transition: height 0.4s ease-in-out;
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    opacity: 0.5;
    transform: translateY(40px);
    transition: all 0.8s ease-in-out;
}

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

.timeline-marker {
    position: absolute;
    left: 18px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 4px solid var(--primary-brown);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(230, 32, 32, 0.5);
    transition: background-color 0.3s, transform 0.3s;
}

.timeline-item.active .timeline-marker {
    background: var(--primary-brown);
    transform: scale(1.2);
}

.timeline-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 50px;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: relative;
}

.timeline-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.timeline-text {
    text-align: left;
}

.timeline-text h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
    color: var(--primary-brown);
}

.timeline-text p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* ================== STUDENT LIFE STYLES ================== */
.tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 22px;
    font-size: 14px;
    border: none;
    background: #f5f5f5;
    color: #444;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tab-btn.active {
    background: #e62020;
    color: #fff;
    box-shadow: 0 6px 14px rgba(230, 32, 32, 0.4);
    transform: translateY(-2px);
}

.tab-btn:hover {
    background: #e62020;
    color: white;
    transform: translateY(-2px);
}

.tab-content {
    display: none;
    text-align: center;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.7s ease-in-out;
}

.student-video {
    width: 100%;
    max-width: 900px;
    height: 450px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================== COMPANIES SECTION ================== */
.companies-section .brand-scroll {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
    margin-top: 25px;
    position: relative;
}

.companies-section .brand-row {
    display: flex;
    gap: 40px;
    width: max-content;
    align-items: center;
}

.companies-section .brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 80px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    padding: 8px 16px;
    transition: transform .3s ease, box-shadow .3s ease;
}

.companies-section .brand-logo:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}

.companies-section .brand-logo img {
    max-height: 52px;
    max-width: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@keyframes brand-scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes brand-scroll-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.companies-section .dir-a {
    animation: brand-scroll-left 30s linear infinite;
}

.companies-section .dir-b {
    animation: brand-scroll-right 30s linear infinite;
}

/* ================== TESTIMONIALS GRID ================== */
.vifd-testimonials .testimonials-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    overflow: hidden;
    margin-top: 30px;
    flex-wrap: wrap;
}

.vifd-testimonials .testimonial-column {
    width: 300px;
    height: 520px;
    overflow: hidden;
    position: relative;
}

.vifd-testimonials .testimonial-track {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.vifd-testimonials .testimonial-card {
    background: #fff;
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}

.vifd-testimonials .testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.vifd-testimonials .testimonial-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.vifd-testimonials .testimonial-card h4 {
    margin: 6px 0 4px;
    font-size: 1.05rem;
    color: #1a1a1a;
}

.vifd-testimonials .testimonial-card p {
    margin: 0;
    color: #6b6b6b;
    font-size: .95rem;
}

.vifd-testimonials .top-to-bottom .testimonial-track {
    animation: vscroll-down 16s linear infinite;
}

.vifd-testimonials .bottom-to-top .testimonial-track {
    animation: vscroll-up 16s linear infinite;
}

@keyframes vscroll-down {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes vscroll-up {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

.vifd-testimonials .testimonial-column:hover .testimonial-track {
    animation-play-state: paused;
}
/* Make testimonial profile images perfectly round on mobile */
@media (max-width: 480px) {
    .vifd-testimonials .testimonial-card img {
        width: 80px !important;    /* adjust size if needed */
        height: 80px !important;
        border-radius: 50% !important; /* ensures circular shape */
        object-fit: cover !important;
        margin-bottom: 8px;
    }
}

/* ================== INDUSTRY LEADER TESTIMONIAL ================== */
.testimonial-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 10px 15px;
    flex-wrap: wrap;
}

.testimonial-slider {
    width: 45%;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.slide.active {
    opacity: 1;
}

.testimonial-content {
    width: 45%;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-content blockquote {
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
}

.testimonial-content p {
    font-weight: bold;
    font-size: 1rem;
    color: #a0522d;
}

/* ================== AUTO SCROLLING IMAGES ================== */
.image-carousel {
    overflow: hidden;
    width: 100%;
    margin-top: 20px;
}

.image-track {
    display: flex;
    gap: 20px;
    animation: scrollImages 35s linear infinite;
}

.image-track img {
    width: 320px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.image-track img:hover {
    transform: scale(1.05);
}

@keyframes scrollImages {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.image-carousel:hover .image-track {
    animation-play-state: paused;
}

/* ================== FEATURED MEDIA MODERN ================== */
.media-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    padding: 0 10px;
}

.media-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.media-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.media-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.media-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.media-card:hover .media-image img {
    transform: scale(1.08);
}

.media-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.media-date {
    font-size: 0.85rem;
    font-weight: 500;
    color: #888;
    margin-bottom: 6px;
}

.media-source {
    font-size: 1rem;
    font-weight: 600;
    color: #a0522d;
    margin-bottom: 10px;
}

.media-content p {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
}

.media-btn {
    display: inline-block;
    background: linear-gradient(135deg, #000000, #ff4646);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s ease;
    text-decoration: none;
}

.media-btn:hover {
    background: linear-gradient(135deg, #ff0040, #ff3e00);
}

/* ================== COUNSELLOR CTA BACKGROUND ================== */
.counsellor-cta {
    background: url("../images/bg.avif") center center/cover no-repeat;
    padding: 80px 20px;
    text-align: center;
    color: #000000;
    border-radius: 12px;
}

/* ================== MODERN SCROLLBAR STYLES ================== */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-brown) 0%, #6B3100 100%);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #6B3100 0%, var(--primary-brown) 100%);
}

::-webkit-scrollbar-corner {
    background: #f1f1f1;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-brown) #f1f1f1;
}

.custom-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-brown) #f1f1f1;
}

.custom-scroll::-webkit-scrollbar {
    width: 8px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: rgba(245, 240, 230, 0.5);
    border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-brown);
    border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #6B3100;
}

/* ================== RESPONSIVE STYLES ================== */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: rgba(255, 248, 235, 0.98);
        width: 280px;
        border-radius: var(--rounded);
        box-shadow: var(--shadow);
        padding: 20px;
        z-index: 1000;
        backdrop-filter: blur(10px);
        flex-direction: column;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .hamburger {
        display: block;
    }
}

@media (max-width: 1200px) {
    .countdown-banner, header, .hero, .cofounders-section, .testimonials, .corporate-section, .certifications, .learning-journey, .counsellor-cta {
        margin-left: 30px;
        margin-right: 30px;
    }
}

@media (max-width: 1024px) {
    .universities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dream-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .countdown-banner, header, .hero, .cofounders-section, .testimonials, .corporate-section, .certifications, .learning-journey, .counsellor-cta {
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .mentors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .vifd-testimonials .testimonial-column {
        width: 280px;
        height: 480px;
    }
    
    .image-track img {
        width: 260px;
        height: 170px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        text-align: left;
    }
    
    .hero-container {
        flex-direction: column;
    }
    
    .hero-content, .hero-image {
        padding-right: 0;
        width: 100%;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .hero-heading {
        font-size: 2.2rem;
    }
    
    .corporate-container {
        flex-direction: column;
    }
    
    .discover-card, .logo-carousel {
        width: 100%;
    }
    
    .discover-card {
        margin-bottom: 30px;
    }
    
    .cert-container {
        flex-direction: column;
    }
    
    .cert-carousel, .cert-content {
        width: 100%;
    }
    
    .cert-carousel {
        margin-bottom: 30px;
    }
    
    .timeline-cards {
        grid-template-columns: 1fr;
    }
    
    .media-cards {
        grid-template-columns: 1fr;
    }
    
    .countdown-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .countdown-banner, header, .hero, .cofounders-section, .testimonials, .corporate-section, .certifications, .learning-journey, .counsellor-cta {
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-image img {
        height: 300px;
        transform: perspective(800px) rotateY(0);
    }
    
    .mentors-carousel {
        height: 800px;
    }
    
    .mentors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mentor-card {
        width: 100%;
    }
    
    .tabs {
        gap: 8px;
    }
    
    .tab-btn {
        font-size: 12px;
        padding: 10px 18px;
    }
    
    .student-video {
        height: 300px;
    }
    
    .companies-section .brand-scroll {
        gap: 14px;
    }
    
    .companies-section .brand-logo {
        min-width: 110px;
        height: 64px;
        padding: 6px 10px;
    }
    
    .companies-section .brand-logo img {
        max-height: 42px;
        max-width: 100px;
    }
    
    .vifd-testimonials .testimonials-grid {
        gap: 18px;
    }
    
    .vifd-testimonials .testimonial-column {
        width: 100%;
        max-width: 360px;
        height: 460px;
    }
    
    .testimonial-container {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-slider, .testimonial-content {
        width: 100%;
    }
    
    .testimonial-slider {
        height: 300px;
    }
    
    .slide img {
        height: 300px;
    }
    
    .image-track img {
        width: 220px;
        height: 150px;
    }
    
    .media-image {
        height: 200px;
    }
    
    .popup-content {
        flex-direction: column;
        width: 90%;
        max-width: 420px;
    }
    
    .popup-left {
        padding: 30px;
        text-align: center;
    }
    
    .popup-title {
        font-size: 1.6rem;
    }
    
    .popup-right {
        height: 220px;
    }
    
    .popup-button {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        border-radius: var(--rounded, 10px);
        padding: 20px;
        width: 280px;
        transform: translateY(-15px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.35s ease;
        gap: 14px;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-menu li {
        margin: 5px 0;
    }
    
    .nav-menu a {
        font-size: 1rem;
        padding: 10px 12px;
        border-radius: 6px;
        transition: background 0.3s ease, color 0.3s ease;
    }
    
    .nav-menu a:hover {
        background: rgba(230, 32, 32, 0.1);
        color: var(--primary-brown, #e62020);
    }
    
    .timeline-content {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-image {
        width: 100%;
        height: 180px;
    }
    
    .timeline {
        padding-left: 20px;
    }
}

@media (max-width: 576px) {
    .universities-grid {
        grid-template-columns: 1fr;
    }
    
    .dream-cards {
        grid-template-columns: 1fr;
    }
    
    .section-heading h2 {
        font-size: 2rem;
    }
    
    .hero-heading {
        font-size: 1.8rem;
    }
    
    .hero-subheading {
        font-size: 1.2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .countdown-banner, header {
        margin: 10px 10px 15px;
    }
    
    .hero, .cofounders-section, .testimonials, .corporate-section, .certifications, .learning-journey, .counsellor-cta {
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .hero-image img {
        height: 250px;
    }
    
    .countdown-timer {
        gap: 5px;
    }
    
    .countdown-unit {
        min-width: 35px;
        padding: 5px;
    }
    
    .mentors-carousel {
        height: 850px;
    }
    
    .mentors-grid {
        grid-template-columns: 1fr;
    }
    
    .mentors-column.down .col-track {
        animation: scrollUp 28s linear infinite;
    }
    
    .section-heading h2 {
        font-size: 1.8rem;
    }
    
    .recognized-section .recognitions-wrap {
        gap: 18px;
    }
    
    .recognized-section .badge-inner {
        padding: 14px 18px;
    }
    
    .recognized-section .badge-inner img {
        height: 34px;
    }
    
    .tab-btn {
        font-size: 11px;
        padding: 8px 12px;
    }
    
    .student-video {
        height: 220px;
    }
    
    .companies-section .brand-logo {
        min-width: 92px;
        height: 54px;
        padding: 6px 8px;
    }
    
    .companies-section .brand-logo img {
        max-height: 36px;
        max-width: 80px;
    }
    
    .certifications {
        margin: 15px 15px 25px;
        padding: 50px 0;
    }
    
    .cert-slide {
        height: 250px;
    }
    
    .cert-content h2 {
        font-size: 1.7rem;
    }
    
    .header {
        margin: 0 15px 20px;
    }
    
    .institute-name {
        font-size: 0.85rem;
    }
    
    .logo-img {
        height: 45px;
        width: 45px;
    }
    
    .recognized-section .badge-inner {
        padding: 12px 14px;
    }
    
    .recognized-section .badge-inner img {
        height: 28px;
    }
    
    .image-track img {
        width: 180px;
        height: 120px;
    }
}

/* Add to your CSS file */
body.popup-open {
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Ensure header maintains proper width when popup is open */
.header {
    transition: padding-right 0.3s ease;
}

/* Make sure all main content containers maintain proper width */
.container, section, .hero, .countdown-banner {
    max-width: 100%;
    box-sizing: border-box;
}

/* Prevent horizontal scrolling */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}
/* Mobile Screens: Full-width, no side margins */
@media (max-width: 480px) {
    section[data-aos="fade-up"] {
        margin: 0 !important;           /* remove left/right margins */
        padding-left: 15px;             /* optional small padding for content */
        padding-right: 15px;
    }

    .tabs {
        flex-wrap: wrap;                 /* wrap tabs for small screens */
        gap: 10px;
        justify-content: flex-start;     /* align tabs nicely */
    }

    .tab-btn {
        flex: 1 1 45%;                  /* two tabs per row approx */
        font-size: 0.9rem;              /* adjust font size */
        padding: 10px;
    }

    .tab-content {
        width: 100%;                     /* full width */
    }

    .student-video {
        width: 100% !important;          /* iframe full width */
        height: auto;                     /* adjust height proportionally */
        aspect-ratio: 16 / 9;             /* maintain video ratio */
    }
}

/* Industry Leader Testimonial Section */
.testimonial-section {
    margin: 15px 60px 25px;
}

.testimonial-container {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap; /* allow wrapping if needed */
}

/* Image Slider */
.testimonial-slider {
    flex: 1;
}

.testimonial-slider img {
    width: 100%;
    max-width: 100%;
    height: auto;      /* auto height to maintain aspect ratio */
    border-radius: 12px;
    object-fit: cover;
    display: block;    /* ensure the image is visible */
}

/* Content */
.testimonial-content {
    flex: 1;
}

.testimonial-content blockquote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 10px;
}

.testimonial-content p {
    font-size: 0.95rem;
    color: #555;
}

/* ================= MOBILE FRIENDLY ================= */
@media (max-width: 768px) {
    .testimonial-section {
        margin: 15px 15px 25px;
    }

    .testimonial-container {
        flex-direction: column; /* stack image on top */
        gap: 20px;
    }

    .testimonial-slider,
    .testimonial-content {
        width: 100%;
    }

    .testimonial-slider img {
        height: auto;       /* make sure image height is automatic */
        max-height: 400px;  /* optional: limit height */
    }

    .testimonial-content blockquote,
    .testimonial-content p {
        text-align: center;
    }
}
