/* ==========================================================================
   TARAGONJ HORENDRA NARAYAN HIGH SCHOOL & COLLEGE (THNUMB)
   Oxford University Inspired Stylesheet
   Color Palette: Oxford Navy (#002147), Gold (#C5A059), Crimson (#900C3F)
   ========================================================================== */

:root {
    /* Color Tokens */
    --oxford-navy: #002147;
    --oxford-navy-dark: #00142e;
    --oxford-navy-light: #003366;
    --oxford-gold: #c5a059;
    --oxford-gold-light: #e5c378;
    --oxford-gold-dark: #9d7b32;
    --oxford-crimson: #900c3f;
    --oxford-crimson-light: #b81450;
    
    --bg-main: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-gold: rgba(197, 160, 89, 0.4);

    --shadow-sm: 0 2px 8px rgba(0, 33, 71, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 33, 71, 0.12);
    --shadow-lg: 0 16px 36px rgba(0, 33, 71, 0.18);
    --shadow-gold: 0 4px 20px rgba(197, 160, 89, 0.35);

    /* Fonts */
    --font-heading: 'Merriweather', 'Cinzel', serif;
    --font-sans: 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif;
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

[data-theme="dark"] {
    --bg-main: #0a111e;
    --bg-card: #121c2d;
    --bg-card-hover: #1b2940;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #24344d;
    --border-gold: rgba(197, 160, 89, 0.6);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.6);
}

/* RESET & BASE */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

a {
    color: var(--oxford-navy);
    text-decoration: none;
    transition: color var(--transition-fast);
}
[data-theme="dark"] a {
    color: var(--oxford-gold-light);
}

a:hover {
    color: var(--oxford-gold);
}

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

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

/* UTILITY BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.btn-gold {
    background: linear-gradient(135deg, var(--oxford-gold) 0%, var(--oxford-gold-dark) 100%);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--oxford-gold-light) 0%, var(--oxford-gold) 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-navy {
    background-color: var(--oxford-navy);
    color: #ffffff;
}

.btn-navy:hover {
    background-color: var(--oxford-navy-dark);
    color: var(--oxford-gold-light);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
    background: #ffffff;
    color: var(--oxford-navy);
    border-color: #ffffff;
}

.btn-outline-navy {
    background: transparent;
    border-color: var(--oxford-navy);
    color: var(--oxford-navy);
}

[data-theme="dark"] .btn-outline-navy {
    border-color: var(--oxford-gold);
    color: var(--oxford-gold);
}

.btn-outline-navy:hover {
    background: var(--oxford-navy);
    color: #ffffff;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-glass:hover {
    background: rgba(197, 160, 89, 0.9);
    color: #ffffff;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
}

.btn-xl {
    padding: 16px 34px;
    font-size: 1.15rem;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.w-100 { width: 100%; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.my-3 { margin-top: 1rem; margin-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* 1. TOP UTILITY BAR */
.top-bar {
    background-color: var(--oxford-navy-dark);
    color: #cbd5e1;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--oxford-gold);
    padding: 6px 0;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.info-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.info-item i {
    color: var(--oxford-gold);
}

.top-link {
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.top-link:hover {
    color: var(--oxford-gold-light);
}

.top-link.highlight {
    background: var(--oxford-crimson);
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 600;
}
.top-link.highlight:hover {
    background: var(--oxford-crimson-light);
}

.lang-btn, .theme-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    transition: all var(--transition-fast);
}

.lang-btn:hover, .theme-btn:hover {
    background: var(--oxford-gold);
    color: #ffffff;
}

/* 2. MAIN BRAND HEADER */
.main-header {
    background-color: var(--oxford-navy);
    color: #ffffff;
    padding: 16px 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 100;
}

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

.brand-identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-crest {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 2px solid var(--oxford-gold);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
    background: #ffffff;
}

.institution-name-bn {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: 0.2px;
}

.institution-name-en {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--oxford-gold-light);
    letter-spacing: 0.5px;
}

.institution-sub {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-search-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #cbd5e1;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    transition: all var(--transition-fast);
}

