/* ================================================================
   BMC Public Website — Design System CSS
   Palette: Navy (#1e3a5f) + Royal Blue (#2563eb) + Amber (#f59e0b)
   Font: Inter only
   ================================================================ */

/* ── CSS Variables ───────────────────────────────────────────── */
:root {
  --primary:        #1e3a5f;
  --primary-d:      #152d4a;
  --primary-l:      #2a5080;
  --blue:           #2563eb;
  --blue-l:         #3b82f6;
  --accent:         #f59e0b;
  --accent-d:       #d97706;
  --green:          #059669;
  --red:            #dc2626;
  --teal:           #0891b2;

  --text:           #0f172a;
  --text-2:         #475569;
  --text-3:         #94a3b8;
  --bg:             #ffffff;
  --bg-2:           #f8fafc;
  --bg-3:           #f1f5f9;
  --border:         #e2e8f0;
  --border-2:       #cbd5e1;

  --shadow-sm:      0 1px 2px rgba(0,0,0,0.05);
  --shadow:         0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-md:      0 4px 6px rgba(0,0,0,0.06), 0 10px 30px rgba(0,0,0,0.08);
  --shadow-lg:      0 20px 60px rgba(0,0,0,0.12);
  --shadow-blue:    0 8px 24px rgba(37,99,235,0.25);

  --radius:         10px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --transition:     0.22s cubic-bezier(0.4,0,0.2,1);

  --font:           'Inter', system-ui, -apple-system, sans-serif;

  /* Legacy aliases used in pages */
  --secondary:      var(--blue);
  --secondary-l:    var(--blue-l);
  --light:          var(--bg-2);
  --light-2:        var(--bg-3);
  --white:          var(--bg);
}

