/* ══════════════════════════════════════════════════════════
   IIT Delhi — Main Stylesheet
   Colors: Dark Green (#1a5c38) + Amber Gold (#FFC200)
   Bootstrap 5 enhanced
══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
  /* ── NEW COLOR PALETTE ── */
  --blue:        #1a5c38;    /* was #003087 → now Dark Green */
  --blue-dark:   #0f3d25;    /* was #001f5b → now deeper green */
  --blue-deeper: #082818;    /* was #001240 → now darkest green */
  --gold:        #FFC200;    /* Amber from image 2 */
  --gold-light:  #FFD84D;
  --white:       #ffffff;
  --light-gray:  #f4f6f9;
  --text-dark:   #1a1a2e;

  --topbar-h: 38px;
  --header-h: 90px;
  --navbar-h: 64px;
  --total-h:  192px;

  --container: 1280px;
  --ease: 0.3s cubic-bezier(0.4,0,0.2,1);

  /* Base font size increase by 2pt ≈ 2px */
  --base-fs: 17px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: var(--base-fs); }
body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: var(--base-fs);
  color: var(--text-dark);
  overflow-x: hidden;
  padding-top: var(--topbar-h);
}

/* ─── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ══════════════════════════════════════════════════════════
   BAR 1 — TOPBAR
══════════════════════════════════════════════════════════ */
#topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--topbar-h);
  background: var(--blue-deeper);
  border-bottom: 1px solid rgba(255,194,0,0.22);
  transition: transform var(--ease), opacity var(--ease);
}

#topbar.hide-bar {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

#topbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tb-left { display: flex; align-items: stretch; height: 100%; }
.tb-left a {
  color: rgba(255,255,255,0.72);
  font-size: 12.5px; text-decoration: none;
  padding: 0 14px;
  border-right: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; gap: 5px;
  transition: color var(--ease), background var(--ease);
}
.tb-left a:first-child { padding-left: 0; }
.tb-left a:hover { color: var(--gold); background: rgba(255,255,255,0.05); }

.tb-right { display: flex; align-items: center; gap: 14px; }
.tb-social { display: flex; gap: 12px; }
.tb-social a {
  color: rgba(255,255,255,0.55); font-size: 14px;
  text-decoration: none; transition: color var(--ease);
}
.tb-social a:hover { color: var(--gold); }

.tb-btn {
  background: var(--gold); color: var(--blue-dark);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase;
  padding: 5px 16px; border-radius: 2px;
  text-decoration: none; transition: background var(--ease);
}
.tb-btn:hover { background: var(--gold-light); }


/* ══════════════════════════════════════════════════════════
   BAR 2 — HEADER
══════════════════════════════════════════════════════════ */
#site-header {
  position: fixed;
  top: var(--topbar-h);
  left: 0; right: 0;
  z-index: 999;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  transition: background var(--ease), border-color var(--ease),
              box-shadow var(--ease), transform var(--ease), top var(--ease);
}

#site-header.solid {
  background: var(--white);
  border-bottom: 2px solid #d0e4d8;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

/* Hide header on scroll down — must clear its top offset too */
#site-header.hide-bar {
  transform: translateY(calc(-1 * (var(--topbar-h) + var(--header-h))));
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

#site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo-wrap { display: flex; align-items: center; gap: 18px; text-decoration: none; }

.logo-circle {
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 5px rgba(255,194,0,0.15);
  transition: background var(--ease);
}
#site-header.solid .logo-circle { background: #f0f7f3; }
.logo-circle svg { width: 58px; height: 58px; }

.logo-text { line-height: 1.25; }
.logo-text .l-name {
  font-family: 'EB Garamond', serif;
  font-size: 23px; font-weight: 700;
  color: var(--white); display: block;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  transition: color var(--ease), text-shadow var(--ease);
}
#site-header.solid .logo-text .l-name { color: var(--blue-dark); text-shadow: none; }

.logo-text .l-tag {
  font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); display: block; margin-top: 3px;
}
.logo-text .l-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  display: block; margin-top: 1px;
  transition: color var(--ease);
}
#site-header.solid .logo-text .l-sub { color: #777; }

/* Header right */
.header-right { display: flex; align-items: center; gap: 14px; }

.hdr-search {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px; overflow: hidden;
  backdrop-filter: blur(6px);
  transition: background var(--ease), border-color var(--ease);
}
#site-header.solid .hdr-search { background: var(--light-gray); border-color: #d8dee8; }
.hdr-search input {
  border: none; background: transparent;
  padding: 8px 14px; font-size: 14px;
  color: var(--white); outline: none; width: 200px;
  transition: color var(--ease);
}
#site-header.solid .hdr-search input { color: var(--text-dark); }
.hdr-search input::placeholder { color: rgba(255,255,255,0.6); }
#site-header.solid .hdr-search input::placeholder { color: #aaa; }
.hdr-search button {
  background: var(--gold); border: none;
  padding: 8px 14px; color: var(--blue-dark);
  cursor: pointer; font-size: 14px; transition: background var(--ease);
}
.hdr-search button:hover { background: var(--gold-light); }

.hdr-quick { display: flex; gap: 8px; }
.hdr-quick a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.08);
  transition: all var(--ease);
}
#site-header.solid .hdr-quick a {
  color: var(--blue); border-color: #c0d4c8; background: transparent; backdrop-filter: none;
}
.hdr-quick a i { font-size: 16px; color: var(--gold); transition: color var(--ease); }
.hdr-quick a:hover { background: var(--gold); color: var(--blue-dark); border-color: var(--gold); }
.hdr-quick a:hover i { color: var(--blue-dark); }


/* ══════════════════════════════════════════════════════════
   UNIFIED NAVBAR — single <nav> for desktop + mobile
   Desktop : horizontal links with hover dropdowns
   Mobile  : hamburger + accordion panel slides down
══════════════════════════════════════════════════════════ */

/* ── Base nav bar ── */
/* ══════════════════════════════════════════════════════════
   UNIFIED NAVBAR  — same HTML, same <ul>, works on both
   Desktop : horizontal links + hover dropdowns
   Mobile  : hamburger opens .nav-links as full accordion
══════════════════════════════════════════════════════════ */

/* ── Base bar ── */
#navbar {
  position: fixed;
  top: calc(var(--topbar-h) + var(--header-h));
  left: 0; right: 0;
  z-index: 998;
  height: var(--navbar-h);
  background: rgba(0,0,0,0.22);
  border-bottom: 2px solid rgba(255,194,0,0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--ease), border-color var(--ease),
              box-shadow var(--ease), top var(--ease);
  overflow: visible;          /* let desktop dropdowns escape */
}
#navbar.solid {
  background: var(--blue);
  border-bottom-color: var(--gold);
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  top: 0;
}

/* ── Inner row ── */
.nav-container {
  height: var(--navbar-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
}

/* ── Small logo — only when solid ── */
.nav-logo {
  display: none;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding-right: 18px;
  border-right: 1px solid rgba(255,255,255,0.15);
  margin-right: 12px;
  flex-shrink: 0;
}
#navbar.solid .nav-logo { display: flex; }
.nav-logo-circle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--gold);
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.nav-logo-circle img { width: 32px; height: 32px; object-fit: contain; }
.nav-logo-text {
  font-family: 'EB Garamond', serif;
  font-size: 15px; font-weight: 700;
  color: var(--white); line-height: 1.1; white-space: nowrap;
}
.nav-logo-text span {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 9px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); margin-top: 1px;
}

/* ══════════════════════════════════════════
   DESKTOP  ≥ 901px — horizontal links
══════════════════════════════════════════ */
.nav-links {
  list-style: none;
  display: flex;
  align-items: stretch;
  height: var(--navbar-h);
  margin: 0; padding: 0;
  flex: 1;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-link {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.9);
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  padding: 0 14px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color var(--ease), background var(--ease), border-color var(--ease);
}
.nav-link .chev { font-size: 9px; opacity: 0.65; transition: transform var(--ease); }
.nav-item:hover > .nav-link,
.nav-link.active {
  color: var(--gold);
  background: rgba(255,255,255,0.1);
  border-bottom-color: var(--gold);
}
.nav-item:hover > .nav-link .chev { transform: rotate(180deg); }