.header-search-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--oxford-gold);
    color: #ffffff;
}

.kbd-shortcut {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: monospace;
}

.mobile-toggle-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--oxford-gold);
    color: #ffffff;
    font-size: 1.4rem;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

/* 3. NAVIGATION MENU (STICKY BAR) */
.nav-bar {
    background-color: var(--oxford-navy-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 3px solid var(--oxford-gold);
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: var(--shadow-md);
    transition: background-color var(--transition-fast);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-item.active .nav-link,
.nav-link:hover {
    background: var(--oxford-navy);
    color: var(--oxford-gold-light);
}

.nav-link i.fa-chevron-down {
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: var(--oxford-navy);
    border: 1px solid var(--oxford-gold-dark);
    border-top: 3px solid var(--oxford-gold);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: 1000;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    color: #cbd5e1;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--transition-fast);
}

.dropdown-menu a i {
    color: var(--oxford-gold);
    width: 16px;
}

.dropdown-menu a:hover {
    background: var(--oxford-navy-dark);
    color: #ffffff;
    padding-left: 22px;
}

.nav-phone {
    color: var(--oxford-gold-light);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 4. BREAKING NEWS TICKER */
.ticker-bar {
    background: var(--oxford-crimson);
    color: #ffffff;
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
}

.ticker-container {
    display: flex;
    align-items: center;
}

.ticker-label {
    background: rgba(0, 0, 0, 0.25);
    padding: 0 16px;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border-right: 2px solid var(--oxford-gold);
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-items {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: marquee 24s linear infinite;
}

.ticker-items:hover {
    animation-play-state: paused;
}

.ticker-item {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.92rem;
    margin-right: 50px;
    display: inline-flex;
    align-items: center;
}

.ticker-item:hover {
    color: var(--oxford-gold-light);
    text-decoration: underline;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 5. HERO SECTION */
.hero-section {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    color: #ffffff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 10s ease;
}

.hero-section:hover .hero-bg {
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0, 33, 71, 0.92) 0%, rgba(0, 21, 46, 0.78) 60%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
    padding-top: 60px;
    padding-bottom: 60px;
}

.hero-content {
    max-width: 820px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(197, 160, 89, 0.25);
    border: 1px solid var(--oxford-gold);
    color: var(--oxford-gold-light);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(6px);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 18px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #e2e8f0;
    margin-bottom: 32px;
    line-height: 1.7;
    max-width: 750px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-highlights-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.highlight-chip {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.highlight-chip i {
    color: var(--oxford-gold);
}

/* 6. QUICK SERVICES BAR */
.quick-services-section {
    position: relative;
    z-index: 10;
    margin-top: -40px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.quick-card {
    background: var(--bg-card);
    border-top: 4px solid var(--oxford-navy);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-smooth);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.quick-card:hover {
    transform: translateY(-6px);
    border-top-color: var(--oxford-gold);
    box-shadow: var(--shadow-lg);
    background: var(--bg-card-hover);
}

.qc-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(0, 33, 71, 0.08);
    color: var(--oxford-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}
[data-theme="dark"] .qc-icon {
    background: rgba(197, 160, 89, 0.15);
    color: var(--oxford-gold);
}

.quick-card:hover .qc-icon {
    background: var(--oxford-gold);
    color: #ffffff;
}

.qc-info h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.qc-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.qc-arrow {
    margin-left: auto;
    color: var(--oxford-gold);
    opacity: 0.5;
    transition: all var(--transition-fast);
}

.quick-card:hover .qc-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* 7. SECTION & DIVIDER COMMONS */
.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 48px;
}

.section-header.text-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.section-tag {
    display: inline-block;
    color: var(--oxford-gold-dark);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
[data-theme="dark"] .section-tag {
    color: var(--oxford-gold-light);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

.oxford-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 16px 0 24px;
}

.oxford-divider span {
    width: 60px;
    height: 2px;
    background: var(--oxford-gold);
}

.oxford-divider i {
    color: var(--oxford-navy);
    font-size: 1.1rem;
}
[data-theme="dark"] .oxford-divider i {
    color: var(--oxford-gold);
}

.section-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* 8. DISCOVER GRID */
.discover-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.discover-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.discover-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-gold);
}

.dc-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.dc-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--oxford-navy);
    color: var(--oxford-gold-light);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--oxford-gold);
}

.dc-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dc-body h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.dc-body p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex: 1;
    line-height: 1.6;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--oxford-navy);
}
[data-theme="dark"] .read-more-link {
    color: var(--oxford-gold-light);
}

