/* =====================================================
   GASC v4 - Main Stylesheet (Fixed Header)
   Govt. Arts & Science College, Thiruvennainallur
   ===================================================== */

:root {
  --pri:    #2563EB;
  --sec:    #14B8A6;
  --acc:    #14B8A6;
  --light:  #F8FAFC;
  --dark:   #0F172A;
  --text:   #0F172A;
  --muted:  #6b7280;
  --border: #e5e7eb;
  --white:  #ffffff;
  --hover:  #1D4ED8;
  --shadow: 0 4px 24px rgba(37,99,235,.10);
  --radius: 10px;
  --tr:     all .3s ease;
  --font-h: 'Merriweather', serif;
  --font-b: 'Open Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-b); color: var(--text); background: var(--white); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ================================================
   TOP BAR
   ================================================ */
.top-bar {
  background: var(--pri);
  color: #fff;
  padding: 5px 0;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ticker-label {
  background: var(--sec);
  padding: 2px 10px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .3px;
}
.ticker-wrap { overflow: hidden; flex: 1; min-width: 0; }
.ticker-wrap span {
  display: inline-block;
  animation: tickMove 30s linear infinite;
  white-space: nowrap;
  color: #ffd875;
  padding-right: 100px;
}
@keyframes tickMove {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.top-info { color: rgba(255,255,255,.85); font-size: 12px; }
.top-admin-btn {
  background: rgba(255,255,255,.12);
  color: #fff;
  padding: 2px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.25);
  transition: var(--tr);
}
.top-admin-btn:hover { background: var(--sec); color: #fff; border-color: var(--sec); }

/* ══════════════════════════════════════════════════════════════
   BRAND STRIP — Responsive 3-column header
   Uses CSS Grid so center is ALWAYS perfectly centred
   regardless of logo sizes, screen width, or whether
   logos are uploaded or not.

   ┌──────────────┬──────────────────────────┬──────────────┐
   │  LEFT LOGO   │  Row 1: College Name      │  RIGHT LOGO  │
   │  (fixed col) │  Row 2: Affiliation       │  (fixed col) │
   │              │  Row 3: Address           │              │
   └──────────────┴──────────────────────────┴──────────────┘
   ══════════════════════════════════════════════════════════════ */

/* ── Outer strip wrapper ───────────────────────────────────── */
.brand-strip {
  background: linear-gradient(135deg,
    #0a1628 0%,
    #1230a0 20%,
    #2563EB 45%,
    #1D4ED8 65%,
    #1230a0 85%,
    #0a1628 100%);
  background-size: 400% 400%;
  animation: bsGrad 12s ease infinite;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--sec);
  box-shadow: 0 4px 28px rgba(5,15,40,.5);
}

/* Shimmer sweep overlay */
.brand-strip::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 40%,
    rgba(255,255,255,.055) 50%,
    transparent 60%
  );
  animation: bsShimmer 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes bsGrad {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes bsShimmer {
  0%        { transform: translateX(-50%); opacity: 0; }
  30%, 70%  { opacity: 1; }
  100%      { transform: translateX(50%);  opacity: 0; }
}

/* ─────────────────────────────────────────────────────────────
   GRID ROW — The key to perfect centering:
   Two outer columns are symmetric (same min/max),
   so the center column is mathematically centred.
   ───────────────────────────────────────────────────────────── */
.brand-row {
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 20px;
  min-height: 112px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* ── Logo cells ─────────────────────────────────────────────── */
.brand-col-logo {
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
  min-width: 0;
}
.brand-col-left  { justify-content: flex-start; }
.brand-col-right { justify-content: flex-end; }

.brand-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
  max-width: 100%;
}

/* Logo image — strictly contained within grid cell */
.brand-logo {
  height: 88px;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(255,255,255,.28));
  transition: transform .3s ease, filter .3s ease;
}
.brand-logo:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 4px 20px rgba(255,255,255,.48));
}

/* Invisible spacer — keeps grid cell the same size when no logo */
.brand-logo-empty {
  display: block;
  width: 100%;
  height: 88px;
  visibility: hidden;
  pointer-events: none;
}