/* Desktop dropdown */
.nav-drop {
  list-style: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 240px;
  background: var(--white);
  border-top: 3px solid var(--gold);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all var(--ease);
  z-index: 500;
  margin: 0; padding: 0;
}
.nav-item:hover .nav-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop li a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px;
  color: #333; font-size: 14px; text-decoration: none;
  border-bottom: 1px solid #eef0f5;
  transition: background var(--ease), color var(--ease), padding-left var(--ease);
}
.nav-drop li:last-child a { border-bottom: none; }
.nav-drop li a i { color: var(--gold); font-size: 12px; width: 16px; text-align: center; }
.nav-drop li a:hover { background: var(--light-gray); color: var(--blue); padding-left: 28px; }

/* ── Hamburger — hidden on desktop ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.hamburger span {
  width: 22px; height: 2px;
  background: white; border-radius: 2px;
  transition: all 0.32s ease;
  transform-origin: center;
  display: block;
}
/* X state */
.hamburger.active { background: rgba(255,194,0,0.15); border-color: var(--gold); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════
   MOBILE  ≤ 900px — accordion from same <ul>
══════════════════════════════════════════ */
@media (max-width: 900px) {

  /* Navbar clips its height but lets the menu slide below */
  #navbar { overflow: visible; }

  /* Container: logo left, hamburger right */
  .nav-container { justify-content: space-between; }

  /* Show hamburger */
  .hamburger { display: flex; }

  /* ── nav-links become a full-width dropdown panel ── */
  .nav-links {
    /* Detach from flex row, sit below navbar */
    position: absolute;
    top: 100%; left: 0; right: 0;
    /* Collapsed */
    height: 0;
    overflow: hidden;
    /* Remove horizontal flex layout */
    display: block;
    background: var(--blue-dark);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 997;
    transition: height 0.38s cubic-bezier(0.4,0,0.2,1);
  }

  /* Open state — JS sets exact scrollHeight */
  .nav-links.mob-open {
    overflow-y: auto;
    max-height: calc(100vh - var(--navbar-h) - 52px);
                                /* 52px = portals bar at bottom */
    height: auto;               /* JS animates via max-height trick below */
  }

  /* Each top-level item — stacked row */
  .nav-item {
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  /* Top-level link becomes full row with chevron on right */
  .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 22px;
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    border-bottom: none;
    margin-bottom: 0;
    white-space: normal;
    width: 100%;
  }
  .nav-item.mob-open > .nav-link { color: var(--gold); background: rgba(255,255,255,0.05); }
  .nav-item.mob-open > .nav-link .chev { transform: rotate(180deg); color: var(--gold); }

  /* Desktop dropdown becomes accordion sub-list */
  .nav-drop {
    position: static;       /* no longer absolute */
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-radius: 0;
    background: rgba(0,0,0,0.22);
    min-width: unset;
    /* Collapsed */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.36s cubic-bezier(0.4,0,0.2,1);
    padding: 0;
  }
  /* Open sub-list */
  .nav-item.mob-open > .nav-drop { max-height: 700px; }

  /* Sub-items indented */
  .nav-drop li a {
    padding: 11px 22px 11px 46px;
    color: rgba(255,255,255,0.72);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 14px;
  }
  .nav-drop li a:hover { color: var(--gold); background: rgba(255,255,255,0.05); padding-left: 54px; }

  /* ── Portals bar — fixed at bottom of viewport ── */
  .mob-portals {
    display: flex !important;  /* force visible on mobile */
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 999;
    background: var(--blue-deeper);
    border-top: 2px solid rgba(255,194,0,0.3);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  }

  /* Other responsive tweaks */
  .hdr-search input { width: 130px; }
  .s-nums { display: none; }
  .s-arrow.next { right: 14px; }
}

/* Portals bar — hidden on desktop */
.mob-portals {
  display: none;
}
.mob-portals a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 8px;
  color: rgba(255,255,255,0.8);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: color var(--ease), background var(--ease);
}
.mob-portals a:last-child { border-right: none; }
.mob-portals a i { font-size: 20px; color: var(--gold); }
.mob-portals a:hover { color: var(--gold); background: rgba(255,255,255,0.06); }

/* ══════════════════════════════════════════════════════════
   FULLSCREEN SLIDER
══════════════════════════════════════════════════════════ */
#slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.slide.active { opacity: 1; }

.slide-bg {
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  transform: scale(1.06); transition: transform 9s ease;
}
.slide.active .slide-bg { transform: scale(1); }

.bg1 {
    background-image: url('../images/bg/bg1.jpeg');
    background-size: cover;
    background-position: center top;
}
.bg2 {
    background-image: url('../images/bg/bg2.jpeg');
    background-size: cover;
    background-position: center;
}
.bg3 {
    background-image: url('../images/bg/bg3.jpeg');
    background-size: cover;
    background-position: center;
}
.bg4 {
    background-image: url('../images/bg/bg4.jpeg');
    background-size: cover;
    background-position: center;
}

.slide-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
}

.slide-content {
  position: absolute;
  bottom: 12%;
  left: 0; right: 0;
  padding: 0 28px;
  max-width: calc(var(--container) + 56px);
  margin: 0 auto;
  color: var(--white);
  z-index: 2;
}

.slide-inner { max-width: 620px; }

.slide-tag {
  display: inline-block; background: var(--gold); color: var(--blue-dark);
  font-size: 11.5px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 2px; margin-bottom: 18px;
}
.slide-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(30px,3.8vw,56px); font-weight: 700; line-height: 1.15;
  margin-bottom: 16px; text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}
.slide-desc {
  font-size: 17px; line-height: 1.75;
  color: rgba(255,255,255,0.82); margin-bottom: 28px;
}
.slide-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-gold {
  background: var(--gold); color: var(--blue-dark);
  padding: 12px 28px; font-size: 13.5px; font-weight: 700;
  letter-spacing: 0.6px; text-transform: uppercase;
  text-decoration: none; border-radius: 3px; transition: all var(--ease);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.28); }

.btn-ghost {
  border: 2px solid rgba(255,255,255,0.7); color: var(--white);
  padding: 11px 26px; font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.6px; text-transform: uppercase;
  text-decoration: none; border-radius: 3px; transition: all var(--ease);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* Arrows */
.s-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 46px; height: 46px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.28); color: var(--white);
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--ease);
}
.s-arrow:hover { background: var(--gold); color: var(--blue-dark); }
.s-arrow.prev { left: 20px; }
.s-arrow.next { right: 80px; }

/* Dots */
.s-dots {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 10;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.38); cursor: pointer; transition: all var(--ease);
}
.dot.active { background: var(--gold); width: 28px; border-radius: 4px; }

/* Side number buttons */
.s-nums {
  position: absolute; right: 28px; top: 50%; transform: translateY(-50%);
  z-index: 10; display: flex; flex-direction: column; gap: 10px;
}
.s-num {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1); color: var(--white);
  font-size: 12px; font-weight: 700; cursor: pointer; transition: all var(--ease);
}
.s-num.active, .s-num:hover { background: var(--gold); color: var(--blue-dark); border-color: var(--gold); }

.s-prog {
  position: absolute; bottom: 0; left: 0; height: 3px;
  background: var(--gold); animation: progAnim 5s linear infinite; z-index: 10;
}
@keyframes progAnim { from { width: 0; } to { width: 100%; } }

