/* ==========================================================================
   Sri Vidya Arts & Science College — Main Stylesheet
   Traditional Academic Design | White + Navy + Maroon Palette
   ========================================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800;900&display=swap');

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
  /* Colours */
  --primary-navy:   #1a2a6c;
  --accent-maroon:  #8b1a2b;
  --accent-blue:    #2980b9;
  --accent-gold:    #f5c518;
  --bg-light:       #f5f7fa;
  --bg-white:       #ffffff;
  --text-dark:      #222222;
  --text-muted:     #555555;
  --text-light:     #ffffff;
  --border-color:   #dde1e7;
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg:      0 8px 32px rgba(0,0,0,0.16);

  /* Typography */
  --font-heading: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
  --font-body:    'Poppins', 'Segoe UI', Tahoma, sans-serif;

  /* Spacing */
  --gap-xs:  0.5rem;
  --gap-sm:  1rem;
  --gap-md:  1.5rem;
  --gap-lg:  2.5rem;
  --gap-xl:  4rem;

  /* Sizing */
  --container-max: 1200px;
  --nav-height: 56px;
  --radius: 6px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Transition */
  --transition: 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-maroon);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-navy);
  line-height: 1.3;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

/* ---------- Utility / Layout ---------- */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.section {
  padding: var(--gap-xl) 0;
}

.section-alt {
  background: var(--bg-light);
}

.section-title {
  text-align: center;
  margin-bottom: var(--gap-lg);
  position: relative;
  padding-bottom: var(--gap-sm);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-maroon);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 680px;
  margin: -1rem auto var(--gap-lg);
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--primary-navy);
  color: var(--text-light);
}

.btn-primary:hover {
  background: var(--accent-maroon);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary-navy);
  border: 2px solid var(--primary-navy);
}