.read-more-link i {
    transition: transform var(--transition-fast);
}

.read-more-link:hover i {
    transform: translateX(6px);
}

/* 9. STATS SECTION */
.stats-section {
    background: linear-gradient(135deg, var(--oxford-navy) 0%, var(--oxford-navy-dark) 100%);
    color: #ffffff;
    padding: 60px 0;
    position: relative;
    border-top: 3px solid var(--oxford-gold);
    border-bottom: 3px solid var(--oxford-gold);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-icon {
    font-size: 2.2rem;
    color: var(--oxford-gold);
    margin-bottom: 12px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    display: inline-block;
    line-height: 1;
    color: #ffffff;
}

.stat-plus {
    font-size: 2rem;
    font-weight: 700;
    color: var(--oxford-gold);
    display: inline-block;
    margin-left: 2px;
}

.stat-label {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-top: 8px;
    font-weight: 500;
}

/* 10. PRINCIPAL SECTION */
.principal-section {
    background-color: var(--bg-main);
}

.principal-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    padding: 40px;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 40px;
    align-items: center;
}

.principal-image-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--oxford-gold);
}

.principal-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.principal-badge {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: rgba(0, 33, 71, 0.9);
    color: var(--oxford-gold-light);
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(6px);
}

.principal-heading {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 6px 0 16px;
}

.principal-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--oxford-navy);
    border-left: 4px solid var(--oxford-gold);
    padding-left: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
}
[data-theme="dark"] .principal-quote {
    color: var(--oxford-gold-light);
}

.principal-text-body p {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.principal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.pm-info h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pm-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 11. NOTICE BOARD SECTION */
.notice-section {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.notice-search-box {
    position: relative;
    min-width: 280px;
}

.notice-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.notice-search-box input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-sans);
    transition: all var(--transition-fast);
}

.notice-search-box input:focus {
    border-color: var(--oxford-gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

.notice-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.n-tab {
    background: transparent;
    border: none;
    padding: 12px 20px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.n-tab:hover, .n-tab.active {
    color: var(--oxford-navy);
    border-bottom-color: var(--oxford-gold);
}
[data-theme="dark"] .n-tab:hover, [data-theme="dark"] .n-tab.active {
    color: var(--oxford-gold-light);
}

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.notice-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--oxford-navy);
    border-radius: var(--radius-sm);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all var(--transition-fast);
}

.notice-card:hover {
    transform: translateX(6px);
    border-left-color: var(--oxford-gold);
    box-shadow: var(--shadow-sm);
    background: var(--bg-card);
}

.n-date-box {
    background: var(--oxford-navy);
    color: #ffffff;
    border-radius: var(--radius-sm);
    padding: 10px;
    text-align: center;
    min-width: 65px;
    line-height: 1.1;
    box-shadow: var(--shadow-sm);
}

.n-date-day {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--oxford-gold-light);
}

.n-date-month {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

.n-details {
    flex: 1;
}

.n-cat-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--oxford-crimson);
    margin-bottom: 4px;
    background: rgba(144, 12, 63, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
}

.n-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    cursor: pointer;
}

.n-title:hover {
    color: var(--oxford-navy);
}
[data-theme="dark"] .n-title:hover {
    color: var(--oxford-gold);
}

.n-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.n-action-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--oxford-navy);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}
[data-theme="dark"] .n-action-btn {
    border-color: var(--border-gold);
    color: var(--oxford-gold-light);
}

.n-action-btn:hover {
    background: var(--oxford-navy);
    color: #ffffff;
    border-color: var(--oxford-navy);
}

/* 12. ACADEMIC SECTION */
.academic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.academic-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.academic-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-gold);
}