.slide.active .slide-tag   { animation: fadeUp 0.7s 0.3s both; }
.slide.active .slide-title { animation: fadeUp 0.7s 0.5s both; }
.slide.active .slide-desc  { animation: fadeUp 0.7s 0.7s both; }
.slide.active .slide-btns  { animation: fadeUp 0.7s 0.9s both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ══════════════════════════════════════════════════════════
   NEWS TICKER
══════════════════════════════════════════════════════════ */
.ticker-bar {
  background: var(--blue-dark);
  display: flex; align-items: center; overflow: hidden; height: 44px;
}
.ticker-label {
  background: var(--gold); color: var(--blue-dark);
  font-size: 11.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 0 22px; height: 100%;
  display: flex; align-items: center; flex-shrink: 0; white-space: nowrap;
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-inner {
  display: flex; gap: 60px;
  animation: tick 32s linear infinite; white-space: nowrap; padding: 0 20px;
}
.ticker-inner:hover { animation-play-state: paused; }
.ticker-item {
  color: rgba(255,255,255,0.82); font-size: 14px;
  flex-shrink: 0; display: flex; align-items: center; gap: 8px;
}
.ticker-item::before { content: '◆'; color: var(--gold); font-size: 7px; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }


/* ══════════════════════════════════════════════════════════
   SHARED SECTION HEADER
══════════════════════════════════════════════════════════ */
.sec-head { text-align: center; margin-bottom: 42px; }
.sec-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 10px;
}
.sec-title {
  font-family: 'EB Garamond', serif;
  font-size: 36px; font-weight: 700; color: var(--blue-dark); line-height: 1.2;
}
.sec-rule { width: 60px; height: 3px; background: var(--gold); margin: 14px auto 0; }


/* ══════════════════════════════════════════════════════════
   STATS
══════════════════════════════════════════════════════════ */
.stats { background: var(--blue-dark); padding: 40px 0; }
.stats .container {
  display: flex; justify-content: center; align-items: center; gap: 0;
}
.stat {
  text-align: center; flex: 1; max-width: 200px;
  border-right: 1px solid rgba(255,255,255,0.1); padding: 0 24px;
}
.stat:last-child { border-right: none; }
.stat-n {
  font-family: 'EB Garamond', serif;
  font-size: 46px; font-weight: 700; color: var(--gold); line-height: 1;
}
.stat-l {
  font-size: 12.5px; color: rgba(255,255,255,0.6);
  letter-spacing: 1.5px; text-transform: uppercase; margin-top: 6px;
}




/* ══════════════════════════════════════════════════════════
   EVENTS AUTO-SLIDER SECTION
══════════════════════════════════════════════════════════ */
.events-section {
  background: var(--light-gray);
  padding: 72px 0 60px;
  overflow: hidden;
  position: relative;
}

/* Section header */
.events-section .sec-title { color: var(--blue-dark); }

/* ── Track wrapper ── */
.ev-viewport {
  overflow: hidden;
  position: relative;
  /* fade edges */
  mask-image: linear-gradient(to right,
    transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%, black 6%, black 94%, transparent 100%);
}

.ev-track {
  display: flex;
  gap: 24px;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
  cursor: grab;
}
.ev-track.dragging {
  cursor: grabbing;
  transition: none;
}

/* ── Individual card ── */
.ev-card {
  flex-shrink: 0;
  width: 320px;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border: 1px solid rgba(26,92,56,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
}
.ev-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(26,92,56,0.16);
}

/* Card image */
.ev-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.ev-card:hover .ev-img { transform: scale(1.04); }

.ev-img-wrap {
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

/* Category badge on image */
.ev-cat {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gold);
  color: var(--blue-dark);
  font-size: 10px; font-weight: 800;
  letter-spacing: 1.8px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 2px;
  z-index: 2;
}

/* Date chip */
.ev-date-chip {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--blue-deeper);
  color: var(--white);
  border-radius: 6px;
  padding: 6px 10px;
  text-align: center;
  z-index: 2;
  min-width: 46px;
}
.ev-date-chip .edc-d {
  font-family: 'EB Garamond', serif;
  font-size: 22px; font-weight: 700;
  color: var(--gold); line-height: 1;
  display: block;
}
.ev-date-chip .edc-m {
  font-size: 9px; letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  display: block; margin-top: 2px;
}

/* Card body */
.ev-body {
  padding: 20px 22px 22px;
  display: flex; flex-direction: column; flex: 1;
}
.ev-venue {
  font-size: 11.5px; font-weight: 600;
  color: var(--blue); letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 9px;
}
.ev-venue i { color: var(--gold); font-size: 11px; }

.ev-title {
  font-family: 'EB Garamond', serif;
  font-size: 19px; font-weight: 700;
  color: var(--text-dark); line-height: 1.35;
  margin-bottom: 10px;
}
.ev-desc {
  font-size: 13.5px; color: #666;
  line-height: 1.65; flex: 1;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ev-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  border-top: 1px solid #eef2f0;
  padding-top: 14px;
}
.ev-time {
  font-size: 12px; color: #888;
  display: flex; align-items: center; gap: 5px;
}
.ev-time i { color: var(--gold); font-size: 11px; }
.ev-cta {
  font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--blue);
  display: flex; align-items: center; gap: 5px;
  transition: gap var(--ease), color var(--ease);
}
.ev-card:hover .ev-cta { gap: 9px; color: var(--blue-dark); }
.ev-cta i { font-size: 11px; }

/* ── Navigation controls ── */
.ev-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 38px;
}

.ev-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--blue);
  background: transparent; color: var(--blue);
  font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--ease);
}
.ev-btn:hover {
  background: var(--blue); color: var(--white);
  transform: scale(1.1);
}

/* Dot indicators */
.ev-dots {
  display: flex; gap: 8px; align-items: center;
}
.ev-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(26,92,56,0.22);
  cursor: pointer;
  transition: all 0.35s ease;
  border: none; padding: 0;
}
.ev-dot.active {
  background: var(--gold);
  width: 26px; border-radius: 4px;
}

/* Progress bar under section */
.ev-progress-wrap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(26,92,56,0.1);
}
.ev-progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--blue), var(--gold));
  width: 0%;
  transition: width 0.1s linear;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .ev-card { width: 280px; }
  .ev-img  { height: 165px; }
}
@media (max-width: 480px) {
  .ev-card { width: 260px; }
}

/* ══════════════════════════════════════════════════════════
   RICH FOOTER
══════════════════════════════════════════════════════════ */

/* Campus banner — hidden as <img>, used as CSS background on footer */
.footer-campus-banner {
  display: none;
}

footer {
    position: relative;
    background: linear-gradient(to bottom, rgba(26,42,32,0.93) 0%, rgba(26,42,32,0.96) 60%, rgba(15,25,18,0.98) 100% ), url('../images/bg/bg2.jpeg') center 60% / cover no-repeat;
    color: rgba(255,255,255,0.72);
    font-size: 14.5px;
}

.footer-main {
  display: grid;
  grid-template-columns: 260px 1fr 1fr 260px;
  gap: 0;
  padding: 48px 28px 36px;
  max-width: var(--container);
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Col 1: Brand */
.ft-brand { padding-right: 32px; border-right: 1px solid rgba(255,255,255,0.07); }
.ft-emblem {
  width: 80px; height: 80px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; background: rgba(255,255,255,0.05);
}
.ft-emblem svg { width: 64px; height: 64px; }
.ft-inst-name { font-family: 'EB Garamond', serif; font-size: 17px; font-weight: 700; color: var(--white); line-height: 1.3; margin-bottom: 4px; }
.ft-inst-addr { font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 20px; }
.ft-contact-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.ft-contact-list li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: rgba(255,255,255,0.62); }
.ft-contact-list li i { color: var(--gold); width: 14px; font-size: 13px; }
.ft-contact-list a { color: rgba(255,255,255,0.62); text-decoration: none; transition: color var(--ease); }
.ft-contact-list a:hover { color: var(--gold); }
.ft-socials { display: flex; gap: 10px; }
.ft-soc {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 14px; text-decoration: none;
  transition: all var(--ease);
}
.ft-soc:hover { background: var(--gold); border-color: var(--gold); color: var(--blue-dark); }