/* ── Center text cell ───────────────────────────────────────── */
.brand-col-center {
  /* CSS Grid handles centering — this just stacks the rows */
  display: flex;
  flex-direction: column;
  align-items: center;      /* horizontally centred within cell */
  justify-content: center;  /* vertically centred within cell */
  text-align: center;
  padding: 4px 16px;
  min-width: 0;
  gap: 0;
}

/* ─────────────────────────────────────────────────────────────
   ROW 1 — College Name (large · bold · white · uppercase)
   ───────────────────────────────────────────────────────────── */
.brand-row1 {
  font-family: var(--font-h);
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.18;
  letter-spacing: .8px;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
  width: 100%;
  /* Prevent text causing layout shift on small screens */
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ─────────────────────────────────────────────────────────────
   ROW 2 — Affiliation (white) + optional Accreditation (gold)
   ───────────────────────────────────────────────────────────── */
.brand-row2 {
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  margin-top: 7px;
  width: 100%;
}

/* Gold variant for accreditation line */
.brand-row2-accred {
  color: var(--sec);
  font-weight: 700;
  font-size: 12.5px;
  margin-top: 6px;
  letter-spacing: .35px;
}

.brand-row3 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 6px;
  width: 100%;
}

/* ── Thin divider lines beside center text (decorative) ─────── */
.brand-col-center::before,
.brand-col-center::after {
  content: '';
  display: block;
  width: 1px;
  height: 0;        /* hidden — set to e.g. 60% to show */
  background: rgba(255,255,255,.18);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — scale down gracefully at every breakpoint
   The grid columns auto-shrink; center stays centred always.
   ══════════════════════════════════════════════════════════════ */

/* Large desktop — 1200-1440px */
@media (max-width: 1399px) {
  .brand-row  { padding: 13px 20px; min-height: 106px; }
  .brand-row1 { font-size: 23px; }
}

/* Tablet landscape / small desktop — 992-1199px */
@media (max-width: 1199px) {
  .brand-row  { grid-template-columns: 100px 1fr 100px; padding: 12px 16px; min-height: 98px; }
  .brand-logo { height: 76px; }
  .brand-logo-empty { height: 76px; }
  .brand-row1 { font-size: 20px; }
  .brand-row2 { font-size: 12px; margin-top: 6px; }
  .brand-row3 { font-size: 13px; margin-top: 4px; }
}

/* Tablet portrait — 768-991px */
@media (max-width: 991px) {
  .brand-row  { grid-template-columns: 80px 1fr 80px; padding: 10px 12px; min-height: 86px; }
  .brand-logo { height: 64px; }
  .brand-logo-empty { height: 64px; }
  .brand-col-center { padding: 4px 10px; }
  .brand-row1 { font-size: 17px; letter-spacing: .3px; }
  .brand-row2 { font-size: 11px; margin-top: 5px; }
  .brand-row2-accred { font-size: 10.5px; }
  .brand-row3 { font-size: 12px; margin-top: 3px; }
}

/* Mobile — 576-767px */
@media (max-width: 767px) {
  .brand-row  { grid-template-columns: 64px 1fr 64px; padding: 8px 8px; min-height: 72px; }
  .brand-logo { height: 54px; }
  .brand-logo-empty { height: 54px; }
  .brand-col-center { padding: 2px 8px; }
  .brand-row1 { font-size: 14px; letter-spacing: .1px; }
  .brand-row2 { font-size: 10px; margin-top: 4px; }
  .brand-row2-accred { font-size: 10px; }
  .brand-row3 { font-size: 11px; margin-top: 3px; }
}

/* Small phone — up to 575px */
@media (max-width: 575px) {
  .brand-row  { grid-template-columns: 54px 1fr 54px; padding: 7px 6px; min-height: 64px; }
  .brand-logo { height: 48px; }
  .brand-logo-empty { height: 48px; }
  .brand-col-center { padding: 2px 6px; }
  .brand-row1 { font-size: 12.5px; }
  .brand-row2 { font-size: 9.5px; margin-top: 3px; }
  .brand-row3 { font-size: 10.5px; margin-top: 2px; }
}

/* Extra-small — up to 400px */
@media (max-width: 400px) {
  .brand-row  { grid-template-columns: 44px 1fr 44px; padding: 6px 4px; min-height: 56px; }
  .brand-logo { height: 38px; }
  .brand-logo-empty { height: 38px; }
  .brand-row1 { font-size: 11px; letter-spacing: 0; }
  .brand-row2 { font-size: 9px; margin-top: 2px; }
  .brand-row2-accred { display: none; }
  .brand-row3 { font-size: 10px; }
}

/* ================================================
   MAIN NAVBAR  (full-width dark bar)
   ================================================ */
.main-navbar {
  background: var(--pri);
  padding: 0;
  box-shadow: 0 3px 12px rgba(26,60,110,.25);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Mobile brand text inside nav */
.main-navbar .navbar-brand {
  color: #fff !important;
  font-weight: 700;
  font-size: 16px;
  padding: 10px 0;
}

/* Nav links */
.main-navbar .nav-link {
  color: rgba(255,255,255,.88) !important;
  font-size: 13.5px;
  font-weight: 600;
  padding: 14px 13px !important;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: var(--tr);
  letter-spacing: .1px;
}
.main-navbar .nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,.10);
  border-bottom-color: var(--sec);
}
.main-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(200,130,10,.20);
  border-bottom-color: var(--sec);
}