.ac-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--oxford-navy) 0%, var(--oxford-navy-dark) 100%);
    color: var(--oxford-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.ac-level {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--oxford-crimson);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.academic-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 6px 0 12px;
}

.academic-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.ac-features {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ac-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ac-features li i {
    color: var(--oxford-gold);
}

/* 13. GALLERY SECTION */
.gallery-filters {
    display: flex;
    gap: 8px;
}

.g-btn {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.g-btn.active, .g-btn:hover {
    background: var(--oxford-navy);
    color: var(--oxford-gold-light);
    border-color: var(--oxford-navy);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 260px;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0, 33, 71, 0.9) 0%, rgba(0, 33, 71, 0.2) 60%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: #ffffff;
}

.gallery-overlay p {
    font-size: 0.82rem;
    color: var(--oxford-gold-light);
    margin-bottom: 12px;
}

.g-view-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--oxford-gold);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: transform var(--transition-fast);
}

.g-view-btn:hover {
    transform: scale(1.1);
}

/* 14. ADMISSION CTA SECTION */
.admission-cta-section {
    background: linear-gradient(135deg, var(--oxford-navy-dark) 0%, var(--oxford-navy) 100%);
    color: #ffffff;
    padding: 60px 0;
    border-top: 4px solid var(--oxford-gold);
}

.admission-cta-box {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: center;
}

.acta-tag {
    display: inline-block;
    background: var(--oxford-crimson);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.acta-content h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.25;
}

.acta-content p {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin-bottom: 24px;
    line-height: 1.6;
}

.acta-steps {
    display: flex;
    gap: 20px;
}

.astep {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
}

.astep-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--oxford-gold);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.acta-action {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.acta-helpline {
    color: var(--oxford-gold-light);
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 15. CONTACT SECTION */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
}

.c-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.c-info-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.c-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(0, 33, 71, 0.08);
    color: var(--oxford-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
[data-theme="dark"] .c-icon {
    background: rgba(197, 160, 89, 0.15);
    color: var(--oxford-gold);
}

.c-info-card h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.c-info-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.social-links-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.social-links-bar a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--oxford-navy);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-links-bar a:hover {
    background: var(--oxford-gold);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 36px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.contact-form-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.contact-form-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.c-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--oxford-gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

.form-alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-top: 14px;
}

.form-alert.success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid #10b981;
    color: #047857;
}

/* 16. FOOTER */
.main-footer {
    background-color: var(--oxford-navy-dark);
    color: #cbd5e1;
    border-top: 4px solid var(--oxford-gold);
}

.footer-top {
    padding: 70px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 36px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.footer-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--oxford-gold);
}

.f-title-bn {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.f-title-en {
    font-size: 0.8rem;
    color: var(--oxford-gold-light);
}

.f-desc {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 16px;
}

.f-eiin-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--oxford-gold-light);
    font-weight: 600;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 2px;
    background: var(--oxford-gold);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.footer-links a i {
    font-size: 0.75rem;
    color: var(--oxford-gold);
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.f-address, .f-contact {
    display: flex;
    gap: 10px;
    font-size: 0.88rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

.f-address i, .f-contact i {
    color: var(--oxford-gold);
    margin-top: 3px;
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer-socials a:hover {
    background: var(--oxford-gold);
    color: #ffffff;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px 0;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.oxford-tagline {
    color: var(--oxford-gold-light);
    font-weight: 500;
}

/* BACK TO TOP */
.back-to-top-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--oxford-gold);
    color: #ffffff;
    border: none;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    background: var(--oxford-navy);
    transform: translateY(-4px);
}

/* FLOATING ASSISTANT WIDGET */
.floating-widget {
    position: fixed;
    bottom: 28px;
    left: 28px;
    background: var(--oxford-navy);
    color: #ffffff;
    border: 2px solid var(--oxford-gold);
    padding: 10px 18px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 90;
    transition: all var(--transition-fast);
}

.floating-widget:hover {
    transform: scale(1.05);
    background: var(--oxford-navy-dark);
}

.widget-icon {
    font-size: 1.2rem;
    color: var(--oxford-gold);
}

.widget-label {
    font-weight: 600;
    font-size: 0.9rem;
}

/* CHAT PANEL */
.chat-widget-panel {
    position: fixed;
    bottom: 90px;
    left: 28px;
    width: 360px;
    height: 460px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--oxford-gold);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 95;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: var(--oxford-navy);
    color: #ffffff;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-title i {
    color: var(--oxford-gold);
    font-size: 1.4rem;
}