/* Col 2 & 3: Link columns */
.ft-links { padding: 0 40px; border-right: 1px solid rgba(255,255,255,0.07); }
.ft-links h4 {
  font-size: 14px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--white);
  margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 2px solid var(--gold); display: inline-block;
}
.ft-links ul { list-style: none; display: flex; flex-direction: column; gap: 0; }
.ft-links ul li { border-bottom: 1px solid rgba(255,255,255,0.05); }
.ft-links ul li a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 0; color: rgba(255,255,255,0.6);
  text-decoration: none; font-size: 14px;
  transition: color var(--ease), padding-left var(--ease);
}
.ft-links ul li a i { font-size: 11px; color: var(--gold); transition: transform var(--ease); }
.ft-links ul li a:hover { color: var(--gold); padding-left: 6px; }
.ft-links ul li a:hover i { transform: translateX(3px); }
.ft-dark-toggle {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 0; color: rgba(255,255,255,0.6);
  cursor: pointer; font-size: 14px; border: none;
  background: none; width: 100%;
  transition: color var(--ease);
}
.ft-dark-toggle:hover { color: var(--gold); }
.ft-dark-toggle i { color: var(--gold); font-size: 13px; }

/* Col 4: Weather widget */
.ft-weather { padding-left: 32px; }
.ft-weather h4 {
  font-size: 14px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--white);
  margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 2px solid var(--gold); display: inline-block;
}
.fw-datetime { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 14px; line-height: 1.5; }
.fw-datetime strong { color: rgba(255,255,255,0.8); font-size: 14px; }
.fw-main { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.fw-icon { font-size: 40px; line-height: 1; }
.fw-temp-big { font-family: 'EB Garamond', serif; font-size: 40px; font-weight: 700; color: var(--white); line-height: 1; }
.fw-temp-big sup { font-size: 20px; }
.fw-meta { font-size: 12.5px; color: rgba(255,255,255,0.5); line-height: 1.8; }
.fw-meta span { color: rgba(255,255,255,0.75); }
.fw-desc { font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 14px; text-transform: capitalize; letter-spacing: 0.5px; }
.fw-pollution {
  border: 1px dashed rgba(255,255,255,0.2); border-radius: 4px;
  padding: 10px 14px; font-size: 13px; color: rgba(255,255,255,0.65);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px;
}
.fw-pollution .pol-label { font-weight: 700; color: var(--white); }
.fw-pollution .pol-src { font-size: 11px; color: rgba(255,255,255,0.35); display: block; width: 100%; text-align: right; }
.fw-aqi-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-left: 4px; }
.fw-loading { color: rgba(255,255,255,0.35); font-size: 13px; font-style: italic; }


/* ══════════════════════════════════════════════════════════
   FOOTER UTILITY BAR (CMS Login | Student Portal | Fee Payment)
══════════════════════════════════════════════════════════ */
.footer-util-bar {
  background: var(--blue);
  border-top: 2px solid var(--gold);
  padding: 12px 28px;
  display: none;  /* hidden on desktop — shown only on mobile/tablet via media query */
}
.footer-util-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.fu-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.88);
  font-size: 13px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; text-decoration: none;
  padding: 8px 28px;
  border-right: 1px solid rgba(255,255,255,0.2);
  transition: color var(--ease), background var(--ease);
}
.fu-link:last-child { border-right: none; }
.fu-link i { font-size: 15px; color: var(--gold); transition: color var(--ease); }
.fu-link:hover { color: var(--gold); background: rgba(255,255,255,0.08); }
.fu-link:hover i { color: var(--white); }

/* Footer bottom bar */
.footer-bottom {
  background: #0f1f14;
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  max-width: 100%;
}
.footer-bottom-inner {
  max-width: var(--container); margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.fb-copy { font-size: 12.5px; color: rgba(255,255,255,0.38); }
.fb-copy a { color: var(--gold); text-decoration: none; }
.fb-copy a:hover { color: var(--gold-light); }
.fb-right { display: flex; align-items: center; gap: 20px; }
.fb-right a { font-size: 12.5px; color: rgba(255,255,255,0.45); text-decoration: none; display: flex; align-items: center; gap: 5px; transition: color var(--ease); }
.fb-right a:hover { color: var(--gold); }
.fb-dev { font-size: 12.5px; color: rgba(255,255,255,0.35); }
.fb-dev a { color: var(--gold); text-decoration: none; }


/* ══════════════════════════════════════════════════════════
   FLOATING BUTTONS — WhatsApp + Scroll Top
══════════════════════════════════════════════════════════ */
.float-btn-group {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.whatsapp-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: #25D366;
  color: #fff;
  border: none; cursor: pointer; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  text-decoration: none;
  opacity: 0; transform: translateY(10px);
  transition: opacity var(--ease), transform var(--ease), background var(--ease), box-shadow var(--ease);
}
.whatsapp-btn.show { opacity: 1; transform: translateY(0); }
.whatsapp-btn:hover {
  background: #1da851;
  box-shadow: 0 6px 22px rgba(37,211,102,0.6);
  transform: scale(1.12);
}

.scroll-top {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: var(--blue-dark);
  border: none; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  opacity: 0; transform: translateY(10px);
  transition: opacity var(--ease), transform var(--ease), background var(--ease);
}
.scroll-top.show { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--gold-light); }


/* ══════════════════════════════════════════════════════════
   PAGE LOADER
══════════════════════════════════════════════════════════ */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--blue-deeper);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#page-loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-emblem {
  width: 90px; height: 90px; border-radius: 50%;
  border: 3px solid var(--gold);
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  animation: pulseGlow 1.8s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,194,0,0.5); }
  50%      { box-shadow: 0 0 0 20px rgba(255,194,0,0); }
}
.loader-emblem svg { width: 72px; height: 72px; }
.loader-name { font-family: 'EB Garamond', serif; font-size: 23px; font-weight: 700; color: var(--white); text-align: center; }
.loader-tag { font-size: 12px; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; }
.loader-bar-wrap { width: 260px; height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.loader-bar { height: 100%; width: 0; background: var(--gold); border-radius: 2px; animation: loadBar 2.2s cubic-bezier(0.4,0,0.2,1) forwards; }
@keyframes loadBar { 0%{width:0} 60%{width:75%} 100%{width:100%} }
.loader-dots { display: flex; gap: 8px; }
.loader-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.loader-dot:nth-child(1) { animation: dotPulse 1.2s 0.0s ease-in-out infinite; }
.loader-dot:nth-child(2) { animation: dotPulse 1.2s 0.2s ease-in-out infinite; }
.loader-dot:nth-child(3) { animation: dotPulse 1.2s 0.4s ease-in-out infinite; }
@keyframes dotPulse {
  0%,100% { background: rgba(255,255,255,0.2); transform: scale(1); }
  50%      { background: var(--gold); transform: scale(1.4); }
}


/* ══════════════════════════════════════════════════════════
   FEEDBACK FLOATING TAB
══════════════════════════════════════════════════════════ */
#feedback-tab {
  position: fixed; left: 0; top: 55%;
  transform: translateY(-50%) rotate(-90deg) translateX(-100%);
  transform-origin: left top; z-index: 900;
}
#feedback-tab a {
  display: flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--blue-dark);
  font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; text-decoration: none;
  padding: 10px 22px; border-radius: 0 0 6px 6px;
  box-shadow: 2px 2px 14px rgba(0,0,0,0.3);
  transition: background var(--ease), box-shadow var(--ease), padding var(--ease);
}
#feedback-tab a:hover { background: var(--gold-light); padding: 12px 26px; box-shadow: 2px 4px 22px rgba(0,0,0,0.4); }