/* Dropdown toggle caret */
.main-navbar .dropdown-toggle::after {
  border-top-color: rgba(255,255,255,.7);
  margin-left: 5px;
  vertical-align: 2px;
}

/* Dropdown menu */
.main-navbar .dropdown-menu {
  border: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 32px rgba(26,60,110,.18);
  border-top: 3px solid var(--sec);
  padding: 6px 0;
  min-width: 230px;
  margin-top: 0;
  background: #fff;
  animation: fadeDown .2s ease;
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.main-navbar .dropdown-item {
  font-size: 13.5px;
  padding: 9px 20px;
  color: var(--text);
  font-weight: 500;
  transition: var(--tr);
  display: flex;
  align-items: center;
}
.main-navbar .dropdown-item:hover {
  background: var(--light);
  color: var(--pri);
  padding-left: 26px;
  border-left: 3px solid var(--acc);
}
.main-navbar .dropdown-divider {
  border-color: var(--border);
}

/* Departments dropdown — allow scroll if many */
.dept-dropdown {
  max-height: 75vh;
  overflow-y: auto;
}

/* ================================================
   HERO SLIDER
   ================================================ */
.hero-slider .carousel-item { height: 500px; }
.hero-slider .carousel-item img { width: 100%; height: 500px; object-fit: cover; }
.hero-slider .carousel-caption {
  background: linear-gradient(to top, rgba(10,20,50,.85), transparent);
  padding: 40px 24px 30px;
  bottom: 0; left: 0; right: 0;
  text-align: left;
}
.hero-slider .carousel-caption h2 {
  font-family: var(--font-h);
  font-size: 34px;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hero-slider .carousel-caption p { font-size: 16px; color: rgba(255,255,255,.9); }
.carousel-control-prev, .carousel-control-next {
  width: 44px; height: 44px;
  background: var(--sec);
  top: 50%; transform: translateY(-50%);
  border-radius: 50%; opacity: .92;
}

/* ================================================
   PAGE HERO
   ================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--pri) 0%, #0f2447 100%);
  color: #fff;
  padding: 50px 0 32px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; right: -80px; top: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(200,130,10,.15);
}
.page-hero h1 { font-family: var(--font-h); font-size: 32px; font-weight: 800; letter-spacing: -.3px; }
.page-hero h2 { font-family: var(--font-h); font-size: 24px; font-weight: 700; }
.page-hero h3 { font-family: var(--font-h); font-size: 18px; font-weight: 600; }
.breadcrumb-item, .breadcrumb-item a { color: rgba(255,255,255,.7); font-size: 13.5px; }
.breadcrumb-item.active { color: var(--sec); }
.breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ================================================
   SECTIONS
   ================================================ */
.sec     { padding: 65px 0; }
.sec-sm  { padding: 40px 0; }
.sec-bg  { background: var(--light); }
.sec-title {
  font-family: var(--font-h);
  font-size: 25px;
  font-weight: 700;
  color: var(--pri);
  padding-bottom: 10px;
  margin-bottom: 8px;
  position: relative;
}
.sec-title::after {
  content: '';
  display: block;
  width: 46px; height: 3px;
  background: var(--acc);
  border-radius: 2px;
  margin-top: 8px;
}
.sec-title.center::after { margin: 8px auto 0; }

/* ================================================
   CARDS
   ================================================ */
.g-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--tr);
  overflow: hidden;
}
.g-card:hover { transform: translateY(-5px); box-shadow: 0 10px 36px rgba(37,99,235,.16); border-color: var(--sec); }