.btn-outline:hover {
  background: var(--primary-navy);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-maroon {
  background: var(--accent-maroon);
  color: var(--text-light);
}

.btn-maroon:hover {
  background: #6e1422;
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---------- TOP HEADER BAR ---------- */
.top-bar {
  background: var(--primary-navy);
  color: var(--text-light);
  font-size: 0.82rem;
  padding: 0.4rem 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar a {
  color: var(--text-light);
  opacity: 0.9;
}

.top-bar a:hover {
  opacity: 1;
  color: var(--accent-gold);
}

.top-bar-contact {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.top-bar-contact span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ---------- COLLEGE HEADER ---------- */
.college-header {
  background: var(--bg-white);
  padding: 1rem 0;
  border-bottom: 3px solid var(--accent-maroon);
}

.college-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.college-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.college-logo img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.college-name {
  text-align: center;
  flex: 1;
}

.college-name h1 {
  font-size: 1.6rem;
  color: var(--primary-navy);
  margin-bottom: 0.15rem;
  letter-spacing: 0.5px;
}

.college-name .tagline {
  font-size: 0.85rem;
  color: var(--accent-maroon);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.header-right {
  text-align: right;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.header-right strong {
  color: var(--primary-navy);
}

/* ---------- NAVIGATION BAR ---------- */
.navbar {
  background: var(--primary-navy);
  position: sticky;
  top: 0;
  z-index: 1060;
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.28);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: stretch;
  gap: 0;
}

/* All top-level nav items */
.nav-links > a,
.nav-dropdown > .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 1.05rem;
  height: var(--nav-height);
  color: rgba(255,255,255,0.96);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

/* Gold underline — scales in from center on hover/active */
.nav-links > a::after,
.nav-dropdown > .dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 65%;
  height: 2px;
  background: var(--accent-gold);
  border-radius: 1px 1px 0 0;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

/* Hover state */
.nav-links > a:hover,
.nav-dropdown:hover > .dropdown-toggle,
.nav-dropdown.open > .dropdown-toggle {
  color: #fff;
}

.nav-links > a:hover::after,
.nav-dropdown:hover > .dropdown-toggle::after,
.nav-dropdown.open > .dropdown-toggle::after {
  transform: translateX(-50%) scaleX(1);
}

/* Active / current page */
.nav-links > a.active {
  color: var(--accent-gold);
  font-weight: 700;
}

.nav-links > a.active::after {
  transform: translateX(-50%) scaleX(1);
  background: var(--accent-gold);
}

/* ---------- DROPDOWN ---------- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > .dropdown-toggle {
  border-radius: 0;
}

/* Animated chevron caret */
.nav-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.nav-caret::before,
.nav-caret::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  width: 8px;
  height: 2px;
  top: 50%;
  transition: transform 0.22s ease;
}

.nav-caret::before {
  left: 1px;
  transform: translateY(-50%) rotate(40deg);
}

.nav-caret::after {
  right: 1px;
  transform: translateY(-50%) rotate(-40deg);
}

.nav-dropdown:hover > .dropdown-toggle .nav-caret::before,
.nav-dropdown.open > .dropdown-toggle .nav-caret::before {
  transform: translateY(-50%) rotate(-40deg);
}

.nav-dropdown:hover > .dropdown-toggle .nav-caret::after,
.nav-dropdown.open > .dropdown-toggle .nav-caret::after {
  transform: translateY(-50%) rotate(40deg);
}

.dropdown-menu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  position: absolute;
  top: 100%;
  left: 0;
  background: #162155;
  min-width: 210px;
  border-top: 2px solid var(--accent-gold);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  z-index: 1100;
  list-style: none;
  padding: 0.3rem 0;
  margin: 0;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}

.dropdown-menu li {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.6rem 1.2rem;
  color: rgba(255,255,255,0.88);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.2px;
  transition: background 0.18s ease, color 0.18s ease, gap 0.18s ease;
}

.dropdown-menu li a::before {
  content: '›';
  color: var(--accent-gold);
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 700;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  flex-shrink: 0;
}

.dropdown-menu li a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  gap: 0.45rem;
  font-weight: 600;
}

.dropdown-menu li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 900px) {
  /* Disable hover-based dropdowns; use click-to-open only */
  .nav-dropdown:hover .dropdown-menu {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
  }

  /* ===== MOBILE NAVBAR REDESIGN ===== */
  .navbar .container {
    justify-content: space-between;
  }

  .hamburger {
    padding: 0.1rem 0.3rem;
    gap: 3px;
  }

  .hamburger span {
    width: 20px;
    height: 2px;
  }

  /* Right-side slide drawer */
  .nav-links {
    position: fixed;
    top: 0;
    left: auto;
    right: -310px;
    width: 290px;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(170deg, #1e3275 0%, #162155 55%, #0f1840 100%);
    flex-direction: column;
    align-items: flex-start;
    padding: 0 0 2rem;
    gap: 0;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 48px rgba(0,0,0,0.55);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    z-index: 1050;
    pointer-events: none;
  }

  /* Drawer label header — top padding clears the sticky navbar */
  .nav-links::before {
    content: 'Navigation';
    display: block;
    width: 100%;
    padding: 0.6rem 1.4rem 0.6rem;
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 0.5rem;
    flex-shrink: 0;
  }

  .nav-links.open {
    right: 0;
    left: auto;
    pointer-events: auto;
  }

  /* Nav item card style */
  .nav-links > a,
  .nav-dropdown > .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.72rem 1.1rem;
    margin: 0.18rem 0.8rem;
    height: auto;
    min-height: 44px;
    width: calc(100% - 1.6rem);
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.92);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    white-space: normal;
  }

  .nav-links > a:hover,
  .nav-dropdown > .dropdown-toggle:hover {
    background: rgba(255,255,255,0.12);
    transform: translateX(3px);
    color: #fff;
    border-color: rgba(255,255,255,0.15);
  }

  .nav-links > a.active {
    background: rgba(139,26,43,0.45);
    border-color: rgba(139,26,43,0.65);
    color: #fff;
  }

  /* Remove gold underline on mobile */
  .nav-links > a::after,
  .nav-dropdown > .dropdown-toggle::after {
    display: none;
  }

  .nav-dropdown {
    width: 100%;
  }

  /* Mobile dropdown panel */
  .dropdown-menu {
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    border-top: none;
    border-left: 2px solid var(--accent-gold);
    box-shadow: none;
    display: none !important;
    min-width: unset;
    width: calc(100% - 1.6rem);
    margin: 0.2rem 0.8rem 0.4rem 0.8rem;
    border-radius: 0 0 10px 10px;
    background: rgba(255,255,255,0.04);
    padding: 0.25rem 0;
    z-index: auto;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block !important;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .dropdown-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .dropdown-menu li:last-child {
    border-bottom: none;
  }

  .dropdown-menu li a {
    display: flex !important;
    align-items: center;
    padding: 0.58rem 1.1rem !important;
    height: auto !important;
    font-size: 0.84rem;
    font-weight: 500;
    color: rgba(255,255,255,0.88) !important;
    background: transparent;
    border-radius: 4px;
    white-space: normal;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    width: 100%;
    margin: 0.05rem 0.2rem;
  }

  .dropdown-menu li a::before {
    display: none !important;
  }

  .dropdown-menu li a:hover {
    background: rgba(255,255,255,0.1) !important;
    color: var(--accent-gold) !important;
    gap: 0 !important;
  }

  /* Caret: hover persists on mobile tap — force caret to DOWN on hover, UP only on .open */
  .nav-dropdown:hover > .dropdown-toggle .nav-caret::before {
    transform: translateY(-50%) rotate(40deg);
  }
  .nav-dropdown:hover > .dropdown-toggle .nav-caret::after {
    transform: translateY(-50%) rotate(-40deg);
  }
  .nav-dropdown.open > .dropdown-toggle .nav-caret::before {
    transform: translateY(-50%) rotate(-40deg);
  }
  .nav-dropdown.open > .dropdown-toggle .nav-caret::after {
    transform: translateY(-50%) rotate(40deg);
  }

  /* Custom scrollbar for drawer */
  .nav-links::-webkit-scrollbar { width: 3px; }
  .nav-links::-webkit-scrollbar-track { background: transparent; }
  .nav-links::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }
}