/* ══════════════════════════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════════════════════════ */
.about-section { background: var(--white); padding: 80px 0; overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.about-img-wrap {
  position: relative;
  opacity: 0; transform: translateX(-60px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.about-img-wrap.in-view { opacity: 1; transform: translateX(0); }
.about-img-wrap img { width: 100%; height: 420px; object-fit: cover; border-radius: 8px; box-shadow: 0 20px 60px rgba(26,92,56,0.18); }
.about-img-badge {
  position: absolute; bottom: -22px; right: -22px;
  background: var(--gold); color: var(--blue-dark);
  width: 110px; height: 110px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: 'EB Garamond', serif;
  box-shadow: 0 8px 28px rgba(255,194,0,0.45);
}
.about-img-badge .badge-num { font-size: 30px; font-weight: 700; line-height: 1; }
.about-img-badge .badge-lbl { font-size: 9.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; text-align: center; }
.about-img-frame { position: absolute; top: -14px; left: -14px; width: 100%; height: 100%; border: 3px solid rgba(255,194,0,0.3); border-radius: 8px; pointer-events: none; }

.about-content {
  opacity: 0; transform: translateX(60px);
  transition: opacity 0.9s ease 0.2s, transform 0.9s ease 0.2s;
}
.about-content.in-view { opacity: 1; transform: translateX(0); }
.about-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 14px; }
.about-title { font-family: 'EB Garamond', serif; font-size: clamp(26px,2.8vw,38px); font-weight: 700; color: var(--blue-dark); line-height: 1.2; margin-bottom: 18px; }
.about-rule { width: 56px; height: 3px; background: var(--gold); margin-bottom: 22px; }
.about-text { font-size: 17px; color: #4a4a5a; line-height: 1.85; margin-bottom: 14px; }
.about-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0; }
.about-feat {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px;
  border-radius: 6px; background: var(--light-gray); border-left: 3px solid var(--gold);
  transition: transform var(--ease), box-shadow var(--ease);
}
.about-feat:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.09); }
.about-feat i { color: var(--gold); font-size: 19px; margin-top: 2px; flex-shrink: 0; }
.about-feat h4 { font-size: 14px; font-weight: 700; color: var(--blue-dark); margin-bottom: 3px; }
.about-feat p { font-size: 13px; color: #666; line-height: 1.5; }
.about-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.btn-primary { background: var(--blue); color: var(--white); padding: 12px 28px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; text-decoration: none; border-radius: 3px; transition: all var(--ease); border: 2px solid var(--blue); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26,92,56,0.25); }
.btn-outline { background: transparent; color: var(--blue); padding: 11px 26px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; text-decoration: none; border-radius: 3px; transition: all var(--ease); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }


/* ══════════════════════════════════════════════════════════
   NOTICE BOARD + PRINCIPAL PROFILE
══════════════════════════════════════════════════════════ */
.np-section { background: var(--light-gray); padding: 70px 0; }
.np-grid { display: grid; grid-template-columns: 1fr 420px; gap: 36px; align-items: start; }