/* ── Dark Mode ───────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:      #0f172a;
  --bg-2:    #1e293b;
  --bg-3:    #273549;
  --border:  #334155;
  --border-2:#475569;
  --text:    #f1f5f9;
  --text-2:  #94a3b8;
  --text-3:  #64748b;
  --shadow:  0 1px 3px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.2), 0 10px 30px rgba(0,0,0,0.25);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
  /* aliases */
  --white:   var(--bg);
  --light:   var(--bg-2);
  --light-2: var(--bg-3);
}
[data-theme="dark"] body          { background: var(--bg); color: var(--text); }
[data-theme="dark"] .site-nav .nav-main { background: #0f172a; border-bottom-color: #1e293b; }
[data-theme="dark"] .site-nav .nav-topbar { background: #0a111f; }
[data-theme="dark"] .site-section { background: var(--bg); }
[data-theme="dark"] .sec-alt      { background: var(--bg-2); }
[data-theme="dark"] .card-glass   { background: var(--bg-2); border-color: var(--border); }
[data-theme="dark"] .breadcrumb-wrap { background: var(--bg-2); }
[data-theme="dark"] .mega-menu    { background: #0f172a; border-color: #1e293b; }
[data-theme="dark"] .mega-col a   { color: var(--text-2); }
[data-theme="dark"] .mega-col a:hover { color: var(--blue-l); }
[data-theme="dark"] .dropdown-menu-custom { background: #0f172a; border-color: #1e293b; }
[data-theme="dark"] .dropdown-menu-custom li a { color: var(--text-2); }
[data-theme="dark"] .dropdown-menu-custom li a:hover { background: var(--bg-2); color: var(--blue-l); }
[data-theme="dark"] .news-card    { background: var(--bg-2); border-color: var(--border); }
[data-theme="dark"] .faculty-card { background: var(--bg-2); }
[data-theme="dark"] .event-card   { background: var(--bg-2); }
[data-theme="dark"] .notice-item  { background: var(--bg-2); }
[data-theme="dark"] .dept-card    { background: var(--bg-2); }
[data-theme="dark"] .download-item { background: var(--bg-2); }
[data-theme="dark"] .testimonial-card { background: var(--bg-2); }
[data-theme="dark"] .value-card   { background: var(--bg-2); }
[data-theme="dark"] .why-card     { background: var(--bg-2); }
[data-theme="dark"] .club-card    { background: var(--bg-2); }
[data-theme="dark"] .career-card  { background: var(--bg-2); }
[data-theme="dark"] .admission-step { background: var(--bg-2); }
[data-theme="dark"] .contact-form-card { background: var(--bg-2); }
[data-theme="dark"] .form-control-custom { background: var(--bg-3); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .admin-sidebar { background: #0f172a; border-right: 1px solid #1e293b; }
[data-theme="dark"] .admin-main   { background: var(--bg-2); }
[data-theme="dark"] .admin-topbar { background: var(--bg); border-bottom-color: var(--border); }
[data-theme="dark"] .admin-card   { background: var(--bg); border-color: var(--border); }
[data-theme="dark"] .stat-widget  { background: var(--bg); }
[data-theme="dark"] .partner-logo { background: var(--bg-2); }
[data-theme="dark"] .highlight-box { background: var(--bg-2); }
[data-theme="dark"] .gallery-filter-btn { background: var(--bg-2); border-color: var(--border); color: var(--text-2); }

/* ── Reset + Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
  padding-top: 100px; /* topbar ~32px + main nav 68px */
}
img   { max-width: 100%; height: auto; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; padding: 0; margin: 0; }
button { font-family: var(--font); cursor: pointer; }

/* ── Loading Screen ──────────────────────────────────────────── */
#site-loader {
  position: fixed; inset: 0; z-index: 99999;
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
[data-theme="dark"] #site-loader { background: #0f172a; }
#site-loader.loaded { opacity: 0; visibility: hidden; }
.loader-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Navbar ──────────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: all var(--transition);
}
/* Hide topbar on scroll */
.site-nav.scrolled .nav-topbar { display: none !important; }
.site-nav.scrolled .nav-main   {
  box-shadow: 0 1px 0 var(--border), var(--shadow-md);
}

/* Topbar */
.nav-topbar {
  background: var(--primary);
  padding: 6px 0;
  font-size: .76rem;
  line-height: 1;
}
.nav-topbar a { color: rgba(255,255,255,.75); transition: color var(--transition); display: inline-flex; align-items: center; gap: 4px; }
.nav-topbar a:hover { color: #fff; }
.topbar-sep { color: rgba(255,255,255,.3); }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-right a { color: rgba(255,255,255,.7); font-size: .82rem; padding: 3px; transition: color var(--transition); }
.topbar-right a:hover { color: var(--accent); }

/* Main nav */
.nav-main {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
  height: 64px;
  display: flex; align-items: center;
}
[data-theme="dark"] .nav-main { background: #0f172a; border-bottom-color: #1e293b; }

/* Logo */
.site-logo {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px; background: var(--primary); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; flex-shrink: 0;
}
/* Real logo image — navbar */
.site-logo-img {
  width: 42px; height: 42px; object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  flex-shrink: 0;
}
.logo-name { display: block; color: var(--primary); font-weight: 800; font-size: 1.1rem; line-height: 1; }
.logo-sub  { display: block; color: var(--text-2); font-size: .63rem; font-weight: 400; margin-top: 2px; }
[data-theme="dark"] .logo-name { color: #fff; }
[data-theme="dark"] .logo-sub  { color: var(--text-3); }

/* Desktop nav links — compact, all items visible */
.nav-links {
  display: flex; align-items: center; gap: 0;
  flex: 1; /* take available space */
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 0 8px; height: 64px;
  color: var(--text-2); font-size: .81rem; font-weight: 500;
  transition: color var(--transition); white-space: nowrap;
  position: relative;
}
.nav-caret { font-size: .55em; opacity: .6; transition: transform var(--transition); }
.has-mega:hover .nav-caret,
.has-dropdown:hover .nav-caret { transform: rotate(180deg); opacity: 1; }
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--primary); }
[data-theme="dark"] .nav-links > li > a:hover,
[data-theme="dark"] .nav-links > li > a.active { color: #fff; }
.nav-links > li > a.active::after {
  content: ''; position: absolute; bottom: 0; left: 8px; right: 8px; height: 2px;
  background: var(--blue); border-radius: 2px 2px 0 0;
}

/* Mega Menu — left-aligned to avoid off-screen clipping */
.mega-menu {
  position: absolute; top: 100%; left: 0;
  background: #fff; border-radius: 0 var(--radius) var(--radius) var(--radius);
  box-shadow: var(--shadow-lg); border-top: 3px solid var(--blue);
  padding: 24px; min-width: 640px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(6px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 200;
}
[data-theme="dark"] .mega-menu { background: #1e293b; border-color: var(--blue); }
.has-mega:hover .mega-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
.mega-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mega-col h6 {
  color: var(--primary); font-weight: 700; font-size: .68rem;
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: 10px;
  padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .mega-col h6 { color: var(--blue-l); border-color: var(--border); }
.mega-col a {
  display: flex; align-items: center; gap: 8px; color: var(--text-2);
  font-size: .82rem; padding: 5px 6px; border-radius: 6px;
  transition: all var(--transition);
}
.mega-col a:hover { color: var(--blue); background: var(--bg-3); }
.mega-col a i { width: 14px; color: var(--blue); font-size: .78rem; flex-shrink: 0; }
[data-theme="dark"] .mega-col a:hover { background: var(--bg-3); }

/* Dropdown */
.dropdown-menu-custom {
  position: absolute; top: 100%; left: 0;
  background: #fff; border-radius: 0 var(--radius) var(--radius) var(--radius);
  box-shadow: var(--shadow-lg); border-top: 3px solid var(--blue);
  padding: 6px 0; min-width: 200px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(6px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 200;
}
/* Items on right side of nav: align right edge */
.dropdown-right { left: auto; right: 0; border-radius: var(--radius) 0 var(--radius) var(--radius); }
[data-theme="dark"] .dropdown-menu-custom { background: #1e293b; }
.has-dropdown:hover .dropdown-menu-custom {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.dropdown-menu-custom li a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; color: var(--text-2); font-size: .82rem;
  transition: background var(--transition), color var(--transition);
}
.dropdown-menu-custom li a:hover { background: var(--bg-3); color: var(--blue); }
.dropdown-menu-custom li a i { width: 14px; color: var(--blue); font-size: .78rem; flex-shrink: 0; }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* Search toggle button */
.search-toggle {
  width: 32px; height: 32px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 7px; display: flex; align-items: center; justify-content: center;
  color: var(--text-2); transition: all var(--transition); cursor: pointer;
  text-decoration: none; font-size: .85rem;
}
.search-toggle:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Theme toggle (lives in topbar, white context) */
.theme-toggle {
  width: 28px; height: 28px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8); transition: all var(--transition); font-size: .82rem;
  cursor: pointer;
}
.theme-toggle:hover { background: rgba(255,255,255,.25); color: #fff; }

/* Hamburger button */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; width: 36px; height: 36px;
}
.hamburger span {
  display: block; width: 20px; height: 2px; background: var(--text-2);
  border-radius: 2px; transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Mobile Menu (slide-in drawer) ───────────────────────────── */
.mobile-menu {
  position: fixed; top: 0; right: -320px; bottom: 0; width: 300px;
  background: var(--bg); z-index: 1100;
  overflow-y: auto; overflow-x: hidden;
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
}
.mobile-menu.open { right: 0; }
[data-theme="dark"] .mobile-menu { background: #0f172a; }

.mobile-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 1099; opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu-overlay.open { opacity: 1; visibility: visible; }

.mobile-menu-inner { display: flex; flex-direction: column; min-height: 100%; }

.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0;
  position: sticky; top: 0; background: var(--bg); z-index: 1;
}
[data-theme="dark"] .mobile-menu-header { background: #0f172a; border-color: #1e293b; }

.mobile-menu-close {
  width: 32px; height: 32px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--text-2); cursor: pointer; font-size: .9rem; transition: all var(--transition);
}
.mobile-menu-close:hover { background: var(--red); color: #fff; border-color: var(--red); }

.mobile-nav-list { flex: 1; padding: 8px 0; }
.mobile-nav-list > li { border-bottom: 1px solid var(--border); }
[data-theme="dark"] .mobile-nav-list > li { border-color: #1e293b; }

.mobile-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; color: var(--text); font-size: .9rem; font-weight: 500;
  transition: all var(--transition);
}
.mobile-nav-link i { width: 16px; color: var(--blue); font-size: .85rem; flex-shrink: 0; }
.mobile-nav-link:hover { color: var(--blue); background: var(--bg-2); }
.mobile-nav-link.active { color: var(--blue); font-weight: 600; background: rgba(37,99,235,.06); }

.mobile-nav-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 13px 18px; background: none; border: none;
  color: var(--text); font-size: .9rem; font-weight: 500; cursor: pointer;
  font-family: var(--font); transition: all var(--transition);
}
.mobile-nav-toggle:hover { color: var(--blue); background: var(--bg-2); }
.mobile-nav-toggle > span { display: flex; align-items: center; gap: 10px; }
.mobile-nav-toggle > span i { width: 16px; color: var(--blue); font-size: .85rem; }
.toggle-icon { transition: transform 0.25s ease; font-size: .7rem; color: var(--text-3); flex-shrink: 0; }
.mobile-has-sub.open .toggle-icon { transform: rotate(180deg); }

.mobile-sub-list {
  display: none; background: var(--bg-2);
  padding: 4px 0 4px 44px; border-top: 1px solid var(--border);
}
[data-theme="dark"] .mobile-sub-list { background: #1e293b; border-color: #273549; }
.mobile-has-sub.open .mobile-sub-list { display: block; }
.mobile-sub-list li a {
  display: block; padding: 9px 18px 9px 0;
  color: var(--text-2); font-size: .84rem;
  transition: color var(--transition);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .mobile-sub-list li a { border-color: #273549; }
.mobile-sub-list li:last-child a { border-bottom: none; }
.mobile-sub-list li a:hover { color: var(--blue); }

.mobile-menu-footer {
  padding: 16px; border-top: 1px solid var(--border); flex-shrink: 0;
  background: var(--bg);
}
[data-theme="dark"] .mobile-menu-footer { background: #0f172a; border-color: #1e293b; }

/* Search Overlay */
#searchOverlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15,23,42,.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
#searchOverlay.active { opacity: 1; visibility: visible; }
.search-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: rgba(255,255,255,.7);
  font-size: 1.4rem; cursor: pointer; transition: color var(--transition);
}
.search-close:hover { color: #fff; }
.search-form { display: flex; gap: 8px; width: min(660px, 90vw); }
.search-form input {
  flex: 1; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius); padding: 13px 18px; color: #fff; font-size: 1rem;
  font-family: var(--font); outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.search-form input::placeholder { color: rgba(255,255,255,.4); }
.search-form input:focus { border-color: var(--blue); background: rgba(255,255,255,.15); }
.search-form button {
  background: var(--blue); border: none; border-radius: var(--radius);
  padding: 13px 20px; color: #fff; font-size: 1rem; cursor: pointer;
  transition: background var(--transition);
}
.search-form button:hover { background: var(--primary); }

/* ── Hero / Slider ───────────────────────────────────────────── */
.hero-section {
  position: relative; overflow: hidden;
  height: 100vh; min-height: 560px; max-height: 900px;
  margin-top: -100px; /* match body padding-top */
}
.hero-swiper { height: 100%; width: 100%; }
.hero-slide  { position: relative; height: 100%; display: flex; align-items: center; }
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary-d) 0%, var(--primary) 60%, var(--primary-l) 100%);
  z-index: 0;
}
.hero-bg-img {
  position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%;
  opacity: .35; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(21,45,74,.88) 0%, rgba(21,45,74,.5) 65%, transparent 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; color: #fff; }
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,158,11,.15); border: 1px solid rgba(245,158,11,.35);
  color: var(--accent); font-size: .75rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 99px; margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(1.9rem, 5vw, 3.4rem); font-weight: 800;
  line-height: 1.15; margin-bottom: 18px;
}
.hero-title span { color: var(--accent); }
.hero-subtitle {
  font-size: 1rem; color: rgba(255,255,255,.8);
  max-width: 500px; line-height: 1.7; margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-hero-primary {
  background: var(--accent); color: var(--primary); border: none;
  padding: 13px 26px; border-radius: var(--radius); font-weight: 700; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 8px; transition: all var(--transition);
}
.btn-hero-primary:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-hero-secondary {
  background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.3);
  padding: 13px 26px; border-radius: var(--radius); font-weight: 500; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 8px; transition: all var(--transition);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }

/* Hero swiper controls */
.hero-section .swiper-button-next,
.hero-section .swiper-button-prev {
  width: 42px; height: 42px; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #fff;
  transition: all var(--transition);
}
.hero-section .swiper-button-next::after,
.hero-section .swiper-button-prev::after { font-size: .85rem; font-weight: 700; }
.hero-section .swiper-button-next:hover,
.hero-section .swiper-button-prev:hover { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.hero-section .swiper-pagination-bullet { background: rgba(255,255,255,.5); width: 7px; height: 7px; }
.hero-section .swiper-pagination-bullet-active { background: var(--accent); width: 22px; border-radius: 4px; }

/* Hero Stats bar */
.hero-stats {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  background: rgba(21,45,74,.88);
  border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0;
}
.hero-stat-item { text-align: center; padding: 0 20px; }
.hero-stat-item + .hero-stat-item { border-left: 1px solid rgba(255,255,255,.1); }
.hero-stat-num  { font-size: 1.8rem; font-weight: 800; color: var(--accent); line-height: 1; }
.hero-stat-label { font-size: .72rem; color: rgba(255,255,255,.65); margin-top: 3px; }

/* ── Page Hero (inner pages) ─────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-d) 0%, var(--primary) 60%, var(--primary-l) 100%);
  padding: 56px 0 40px; color: #fff;
  position: relative; overflow: hidden;
  min-height: 220px; display: flex; align-items: center;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,.04) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(255,255,255,.03) 0%, transparent 40%);
  pointer-events: none;
}
.page-hero-label {
  font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; color: rgba(255,255,255,.55); margin-bottom: 8px;
}
.page-hero-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800;
  line-height: 1.2; margin-bottom: 8px;
}
.page-hero-subtitle { font-size: .92rem; color: rgba(255,255,255,.7); }
.page-hero-sub      { font-size: .88rem; color: rgba(255,255,255,.6); }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb-wrap {
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.breadcrumb { margin: 0; gap: 6px; }
.breadcrumb-item a { color: var(--blue); font-size: .83rem; }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: var(--text-2); font-size: .83rem; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-3); }

/* ── Section Utilities ───────────────────────────────────────── */
.site-section { padding: 76px 0; background: var(--bg); }
.site-section.py-sm { padding: 44px 0; }
.sec-alt  { background: var(--bg-2) !important; }
.sec-dark { background: var(--primary); color: #fff; }
.sec-dark .sec-label  { color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.3); }
.sec-dark .sec-title  { color: #fff; }
.sec-dark .sec-subtitle { color: rgba(255,255,255,.7); }

.section-header { text-align: center; margin-bottom: 48px; }
.sec-label {
  display: inline-block;
  color: var(--blue); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px;
  border-left: 3px solid var(--blue); padding-left: 10px;
}
.sec-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 800;
  color: var(--primary); line-height: 1.25; margin-bottom: 12px;
}
[data-theme="dark"] .sec-title { color: #fff; }
.sec-subtitle {
  color: var(--text-2); max-width: 560px; margin: 0 auto;
  font-size: .93rem; line-height: 1.7;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary-custom {
  background: var(--blue); color: #fff; border: none;
  padding: 11px 24px; border-radius: var(--radius); font-weight: 600; font-size: .88rem;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  transition: all var(--transition); box-shadow: var(--shadow-blue);
}
.btn-primary-custom:hover {
  background: var(--primary); color: #fff;
  box-shadow: 0 8px 24px rgba(30,58,95,.35); transform: translateY(-1px);
}
.btn-outline-custom {
  background: transparent; color: var(--blue); border: 1.5px solid var(--blue);
  padding: 10px 22px; border-radius: var(--radius); font-weight: 600; font-size: .88rem;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  transition: all var(--transition);
}
.btn-outline-custom:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }
.btn-secondary-custom {
  background: var(--bg-2); color: var(--text); border: 1.5px solid var(--border);
  padding: 10px 22px; border-radius: var(--radius); font-weight: 600; font-size: .88rem;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  transition: all var(--transition);
}
.btn-secondary-custom:hover { background: var(--bg-3); border-color: var(--border-2); transform: translateY(-1px); }
.btn-accent {
  background: var(--accent); color: var(--primary); border: none;
  padding: 11px 24px; border-radius: var(--radius); font-weight: 700; font-size: .88rem;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  transition: all var(--transition);
}
.btn-accent:hover { background: var(--accent-d); transform: translateY(-1px); }

/* Download Buttons */
.btn-download {
  background: var(--blue); color: #fff; border: none;
  padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: .8rem;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--transition);
}
.btn-download:hover { background: var(--primary); color: #fff; }
.btn-download-sm {
  background: var(--bg-2); color: var(--blue); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 7px; font-weight: 600; font-size: .78rem;
  display: inline-flex; align-items: center; gap: 5px;
  transition: all var(--transition);
}
.btn-download-sm:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-download-disabled {
  background: var(--bg-3); color: var(--text-3); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 7px; font-weight: 600; font-size: .78rem;
  display: inline-flex; align-items: center; gap: 5px; cursor: not-allowed;
}

/* ── Cards — base ────────────────────────────────────────────── */
.card-glass {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); transition: all var(--transition); overflow: hidden;
}
.card-glass:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* ── News Card ───────────────────────────────────────────────── */
.news-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); transition: all var(--transition);
  height: 100%; display: flex; flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.news-card-img { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-category {
  position: absolute; top: 12px; left: 12px;
  background: var(--blue); color: #fff; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 99px;
}
.news-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.news-card-meta { font-size: .74rem; color: var(--text-3); margin-bottom: 8px; display: flex; gap: 10px; flex-wrap: wrap; }
.news-card-title {
  font-size: .92rem; font-weight: 700; color: var(--text); line-height: 1.45;
  margin-bottom: 10px; flex: 1;
}
.news-card-title a { color: inherit; transition: color var(--transition); }
.news-card-title a:hover { color: var(--blue); }
.news-card-excerpt { font-size: .83rem; color: var(--text-2); line-height: 1.6; margin-bottom: 14px; }
.news-card-link { color: var(--blue); font-size: .8rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.news-card-link:hover { color: var(--primary); }

/* ── Faculty Card ────────────────────────────────────────────── */
.faculty-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); transition: all var(--transition); text-align: center;
}
.faculty-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.faculty-card-img { position: relative; overflow: hidden; }
.faculty-card-img img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.5s ease; }
.faculty-card:hover .faculty-card-img img { transform: scale(1.04); }
.faculty-card-body { padding: 16px 14px; }
.faculty-card-name { font-weight: 700; font-size: .9rem; color: var(--primary); margin-bottom: 3px; }
.faculty-card-role { font-size: .78rem; color: var(--text-2); }
[data-theme="dark"] .faculty-card-name { color: #fff; }

/* ── Event Card ──────────────────────────────────────────────── */
.event-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); display: flex; transition: all var(--transition);
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.event-date-badge {
  background: var(--primary); color: #fff; text-align: center; padding: 16px 14px;
  min-width: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.event-day   { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.event-month { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.event-body  { padding: 14px 16px; flex: 1; }
.event-title { font-weight: 700; font-size: .9rem; color: var(--primary); margin-bottom: 6px; }
.event-meta  { font-size: .76rem; color: var(--text-2); display: flex; gap: 12px; flex-wrap: wrap; }
[data-theme="dark"] .event-title { color: #fff; }

/* ── Events page — full-card styles ─────────────────────────── */
.event-card-date {
  background: var(--primary); color: #fff; text-align: center; padding: 20px 16px;
  min-width: 76px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; flex-shrink: 0; gap: 2px;
}
.event-date-past { background: var(--text-2); }
.event-card-date .event-day   { font-size: 2rem; font-weight: 800; line-height: 1; }
.event-card-date .event-month { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; opacity: .85; }
.event-card-date .event-year  { font-size: .68rem; opacity: .7; margin-top: 2px; }
.event-card-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.event-card-title { font-weight: 700; font-size: 1rem; color: var(--primary); margin: 0; line-height: 1.4; }
.event-card-meta  { font-size: .78rem; color: var(--text-2); display: flex; gap: 14px; flex-wrap: wrap; }
.event-card-desc  { font-size: .85rem; color: var(--text-2); margin: 0; line-height: 1.6; }
.event-card-footer{ display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; font-size: .8rem; color: var(--text-3); }
.event-card-past  { opacity: .82; }
.btn-text { background: none; border: none; padding: 0; font-size: .8rem; color: var(--blue); cursor: pointer; font-weight: 600; }
.btn-text:hover { text-decoration: underline; }
[data-theme="dark"] .event-card-title { color: #9bc5ff; }

/* ── Notice Items ────────────────────────────────────────────── */
.notice-item {
  border-left: 3px solid var(--border); padding: 12px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg); box-shadow: var(--shadow-sm);
  transition: all var(--transition); display: flex; justify-content: space-between;
  align-items: flex-start; gap: 12px;
}
.notice-item:hover { border-left-color: var(--blue); box-shadow: var(--shadow); }
.notice-item.priority-urgent    { border-left-color: var(--red); background: #fff5f5; }
.notice-item.priority-important { border-left-color: var(--accent); background: #fffdf0; }
[data-theme="dark"] .notice-item.priority-urgent    { background: rgba(220,38,38,.08); }
[data-theme="dark"] .notice-item.priority-important { background: rgba(245,158,11,.08); }
.notice-priority { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.notice-title { font-weight: 600; font-size: .87rem; color: var(--text); margin-bottom: 4px; }
.notice-meta  { font-size: .72rem; color: var(--text-3); }

/* Badge priority */
.badge-priority {
  display: inline-block; font-size: .66rem; font-weight: 700; padding: 2px 7px;
  border-radius: 99px; text-transform: uppercase; letter-spacing: .05em;
}
.badge-priority.urgent    { background: #fee2e2; color: var(--red); }
.badge-priority.important { background: #fef3c7; color: #92400e; }

/* ── Stat Cards ──────────────────────────────────────────────── */
.stat-card {
  text-align: center; padding: 32px 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.stat-card:hover { background: rgba(255,255,255,.14); transform: translateY(-3px); }
.stat-icon   { font-size: 1.8rem; color: var(--accent); margin-bottom: 12px; }
.stat-number { font-size: 2.6rem; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 5px; }
.stat-suffix { color: var(--accent); }
.stat-label  { font-size: .78rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .06em; }

/* Counter number */
.counter-num { display: inline; }

/* ── Testimonial Card ────────────────────────────────────────── */
.testimonial-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow); position: relative; overflow: hidden; height: 100%;
  transition: all var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-card::before {
  content: '\201C'; position: absolute; top: 12px; right: 18px;
  font-size: 4.5rem; color: var(--bg-3); line-height: 1; font-family: serif;
}
[data-theme="dark"] .testimonial-card::before { color: var(--bg-3); }
.testimonial-text { font-size: .9rem; line-height: 1.8; color: var(--text-2); margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial-author-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--primary-l));
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem;
}
.testimonial-name { font-weight: 700; font-size: .88rem; color: var(--primary); }
.testimonial-role { font-size: .76rem; color: var(--text-3); }
.star-rating      { color: var(--accent); font-size: .78rem; margin-bottom: 2px; }
[data-theme="dark"] .testimonial-name { color: #fff; }

/* ── Department Card ─────────────────────────────────────────── */
.dept-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow); transition: all var(--transition);
  height: 100%; display: flex; flex-direction: column; align-items: flex-start;
}
.dept-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue); transform: translateY(-3px); }
.dept-card-icon {
  width: 50px; height: 50px; background: rgba(37,99,235,.08); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 1.3rem; margin-bottom: 16px;
  transition: all var(--transition);
}
.dept-card:hover .dept-card-icon { background: var(--blue); color: #fff; }
.dept-card-name { font-weight: 700; font-size: .95rem; color: var(--primary); margin-bottom: 8px; }
.dept-card-desc { font-size: .83rem; color: var(--text-2); line-height: 1.6; flex: 1; margin-bottom: 14px; }
.dept-card-link { color: var(--blue); font-size: .8rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
[data-theme="dark"] .dept-card-name { color: #fff; }

/* ── Gallery ─────────────────────────────────────────────────── */
.gallery-grid { columns: 4; column-gap: 10px; }
.gallery-item {
  break-inside: avoid; margin-bottom: 10px; border-radius: var(--radius);
  overflow: hidden; cursor: pointer; position: relative;
}
.gallery-item img { width: 100%; display: block; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-filter-btn {
  background: var(--bg-2); border: 1.5px solid var(--border); color: var(--text-2);
  padding: 7px 16px; border-radius: 99px; font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition); font-family: var(--font);
}
.gallery-filter-btn.active,
.gallery-filter-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tab  {
  background: var(--bg-2); border: 1.5px solid var(--border); color: var(--text-2);
  padding: 7px 16px; border-radius: 99px; font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition); font-family: var(--font);
}
.filter-tab.active,
.filter-tab:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Download Section ────────────────────────────────────────── */
.download-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px; transition: all var(--transition);
}
.download-item:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.download-icon {
  width: 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: #fee2e2; color: var(--red); font-size: 1.1rem; flex-shrink: 0;
  transition: all var(--transition);
}
.download-icon.pdf  { background: #fee2e2; color: #dc2626; }
.download-icon.word { background: #dbeafe; color: #2563eb; }
.download-icon.xlsx { background: #d1fae5; color: #059669; }
.download-name { font-weight: 600; font-size: .87rem; color: var(--text); margin-bottom: 2px; }
.download-cat  { font-size: .72rem; color: var(--text-3); }
.download-btn  { margin-left: auto; color: var(--blue); font-size: .8rem; font-weight: 600; display: flex; align-items: center; gap: 4px; flex-shrink: 0; white-space: nowrap; }
.download-btn:hover { color: var(--primary); }

/* Download category layout */
.download-category { margin-bottom: 28px; }
.download-category-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 2px solid var(--border); margin-bottom: 14px;
}
.download-cat-icon {
  width: 32px; height: 32px; background: var(--primary); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .9rem; flex-shrink: 0;
}
.download-list { display: flex; flex-direction: column; gap: 8px; }
.download-item-icon {
  width: 36px; height: 36px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.download-item-info { flex: 1; min-width: 0; }
.download-item-title { font-weight: 600; font-size: .87rem; color: var(--text); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.download-item-meta  { font-size: .72rem; color: var(--text-3); }
.download-item-action { flex-shrink: 0; }
.file-size-badge {
  display: inline-block; background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-3); font-size: .68rem; font-weight: 600; padding: 2px 7px;
  border-radius: 99px;
}

/* Admission form card */
.admission-form-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow); display: flex; align-items: flex-start; gap: 14px;
  transition: all var(--transition);
}
.admission-form-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
.admission-form-icon {
  width: 44px; height: 44px; background: var(--primary); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; flex-shrink: 0;
}
.admission-form-info { flex: 1; }

/* ── Facilities ──────────────────────────────────────────────── */
.facility-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3; cursor: pointer; background: var(--bg-2);
}
.facility-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.facility-card:hover img { transform: scale(1.07); }
.facility-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(21,45,74,.85) 0%, transparent 60%);
  display: flex; align-items: flex-end; padding: 18px;
  transition: opacity var(--transition);
}
.facility-info { color: #fff; }
.facility-info h5 { font-weight: 700; font-size: .92rem; margin-bottom: 3px; }
.facility-info p  { font-size: .76rem; color: rgba(255,255,255,.75); margin: 0; }

/* ── Why Choose BMC ──────────────────────────────────────────── */
.why-card {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); transition: all var(--transition);
}
.why-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.why-icon {
  width: 44px; height: 44px; background: var(--blue); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; flex-shrink: 0;
}
.why-title { font-weight: 700; color: var(--primary); font-size: .9rem; margin-bottom: 3px; }
.why-desc  { font-size: .82rem; color: var(--text-2); line-height: 1.6; }
[data-theme="dark"] .why-title { color: #fff; }

/* ── Value Cards ─────────────────────────────────────────────── */
.value-card {
  text-align: center; padding: 28px 20px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: all var(--transition);
  border-top: 3px solid transparent;
}
.value-card:hover { border-top-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.value-icon {
  width: 58px; height: 58px; background: rgba(37,99,235,.08); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-size: 1.5rem; color: var(--blue); transition: all var(--transition);
}
.value-card:hover .value-icon { background: var(--blue); color: #fff; }
.value-title { font-weight: 700; color: var(--primary); margin-bottom: 8px; font-size: .95rem; }
.value-desc  { font-size: .83rem; color: var(--text-2); line-height: 1.6; }
[data-theme="dark"] .value-title { color: #fff; }

/* ── Clubs ───────────────────────────────────────────────────── */
.club-card {
  text-align: center; padding: 24px 16px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: all var(--transition);
}
.club-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.club-icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}

/* ── Contact ─────────────────────────────────────────────────── */
.contact-info-card {
  background: var(--primary); color: #fff; border-radius: var(--radius-lg); padding: 28px;
}
.contact-info-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-info-icon {
  width: 42px; height: 42px; background: rgba(255,255,255,.1); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.contact-form-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-md);
}
.form-control-custom {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 10px 14px; font-size: .9rem; font-family: var(--font);
  color: var(--text); background: var(--bg-2); transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control-custom:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1); background: var(--bg); }
label.form-label { font-size: .8rem; font-weight: 600; color: var(--text-2); margin-bottom: 5px; display: block; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.map-wrap iframe { display: block; }

/* ── Admissions ──────────────────────────────────────────────── */
.admission-step {
  display: flex; gap: 16px; padding: 20px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: all var(--transition);
}
.admission-step:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.step-num {
  width: 38px; height: 38px; background: var(--blue); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem; flex-shrink: 0;
}
.step-title { font-weight: 700; color: var(--primary); margin-bottom: 4px; font-size: .92rem; }
.step-desc  { font-size: .83rem; color: var(--text-2); }
[data-theme="dark"] .step-title { color: #fff; }

/* ── Search Results ──────────────────────────────────────────── */
.search-result-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.search-result-item:last-child { border-bottom: none; }
.search-result-type {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--blue); margin-bottom: 5px;
}
.search-result-title {
  font-weight: 700; color: var(--primary); font-size: .98rem; margin-bottom: 5px;
}
.search-result-title a:hover { color: var(--blue); }
.search-result-snippet { font-size: .84rem; color: var(--text-2); line-height: 1.6; }
[data-theme="dark"] .search-result-title { color: #fff; }

/* ── Highlight box ───────────────────────────────────────────── */
.highlight-box {
  border-left: 4px solid var(--accent); background: var(--bg-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px; font-style: italic; color: var(--text-2); line-height: 1.7;
}

/* ── Timeline ────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--teal));
}
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-item::before {
  content: ''; position: absolute; left: -35px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--blue); border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(37,99,235,.2);
}
.timeline-year  { font-size: .73rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.timeline-title { font-weight: 700; color: var(--primary); margin-bottom: 5px; font-size: .95rem; }
.timeline-desc  { font-size: .85rem; color: var(--text-2); line-height: 1.6; }
[data-theme="dark"] .timeline-title { color: #fff; }

/* ── Career Cards ────────────────────────────────────────────── */
.career-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; transition: all var(--transition);
}
.career-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.career-title    { font-weight: 700; color: var(--primary); margin-bottom: 5px; font-size: .95rem; }
.career-dept     { font-size: .78rem; color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.career-deadline { font-size: .76rem; color: var(--red); font-weight: 600; }
[data-theme="dark"] .career-title { color: #fff; }

/* ── Partners ────────────────────────────────────────────────── */
.partner-logo {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); filter: grayscale(60%); opacity: .75;
}
.partner-logo:hover { filter: grayscale(0); opacity: 1; box-shadow: var(--shadow); transform: scale(1.03); }
.partner-logo img { height: 48px; object-fit: contain; }

/* ── CTA Section ─────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary-d) 0%, var(--primary) 60%, var(--primary-l) 100%);
  padding: 72px 0; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,.04) 0%, transparent 60%);
}

/* ── Admin Panel ─────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }

/* Sidebar — always dark navy regardless of theme */
.admin-sidebar {
  width: 260px;
  background: #1e3a5f; /* var(--primary) hardcoded — never goes light */
  flex-shrink: 0; display: flex; flex-direction: column;
  position: fixed; left: 0; top: 0; bottom: 0;
  overflow-y: auto; z-index: 100;
  border-right: 1px solid rgba(255,255,255,.06);
}
.admin-sidebar-header {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-sidebar-nav    { padding: 10px 0; flex: 1; }
.admin-nav-group      { padding: 4px 0; }
.admin-nav-group-label {
  font-size: .63rem; text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255,255,255,.3); padding: 8px 20px 3px;
}
.admin-nav-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 20px;
  color: rgba(255,255,255,.62); font-size: .83rem;
  transition: all var(--transition); position: relative;
  text-decoration: none;
}
.admin-nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.09);
}
.admin-nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.14);
  font-weight: 600;
}
.admin-nav-link.active::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); border-radius: 0 2px 2px 0;
}
.admin-nav-link i { width: 17px; text-align: center; font-size: .88rem; opacity: .8; }
.admin-nav-link.active i, .admin-nav-link:hover i { opacity: 1; }

.admin-main { margin-left: 260px; flex: 1; background: var(--bg-2); min-height: 100vh; }
.admin-topbar {
  background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 99;
  box-shadow: 0 1px 0 var(--border);
}
.admin-content { padding: 24px; }
.admin-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.admin-card-header {
  padding: 14px 18px; background: var(--bg-2); border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: .88rem; color: var(--primary);
  display: flex; align-items: center; justify-content: space-between;
}
[data-theme="dark"] .admin-card-header { color: #fff; }
.admin-card-body { padding: 18px; }
.stat-widget {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 14px;
}
.stat-widget-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.stat-widget-num   { font-size: 1.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-widget-label { font-size: .75rem; color: var(--text-3); }
[data-theme="dark"] .stat-widget-num { color: #fff; }
.admin-table { width: 100%; font-size: .84rem; }
.admin-table th {
  background: var(--bg-2); color: var(--text-2); font-weight: 700; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .05em; padding: 10px 14px;
  border-bottom: 2px solid var(--border); white-space: nowrap;
}
.admin-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-2); }
.badge-admin { font-size: .68rem; padding: 3px 8px; border-radius: 99px; font-weight: 700; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { background: var(--primary); color: rgba(255,255,255,.8); }
.footer-top  { padding: 56px 0 36px; }
.footer-brand p { font-size: .85rem; line-height: 1.7; margin-bottom: 18px; color: rgba(255,255,255,.6); }
/* Real logo image — footer */
.footer-logo-img {
  width: 52px; height: 52px; object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  padding: 4px;
  border: 2px solid rgba(255,255,255,.2);
  flex-shrink: 0;
}
.footer-logo-icon {
  width: 40px; height: 40px; background: var(--accent); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1rem; flex-shrink: 0;
}
.footer-logo-name { font-weight: 800; font-size: 1.2rem; color: #fff; line-height: 1; }
.footer-logo-sub  { font-size: .68rem; color: rgba(255,255,255,.5); margin-top: 2px; }
.footer-heading {
  font-weight: 700; font-size: .76rem; text-transform: uppercase;
  letter-spacing: .1em; color: #fff; margin-bottom: 14px;
}
.footer-links li   { margin-bottom: 6px; }
.footer-links a    {
  color: rgba(255,255,255,.6); font-size: .84rem; transition: all var(--transition);
  display: flex; align-items: center; gap: 5px;
}
.footer-links a::before { content: '›'; }
.footer-links a:hover   { color: var(--accent); padding-left: 4px; }
.footer-contact { list-style: none; }
.footer-contact li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .84rem; color: rgba(255,255,255,.6); margin-bottom: 9px;
}
.footer-contact i { color: var(--accent); font-size: .82rem; margin-top: 2px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-contact a:hover { color: var(--accent); }
.footer-socials { display: flex; gap: 7px; }
.footer-socials a {
  width: 34px; height: 34px; background: rgba(255,255,255,.08); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65); font-size: .82rem; transition: all var(--transition);
}
.footer-socials a:hover { background: var(--accent); color: var(--primary); }
.btn-footer-cta {
  background: var(--accent); color: var(--primary); border-radius: var(--radius);
  padding: 9px 16px; font-weight: 700; font-size: .8rem;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--transition); margin-top: 14px;
}
.btn-footer-cta:hover { background: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0;
  font-size: .78rem; color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.45); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--accent); }

/* ── Back to Top ─────────────────────────────────────────────── */
#backToTop {
  position: fixed; bottom: 22px; right: 22px; z-index: 500;
  width: 40px; height: 40px; background: var(--blue); color: #fff;
  border: none; border-radius: 50%; box-shadow: var(--shadow-blue);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: all var(--transition);
  opacity: 0; visibility: hidden; transform: translateY(10px);
}
#backToTop.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover   { background: var(--primary); transform: translateY(-2px); }

/* ── Scroll Animations ───────────────────────────────────────── */
[data-aos]          { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ── Misc Utilities ──────────────────────────────────────────── */
.deco-circle {
  position: absolute; border-radius: 50%; opacity: .05;
  background: radial-gradient(circle, var(--accent), transparent);
  pointer-events: none;
}
.parallax-section { background-attachment: fixed; background-size: cover; background-position: center; }

/* ── Responsive ──────────────────────────────────────────────── */

/* Hide logo sub-text on smaller desktops to save space */
@media (max-width: 1260px) {
  .logo-sub { display: none; }
  .nav-links > li > a { padding: 0 6px; font-size: .79rem; }
}

/* Switch to hamburger menu */
@media (max-width: 1024px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  body        { padding-top: 96px; } /* topbar + main nav */
  .hero-section { margin-top: -96px; }
}

@media (max-width: 768px) {
  body           { padding-top: 64px; } /* only main nav (topbar hidden) */
  .nav-topbar    { display: none !important; }
  .hero-section  { height: 90vh; min-height: 480px; margin-top: -64px; }
  .nav-main      { height: 64px; }
  .hero-stats    { display: none; }
  .hero-title    { font-size: clamp(1.55rem, 7vw, 2.2rem); }
  .site-section  { padding: 52px 0; }
  .section-header { margin-bottom: 36px; }
  .gallery-grid  { columns: 2; }
  .admin-sidebar { display: none; }
  .admin-main    { margin-left: 0; }
  .page-hero     { padding: 52px 0 36px; min-height: 180px; }
  .event-card    { flex-direction: column; }
}

@media (max-width: 480px) {
  .gallery-grid  { columns: 1; }
  .hero-actions  { flex-direction: column; }
  .filter-tabs   { gap: 6px; }
  .mobile-menu   { width: 100%; right: -100%; }
  .footer-top    { padding: 40px 0 24px; }
}

/* Portal nav link uses the same style as other nav links (no special class needed) */

/* ================================================================
   EXTENDED RESPONSIVE SYSTEM — Cross-browser / Mobile
   ================================================================ */

/* ── Base cross-browser fixes ─────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
*, *::before, *::after { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, video, iframe { max-width: 100%; height: auto; }

/* ── Scrollable tables on website admin panel ─────────────────── */
.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table-wrap .admin-table { min-width: 540px; }

/* ── Nav: mega menu never clips outside viewport ─────────────── */
.mega-menu { max-width: calc(100vw - 32px); }

/* ── Mobile menu: smooth open/close ──────────────────────────── */
.mobile-menu {
  position: fixed; top: 0; right: -320px; width: 320px; height: 100vh;
  background: var(--bg); z-index: 1100; overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0,0,0,.18);
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
}
.mobile-menu.open { right: 0; }
.mobile-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 1099; display: none;
}
.mobile-menu-overlay.show { display: block; }
.mobile-menu-header {
  padding: 16px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu-close {
  background: none; border: none; font-size: 1.2rem;
  color: var(--text-2); cursor: pointer; padding: 4px;
}
.mobile-menu-nav { padding: 12px 0; flex: 1; }
.mobile-menu-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 20px; color: var(--text); font-weight: 500; font-size: .9rem;
  border-left: 3px solid transparent; transition: all var(--transition);
  text-decoration: none;
}
.mobile-menu-link:hover, .mobile-menu-link.active {
  background: var(--bg-2); color: var(--blue); border-left-color: var(--blue);
}
.mobile-sub-menu { background: var(--bg-2); }
.mobile-sub-link {
  display: block; padding: 9px 20px 9px 30px; font-size: .84rem;
  color: var(--text-2); transition: color var(--transition); text-decoration: none;
}
.mobile-sub-link:hover { color: var(--blue); }
[data-theme="dark"] .mobile-menu { background: var(--bg-2); }
[data-theme="dark"] .mobile-sub-menu { background: var(--bg-3); }

/* ── Hamburger button ─────────────────────────────────────────── */
.hamburger {
  display: none; background: none; border: none;
  flex-direction: column; justify-content: center;
  gap: 5px; padding: 6px; cursor: pointer;
  width: 36px; height: 36px; flex-shrink: 0;
}
.hamburger span {
  display: block; height: 2px; background: var(--primary);
  border-radius: 2px; transition: all 0.3s ease;
  transform-origin: center;
}
[data-theme="dark"] .hamburger span { background: #fff; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Skip link for accessibility ──────────────────────────────── */
.skip-link {
  position: absolute; top: -100px; left: 8px; z-index: 9999;
  background: var(--primary); color: #fff;
  padding: 8px 14px; border-radius: 0 0 var(--radius) var(--radius);
  font-size: .82rem; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── Section spacing: consistent across viewports ─────────────── */
.site-section { padding: 72px 0; }
.section-header { margin-bottom: 48px; text-align: center; }
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(37,99,235,.08); color: var(--blue);
  padding: 5px 14px; border-radius: 99px; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px;
}
.section-title { font-size: clamp(1.4rem, 3.5vw, 2.1rem); font-weight: 800; color: var(--primary); line-height: 1.25; margin-bottom: 10px; }
[data-theme="dark"] .section-title { color: #fff; }
.section-subtitle { font-size: clamp(.85rem, 2vw, .95rem); color: var(--text-2); max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* ── Grid helpers for cards ───────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ── News/blog card row: auto-wrap ────────────────────────────── */
.news-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.event-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

/* ── Faculty card: equal height in grid ──────────────────────── */
.faculty-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }

/* ── Hero section: safe area for notched phones ───────────────── */
.hero-section { padding-bottom: env(safe-area-inset-bottom, 0); }

/* ================================================================
   TABLET (768px – 1024px)
   ================================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .gallery-grid { columns: 3; }
  .admin-sidebar { width: 220px; }
  .admin-main { margin-left: 220px; }
}

/* ================================================================
   MOBILE (≤ 767px) — Comprehensive overhaul
   ================================================================ */
@media (max-width: 767px) {
  /* ── Base ── */
  body { padding-top: 64px; }
  html { font-size: 15px; }

  /* ── Containers: full-width with gutters ── */
  .container, .container-fluid { padding-left: 16px; padding-right: 16px; }

  /* ── Sections ── */
  .site-section { padding: 44px 0; }
  .sec-alt { padding: 44px 0; }
  .section-header { margin-bottom: 28px; }
  .section-title { font-size: 1.45rem; }
  .section-subtitle { font-size: .84rem; }

  /* ── Navigation ── */
  .hamburger { display: flex !important; }
  .nav-topbar { display: none !important; }
  .nav-main { height: 56px; }
  body { padding-top: 56px; }
  .hero-section { margin-top: -56px; }

  /* ── Hero section ── */
  .hero-section { height: auto; min-height: 70vh; padding: 80px 0 52px; }
  .hero-title { font-size: clamp(1.5rem, 6.5vw, 2rem); line-height: 1.25; }
  .hero-subtitle { font-size: .9rem; margin-bottom: 24px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 12px; }
  .hero-stats > div { flex: 1 1 40%; min-width: 120px; }

  /* ── Grids: always 1 column on mobile ── */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 14px; }
  .grid-2 { grid-template-columns: 1fr 1fr; } /* keep 2 for small cards */
  .news-row, .event-row { grid-template-columns: 1fr; gap: 14px; }
  .faculty-row { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* ── Gallery ── */
  .gallery-grid { columns: 2; column-gap: 8px; }
  .gallery-item { margin-bottom: 8px; }

  /* ── Stat cards ── */
  .stat-card { padding: 20px 14px; }
  .stat-number { font-size: 2rem; }

  /* ── News card ── */
  .news-card { border-radius: var(--radius); }
  .news-card-body { padding: 14px; }
  .news-card-title { font-size: .9rem; }

  /* ── Event card: horizontal → vertical ── */
  .event-card { flex-direction: column; }
  .event-card-date { width: auto; padding: 10px 14px; flex-direction: row; gap: 8px; }
  .event-card-date .day { font-size: 1.4rem; }
  .event-card-date .month { font-size: .72rem; }
  .event-card-body { padding: 12px 14px 14px; }

  /* ── Faculty card ── */
  .faculty-card { padding: 16px 12px; }
  .faculty-photo { width: 70px; height: 70px; }
  .faculty-name { font-size: .88rem; }

  /* ── Principal / about section ── */
  .about-img-wrap { margin-bottom: 20px; }
  .about-img-wrap img { max-height: 360px; object-fit: cover; border-radius: var(--radius-lg); }

  /* ── Value / Why / Club cards: 2 per row ── */
  .row.g-4 > .col-md-3, .row.g-4 > .col-md-4 { flex: 0 0 50%; max-width: 50%; }

  /* ── Contact page ── */
  .contact-info-card { padding: 20px; border-radius: var(--radius); }
  .contact-form-card { padding: 20px; border-radius: var(--radius); }

  /* ── Admission steps: no horizontal transform ── */
  .admission-step:hover { transform: none; }
  .admission-step { flex-direction: row; padding: 14px; }

  /* ── Download items ── */
  .download-item { padding: 10px 12px; }
  .download-icon { width: 34px; height: 34px; font-size: .9rem; }
  .download-name { font-size: .82rem; }

  /* ── Footer grid ── */
  .footer-top .row > [class*="col-"] { margin-bottom: 24px; }

  /* ── Admin panel: sidebar off-canvas ── */
  .admin-sidebar { left: -260px; transition: left 0.3s ease; width: 260px; }
  .admin-sidebar.show { left: 0; }
  .admin-main { margin-left: 0 !important; }
  .admin-content { padding: 16px; }
  .admin-topbar { padding: 10px 16px; }
  .stat-widget { padding: 14px; }
  .stat-widget-num { font-size: 1.25rem; }
  .admin-table th, .admin-table td { padding: 8px 10px; font-size: .78rem; }

  /* ── Page hero (inner pages) ── */
  .page-hero { padding: 40px 0 28px; min-height: 140px; }
  .page-hero h1 { font-size: clamp(1.2rem, 5vw, 1.6rem); }

  /* ── Breadcrumb ── */
  .breadcrumb-wrap { padding: 10px 0; }
  .breadcrumb { font-size: .76rem; }

  /* ── Forms on website ── */
  .form-control-custom { font-size: 16px !important; min-height: 44px; }

  /* ── Testimonials: 1 wide ── */
  .testimonial-card { padding: 20px; }

  /* ── Timeline ── */
  .timeline { padding-left: 20px; }
  .timeline-item::before { left: -27px; }

  /* ── Back to top: clear of safe area ── */
  #backToTop { bottom: calc(16px + env(safe-area-inset-bottom, 0)); right: 16px; }

  /* ── Filter tabs: scroll horizontally ── */
  .filter-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .filter-tabs::-webkit-scrollbar { display: none; }

  /* ── Mega menu: hide on mobile (use mobile menu instead) ── */
  .mega-menu, .dropdown-menu-custom { display: none !important; }

  /* ── Table: horizontal scroll ── */
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-table { min-width: 540px; }
  .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* ── CTA section ── */
  .cta-section { padding: 44px 0; }
  .cta-section h2 { font-size: 1.4rem; }
  .cta-section .d-flex { flex-direction: column; gap: 12px; }
  .cta-section .btn { width: 100%; justify-content: center; }
}

/* ================================================================
   SMALL PHONES (≤ 480px)
   ================================================================ */
@media (max-width: 480px) {
  html { font-size: 14px; }
  .container, .container-fluid { padding-left: 12px; padding-right: 12px; }

  /* ── Hero ── */
  .hero-title { font-size: clamp(1.35rem, 7.5vw, 1.7rem); }
  .hero-actions { gap: 8px; }

  /* ── Value / why cards: 1 per row on very small ── */
  .row.g-4 > .col-md-3, .row.g-4 > .col-md-4 { flex: 0 0 100%; max-width: 100%; }
  .grid-2 { grid-template-columns: 1fr; }

  /* ── Faculty: 1 per row ── */
  .faculty-row { grid-template-columns: 1fr; gap: 12px; }

  /* ── Gallery: 1 column ── */
  .gallery-grid { columns: 1; }

  /* ── Event date boxes: smaller ── */
  .event-date-badge { padding: 6px 10px; min-width: 48px; }
  .event-date-badge .day { font-size: 1.3rem; }

  /* ── Contact form ── */
  .contact-form-card { padding: 16px; }
  .contact-info-card { padding: 16px; }

  /* ── Footer ── */
  .footer-socials { gap: 5px; }
  .footer-socials a { width: 30px; height: 30px; }
  .footer-bottom { text-align: center; }
  .footer-bottom .d-flex { flex-direction: column; gap: 6px; align-items: center; }

  /* ── Stat cards row ── */
  .stats-section .row > [class*="col-"] { margin-bottom: 12px; }

  /* ── Mobile menu: full width ── */
  .mobile-menu { width: 100%; right: -100%; }
  .mobile-menu.open { right: 0; }
}

/* ================================================================
   TOUCH ENHANCEMENTS
   ================================================================ */
@media (hover: none) and (pointer: coarse) {
  /* All interactive elements: minimum 44px touch target */
  .btn, .nav-links a, .mobile-menu-link, .filter-tab,
  .gallery-filter-btn, .admin-nav-link { min-height: 44px; }

  /* Remove hover transforms on touch */
  .dept-card:hover, .why-card:hover, .value-card:hover,
  .career-card:hover, .testimonial-card:hover,
  .club-card:hover, .news-card:hover,
  .facility-card:hover img { transform: none; }

  /* Form inputs: prevent iOS zoom */
  input, select, textarea { font-size: 16px !important; }
}

/* ================================================================
   BROWSER-SPECIFIC FIXES
   ================================================================ */
/* Safari: flex gap fallback */
@supports not (gap: 1px) {
  .hero-actions > * + *   { margin-left: 12px; }
  .footer-socials > * + * { margin-left: 7px; }
  .filter-tabs > * + *    { margin-left: 8px; }
}

/* Safari: hide scrollbars on filter tabs */
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tabs { -ms-overflow-style: none; scrollbar-width: none; }

/* Firefox: box-shadow fix */
@-moz-document url-prefix() {
  .news-card, .faculty-card, .event-card { box-shadow: 0 1px 6px rgba(0,0,0,.08); }
}

/* Print styles for public website */
@media print {
  .site-nav, .mobile-menu, #backToTop, .cta-section { display: none !important; }
  body { padding-top: 0 !important; color: #000 !important; background: #fff !important; }
  a { color: #000 !important; text-decoration: underline; }
  .hero-section { height: auto !important; min-height: 0 !important; }
}