/* ================================================
   PERSON / STAFF CARDS
   ================================================ */
.person-card { text-align: center; padding: 22px 16px; }
.person-photo {
  width: 110px; height: 110px;
  border-radius: 50%; object-fit: cover;
  border: 4px solid var(--sec);
  margin: 0 auto 14px; display: block;
}
.person-photo-placeholder {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--light);
  border: 4px solid var(--sec);
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 42px; color: var(--muted);
}
.person-name  { font-weight: 700; color: var(--pri); font-size: 15px; }
.person-desig { font-size: 13px; color: var(--sec); font-weight: 600; }
.person-dept  { font-size: 13px; color: var(--muted); }
.person-qual  { font-size: 12.5px; color: var(--muted); }

/* ================================================
   PRINCIPAL MESSAGE
   ================================================ */
.principal-msg {
  border-left: 4px solid var(--sec);
  padding-left: 20px;
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
}

/* ================================================
   TABLE
   ================================================ */
.gasc-table th { background: var(--pri); color: #fff; font-size: 13px; font-weight: 600; }
.gasc-table td { font-size: 13.5px; vertical-align: middle; }
.gasc-table tr:hover { background: rgba(26,60,110,.025); }

/* ================================================
   PDF LIST
   ================================================ */
.pdf-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: var(--tr);
  margin-bottom: 10px;
}
.pdf-item:hover { border-color: var(--sec); box-shadow: var(--shadow); }
.pdf-icon  { font-size: 28px; color: var(--acc); flex-shrink: 0; }
.pdf-title { font-weight: 600; color: var(--pri); font-size: 14.5px; }
.pdf-meta  { font-size: 12px; color: var(--muted); }

/* ================================================
   GALLERY
   ================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.gal-item {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  cursor: pointer;
  position: relative;
}
.gal-item img, .gal-item video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.gal-item:hover img, .gal-item:hover video { transform: scale(1.06); }
.gal-overlay {
  position: absolute; inset: 0;
  background: rgba(26,60,110,0);
  transition: var(--tr);
  display: flex; align-items: center; justify-content: center;
}
.gal-item:hover .gal-overlay { background: rgba(26,60,110,.30); }
.gal-overlay i { color: #fff; font-size: 32px; opacity: 0; transition: var(--tr); }
.gal-item:hover .gal-overlay i { opacity: 1; }

/* ================================================
   NOTICE BOARD
   ================================================ */