.notice-board {
  background: var(--white); border-radius: 8px;
  box-shadow: 0 4px 24px rgba(26,92,56,0.09);
  overflow: hidden;
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.notice-board.in-view { opacity: 1; transform: translateY(0); }
.nb-header {
  background: var(--blue); color: var(--white);
  padding: 18px 24px; display: flex; align-items: center; justify-content: space-between;
}
.nb-header h3 { font-family: 'EB Garamond', serif; font-size: 21px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.nb-header h3 i { color: var(--gold); }
.nb-header a { color: var(--gold); font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; }
.nb-header a:hover { color: var(--gold-light); }

.nb-tabs { display: flex; border-bottom: 2px solid #e8edf5; }
.nb-tab {
  padding: 12px 20px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: #888; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color var(--ease), border-color var(--ease);
}
.nb-tab.active { color: var(--blue); border-bottom-color: var(--gold); }

.nb-list { max-height: 360px; overflow-y: auto; }
.nb-list::-webkit-scrollbar { width: 4px; }
.nb-list::-webkit-scrollbar-thumb { background: #c0d4c8; border-radius: 2px; }

.nb-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 24px; border-bottom: 1px solid #f0f3f9;
  text-decoration: none; color: inherit;
  transition: background var(--ease);
  animation: nbSlideIn 0.4s ease both;
}
.nb-item:last-child { border-bottom: none; }
.nb-item:hover { background: #f0f7f3; }
@keyframes nbSlideIn { from { opacity:0; transform: translateX(-12px); } to { opacity:1; transform: translateX(0); } }

.nb-date {
  flex-shrink: 0; width: 50px; text-align: center;
  background: var(--blue-deeper); color: var(--white); border-radius: 6px; padding: 6px 4px;
}
.nb-date .nd { font-family: 'EB Garamond', serif; font-size: 23px; font-weight: 700; line-height: 1; color: var(--gold); }
.nb-date .nm { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.6); margin-top: 3px; }
.nb-body { flex: 1; }
.nb-tag {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 2px 8px; border-radius: 20px; margin-bottom: 5px;
}
.nb-tag.new { background: #e8f5e9; color: #2e7d32; }
.nb-tag.imp { background: #fff3e0; color: #e65100; }
.nb-tag.gen { background: #e8f5ee; color: var(--blue); }
.nb-title { font-size: 14.5px; font-weight: 600; color: var(--text-dark); line-height: 1.45; margin-bottom: 4px; }
.nb-sub { font-size: 12.5px; color: #888; }
.nb-arrow { color: var(--gold); font-size: 12px; margin-top: 4px; flex-shrink: 0; transition: transform var(--ease); }
.nb-item:hover .nb-arrow { transform: translateX(4px); }

/* Principal Profile */
.principal-card {
  background: var(--white); border-radius: 8px;
  box-shadow: 0 4px 24px rgba(26,92,56,0.09);
  overflow: hidden;
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}
.principal-card.in-view { opacity: 1; transform: translateY(0); }
.pc-banner {
  height: 100px; background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue) 100%);
  position: relative; overflow: hidden;
}
.pc-banner::after { content:''; position:absolute; inset:0; background:url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23FFC200' fill-opacity='0.08'%3E%3Ccircle cx='20' cy='20' r='10'/%3E%3C/g%3E%3C/svg%3E"); }
.pc-photo-wrap { position: absolute; bottom: -44px; left: 50%; transform: translateX(-50%); }
.pc-photo { width: 88px; height: 88px; border-radius: 50%; border: 4px solid var(--gold); object-fit: cover; box-shadow: 0 8px 24px rgba(0,0,0,0.22); }
.pc-body { padding: 56px 28px 28px; text-align: center; }
.pc-role { font-size: 11.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.pc-name { font-family: 'EB Garamond', serif; font-size: 23px; font-weight: 700; color: var(--blue-dark); margin-bottom: 4px; }
.pc-dept { font-size: 13.5px; color: #666; margin-bottom: 18px; }
.pc-rule { width: 40px; height: 2px; background: var(--gold); margin: 0 auto 18px; }
.pc-quote { font-family: 'EB Garamond', serif; font-style: italic; font-size: 16px; color: #555; line-height: 1.7; border-left: 3px solid var(--gold); padding-left: 16px; text-align: left; margin-bottom: 20px; }
.pc-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.pc-stat { text-align: center; padding: 12px 4px; background: var(--light-gray); border-radius: 6px; }
.pc-stat .ps-n { font-family: 'EB Garamond', serif; font-size: 23px; font-weight: 700; color: var(--blue); line-height: 1; }
.pc-stat .ps-l { font-size: 11px; color: #888; letter-spacing: 0.5px; text-transform: uppercase; margin-top: 3px; }
.pc-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: var(--white); text-decoration: none; padding: 10px 22px; border-radius: 4px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; transition: all var(--ease); }
.pc-btn:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(26,92,56,0.25); }


/* ══════════════════════════════════════════════════════════
   QUICK LINKS
══════════════════════════════════════════════════════════ */
.quicklinks-section { background: var(--blue-deeper); padding: 60px 0; }
.quicklinks-section .sec-title { color: var(--white); }
.ql-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.ql-item {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,194,0,0.18);
  border-radius: 8px; padding: 22px 18px;
  text-decoration: none; color: var(--white);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  opacity: 0; transform: translateY(30px);
}
.ql-item.in-view { opacity: 1; transform: translateY(0); }
.ql-item::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  opacity: 0; transition: opacity 0.35s ease; z-index: 0;
}
.ql-item:hover { transform: translateY(-6px) scale(1.03); box-shadow: 0 16px 40px rgba(0,0,0,0.35); border-color: var(--gold); }
.ql-item:hover::before { opacity: 1; }
.ql-item:hover .ql-icon, .ql-item:hover .ql-label { color: var(--blue-dark); }
.ql-icon { position: relative; z-index: 1; font-size: 29px; color: var(--gold); transition: color 0.35s ease, transform 0.35s ease; }
.ql-item:hover .ql-icon { transform: scale(1.2) rotate(-5deg); }
.ql-label { position: relative; z-index: 1; font-size: 13px; font-weight: 700; letter-spacing: 0.5px; line-height: 1.35; color: rgba(255,255,255,0.88); transition: color 0.35s ease; }
.ql-arrow { position: absolute; bottom: 10px; right: 12px; font-size: 12px; color: rgba(255,255,255,0.3); z-index: 1; transition: color 0.35s ease, transform 0.35s ease; }
.ql-item:hover .ql-arrow { color: var(--blue-dark); transform: translate(3px,-3px); }


/* ══════════════════════════════════════════════════════════
   SOCIAL MEDIA SECTION
══════════════════════════════════════════════════════════ */
.social-section { background: var(--white); padding: 70px 0; }
.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 20px; }
.social-card {
  border-radius: 12px; padding: 32px 20px; text-align: center;
  text-decoration: none; color: var(--white);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  position: relative; overflow: hidden;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.35s ease, filter 0.35s ease;
}
.social-card.in-view { opacity: 1; transform: translateY(0); }
.social-card:hover { box-shadow: 0 20px 50px rgba(0,0,0,0.22); filter: brightness(1.08); transform: translateY(-6px); }
.social-card::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.07); opacity: 0; transition: opacity 0.35s; border-radius: 12px; }
.social-card:hover::after { opacity: 1; }

.sc-fb { background: linear-gradient(135deg, #1877f2, #0a4da3); }
.sc-tw { background: linear-gradient(135deg, #14171a, #3a3a4a); }
.sc-li { background: linear-gradient(135deg, #0a66c2, #004182); }
.sc-yt { background: linear-gradient(135deg, #ff0000, #b00000); }
.sc-ig { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }

.social-icon { font-size: 39px; }
.social-name { font-size: 15px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.social-handle { font-size: 13px; opacity: 0.75; }
.social-count { font-family: 'EB Garamond', serif; font-size: 29px; font-weight: 700; line-height: 1; }
.social-count-lbl { font-size: 11.5px; opacity: 0.75; letter-spacing: 1px; text-transform: uppercase; }
.social-follow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.2); border-radius: 20px;
  padding: 6px 16px; font-size: 12.5px; font-weight: 700;
  margin-top: 4px; letter-spacing: 0.5px; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.3);
  transition: background 0.3s ease;
}
.social-card:hover .social-follow { background: rgba(255,255,255,0.35); }


/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ft-brand { border-right: none; padding-right: 0; border-bottom: 1px solid rgba(255,255,255,0.07); padding-bottom: 28px; }
  .ft-links:last-of-type { border-right: none; }
  .ft-weather { padding-left: 0; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 28px; }
  .hdr-quick { display: none; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-img-wrap { transform: translateY(40px); }
  .about-img-wrap.in-view { transform: translateY(0); }
  .about-content { transform: translateY(40px); }
  .about-content.in-view { transform: translateY(0); }
  .about-img-badge { width: 90px; height: 90px; bottom: -14px; right: -6px; }
  .about-img-badge .badge-num { font-size: 22px; }
  .np-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .footer-main { grid-template-columns: 1fr; padding: 32px 20px; }
  .ft-links { padding: 0; border-right: none; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 24px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 6px; }
  .fu-link { padding: 8px 14px; font-size: 12px; }
}

/* ── CMS Login / Student Portal / Fee Payment — mobile & tablet only (≤1024px) ── */
@media (max-width: 1024px) {
  .footer-util-bar { display: block; }
  .footer-util-bar .container { flex-direction: row; justify-content: center; }
}
@media (max-width: 480px) {
  .footer-util-bar .container { flex-direction: column; align-items: stretch; }
  .fu-link { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); justify-content: center; }
  .fu-link:last-child { border-bottom: none; }
}

@media (max-width: 900px) {
  /* Hide all topbar left links on mobile/tablet — only keep social + apply btn */
  .tb-left { display: none; }
}

@media (max-width: 600px) {
  .logo-text .l-sub { display: none; }
  .logo-text .l-name { font-size: 18px; }
  .container { padding: 0 16px; }
  .about-feats { grid-template-columns: 1fr; }
}

.stats .container { flex-wrap: wrap; }
@media (max-width: 700px) {
  .stat { border-right: none; padding: 12px 0; }
}



/* ══════════════════════════════════════════
       SUBPAGE HERO BANNER
    ══════════════════════════════════════════ */
.sub-hero {
    margin-top: calc(var(--header-h) + var(--navbar-h));
    background: linear-gradient(135deg, rgba(8,40,24,0.92) 0%, rgba(15,61,37,0.85) 60%, rgba(26,92,56,0.7) 100%), url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?w=1600&q=80') center/cover no-repeat;
    padding: 52px 0 44px;
    position: relative;
    overflow: hidden;
}

.sub-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23FFC200' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/svg%3E");
}

.sub-hero .container {
    position: relative;
    z-index: 1;
}

/* Breadcrumb */
.sub-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

    .sub-breadcrumb a {
        color: rgba(255,255,255,0.65);
        text-decoration: none;
        transition: color var(--ease);
    }

        .sub-breadcrumb a:hover {
            color: var(--gold);
        }

    .sub-breadcrumb .sep {
        color: rgba(255,255,255,0.3);
        font-size: 10px;
    }

    .sub-breadcrumb .cur {
        color: var(--gold);
        font-weight: 600;
    }

.sub-hero-eyebrow {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

    .sub-hero-eyebrow::before {
        content: '';
        width: 32px;
        height: 2px;
        background: var(--gold);
    }

.sub-hero h1 {
    font-family: 'EB Garamond', serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 14px;
}

.sub-hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    max-width: 600px;
    line-height: 1.7;
}

.sub-hero-meta {
    display: flex;
    gap: 20px;
    margin-top: 22px;
    flex-wrap: wrap;
}

    .sub-hero-meta span {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: rgba(255,255,255,0.6);
    }

        .sub-hero-meta span i {
            color: var(--gold);
        }

/* ══════════════════════════════════════════
       MAIN CONTENT AREA
    ══════════════════════════════════════════ */
.sub-body {
    background: var(--light-gray);
    padding: 48px 0 64px;
}

.sub-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

/* ── LEFT SIDEBAR ── */
.sub-sidebar {
    position: sticky;
    top: calc(var(--navbar-h) + 16px);
}

.sidebar-nav-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    margin-bottom: 20px;
}

.sidebar-nav-head {
    background: var(--blue);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .sidebar-nav-head h3 {
        font-family: 'EB Garamond', serif;
        font-size: 17px;
        font-weight: 700;
        color: var(--white);
        margin: 0;
    }

    .sidebar-nav-head i {
        color: var(--gold);
    }

.sidebar-nav-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

    .sidebar-nav-list li a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 11px 20px;
        color: #444;
        font-size: 14.5px;
        text-decoration: none;
        border-left: 3px solid transparent;
        transition: all var(--ease);
    }

        .sidebar-nav-list li a i {
            color: var(--blue);
            font-size: 12px;
            width: 14px;
        }

        .sidebar-nav-list li a:hover,
        .sidebar-nav-list li a.active {
            color: var(--blue);
            background: #f0f7f3;
            border-left-color: var(--gold);
            padding-left: 24px;
        }

        .sidebar-nav-list li a.active {
            font-weight: 700;
        }

    .sidebar-nav-list li {
        border-bottom: 1px solid #f0f3f7;
    }

        .sidebar-nav-list li:last-child {
            border-bottom: none;
        }

/* Quick Info card */
.sidebar-info-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    margin-bottom: 20px;
}

.sidebar-info-head {
    background: var(--blue-deeper);
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .sidebar-info-head i {
        color: var(--gold);
    }

.sidebar-info-body {
    padding: 18px 20px;
}

.info-row {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f3f7;
    font-size: 13.5px;
}

    .info-row:last-child {
        border-bottom: none;
    }

    .info-row i {
        color: var(--gold);
        width: 18px;
        flex-shrink: 0;
        margin-top: 3px;
    }

    .info-row strong {
        display: block;
        color: var(--blue-dark);
        font-size: 12px;
        margin-bottom: 2px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .info-row span {
        color: #555;
    }

/* Downloads card */
.sidebar-dl-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.sidebar-dl-head {
    background: var(--gold);
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue-dark);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dl-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    border-bottom: 1px solid #f0f3f7;
    text-decoration: none;
    color: #333;
    transition: all var(--ease);
}

    .dl-item:last-child {
        border-bottom: none;
    }

    .dl-item:hover {
        background: #f0f7f3;
        color: var(--blue);
    }

.dl-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #fee;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .dl-icon.pdf {
        background: #fee8e8;
        color: #d32f2f;
    }

    .dl-icon.doc {
        background: #e3f0ff;
        color: #1565c0;
    }

    .dl-icon.xlsx {
        background: #e8f5e9;
        color: #2e7d32;
    }

    .dl-icon i {
        font-size: 16px;
    }

.dl-meta strong {
    display: block;
    font-size: 13.5px;
    color: #222;
}

.dl-meta small {
    font-size: 11.5px;
    color: #888;
}

/* ── MAIN CONTENT ── */
.sub-content-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    overflow: hidden;
    margin-bottom: 24px;
}

.content-top-bar {
    background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue) 100%);
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .content-top-bar h2 {
        font-family: 'EB Garamond', serif;
        font-size: 22px;
        font-weight: 700;
        color: var(--white);
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .content-top-bar h2 i {
            color: var(--gold);
        }

    .content-top-bar .last-updated {
        font-size: 12px;
        color: rgba(255,255,255,0.5);
    }

.content-body {
    padding: 32px 28px;
}

    .content-body h3 {
        font-family: 'EB Garamond', serif;
        font-size: 22px;
        font-weight: 700;
        color: var(--blue-dark);
        margin: 28px 0 12px;
        padding-bottom: 8px;
        border-bottom: 2px solid var(--gold);
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .content-body h3:first-child {
            margin-top: 0;
        }

        .content-body h3 i {
            color: var(--gold);
            font-size: 16px;
        }

    .content-body p {
        font-size: 16px;
        color: #444;
        line-height: 1.85;
        margin-bottom: 16px;
    }

    .content-body strong {
        color: var(--blue-dark);
    }

/* Lead paragraph */
.lead-para {
    font-size: 18px !important;
    color: #333 !important;
    border-left: 4px solid var(--gold);
    padding-left: 20px;
    margin-bottom: 24px !important;
    font-style: italic;
}

/* Highlight box */
.highlight-box {
    background: linear-gradient(135deg, #f0f7f3 0%, #e8f5ee 100%);
    border-left: 4px solid var(--blue);
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    margin: 24px 0;
}

    .highlight-box h4 {
        font-family: 'EB Garamond', serif;
        font-size: 18px;
        font-weight: 700;
        color: var(--blue-dark);
        margin-bottom: 8px;
    }

    .highlight-box p {
        font-size: 15px;
        margin: 0;
        color: #555;
    }

/* Two column grid inside content */
.content-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 20px 0;
}

.content-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 8px;
    background: var(--light-gray);
    border: 1px solid #e0e8e4;
    transition: all var(--ease);
}

    .content-feature:hover {
        background: #e8f5ee;
        border-color: var(--blue);
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    }

    .content-feature .cf-icon {
        width: 44px;
        height: 44px;
        border-radius: 8px;
        background: var(--blue);
        color: var(--gold);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        flex-shrink: 0;
    }

    .content-feature h4 {
        font-size: 15px;
        font-weight: 700;
        color: var(--blue-dark);
        margin-bottom: 4px;
    }

    .content-feature p {
        font-size: 13.5px;
        color: #666;
        line-height: 1.5;
        margin: 0;
    }

/* Faculty table card */
.sub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}

    .sub-table thead tr {
        background: var(--blue);
        color: var(--white);
    }

    .sub-table thead th {
        padding: 13px 18px;
        text-align: left;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    .sub-table tbody tr {
        border-bottom: 1px solid #eef2f0;
        transition: background var(--ease);
    }

        .sub-table tbody tr:hover {
            background: #f0f7f3;
        }

    .sub-table tbody td {
        padding: 13px 18px;
        color: #444;
        vertical-align: middle;
    }

        .sub-table tbody td:first-child {
            font-weight: 600;
            color: var(--blue-dark);
        }

.badge-dept {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: #e8f5ee;
    color: var(--blue);
}

/* Stats ribbon */
.stats-ribbon {
    background: var(--blue-deeper);
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    margin-bottom: 24px;
}

.stat-cell {
    text-align: center;
    padding: 22px 16px;
    border-right: 1px solid rgba(255,255,255,0.08);
}

    .stat-cell:last-child {
        border-right: none;
    }

    .stat-cell .sn {
        font-family: 'EB Garamond', serif;
        font-size: 34px;
        font-weight: 700;
        color: var(--gold);
        line-height: 1;
    }

    .stat-cell .sl {
        font-size: 12px;
        color: rgba(255,255,255,0.55);
        text-transform: uppercase;
        letter-spacing: 1.2px;
        margin-top: 6px;
    }

/* Gallery strip */
.gallery-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 8px;
}

    .gallery-strip img {
        width: 100%;
        height: 160px;
        object-fit: cover;
        border-radius: 8px;
        transition: transform var(--ease);
        cursor: pointer;
    }

        .gallery-strip img:hover {
            transform: scale(1.03);
        }

/* ══════════════════════════════════════════
       RESPONSIVE
    ══════════════════════════════════════════ */
@media (max-width: 900px) {
    .sub-layout {
        grid-template-columns: 1fr;
    }

    .sub-sidebar {
        position: static;
    }

    .content-2col {
        grid-template-columns: 1fr;
    }

    .stats-ribbon {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .content-body {
        padding: 20px 16px;
    }

    .stats-ribbon {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-strip {
        grid-template-columns: 1fr;
    }
}



/* ══════════════════════════════════════════════════════════
   PRINCIPAL'S MESSAGE PAGE
══════════════════════════════════════════════════════════ */

.pm-main { width: 100%; }

/* ── Profile + Message Card ── */
.pm-profile-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: 300px 1fr;
    margin-bottom: 0;
}

/* ── LEFT column — photo + identity ── */
.pm-profile-left {
    background: linear-gradient(175deg, var(--blue-deeper) 0%, var(--blue) 100%);
    padding: 36px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}
.pm-profile-left::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23FFC200' fill-opacity='0.04'%3E%3Ccircle cx='20' cy='20' r='10'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Photo frame */
.pm-photo-frame {
    position: relative;
    margin-bottom: 22px;
    z-index: 1;
}
.pm-photo-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(255,194,0,0.35);
    animation: pmRingPulse 3s ease-in-out infinite;
}
@keyframes pmRingPulse {
    0%,100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.06); opacity: 0.5; }
}
.pm-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gold);
    display: block;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.pm-photo-badge {
    position: absolute;
    bottom: 4px; right: 4px;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: var(--blue-dark);
}

