/* ===== ROOT VARIABLES ===== */
:root {
    --primary-blue: #1e3a8a;
    --primary-light: #3b82f6;
    --accent-gold: #fbbf24;
    --accent-gold-light: #fef3c7;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE (mobile-first) ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button { font-family: inherit; border: none; cursor: pointer; background: none; }
ul { list-style: none; }

/* ===== TOP BAR ===== */
.top-bar {
    background: linear-gradient(135deg, var(--primary-blue), #1e40af);
    color: var(--white);
    padding: 0.35rem 0;
    font-size: 0.75rem;
    border-bottom: 2px solid var(--accent-gold);
}
.top-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0.6rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.3rem 0.5rem;
}
.top-left, .top-right {
    display: flex;
    align-items: center;
}
.top-left {
    order: 1;
    gap: 0.3rem;
}
.top-right {
    order: 2;
    flex: 0 0 auto;
}

/* Top menu - Mobile single line with shrinking size & gap */
.Top-menu {
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.Top-menu::-webkit-scrollbar {
    display: none;
}
.Top-menu ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    white-space: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.Top-menu ul li {
    flex-shrink: 0;
    padding: 0;
    margin: 0;
}
.Top-menu ul li a {
    color: inherit;
    text-decoration: none;
    font-size: clamp(0.52rem, 1.7vw, 0.66rem);
    white-space: nowrap;
    display: inline-block;
    padding: 0.1rem 0.12rem;
    cursor: pointer;
    transition: var(--transition);
}
.Top-menu ul li a:hover {
    color: var(--accent-gold);
}
.lang-selector { display: flex; align-items: center; gap: 0.3rem; }
.lang-selector select {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
}
.lang-selector select option { background: var(--primary-blue); }
.tagline { display: none; } /* hidden on mobile, shown from 600px */
.contact-info { display: flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; }
.contact-info a { color: var(--white); }
.contact-info a:hover { color: var(--accent-gold); }
.tnea-code {
    background: var(--accent-gold);
    color: var(--primary-blue);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.7rem;
}
.social-icons { display: flex; gap: 0.5rem; }
.social-icons a {
    color: var(--white);
    opacity: 0.85;
    font-size: 1.1rem;
    transition: var(--transition);
}
.social-icons a:hover { opacity: 1; transform: translateY(-2px); }

/* ===== HEADER (class kept as .header per original markup) ===== */
.header {
    background: rgba(255, 255, 255);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
/* Applied by nav.js when window.scrollY > 10 */
.header.scrolled {
    background: rgba(255, 255, 255);
    box-shadow: var(--shadow-lg);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.6rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-section { display: flex; align-items: center; gap: 0.5rem; }
.logo { height: 64px; width: auto; max-width: 100%; object-fit: contain; }

.header-actions { display: flex; align-items: center; gap: 0.4rem; }

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.3rem;
    padding: 0.35rem;
    border-radius: 50%;
}
.btn-icon:hover { background: #f1f5f9; }

.btn-erp, .btn-apply-now {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.7rem;
}
.btn-erp { background: #e2e8f0; color: var(--text-dark); }
.btn-erp:hover { background: #cbd5e1; transform: translateY(-2px); }
.btn-apply-now {
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(251, 191, 36, 0.3);
}
.btn-apply-now:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4); }
/* hide ERP/Apply text labels on small screens, icon-only */
.btn-erp span:not(.material-symbols-outlined),
.btn-apply-now span:not(.material-symbols-outlined) { display: none; }

/* original enquire button — untouched styling, just repositioned */
.btn-enquire {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: var(--white);
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.7rem;
    box-shadow: var(--shadow-md);
}
.btn-enquire:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.4rem;
    border-radius: 8px;
    font-size: 1.4rem;
}

/* ===== NAVIGATION (mobile-first: slide-down accordion panel) ===== */
.navbar {
    max-height: 0;
    overflow: hidden;
    background: var(--white);
    border-top: 1px solid #e5e7eb;
    transition: max-height 0.35s ease;
}
.navbar.active { max-height: 80vh; overflow-y: auto; }

.nav-list { display: flex; flex-direction: column; }
.nav-item { border-bottom: 1px solid #f1f5f9; }

.nav-link {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 0.9rem 1rem;
    position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--primary-blue); }

/* Dropdown toggle chevron for mobile accordion items */
.has-dropdown > .nav-link::after {
    content: 'expand_more';
    font-family: 'Material Symbols Outlined';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}
.has-dropdown.open > .nav-link::after { transform: translateY(-50%) rotate(180deg); }

.dropdown {
    max-height: 0;
    overflow: hidden;
    background: #f8fafc;
    transition: max-height 0.3s ease;
}
.has-dropdown.open .dropdown { max-height: 600px; }

.dropdown ul { padding: 0 1rem; }
.dropdown ul li a {
    display: block;
    padding: 0.6rem 0.5rem;
    color: var(--text-gray);
    font-size: 0.88rem;
}
.dropdown ul li a:hover { color: var(--primary-blue); }

.mega-grid { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.5rem 1rem 1rem; }
.mega-col h4 {
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0.5rem 0 0.3rem;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 0.25rem;
}
.mega-col ul li a { padding: 0.4rem 0; }
.mega-col.highlight {
    background: linear-gradient(135deg, var(--accent-gold-light), #fde68a);
    border-radius: 12px;
    padding: 0.8rem;
    margin-top: 0.4rem;
}
.mega-col.highlight h4 { border-bottom-color: #d97706; }
.btn-apply {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}
.btn-apply:hover { background: var(--primary-light); }

/* ===== NEWS TICKER (unchanged) ===== */
.news-ticker {
    background: var(--accent-gold-light);
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 2px solid var(--accent-gold);
    flex-wrap: nowrap;
}
.news-label {
    background: var(--accent-gold);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.5rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.marquee-container { flex: 1; overflow: hidden; padding: 0.5rem 0; }
.marquee-content { display: flex; animation: scroll 30s linear infinite; white-space: nowrap; }
.marquee-content span { padding: 0 1.5rem; font-weight: 500; font-size: 0.8rem; }

.btn-learn-more {
  display: inline-block;
  background: #c9a227;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 40px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  text-align: center;
  cursor: pointer;
  border: none;
}
.btn-apply-now{
    background:rgb(72, 134, 210);
    color:white;
    width:150px;
    padding: 10px;
    padding-left: 20px;
    font-weight:600;
    font-size:15px;
    margin-top:10px;

}

.btn-learn-more:hover {
  background: #b08a1f;
  box-shadow: 0 6px 16px rgba(201, 162, 39, 0.45);
  transform: translateY(-2px);
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   RESPONSIVE — mobile-first, single breakpoint set
   ============================================================ */

/* Small phones */
@media (max-width: 380px) {
    .logo { height: 50px; }
    .top-bar { font-size: 0.65rem; }
    .top-container { padding: 0 0.35rem; gap: 0.2rem 0.3rem; }
    .Top-menu ul { gap: 0.15rem; }
    .Top-menu ul li a { font-size: 0.5rem; padding: 0.05rem 0.1rem; }
    .tnea-code { font-size: 0.58rem; padding: 0.15rem 0.4rem; }
    .btn-erp, .btn-apply-now, .btn-enquire { padding: 0.3rem 0.5rem; }
    .news-label { font-size: 0.5rem; padding: 0.4rem 0.5rem; }
}

/* Tablet & Desktop Top Bar Alignment */
@media (min-width: 768px) {
    .logo { height: 76px; }
    .top-container {
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 0 1rem;
        gap: 1rem;
    }
    .top-left {
        order: 1;
        flex-shrink: 0;
    }
    .Top-menu {
        order: 2;
        width: auto;
        flex: 1;
        overflow-x: visible;
    }
    .Top-menu ul {
        justify-content: center;
        gap: 1.1rem;
    }
    .Top-menu ul li a {
        font-size: 0.72rem;
        padding: 0.2rem 0.35rem;
    }
    .top-right {
        order: 3;
        flex-shrink: 0;
    }
}

@media (min-width: 1200px) {
    .Top-menu ul {
        gap: 1.5rem;
    }
    .Top-menu ul li a {
        font-size: 0.75rem;
    }
}

/* Tablet and up */
@media (min-width: 600px) {
    
    .top-container { flex-direction: row; justify-content: space-between; text-align: left; }
    .tagline { display: inline; }
    .btn-erp span:not(.material-symbols-outlined),
    .btn-apply-now span:not(.material-symbols-outlined) { display: inline; }
}

/* Desktop and up — switch from accordion to horizontal hover mega menu */
@media (min-width: 1024px) {
    .mobile-menu-toggle { display: none; }

    .header-container { padding: 0.6rem 1.5rem; }
    .logo { height: 88px; }

    .navbar {
        max-height: none;
        overflow: visible;
        border-top: 1px solid #e5e7eb;
    }
    .nav-list {
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0.4rem 1rem;
    }
    .nav-item { border-bottom: none; position: relative; }
    .nav-link {
        padding: 0.5rem 1rem;
        border-radius: 8px;
    }
    .nav-link:hover, .nav-link.active { background: rgba(30, 58, 138, 0.08);padding: 10px;}
    .has-dropdown > .nav-link::after { content: 'expand_more'; position: static; margin-left: 0.2rem; transform: none; font-size: 1rem; display: inline-block; vertical-align: middle; }
    .has-dropdown.open > .nav-link::after,
    .has-dropdown:hover > .nav-link::after { transform: rotate(180deg); }

    /* Floating dropdown / mega-menu panel with animated opacity + translateY, 300ms.
       Default-aligns to the LEFT edge of its nav-item (not centered) so it can
       never start off-screen. nav.js adds .align-right on items near the
       right edge of the viewport so the panel opens leftward instead. */
    .dropdown {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: auto;
        min-width: 220px;
        max-width: calc(100vw - 2rem); /* safety clamp on narrow desktop windows */
        max-height: none;
        overflow: visible;
        background: var(--white);
        border-radius: 12px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(0, 0, 0, 0.05);
        padding: 0.8rem 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity 300ms ease, transform 300ms ease, visibility 300ms;
        z-index: 999;
    }
    /* Right-aligned fallback: right edge of panel lines up with right edge
       of the nav-item instead of the left edge, used when the panel would
       otherwise overflow the viewport's right side. */
    .dropdown.align-right {
        left: auto;
        right: 0;
    }
    .dropdown ul { padding: 0; }
    .dropdown ul li a { padding: 0.5rem 1.5rem; color: var(--text-dark); }
    .dropdown ul li a:hover { background: #f1f5f9; color: var(--primary-blue); }

    .nav-item:hover .dropdown,
    .nav-item.open .dropdown,
    .nav-item:focus-within .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mega-menu {
        min-width: 700px;
        max-width: min(700px, calc(100vw - 2rem));
        padding: 1.5rem;
    }
    .mega-grid { flex-direction: row; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; padding: 0; }
    .mega-col.highlight { margin-top: 0; }
}
/* ===== HERO (mobile) ===== */
.hero {
    position: relative;
    background: url('../images/nihero.webp') center/cover;
    color: var(--white);
    padding: 4rem 1rem;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30,58,138,0.3), rgba(15,23,42,0.8));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 2rem;
}

.btn-primary, .btn-secondary {
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 280px;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--text-dark);
}
.btn-primary:hover { background: #f59e0b; transform: translateY(-3px); box-shadow: var(--shadow-xl); }

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); transform: translateY(-3px); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-card {
    text-align: center;
}
.stat-card strong {
    display: block;
    font-size: 1.8rem;
    color: var(--accent-gold);
    font-weight: 800;
    margin-bottom: 0.3rem;
}
.stat-card span { font-size: 0.8rem; opacity: 0.9; font-weight: 500; }

/* ===== PROGRAMS (mobile) ===== */
.programs {
    padding: 3rem 1rem;
    background: var(--white);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.section-header p {
    font-size: 1rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

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

.program-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.card-icon .material-symbols-outlined { font-size: 32px; color: var(--white); }

.program-card h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.program-card > p { color: var(--text-gray); margin-bottom: 1rem; font-weight: 500; }

.card-features {
    margin: 1rem 0;
    flex-grow: 1;
}
.card-features li {
    padding: 0.4rem 0;
    color: var(--text-gray);
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.card-features li::before { content: '✓'; color: #10b981; font-weight: bold; flex-shrink: 0; }

.btn-learn-more {
    background: transparent;
    color: var(--primary-blue);
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    font-weight: 600;
    margin-top: auto;
}
.btn-learn-more:hover { background: var(--primary-blue); color: var(--white); }

/* Program Colors (unchanged) */
.pink { border-color: #ec4899; }
.pink .card-icon { background: linear-gradient(135deg, #ec4899, #db2777); }
.green { border-color: #10b981; }
.green .card-icon { background: linear-gradient(135deg, #10b981, #059669); }
.blue { border-color: #3b82f6; }
.blue .card-icon { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.indigo { border-color: #6366f1; }
.indigo .card-icon { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.teal { border-color: #14b8a6; }
.teal .card-icon { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.red { border-color: #ef4444; }
.red .card-icon { background: linear-gradient(135deg, #ef4444, #dc2626); }

/* ===== WHY CHOOSE (mobile) ===== */
.why-choose {
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #f8fafc, #e0f2fe);
}

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

.feature-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-card .material-symbols-outlined {
    font-size: 40px;
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-gray); line-height: 1.6; }

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: var(--text-light);
    padding: 2rem 1rem 1.5rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;          /* Mobile: single column */
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 700;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 0.5rem;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.5;
}

.footer-section ul li .material-symbols-outlined {
    font-size: 18px;
    color: var(--accent-gold);
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.8rem;
}
/* ===== SOCIAL LINKS BAR ===== */
.footer-social {
    text-align: center;
    padding: 1.2rem 0 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    flex-wrap: wrap;
}

.footer-social a {
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0;          /* no roundness – keep it sharp */
    background: rgba(255,255,255,0.05);
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a i {
    font-size: 1.05rem;
    color: var(--text-light);
}

.footer-social a:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

.footer-social a:hover i {
    color: var(--accent-gold);
}

/* ===== Tablet: 600px and up ===== */
@media (min-width: 600px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);   /* 2 columns on tablet */
    }
}

/* ===== Desktop: 1024px and up ===== */
@media (min-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(4, 1fr);   /* 4 columns on desktop */
    }
}
/* ============================================================
   TABLET & DESKTOP ENHANCEMENTS (Mobile-first media queries)
   ============================================================ */

/* Tablet: 600px and up */
@media (min-width: 600px) {
    .top-container { flex-direction: row; justify-content: space-between; }
    .tagline { display: inline; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 2.8rem; }
    .hero-actions { flex-direction: row; justify-content: center; }
    .btn-primary, .btn-secondary { width: auto; max-width: 200px; }
}

/* Desktop: 1024px and up */
@media (min-width: 1024px) {
    .mobile-menu-toggle { display: none; }
    .navbar {
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
        padding: 0.75rem 1rem;
        border-top: 1px solid #e5e7eb;
    }
    .nav-link {
        padding: 0.5rem 0;
        border-bottom: none;
    }
    .programs-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-container { grid-template-columns: repeat(3, 1fr); }
    .hero-title { font-size: 4rem; }
    .hero-subtitle { font-size: 1.25rem; }
    .hero { padding: 8rem 1rem; min-height: 600px; }
    .programs, .why-choose { padding: 6rem 1rem; }
    .section-header h2 { font-size: 3rem; }
}

/* Hide Google Translate banner */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
    position: static !important;
}

/* Hide Google Translate tooltip */
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}


/* ===== PROMO / ANNOUNCEMENT POPUP MODAL ===== */
.popup-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 10px;
}

.popup-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-modal-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Mobile screen: 20% gap around the popup (80vw width & 80vh max height) */
    width: 80vw;
    max-width: 80vw;
    max-height: 80vh;
    animation: popupScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popupScaleIn {
    0% {
        transform: scale(0.85);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-modal-body {
    position: relative;
    width: 100%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
    background: #000000;
}

.popup-modal-slide {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.popup-modal-slide.active {
    display: flex;
}

.popup-modal-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

/* Cut X mark close button */
.popup-modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 34px;
    height: 34px;
    background: #ffffff;
    color: #0f172a;
    border-radius: 50%;
    border: 2px solid #ffffff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    z-index: 10;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.popup-modal-close:hover {
    background: #f1f5f9;
    color: #dc2626;
    transform: scale(1.1);
}

/* Multi-image navigation arrows & dots */
.popup-modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 5;
}

.popup-modal-arrow:hover {
    background: rgba(0, 0, 0, 0.85);
}

.popup-modal-arrow.prev { left: 8px; }
.popup-modal-arrow.next { right: 8px; }

.popup-modal-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.popup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.popup-dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

/* Desktop sizing: centered elegant poster */
@media (min-width: 768px) {
    .popup-modal-container {
        width: auto;
        max-width: 480px;
        max-height: 85vh;
    }
    .popup-modal-body {
        max-height: 85vh;
    }
    .popup-modal-img {
        max-height: 85vh;
    }
}

/* ===== HERO SLIDER SECTION (PURE IMAGE SLIDER - NO OVERLAY, NO TEXT, NO BUTTONS) ===== */
.hero.hero-slider-section {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 750px;
    min-height: 280px;
    padding: 0;
    margin: 0;
    display: block;
    background: #0f172a;
}

.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

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

/* Manual Navigation Arrows */
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.65);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.hero-slider-arrow:hover {
    background: var(--accent-gold);
    color: var(--primary-blue);
    border-color: var(--accent-gold);
    transform: translateY(-50%) scale(1.08);
}

.hero-slider-arrow.prev { left: 24px; }
.hero-slider-arrow.next { right: 24px; }

/* Pagination Dots */
.hero-slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.hero-slider-dot.active {
    background: var(--accent-gold);
    width: 28px;
    border-radius: 12px;
}

/* ===== STATS BAR SECTION ===== */
.stats-bar-section {
    background: #0f172a;
    padding: 1.8rem 1rem;
    color: var(--white);
    border-bottom: 2px solid var(--accent-gold);
    position: relative;
    z-index: 2;
}

.stats-bar-section .stats-grid {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ===== CAMPUS SPOTLIGHT SECTION (PREVIOUS HERO IMAGE - SOLID & NON-TRANSPARENT) ===== */
.campus-spotlight {
    background: #ffffff;
    padding: 5rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    z-index: 1;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* LEFT SIDE: Previous Hero Image */
.spotlight-media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.spotlight-image-wrapper {
    position: relative;
    width: 100%;
}

.spotlight-img {
    width: 100%;
    height: auto;
    min-height: 340px;
    max-height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.spotlight-media:hover .spotlight-img {
    transform: scale(1.02);
}

.spotlight-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: #ffffff;
    color: var(--primary-blue);
    padding: 0.8rem 1.1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--accent-gold);
}

.spotlight-badge .material-symbols-outlined {
    color: #16a34a;
    font-size: 1.3rem;
}

/* RIGHT SIDE: Solid Content (No transparency) */
.spotlight-content {
    background: #ffffff;
    padding: 0.5rem;
}

.spotlight-eyebrow {
    color: #d97706;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.6rem;
}

.spotlight-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 1.2rem;
}

.spotlight-desc {
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.spotlight-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.8rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.spotlight-features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 500;
}

.spotlight-features li .material-symbols-outlined {
    color: #16a34a;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.spotlight-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-spotlight-primary {
    background: var(--primary-blue);
    color: #ffffff;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-spotlight-primary:hover {
    background: #1e40af;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 58, 138, 0.3);
}

.btn-spotlight-secondary {
    background: #f8fafc;
    color: var(--primary-blue);
    border: 1px solid #cbd5e1;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-spotlight-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-2px);
}

/* Desktop 2-column layout */
@media (min-width: 992px) {
    .spotlight-grid {
        grid-template-columns: 1.05fr 1fr;
        gap: 3.5rem;
    }
    .spotlight-title {
        font-size: 2.6rem;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .hero.hero-slider-section {
        width: 100%;
        aspect-ratio: 4 / 3;
        height: auto;
        min-height: unset;
        max-height: none;
        padding: 0;
    }
    .hero-slider-arrow {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
    .hero-slider-arrow.prev { left: 8px; }
    .hero-slider-arrow.next { right: 8px; }
    .hero-slider-dots { bottom: 12px; }
    .campus-spotlight {
        padding: 3rem 1rem;
    }
    .spotlight-title {
        font-size: 1.7rem;
    }
}

/* ===== FOOTER CONTACT & MAP ===== */
.footer-contact-section .footer-address-item {
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.5;
    margin-bottom: 0.6rem;
}

.footer-contact-section .footer-address-item .material-symbols-outlined {
    margin-top: 3px;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.footer-map-container {
    margin-top: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-map-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(251, 191, 36, 0.15);
    color: var(--accent-gold) !important;
    border: 1px solid rgba(251, 191, 36, 0.4);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
    width: fit-content;
}

.footer-map-link-btn:hover {
    background: var(--accent-gold);
    color: var(--primary-blue) !important;
    transform: translateY(-2px);
}

.footer-map-embed {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ===== REACH US PAGE ===== */
.reach-us-container {
    max-width: 1200px;
}

.reach-us-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 900px) {
    .reach-us-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

.reach-us-iframe-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #cbd5e1;
    flex: 1;
}

.btn-open-gmaps {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e8f0fe;
    color: #1a4b6d !important;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    transition: var(--transition);
}

.btn-open-gmaps:hover {
    background: #c9a227;
    color: #ffffff !important;
}

.btn-directions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
    transition: var(--transition);
}

.btn-directions:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 58, 138, 0.35);
    color: #ffffff !important;
}