.notice-board { background: var(--light); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.nb-header { background: var(--pri); color: #fff; padding: 13px 20px; font-weight: 700; font-family: var(--font-h); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.nb-list   { max-height: 320px; overflow-y: auto; }
.nb-item   { display: flex; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--border); transition: var(--tr); align-items: flex-start; }
.nb-item:hover { background: rgba(26,60,110,.04); }
.nb-dot    { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); margin-top: 6px; flex-shrink: 0; }
.nb-item.urgent .nb-dot { background: #ef4444; }
.nb-text   { font-size: 13.5px; color: var(--text); line-height: 1.4; }
.nb-date   { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ================================================
   STATS BAR
   ================================================ */
.stats-bar { background: linear-gradient(135deg, var(--pri) 0%, #0f2447 100%); padding: 45px 0; }
.stat-item { text-align: center; color: #fff; }
.stat-num  { font-family: var(--font-h); font-size: 38px; font-weight: 700; color: var(--acc); }
.stat-lbl  { font-size: 13px; color: rgba(255,255,255,.8); text-transform: uppercase; letter-spacing: 1px; }

/* ================================================
   DEPT SIDEBAR
   ================================================ */
.dept-sidebar a {
  display: block; padding: 10px 16px; border-radius: 6px;
  font-size: 14px; color: var(--text); transition: var(--tr);
  border: 1px solid transparent; margin-bottom: 4px;
}
.dept-sidebar a:hover, .dept-sidebar a.active {
  background: var(--pri); color: #fff; border-color: var(--acc);
}

/* ================================================
   FOOTER
   ================================================ */
.main-footer { background: #0d1b33; color: #ccc; }
.ft-top  { padding: 50px 0 30px; }
.ft-title {
  font-family: var(--font-h); font-size: 16px; color: #fff;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--sec); display: inline-block;
}
.ft-links { list-style: none; padding: 0; }
.ft-links li { margin-bottom: 7px; }
.ft-links a { color: #bbb; font-size: 13.5px; transition: var(--tr); }
.ft-links a:hover { color: var(--acc); padding-left: 4px; }
.ft-contact { list-style: none; padding: 0; }
.ft-contact li { display: flex; gap: 10px; margin-bottom: 10px; font-size: 13.5px; color: #bbb; }
.ft-contact i { color: var(--sec); margin-top: 3px; flex-shrink: 0; }
.ft-bottom { background: #08111f; padding: 14px 0; font-size: 13px; color: #666; border-top: 1px solid rgba(255,255,255,.05); }
.ft-bottom a { color: var(--acc); }
.social-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; font-size: 15px;
  margin-right: 6px; transition: var(--tr);
}
.social-ic:hover { background: var(--acc); color: #fff; }
.ft-notice { margin-bottom: 10px; }
.ft-notice a { color: #bbb; font-size: 13px; }
.ft-notice a:hover { color: var(--acc); }
.ft-notice small { display: block; color: #555; font-size: 11px; margin-top: 2px; }

/* ================================================
   BUTTONS
   ================================================ */
.btn-gasc {
  background: var(--pri); color: #fff; border: none;
  border-radius: 50px; padding: 10px 26px; font-weight: 600; transition: var(--tr);
  box-shadow: 0 4px 14px rgba(37,99,235,.30);
}
.btn-gasc:hover { background: var(--hover); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,.40); }
.btn-gold {
  background: var(--sec); color: #fff; border: none;
  border-radius: 50px; padding: 10px 26px; font-weight: 600; transition: var(--tr);
  box-shadow: 0 4px 14px rgba(20,184,166,.30);
}
.btn-gold:hover { background: #0d9488; color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(20,184,166,.40); }

/* ================================================
   SCROLL REVEAL (replaces AOS library)
   ================================================ */
[data-aos]{opacity:0;transition:opacity .55s ease,transform .55s ease}
[data-aos='fade-up']{transform:translateY(28px)}
[data-aos='fade-down']{transform:translateY(-28px)}
[data-aos='fade-right']{transform:translateX(-28px)}
[data-aos='fade-left']{transform:translateX(28px)}
[data-aos='zoom-in']{transform:scale(.92)}
[data-aos].aos-animate{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){[data-aos]{opacity:1!important;transform:none!important;transition:none!important}}

/* ================================================
   SCROLL TOP
   ================================================ */
.scroll-top {
  position: fixed; bottom: 26px; right: 26px;
  width: 42px; height: 42px; background: var(--sec); color: #fff;
  border: none; border-radius: 50%; font-size: 18px; cursor: pointer;
  opacity: 0; transition: var(--tr); z-index: 999;
  display: flex; align-items: center; justify-content: center;
}
.scroll-top.show { opacity: 1; }
.scroll-top:hover { background: var(--hover); }

/* ================================================
   LIGHTBOX
   ================================================ */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.92);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
}
.lightbox-overlay img { max-width: 90vw; max-height: 90vh; border-radius: 8px; }
.lb-close {
  position: fixed; top: 20px; right: 28px;
  background: none; border: none; color: #fff;
  font-size: 40px; cursor: pointer; z-index: 10000; line-height: 1;
}

/* ================================================
   RESPONSIVE — Mobile First
   ================================================ */

/* Tablet landscape — ≤1199px */
@media (max-width:1199px){
  .main-navbar .nav-link{font-size:12.5px;padding:14px 9px !important}
  .brand-logo{height:70px}
  .sec{padding:50px 0}
}

/* Tablet portrait — ≤991px */
@media (max-width:991px){
  /* Navbar mobile */
  .main-navbar .navbar-collapse{background:#0f2447;padding:8px 0 14px;border-top:1px solid rgba(255,255,255,.1)}
  .main-navbar .nav-link{padding:11px 20px !important;border-bottom:1px solid rgba(255,255,255,.06) !important;border-left:3px solid transparent !important;font-size:14px}
  .main-navbar .nav-link.active{background:rgba(200,130,10,.2);border-left-color:var(--sec) !important}
  .main-navbar .dropdown-menu{background:rgba(255,255,255,.05);border:none;border-radius:0;box-shadow:none;padding-left:16px;animation:none;min-width:unset}
  .main-navbar .dropdown-item{color:rgba(255,255,255,.78);font-size:13.5px;padding:9px 16px}
  .main-navbar .dropdown-item:hover{background:rgba(255,255,255,.08);color:#fff;padding-left:22px}
  .main-navbar .dropdown-toggle::after{float:right;margin-top:6px}
  /* Slider */
  .hero-slider .carousel-item,.hero-slider .carousel-item img{height:320px}
  .hero-slider .carousel-caption h2{font-size:20px}
  /* Layout */
  .sec{padding:44px 0}
  .stat-num{font-size:32px}
  .page-hero{padding:36px 0 24px}
  .page-hero h1{font-size:24px}
}

/* Mobile — ≤767px */
@media (max-width:767px){
  /* Top bar — hide on mobile to save space */
  .top-bar{display:none}
  /* Slider */
  .hero-slider .carousel-item,.hero-slider .carousel-item img{height:210px}
  .hero-slider .carousel-caption{display:none !important}
  .carousel-control-prev,.carousel-control-next{width:34px;height:34px;font-size:14px}
  /* Sections */
  .sec{padding:34px 0}
  .sec-title{font-size:20px}
  .stat-num{font-size:26px}
  .stat-lbl{font-size:11px}
  /* Cards */
  .g-card:hover{transform:none}
  /* Person cards */
  .person-photo,.person-photo-placeholder{width:80px;height:80px}
  /* Gallery */
  .gallery-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
  /* Page hero */
  .page-hero{padding:28px 0 18px}
  .page-hero h1{font-size:20px}
  /* Footer */
  .ft-top{padding:32px 0 20px}
  .ft-title{font-size:14px}
  /* PDF items */
  .pdf-item{padding:10px 12px;gap:10px}
  .pdf-title{font-size:13px}
  /* Notice board */
  .nb-list{max-height:260px}
  /* Stats bar */
  .stats-bar{padding:30px 0}
}

/* Small phone — ≤575px */
@media (max-width:575px){
  body{font-size:13.5px}
  .container{padding-left:14px;padding-right:14px}
  /* Navbar brand */
  .main-navbar .navbar-brand{font-size:14px}
  /* Sections */
  .sec{padding:26px 0}
  .sec-title{font-size:18px}
  /* Stats — 2 col */
  .stats-bar .row>div{flex:0 0 50%;max-width:50%}
  .stat-num{font-size:24px}
  /* Gallery */
  .gallery-grid{grid-template-columns:repeat(2,1fr);gap:6px}
  /* Person cards — 2 col */
  .person-photo,.person-photo-placeholder{width:70px;height:70px;font-size:30px}
  .person-name{font-size:13px}
  .person-desig,.person-qual{font-size:11.5px}
  /* PDF */
  .pdf-item{flex-wrap:wrap}
  .pdf-item .btn{width:100%;margin-top:6px}
  /* Footer 1 col */
  .ft-top .row>div{margin-bottom:20px}
  /* Scroll top — smaller */
  .scroll-top{width:36px;height:36px;font-size:15px;bottom:16px;right:16px}
  /* Lightbox */
  .lightbox-overlay img{max-width:96vw;max-height:80vh}
  .lb-close{font-size:32px;top:10px;right:14px}
}

/* Extra small — ≤400px */
@media (max-width:400px){
  .sec{padding:20px 0}
  .hero-slider .carousel-item,.hero-slider .carousel-item img{height:170px}
  .gallery-grid{grid-template-columns:repeat(2,1fr);gap:5px}
  .page-hero h1{font-size:17px}
  .breadcrumb-item,.breadcrumb-item a{font-size:11.5px}
}