/* Identity */
.pm-identity { z-index: 1; width: 100%; }
.pm-role {
    font-size: 10.5px; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--gold); margin-bottom: 6px;
}
.pm-name {
    font-family: 'EB Garamond', serif;
    font-size: 20px; font-weight: 700;
    color: var(--white); margin-bottom: 5px; line-height: 1.3;
}
.pm-dept { font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 16px; }
.pm-rule {
    width: 40px; height: 2px;
    background: var(--gold);
    margin: 0 auto 16px;
}

/* Credentials list */
.pm-credentials {
    list-style: none;
    padding: 0; margin: 0 0 22px;
    text-align: left;
}
.pm-credentials li {
    display: flex; align-items: flex-start; gap: 9px;
    font-size: 13px; color: rgba(255,255,255,0.72);
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    line-height: 1.4;
}
.pm-credentials li:last-child { border-bottom: none; }
.pm-credentials li i { color: var(--gold); font-size: 12px; margin-top: 2px; flex-shrink: 0; width: 14px; }

/* Stats box */
.pm-stats-box {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    z-index: 1;
}
.pm-stat {
    background: rgba(0,0,0,0.2);
    padding: 12px 6px;
    text-align: center;
}
.pm-stat .ps-n {
    font-family: 'EB Garamond', serif;
    font-size: 26px; font-weight: 700;
    color: var(--gold); line-height: 1; display: block;
}
.pm-stat .ps-n sup { font-size: 14px; }
.pm-stat .ps-l {
    font-size: 10px; color: rgba(255,255,255,0.5);
    text-transform: uppercase; letter-spacing: 0.8px;
    margin-top: 4px; display: block;
}