/* ---------- NESTED SUBMENU ---------- */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .submenu-toggle {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

.submenu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  position: absolute;
  top: 0;
  left: 100%;
  background: #162155;
  min-width: 200px;
  border-top: 2px solid var(--accent-gold);
  border-radius: 0 6px 6px 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  z-index: 1200;
  list-style: none;
  padding: 0.3rem 0;
  margin: 0;
}

.dropdown-submenu:hover .submenu,
.dropdown-submenu.open .submenu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}

.submenu li {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.submenu li:last-child {
  border-bottom: none;
}

.submenu li a {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.6rem 1.2rem;
  color: rgba(255,255,255,0.88);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.15px;
  transition: background 0.18s ease, color 0.18s ease, gap 0.18s ease;
}

.submenu li a::before {
  content: '›';
  color: var(--accent-gold);
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 700;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  flex-shrink: 0;
}

.submenu li a:hover,
.submenu li a.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
  gap: 0.45rem;
  font-weight: 600;
}

.submenu li a:hover::before,
.submenu li a.active::before {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 900px) {
  .dropdown-submenu:hover .submenu {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
  .submenu {
    position: static;
    border-top: none;
    box-shadow: none;
    padding-left: 1rem;
    display: none;
  }
  .dropdown-submenu.open .submenu {
    display: block;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
}

/* Hamburger — visible on mobile, hidden on desktop */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.8rem;
  background: none;
  border: none;
  margin-left: auto;
}

@media (min-width: 901px) {
  .hamburger {
    display: none;
  }
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ---------- HERO BANNER ---------- */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,42,108,0.7) 0%,
    rgba(139,26,43,0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-light);
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 2.8rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}

.hero-content .hero-badge {
  display: inline-block;
  background: #f5c518;
  color: var(--primary-navy);
  padding: 0.4rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 0.8rem;
  letter-spacing: 0.5px;
}

.hero-content p {
  font-size: 1.15rem;
  margin-top: 0.6rem;
  opacity: 0.95;
}

/* ---------- PAGE BANNER (Inner Pages) ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--accent-maroon) 100%);
  padding: 3.5rem 0;
  text-align: center;
  color: var(--text-light);
}

.page-banner h1 {
  color: var(--text-light);
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
}

.page-banner .breadcrumb {
  font-size: 0.9rem;
  opacity: 0.85;
}

.page-banner .breadcrumb a {
  color: var(--accent-gold);
}

/* ---------- NOTICE BOARD ---------- */
.notice-board {
  background: var(--bg-light);
  padding: var(--gap-lg) 0;
}

.notice-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-md);
}

.notice-box {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.notice-box-header {
  background: var(--primary-navy);
  color: var(--text-light);
  padding: 0.7rem 1.2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notice-box-header .blink {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ff4444;
  border-radius: 50%;
  animation: blink-dot 1.2s infinite;
}

@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.2; }
}

.notice-list {
  max-height: 220px;
  overflow-y: auto;
  padding: 0.8rem 1.2rem;
}

.notice-list li {
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.notice-list li:last-child {
  border-bottom: none;
}

.notice-list .date-tag {
  background: var(--accent-maroon);
  color: var(--text-light);
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  white-space: nowrap;
  font-weight: 600;
}

/* ---------- ABOUT SECTION REDESIGN ---------- */
.about-section {
  background: linear-gradient(135deg, #f0f4ff 0%, #fff8f0 100%);
}

.about-section .container {
  width: 96%;
  max-width: 1440px;
}

.about-section-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--gap-lg);
  align-items: start;
}

.about-right-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Quick Links Sidebar */
.quick-links-sidebar {
  background: var(--primary-navy);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.quick-links-header {
  background: var(--accent-gold);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.quick-links-icon {
  font-size: 1.3rem;
}

.quick-links-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.quick-links-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.quick-links-list li {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.quick-links-list li:last-child {
  border-bottom: none;
}

.quick-link-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  color: #d0d8f0;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.quick-link-item:hover {
  background: rgba(255,255,255,0.07);
  color: var(--accent-gold);
  padding-left: 1.7rem;
}

.quick-link-arrow {
  font-size: 1.2rem;
  color: var(--accent-gold);
  line-height: 1;
  flex-shrink: 0;
}

.quick-links-cta {
  display: block;
  margin: 1rem 1.4rem 1.4rem;
  text-align: center;
  background: var(--accent-gold);
  color: var(--primary-navy);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
}

.quick-links-cta:hover {
  background: #d4ac14;
  transform: translateY(-1px);
}

/* Notification Card */
.notification-card {
  background: var(--primary-navy);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.notification-header {
  background: var(--accent-gold);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.notification-icon {
  font-size: 1.2rem;
  color: var(--primary-navy);
}

.notification-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.notification-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
}

.notification-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.4rem;
  color: #d0d8f0;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-sizing: border-box;
}

.notification-item:hover {
  background: rgba(255,255,255,0.07);
  color: var(--accent-gold);
}

.notification-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  flex-shrink: 0;
}

.notification-new {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  background: #e63946;
  color: #fff;
  padding: 0.15rem 0.45rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-img {
  display: block;
  max-width: 80vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.7rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1;
}

.lightbox-close:hover {
  background: rgba(0,0,0,0.85);
}

.about-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: center;
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.about-card-img {
  position: relative;
  height: 100%;
  min-height: 420px;
}

.about-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-img-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--accent-gold);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
}