.chat-title h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.chat-title span {
    font-size: 0.72rem;
    color: #cbd5e1;
}

#chat-close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    max-width: 85%;
    line-height: 1.5;
}

.chat-bubble.bot {
    background: var(--bg-main);
    color: var(--text-primary);
    border-bottom-left-radius: 2px;
    border: 1px solid var(--border-color);
}

.chat-bubble.user {
    background: var(--oxford-navy);
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-quick-btns {
    padding: 8px 14px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    background: var(--bg-main);
    border-top: 1px solid var(--border-color);
}

.cq-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 4px 10px;
    font-size: 0.78rem;
    cursor: pointer;
    white-space: nowrap;
    color: var(--text-secondary);
}

.cq-btn:hover {
    background: var(--oxford-gold);
    color: #ffffff;
}

.chat-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--border-color);
    gap: 8px;
}

#chat-user-input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    outline: none;
    font-size: 0.85rem;
    background: var(--bg-main);
    color: var(--text-primary);
}

#chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--oxford-gold);
    color: #ffffff;
    border: none;
    cursor: pointer;
}

/* 17. MODAL STYLING */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 20, 46, 0.75);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

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

.modal-box {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border-top: 4px solid var(--oxford-gold);
    width: 100%;
    max-width: 540px;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-box.modal-lg {
    max-width: 780px;
}

.modal-header {
    padding: 18px 24px;
    background: var(--oxford-navy);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--oxford-gold-light);
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* Result Card Display inside modal */
.result-display-card {
    background: var(--bg-main);
    border: 2px solid var(--oxford-gold);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 20px;
}

.res-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.res-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.gpa-badge {
    color: #059669;
    font-weight: 800;
}

.res-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 0.88rem;
}

.res-table th, .res-table td {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.res-table th {
    background: var(--oxford-navy);
    color: #ffffff;
}

/* Portal Login Modal Toggles */
.portal-type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.p-type-btn {
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    font-family: var(--font-sans);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
}

.p-type-btn.active {
    background: var(--oxford-navy);
    color: var(--oxford-gold-light);
    border-color: var(--oxford-navy);
}

/* Speech Full Avatar */
.speech-author-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.speech-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--oxford-gold);
    object-fit: cover;
}

/* Lightbox Modal */
.lightbox-box {
    background: transparent;
    border: none;
    box-shadow: none;
    max-width: 90vw;
    text-align: center;
    position: relative;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #ffffff;
    font-size: 2.5rem;
}

#lightbox-img {
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

.lightbox-caption {
    color: #ffffff;
    margin-top: 12px;
    font-size: 1rem;
    font-family: var(--font-heading);
}

/* RESPONSIVE DESIGN (Media Queries) */
@media (max-width: 1024px) {
    .discover-grid, .academic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .principal-card {
        grid-template-columns: 1fr;
    }
    .principal-image-wrap {
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .desktop-only { display: none; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 0.98rem; }
    
    .header-container {
        flex-direction: row;
    }
    .institution-name-bn { font-size: 1.15rem; }
    .institution-name-en { font-size: 0.85rem; }
    .institution-sub { font-size: 0.72rem; }
    .header-search-btn span, .header-search-btn kbd { display: none; }
    
    .mobile-toggle-btn { display: block; }
    
    .nav-bar {
        display: none;
    }
    .nav-bar.mobile-open {
        display: block;
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100vh;
        background: var(--oxford-navy-dark);
        z-index: 999;
        overflow-y: auto;
        padding-top: 60px;
    }
    .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    .nav-link {
        padding: 16px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 1.1rem;
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.2);
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }
    .discover-grid, .academic-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
    .admission-cta-box, .grid-2 {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}