/* ── RIGHT column — message ── */
.pm-message-body {
    padding: 36px 38px 40px;
    display: flex; flex-direction: column;
}

.pm-msg-header { margin-bottom: 22px; }
.pm-msg-eyebrow {
    font-size: 11.5px; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--gold);
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 10px;
}
.pm-msg-eyebrow::before {
    content: '';
    width: 28px; height: 2px; background: var(--gold);
}
.pm-msg-eyebrow i { font-size: 13px; }
.pm-msg-title {
    font-family: 'EB Garamond', serif;
    font-size: 26px; font-weight: 700;
    color: var(--blue-dark); line-height: 1.3;
}

/* Pull quote */
.pm-pull-quote {
    background: linear-gradient(135deg, #f0f7f3, #e8f5ee);
    border-left: 4px solid var(--gold);
    border-radius: 0 8px 8px 0;
    padding: 18px 22px 18px 52px;
    margin: 0 0 24px;
    position: relative;
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 18px; color: #3a3a4a; line-height: 1.7;
}
.pm-quote-icon {
    position: absolute; top: 18px; left: 18px;
    font-size: 22px; color: var(--gold); opacity: 0.7;
}

/* Message text */
.pm-msg-text p {
    font-size: 15.5px; color: #444;
    line-height: 1.9; margin-bottom: 16px;
    text-align: justify;
}
.pm-msg-text strong { color: var(--blue-dark); }

/* Highlight block inside message */
.pm-highlight-block {
    display: flex; gap: 16px; align-items: flex-start;
    background: var(--blue-deeper);
    border-radius: 8px; padding: 18px 22px;
    margin: 22px 0;
}
.pm-highlight-icon {
    width: 42px; height: 42px; border-radius: 8px;
    background: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--blue-dark);
    flex-shrink: 0;
}
.pm-highlight-block h4 {
    font-size: 16px; font-weight: 700;
    color: var(--white); margin-bottom: 4px;
}
.pm-highlight-block p {
    font-size: 14px !important;
    color: rgba(255,255,255,0.72) !important;
    margin: 0 !important; line-height: 1.6 !important;
}

/* Values grid */
.pm-values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 22px 0;
}
.pm-value-item {
    display: flex; gap: 13px; align-items: flex-start;
    padding: 15px; border-radius: 8px;
    background: var(--light-gray);
    border: 1px solid rgba(26,92,56,0.1);
    transition: all var(--ease);
}
.pm-value-item:hover {
    background: #e8f5ee;
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.07);
}
.pm-val-icon {
    width: 40px; height: 40px; border-radius: 8px;
    background: var(--blue); color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.pm-value-item h4 {
    font-size: 14px; font-weight: 700;
    color: var(--blue-dark); margin-bottom: 4px;
}
.pm-value-item p { font-size: 13px; color: #666; line-height: 1.5; margin: 0; }

/* Signature block */
.pm-signature {
    margin-top: 30px;
    padding-top: 24px;
}
.pm-sig-line {
    width: 100%; height: 1px;
    background: linear-gradient(to right, var(--gold), transparent);
    margin-bottom: 22px;
}
.pm-sig-content {
    display: flex; align-items: flex-end;
    justify-content: space-between; gap: 24px;
    flex-wrap: wrap;
}
.pm-sig-text { display: flex; flex-direction: column; gap: 3px; }
.pm-sig-name {
    font-family: 'EB Garamond', serif;
    font-size: 22px; font-weight: 700;
    color: var(--blue-dark);
    font-style: italic;
}
.pm-sig-role {
    font-size: 13px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--blue);
}
.pm-sig-inst { font-size: 13px; color: #666; }
.pm-sig-date { font-size: 12.5px; color: #999; display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.pm-sig-date i { color: var(--gold); }

/* Official seal */
.pm-seal-ring {
    width: 80px; height: 80px; border-radius: 50%;
    border: 3px solid var(--blue);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 6px rgba(26,92,56,0.08);
    background: var(--white);
}
.pm-seal-inner { text-align: center; }
.pm-seal-text {
    font-family: 'EB Garamond', serif;
    font-size: 15px; font-weight: 700;
    color: var(--blue-dark); line-height: 1;
}
.pm-seal-sub {
    font-size: 8px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--blue); margin-top: 2px;
}

/* ── TIMELINE — Academic Journey ── */
.pm-timeline {
    position: relative;
    padding-left: 36px;
}
.pm-timeline::before {
    content: '';
    position: absolute;
    left: 18px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--blue), var(--gold));
}
.pm-tl-item {
    position: relative;
    padding: 0 0 32px 28px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.pm-tl-item:last-child { padding-bottom: 0; }
.pm-tl-dot {
    position: absolute;
    left: -26px; top: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--blue);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--blue);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 14px;
    flex-shrink: 0; z-index: 1;
}
.pm-tl-content {
    background: var(--white);
    border: 1px solid #e0e8e4;
    border-radius: 8px;
    padding: 16px 20px;
    flex: 1;
    transition: all var(--ease);
}
.pm-tl-content:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 16px rgba(26,92,56,0.1);
    transform: translateX(4px);
}
.pm-tl-year {
    display: inline-block;
    background: var(--gold);
    color: var(--blue-dark);
    font-size: 11px; font-weight: 800;
    letter-spacing: 1px;
    padding: 2px 10px; border-radius: 20px;
    margin-bottom: 8px;
}
.pm-tl-content h4 {
    font-size: 16px; font-weight: 700;
    color: var(--blue-dark); margin-bottom: 5px;
}
.pm-tl-content p { font-size: 14px; color: #666; line-height: 1.6; margin: 0; }

/* ══ RESPONSIVE ══ */
@media (max-width: 960px) {
    .pm-profile-card { grid-template-columns: 1fr; }
    .pm-profile-left { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 24px; text-align: left; }
    .pm-photo-frame { margin-bottom: 0; }
    .pm-identity { flex: 1; min-width: 200px; }
    .pm-rule { margin: 0 0 16px; }
    .pm-stats-box { width: 100%; }
    .pm-message-body { padding: 28px 24px; }
}
@media (max-width: 640px) {
    .pm-profile-left { flex-direction: column; align-items: center; text-align: center; }
    .pm-values-grid { grid-template-columns: 1fr; }
    .pm-msg-title { font-size: 20px; }
    .pm-pull-quote { font-size: 16px; padding-left: 40px; }
    .pm-sig-content { flex-direction: column; align-items: flex-start; }
    .pm-timeline { padding-left: 24px; }
    .pm-timeline::before { left: 12px; }
    .pm-tl-dot { left: -18px; width: 30px; height: 30px; font-size: 12px; }
}