.about-card-body {
  padding: var(--gap-lg) var(--gap-lg) var(--gap-lg) var(--gap-md);
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.about-tag {
  display: inline-block;
  background: rgba(26,42,108,0.08);
  color: var(--primary-navy);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  width: fit-content;
}

.about-card-heading {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.3;
  margin: 0;
}

.about-card-desc {
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-sm);
  margin: var(--gap-sm) 0;
}

.about-stat {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  border-bottom: 3px solid var(--accent-gold);
}

.about-stat-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.1;
}

.about-stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- PRINCIPAL MESSAGE ---------- */
.principal-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--gap-lg);
  align-items: start;
}

.principal-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--primary-navy);
}

.principal-photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.principal-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.profile-btn {
  display: inline-block;
  padding: 10px 22px;
  background: var(--primary-navy);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.profile-btn:hover {
  background: var(--accent-gold);
  color: var(--primary-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.principal-text h3 {
  margin-bottom: 0.3rem;
}

.principal-text .designation {
  color: var(--accent-maroon);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--gap-sm);
}

.principal-text p {
  color: var(--text-muted);
  margin-bottom: var(--gap-sm);
}

.principal-text blockquote {
  border-left: 4px solid var(--accent-gold);
  padding-left: 1rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: var(--gap-sm);
}

/* ---------- COURSE CARDS ---------- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap-md);
}

@media (max-width: 1024px) {
  .courses-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .courses-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}
@media (max-width: 360px) {
  .courses-grid { grid-template-columns: 1fr; }
}

.course-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem 1rem;
  text-align: center;
  border-top: 4px solid var(--primary-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.course-card:nth-child(1) { border-top-color: var(--primary-navy); }
.course-card:nth-child(2) { border-top-color: var(--accent-maroon); }
.course-card:nth-child(3) { border-top-color: var(--accent-blue); }
.course-card:nth-child(4) { border-top-color: #1a7a4a; }
.course-card:nth-child(5) { border-top-color: #6a3d9a; }

.course-card:nth-child(1) .icon { color: var(--primary-navy); }
.course-card:nth-child(2) .icon { color: var(--accent-maroon); }
.course-card:nth-child(3) .icon { color: var(--accent-blue); }
.course-card:nth-child(4) .icon { color: #1a7a4a; }
.course-card:nth-child(5) .icon { color: #6a3d9a; }

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.course-card .icon {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
}

.course-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--primary-navy);
}

.course-card p {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

/* ═══════════════════════════════════════
   Department — Courses Offered Cards
═══════════════════════════════════════ */
.dept-courses-wrap {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dept-course-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #fff;
  border-radius: 14px;
  padding: 1.4rem 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border-left: 5px solid var(--dci-color, var(--primary-navy));
  transition: box-shadow 0.2s, transform 0.2s;
}

.dept-course-item:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  transform: translateY(-2px);
}

.dci-number {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--dci-color, var(--primary-navy));
  min-width: 2rem;
  text-align: center;
  opacity: 0.5;
  line-height: 1;
}

.dci-degree-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dci-color, var(--primary-navy));
  border: 2px solid var(--dci-color, var(--primary-navy));
  white-space: nowrap;
  background: transparent;
  min-width: 3.2rem;
}

.dci-info {
  flex: 1;
  min-width: 0;
}

.dci-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0;
  line-height: 1.35;
}

.dci-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

.dci-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #555;
  background: #f3f5fb;
  padding: 0.28rem 0.75rem;
  border-radius: 20px;
  white-space: nowrap;
}

.dci-tag i {
  font-size: 0.7rem;
  color: var(--dci-color, var(--primary-navy));
}

/* per-department colour tokens */
.dci-english   { --dci-color: #1a2f6b; }
.dci-sociology { --dci-color: #8b1c2e; }
.dci-commerce  { --dci-color: #1565c0; }
.dci-cs        { --dci-color: #1a6e3c; }
.dci-stats     { --dci-color: #5c3190; }
.dci-tamil     { --dci-color: #a33a14; }

@media (max-width: 640px) {
  .dept-course-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.1rem 1.1rem 1.1rem 1.4rem;
    gap: 0.75rem;
  }
  .dci-number { display: none; }
  .dci-tags { margin-left: 0; width: 100%; }
  .dci-name { font-size: 0.97rem; }
}

/* ---------- STATISTICS BAR ---------- */
.stats-bar {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--accent-maroon) 100%);
  padding: var(--gap-xl) 0;
  color: var(--text-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent-gold);
  display: block;
}

.stat-item .stat-label {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-top: 0.3rem;
  display: block;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: #0f1623;
  color: #b0b8c8;
  font-family: var(--font-body);
}

.footer-top-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--primary-navy), var(--accent-gold), var(--primary-navy));
}

.footer-main {
  padding: 2.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

/* Brand column */
.footer-logo-mark {
  display: inline-block;
  background: var(--accent-gold);
  color: #0f1623;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.footer-college-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 0.2rem;
}

.footer-location {
  font-size: 0.78rem;
  color: var(--accent-gold);
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
}

.footer-about {
  font-size: 0.78rem;
  line-height: 1.7;
  color: #8a94a6;
  max-width: 260px;
}

/* Heading */
.footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Links column */
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-links a {
  color: #8a94a6;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition), gap var(--transition);
}

.footer-links a::before {
  content: '›';
  color: var(--accent-gold);
  font-size: 1rem;
  line-height: 1;
  transition: transform var(--transition);
}

.footer-links a:hover {
  color: #fff;
  gap: 0.6rem;
}

/* Contact column */
.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #8a94a6;
}

.fci {
  color: var(--accent-gold);
  font-size: 0.45rem;
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.footer-maps-btn {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-gold);
  border: 1px solid rgba(245,197,24,0.35);
  padding: 0.35rem 0.8rem;
  border-radius: 3px;
  letter-spacing: 0.03em;
  transition: background var(--transition), color var(--transition);
}

.footer-maps-btn:hover {
  background: var(--accent-gold);
  color: #0f1623;
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 0.9rem 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: center;
}

.footer-bottom span {
  font-size: 0.75rem;
  color: #4a5568;
  letter-spacing: 0.02em;
}

/* ---------- DEPARTMENT CARDS (Grid) ---------- */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}

@media (max-width: 768px) {
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .dept-grid { grid-template-columns: repeat(1, 1fr); gap: 0.75rem; }
}

.dept-card {
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(0,0,0,0.05);
}

.dept-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.14);
}

.dept-card-img {
  width: 100%;
  height: 160px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.dept-card-img::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}

.dept-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.dept-card:hover .dept-card-img img {
  transform: scale(1.08);
}

.dept-card-top {
  width: 100%;
  background: var(--primary-navy);
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.dept-card .dept-icon-circle {
  display: none;
}

.dept-card h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  text-align: center;
  letter-spacing: 0.4px;
}

.dept-card-body {
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  background: #fff;
  width: 100%;
}

.dept-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin-top: auto;
  padding-top: 1rem;
}

.dept-card-hod {
  text-align: left;
  flex: 1;
  background: #f8f9fb;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid currentColor;
}

.dept-card-hod .hod-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent-gold);
  margin-bottom: 0.25rem;
}

.dept-card-hod .hod-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 0;
  line-height: 1.3;
}

.dept-card-hod .hod-desig {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
  font-style: italic;
}

.dept-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.65;
  margin: 0 0 1rem;
  text-align: center;
  flex: 1;
}

.dept-card .btn {
  font-size: 0.82rem;
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  border-width: 2px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.dept-card .btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.dept-card .dept-icon {
  display: none;
}

/* Per-card colour accents */
.dept-card:nth-child(1) .dept-card-top { background: linear-gradient(135deg, #1a2f6b, #2a4199); }
.dept-card:nth-child(2) .dept-card-top { background: linear-gradient(135deg, #8b1c2e, #c0293f); }
.dept-card:nth-child(3) .dept-card-top { background: linear-gradient(135deg, #1565c0, #1e88e5); }
.dept-card:nth-child(4) .dept-card-top { background: linear-gradient(135deg, #1a6e3c, #27a85e); }
.dept-card:nth-child(5) .dept-card-top { background: linear-gradient(135deg, #5c3190, #8049bf); }
.dept-card:nth-child(6) .dept-card-top { background: linear-gradient(135deg, #a33a14, #d04e22); }

.dept-card:nth-child(1) { border-top: 4px solid #1a2f6b; }
.dept-card:nth-child(2) { border-top: 4px solid #8b1c2e; }
.dept-card:nth-child(3) { border-top: 4px solid #1565c0; }
.dept-card:nth-child(4) { border-top: 4px solid #1a6e3c; }
.dept-card:nth-child(5) { border-top: 4px solid #5c3190; }
.dept-card:nth-child(6) { border-top: 4px solid #a33a14; }

.dept-card:nth-child(1) .dept-card-hod { border-left-color: #1a2f6b; }
.dept-card:nth-child(2) .dept-card-hod { border-left-color: #8b1c2e; }
.dept-card:nth-child(3) .dept-card-hod { border-left-color: #1565c0; }
.dept-card:nth-child(4) .dept-card-hod { border-left-color: #1a6e3c; }
.dept-card:nth-child(5) .dept-card-hod { border-left-color: #5c3190; }
.dept-card:nth-child(6) .dept-card-hod { border-left-color: #a33a14; }

.dept-card:nth-child(1) .btn { border-color: #1a2f6b; color: #1a2f6b; }
.dept-card:nth-child(2) .btn { border-color: #8b1c2e; color: #8b1c2e; }
.dept-card:nth-child(3) .btn { border-color: #1565c0; color: #1565c0; }
.dept-card:nth-child(4) .btn { border-color: #1a6e3c; color: #1a6e3c; }
.dept-card:nth-child(5) .btn { border-color: #5c3190; color: #5c3190; }
.dept-card:nth-child(6) .btn { border-color: #a33a14; color: #a33a14; }

.dept-card:nth-child(1) .btn:hover { background: #1a2f6b; color: #fff; }
.dept-card:nth-child(2) .btn:hover { background: #8b1c2e; color: #fff; }
.dept-card:nth-child(3) .btn:hover { background: #1565c0; color: #fff; }
.dept-card:nth-child(4) .btn:hover { background: #1a6e3c; color: #fff; }
.dept-card:nth-child(5) .btn:hover { background: #5c3190; color: #fff; }
.dept-card:nth-child(6) .btn:hover { background: #a33a14; color: #fff; }

/* ---------- FACULTY CARDS ---------- */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
  align-items: stretch;
}

@media (max-width: 900px) {
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .faculty-grid { grid-template-columns: 1fr; }
}

.faculty-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.faculty-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.faculty-card .faculty-photo {
  width: 130px;
  height: 160px;
  object-fit: contain;
  object-position: center;
  background: var(--bg-light);
  border-radius: 6px;
  margin: 1.4rem auto 0;
  display: block;
  flex-shrink: 0;
}

.faculty-card .faculty-info {
  padding: 1.25rem 1.1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.faculty-card h3 {
  font-size: 1.05rem;
  font-family: var(--font-heading);
  color: var(--primary-navy);
  margin-bottom: 0.1rem;
}

.faculty-card .faculty-designation {
  color: var(--accent-maroon);
  font-weight: 600;
  font-size: 0.83rem;
  line-height: 1.4;
}

.faculty-card .faculty-qual {
  color: var(--text-muted);
  font-size: 0.80rem;
  margin-top: 0.2rem;
}

/* ---------- DEPARTMENT SECTIONS ---------- */
.dept-section {
  margin-bottom: var(--gap-xl);
}

.dept-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--primary-navy);
  border-left: 5px solid var(--accent-gold);
  padding-left: 1rem;
  margin-bottom: var(--gap-md);
}

/* ---------- GALLERY ---------- */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--gap-lg);
}

.gallery-filters .filter-btn {
  padding: 0.5rem 1.3rem;
  border: 2px solid var(--primary-navy);
  background: transparent;
  color: var(--primary-navy);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}

.gallery-filters .filter-btn:hover,
.gallery-filters .filter-btn.active {
  background: var(--primary-navy);
  color: var(--text-light);
}

.gallery-grid {
  columns: 4;
  column-gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin-bottom: 1rem;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--text-light);
  padding: 2rem 1rem 0.8rem;
  font-size: 0.88rem;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* ---------- CONTACT FORM ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
}

.form-group {
  margin-bottom: var(--gap-md);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--primary-navy);
  font-size: 0.92rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(41,128,185,0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: var(--gap-md);
}

.contact-info-card h4 {
  margin-bottom: 0.8rem;
}

.contact-info-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-embed iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* ---------- ADMISSION STEPS ---------- */
.admission-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
  counter-reset: step-counter;
}

.step-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  counter-increment: step-counter;
  transition: transform var(--transition), box-shadow var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-card::before {
  content: counter(step-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary-navy);
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Step card light background colors */
.step-card:nth-child(1) { background: #eef2ff; }
.step-card:nth-child(2) { background: #fff4f5; }
.step-card:nth-child(3) { background: #e8f6fd; }
.step-card:nth-child(4) { background: #fdf8ec; }
.step-card:nth-child(5) { background: #f0faf4; }
.step-card:nth-child(6) { background: #f5f0fb; }

/* ---------- ELIGIBILITY TABLE ---------- */
.eligibility-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--gap-md) 0;
  box-shadow: var(--shadow-sm);
}

.eligibility-table th,
.eligibility-table td {
  padding: 0.85rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
}

.eligibility-table th {
  background: var(--primary-navy);
  color: var(--text-light);
  font-weight: 600;
}

.eligibility-table tbody tr:nth-child(even) {
  background: var(--bg-light);
}

.eligibility-table tbody tr:hover {
  background: #e8ecf4;
}

@media (max-width: 640px) {
  .eligibility-table thead { display: none; }

  .eligibility-table,
  .eligibility-table tbody,
  .eligibility-table tr,
  .eligibility-table td {
    display: block;
    width: 100%;
  }

  .eligibility-table tbody tr {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-navy);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    padding: 0.6rem 0.9rem;
    box-shadow: var(--shadow-sm);
  }

  .eligibility-table tbody tr:nth-child(even) { background: var(--bg-white); }

  .eligibility-table td {
    padding: 0.28rem 0;
    border: none;
    font-size: 0.87rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
  }

  .eligibility-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--primary-navy);
    min-width: 100px;
    flex-shrink: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
}

/* ---------- ACADEMICS CONTENT ---------- */
.academic-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap-lg);
}

.academic-content .sidebar {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.sidebar h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-maroon);
}

.sidebar ul li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sidebar ul li:last-child {
  border-bottom: none;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-maroon);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--gap-md);
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.3rem;
  width: 14px;
  height: 14px;
  background: var(--accent-gold);
  border: 3px solid var(--accent-maroon);
  border-radius: 50%;
}

.timeline-item h4 {
  color: var(--accent-maroon);
  margin-bottom: 0.3rem;
}

.timeline-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- ABOUT PAGE ---------- */
.about-content-block {
  margin-bottom: var(--gap-lg);
}

.about-content-block h2 {
  margin-bottom: var(--gap-sm);
  position: relative;
  padding-bottom: 0.5rem;
}

.about-content-block h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent-maroon);
}

.about-content-block p {
  color: var(--text-muted);
  margin-bottom: var(--gap-sm);
  text-indent: 2em;
}

.vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-md);
}

.vm-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 2rem;
  border-top: 4px solid var(--primary-navy);
}

.vm-card:nth-child(1) { background: #eef4ff; border-top-color: #3b6fc9; }
.vm-card:nth-child(2) { background: #edfdf5; border-top-color: #2a9d6e; }
.vm-card:nth-child(3) { background: #fff8e6; border-top-color: #e8a020; }
.vm-card:nth-child(4) { background: #f4eeff; border-top-color: #7c4dcc; }

.vm-card h3 {
  margin-bottom: var(--gap-sm);
}

.vm-card p, .vm-card li {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.vm-card ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.vm-card ul li {
  margin-bottom: 0.3rem;
}

.governing-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--gap-sm);
}

.governing-member {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-light);
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
}

.governing-member .member-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-weight: 700;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.governing-member h4 {
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}

.governing-member p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- IMPORTANT DATES ---------- */
.dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap-sm);
}

.date-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  overflow: hidden;
  transition: transform var(--transition);
}

.date-card:hover {
  transform: translateY(-3px);
}

.date-card .date-badge {
  background: var(--accent-maroon);
  color: var(--text-light);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  font-family: var(--font-heading);
}

.date-badge .month {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.date-badge .day {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.date-card .date-info {
  padding: 1rem;
}

.date-card .date-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.date-card .date-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- SCROLL REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE: Tablet (≤ 1024px) ---------- */
@media (max-width: 1024px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .hero { height: 420px; }
  .hero-content h1 { font-size: 2.2rem; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-lg);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-about {
    max-width: 100%;
  }

  .academic-content {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .principal-section {
    grid-template-columns: 200px 1fr;
  }

  .gallery-grid {
    columns: 3;
  }
}

/* ---------- RESPONSIVE: Mobile (≤ 768px) ---------- */
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }

  .section { padding: var(--gap-lg) 0; }

  /* Header — keep 3-column row on mobile */
  .college-header .container {
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .college-logo {
    justify-content: flex-start;
    flex-shrink: 0;
  }

  .college-logo img {
    width: 44px !important;
    height: 44px !important;
  }

  .college-name {
    flex: 1;
    text-align: center;
    padding: 0 0.2rem;
  }

  .college-name h1 {
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 0.1rem;
  }

  .college-name .tagline {
    font-size: 0.65rem;
    line-height: 1.4;
    display: block;
  }

  .header-right {
    text-align: right;
    flex-shrink: 0;
  }

  .header-right img {
    width: 44px !important;
    height: 44px !important;
  }

  /* Top bar — compact single row on mobile */
  .top-bar {
    padding: 0.3rem 0;
  }

  .top-bar .container {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0;
  }

  /* Hide the welcome text on mobile — redundant next to the college header */
  .top-bar .container > span:first-child {
    display: none;
  }

  .top-bar-contact {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    width: 100%;
  }

  .top-bar-contact span {
    font-size: 0.75rem;
    padding: 0.1rem 0.65rem;
    gap: 0.25rem;
    position: relative;
  }

  /* Vertical pipe separator between items */
  .top-bar-contact span + span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(255,255,255,0.25);
  }

  /* Navigation — handled by @media (max-width: 900px) block above */

  /* Hero */
  .hero { height: 320px; }
  .hero-content h1 { font-size: 1.6rem; }

  /* Notice */
  .notice-wrapper {
    grid-template-columns: 1fr;
  }

  /* About Card */
  .about-section-layout {
    grid-template-columns: 1fr;
  }

  .about-card {
    grid-template-columns: 1fr;
  }

  .about-card-img {
    min-height: 260px;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-card-body {
    padding: var(--gap-md);
  }

  /* Committee Links */
  .committee-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    columns: 2;
  }

  /* Principal */
  .principal-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .principal-photo {
    max-width: 200px;
    margin: 0 auto;
  }

  /* Dept cards — stacked vertical on mobile */
  .dept-card {
    display: flex;
    flex-direction: column;
    border-top: 4px solid;
    border-left: none;
    overflow: hidden;
  }

  .dept-card-top {
    width: 100%;
    padding: 1rem 1rem 0.8rem;
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.75rem;
    align-items: center;
  }

  .dept-card h3 {
    font-size: 0.88rem;
    text-align: left;
  }

  .dept-icon-circle {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    font-size: 1.2rem;
  }

  .dept-card-body {
    padding: 0.75rem 1rem 1rem;
  }

  .dept-card p {
    font-size: 0.83rem;
    overflow: visible;
    display: block;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-md);
  }

  .stat-item .stat-number {
    font-size: 2rem;
  }

  /* Vision / Mission */
  .vision-mission {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Page Banner */
  .page-banner {
    padding: 2.5rem 0;
  }

  .page-banner h1 {
    font-size: 1.6rem;
  }
}

/* ---------- RESPONSIVE: Small Mobile (≤ 480px) ---------- */
@media (max-width: 480px) {
  /* Header — shrink further on very small screens */
  .college-logo img {
    width: 42px !important;
    height: 42px !important;
  }

  .college-header .container {
    gap: 0.35rem;
  }

  .college-name h1 {
    font-size: 0.78rem;
  }

  .college-name .tagline {
    font-size: 0.62rem;
  }

  .header-right img {
    width: 40px !important;
    height: 40px !important;
  }

  /* Top bar — stack contact items on very small screens */
  .top-bar-contact span {
    font-size: 0.72rem;
    padding: 0.1rem 0.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero { height: 260px; }
  .hero-content h1 { font-size: 1.3rem; }
  .hero-content .hero-badge { font-size: 0.78rem; }

  .admission-steps {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    columns: 1;
  }
}

/* ---------- SCROLLBAR ---------- */
.notice-list::-webkit-scrollbar {
  width: 5px;
}
.notice-list::-webkit-scrollbar-track {
  background: var(--bg-light);
}
.notice-list::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

/* ---------- MOBILE OVERLAY ---------- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1040;
}

.nav-overlay.show {
  display: block;
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--primary-navy);
  color: var(--text-light);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 800;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-maroon);
  transform: translateY(-3px);
}

/* ========== COUNCIL / COMMITTEE TABLE ========== */
.council-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.council-table th,
.council-table td {
  border: 1px solid #ccc;
  padding: 0.6rem 1rem;
  text-align: left;
  vertical-align: top;
}

.council-table thead tr {
  background: var(--primary-blue, #1a3c6e);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.council-table tbody tr:nth-child(even) {
  background: #f5f7fa;
}

.council-table tbody tr:hover {
  background: #e8eef7;
}

.council-table td:first-child {
  text-align: center;
  width: 60px;
}

/* ---------- COMMITTEE LINK CARDS ---------- */
.committee-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
  margin-top: var(--gap-sm);
}

.committee-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem 1rem;
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  color: var(--primary-navy);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.committee-link-card:hover {
  border-color: var(--primary-navy);
  background: var(--primary-navy);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.committee-link-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.committee-link-name {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* ---------- MANDATORY COMMITTEE GRID ---------- */

/* ---------- DEPARTMENT SUB-NAVIGATION (Redesign) ---------- */
.dept-navbar {
  background: #041b36; /* Dark navy from prototype */
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dept-navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.dept-brand {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  padding: 1rem 0;
}

.dept-brand .highlight {
  color: var(--accent-gold);
  margin-left: 0.4rem;
}

.dept-nav-links {
  display: flex;
  align-items: center;
}

.dept-nav-links .tab-link {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 1.25rem 1rem;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
}

.dept-nav-links .tab-link:hover,
.dept-nav-links .tab-link.active {
  color: var(--accent-gold);
}

.dept-nav-links .nav-dropdown {
  position: relative;
}

.dept-nav-links .nav-dropdown .dropdown-menu {
  top: 100%;
  left: 0;
  display: none;
  min-width: 220px;
  border-top: 3px solid var(--accent-gold);
  background: #041b36;
  position: absolute;
}

.dept-nav-links .nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dept-nav-links .nav-dropdown .dropdown-menu .tab-link {
  padding: 0.8rem 1.2rem;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Dept hamburger — hidden on desktop */
.dept-hamburger {
  display: none;
}

/* Mobile responsiveness for dept-navbar */
@media (max-width: 850px) {
  .dept-navbar .container {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .dept-brand {
    flex: 1;
    padding: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.78rem !important;
  }

  .dept-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px 8px;
    flex-shrink: 0;
  }

  .dept-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.28s ease, opacity 0.2s ease;
  }

  .dept-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .dept-hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .dept-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .dept-nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    overflow-x: visible;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .dept-nav-links.open {
    display: flex;
  }

  .dept-nav-links .tab-link {
    width: 100%;
    text-align: left;
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    white-space: normal;
    font-size: 0.83rem;
    border-radius: 0;
  }

  .dept-nav-links .tab-link:last-child {
    border-bottom: none;
  }
}

/* ---------- TAB CONTENT SYSTEM ---------- */
.dept-content-wrapper {
  min-height: 50vh;
  position: relative;
  padding-bottom: 3rem;
}

.tab-pane {
  display: none;
  animation: fadeInTab 0.4s ease-in-out;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Custom Dept Hero Banner */
.dept-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #041b36 0%, #0a3a70 100%);
}

.dept-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dept-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.dept-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.dept-hero-content h1 {
  font-size: 3.5rem;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
  font-weight: 800;
}

/* ---------- NEWS SECTION ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.news-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26, 60, 110, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #dbe4f0;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(26, 60, 110, 0.16);
}

.news-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.news-card:hover .news-card-img img {
  transform: scale(1.06);
}


@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .news-grid { grid-template-columns: 1fr; }
}
