/* ========================================
   MEKALSUTA COLLEGE DINDORI MULTIDISCIPLINARY INSTITUTE (M.P.) - Main Stylesheet
   Design System & Global Styles
   ======================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary Palette */
  --primary: #002147;
  --primary-light: #0A3A6B;
  --primary-dark: #001530;
  --primary-rgb: 0, 33, 71;

  /* Accent */
  --accent: #FDC800;
  --accent-light: #FFD740;
  --accent-dark: #C9A000;
  --accent-rgb: 253, 200, 0;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F8F9FC;
  --gray-50: #F1F3F8;
  --gray-100: #E4E8F0;
  --gray-200: #CDD3DE;
  --gray-300: #A8B0C0;
  --gray-400: #7D879A;
  --gray-500: #5A6275;
  --gray-600: #3D4455;
  --gray-700: #2A2F3D;
  --gray-800: #1A1E2B;
  --gray-900: #0D1017;

  /* Semantic */
  --success: #10B981;
  --info: #3B82F6;
  --warning: #F59E0B;
  --danger: #EF4444;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --section-padding: 80px 0;
  --container-padding: 0 24px;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 30px rgba(var(--accent-rgb), 0.3);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  color: var(--primary);
  line-height: 1.3;
  font-weight: 700;
}

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

/* ---------- Utility Classes ---------- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-dark);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  position: relative;
}

.section-title span {
  color: var(--accent-dark);
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--gray-400);
  max-width: 600px;
  font-weight: 400;
  line-height: 1.7;
}

.text-center {
  text-align: center;
}

.text-center .section-subtitle {
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-accent {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-ghost:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 58%, var(--primary-light) 100%);
  z-index: 99999;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(.4, 0, .2, 1), visibility 0.8s;
}

#preloader::before,
#preloader::after {
  content: none;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-rings {
  position: relative;
  width: 118px;
  height: 118px;
  margin: 0 auto;
}

.preloader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.preloader-ring.ring-one {
  border-top-color: var(--accent);
  animation: preloaderSpin 1.8s linear infinite;
}

.preloader-ring.ring-two {
  inset: 11px;
  border-right-color: #6ecff6;
  animation: preloaderSpinReverse 2.5s linear infinite;
}

.preloader-ring.ring-three {
  inset: 22px;
  border-left-color: rgba(255, 255, 255, 0.9);
  animation: preloaderSpin 1.2s linear infinite;
}

.preloader-core-dot {
  position: absolute;
  inset: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-light), var(--accent-dark));
  box-shadow: 0 0 32px rgba(var(--accent-rgb), 0.6);
  animation: preloaderPulseCore 1.6s ease-in-out infinite;
}

.preloader-logo {
  display: none;
}

.preloader-title {
  display: none;
}

.preloader-text {
  display: none;
}

.preloader-spinner {
  display: none;
}

@keyframes preloaderSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes preloaderSpinReverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes preloaderPulseCore {

  0%,
  100% {
    transform: scale(0.96);
    box-shadow: 0 0 26px rgba(var(--accent-rgb), 0.5);
  }

  50% {
    transform: scale(1.12);
    box-shadow: 0 0 42px rgba(var(--accent-rgb), 0.78);
  }
}

@keyframes preloaderAuroraShift {
  0% {
    transform: rotate(0deg) scale(1);
  }

  100% {
    transform: rotate(360deg) scale(1.06);
  }
}

@keyframes preloaderGridDrift {
  from {
    transform: perspective(900px) rotateX(64deg) translateY(0);
  }

  to {
    transform: perspective(900px) rotateX(64deg) translateY(58px);
  }
}

@keyframes preloaderLogoFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 560px) {
  .preloader-inner {
    width: auto;
    padding: 0;
  }

  .preloader-rings {
    width: 96px;
    height: 96px;
    margin: 0;
  }

  .preloader-ring.ring-two {
    inset: 9px;
  }

  .preloader-ring.ring-three {
    inset: 18px;
  }

  .preloader-core-dot {
    inset: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {

  #preloader::before,
  #preloader::after,
  .preloader-ring,
  .preloader-core-dot,
  .preloader-logo {
    animation: none !important;
  }
}

/* ---- Cursor Glow ---- */
.cursor-glow {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.06) 0%, transparent 70%);
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  display: none;
}

@media (min-width: 1025px) {
  .cursor-glow {
    display: block;
  }
}

/* ============================================
   TOP BAR
   ============================================ */
.topbar {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  padding: 5px 0;
  position: relative;
  z-index: 100;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-left a {
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-left a:hover {
  color: var(--accent);
}

.topbar-left i {
  color: var(--accent);
  font-size: 0.9rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-link {
  color: rgba(255, 255, 255, 0.7);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  font-size: 0.78rem;
}

.topbar-link:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.topbar-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.header {
  background: transparent;
  position: relative;
  width: 100%;
  z-index: 1000;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease, background 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
  will-change: transform;
  backface-visibility: hidden;
  box-shadow: none;
}

@keyframes slideDownHeader {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.header.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  border-bottom: 2px solid var(--accent);
}

.header.scrolled.scroll-hidden {
  transform: translateY(calc(-100% - 6px));
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header.scrolled.scroll-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

@media (min-width: 769px) {
  .header.scrolled .header-shell {
    display: none;
  }

  .header.scrolled .main-nav {
    border-top: none;
    padding: 10px 0;
    margin-right: 0;
    justify-content: center;
  }
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  flex-wrap: nowrap;
  padding: 10px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--white);
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 2.08rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.08;
  letter-spacing: -0.5px;
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.02);
  white-space: nowrap;
}

.logo-inline-city {
  font-family: var(--font-serif);
  font-size: 0.92em;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
  margin-left: 8px;
  text-transform: none;
}

.logo-kicker {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-light);
  margin-top: 0;
  line-height: 1.15;
  letter-spacing: 0.5px;
}

.logo-location {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0;
  line-height: 1.15;
  letter-spacing: 0.35px;
}

.logo-tagline {
  display: none;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  flex: 1;
  margin-right: 15px;
  flex-wrap: nowrap;
  overflow: visible;
}

.main-nav > a,
.main-nav > .nav-item {
  flex: 0 0 auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(var(--primary-rgb), 0.1);
}

.nav-icon-btn {
  width: 32px;
  /* Reduced from 36px */
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-icon-btn:hover {
  background: rgba(var(--primary-rgb), 0.05);
  transform: translateY(-2px);
  color: var(--accent-dark);
}

.main-nav > a,
.main-nav > .nav-item > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  white-space: nowrap;
  line-height: 1.1;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  color: var(--primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.25s ease, background 0.25s ease;
  position: relative;
}

.main-nav > a::after,
.main-nav > .nav-item > a::after {
  display: none;
}

.main-nav > a:hover,
.main-nav > .nav-item > a:hover,
.main-nav > a.active,
.main-nav > .nav-item > a.active {
  color: var(--accent);
  background: transparent;
}

/* Premium Dropdown */
.nav-item {
  position: relative;
  padding-bottom: 0;
  margin-bottom: 0;
}

.nav-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  font-size: 0.55rem !important;
  margin-left: 5px;
  position: relative;
  top: -1px;
  transition: transform 0.3s ease;
}

.nav-item:hover .nav-arrow {
  transform: rotate(180deg);
}

.nav-item .dropdown {
  --dropdown-shift-x: -50%;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(var(--dropdown-shift-x)) translateY(8px);
  background: var(--primary);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  min-width: max-content;
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 200;
  border-top: 2px solid var(--accent);
  display: block;
  overflow-x: auto;
}

.nav-item .dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 12px;
}

.nav-item:hover .dropdown,
.nav-item .dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(var(--dropdown-shift-x)) translateY(0);
}

@media (min-width: 1025px) {
  .nav-item .dropdown.dropdown-grid {
    width: max-content;
    min-width: 0;
    max-width: calc(100vw - 24px);
    display: grid;
    grid-template-columns: repeat(var(--dropdown-cols, 3), max-content);
    column-gap: 6px;
    row-gap: 0;
    overflow-x: auto;
    overflow-y: auto;
    max-height: min(70vh, 500px);
  }

  .nav-item .dropdown.dropdown-grid a {
    width: auto;
    min-width: 0;
    white-space: nowrap;
    line-height: 1.25;
    overflow-wrap: normal;
  }
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  min-height: 34px;
  line-height: 1.25;
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  transition: background 0.25s ease, color 0.25s ease;
  border-radius: 4px;
  letter-spacing: 0.1px;
  white-space: nowrap;
  width: auto;
  min-width: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dropdown a:last-child {
  border-bottom: none;
}

.dropdown a::before {
  display: none;
}

.dropdown a::after {
  display: none;
}

.dropdown a:hover {
  background: #1a3b61;
  color: var(--accent);
}

/* Mega dropdown for menus with many options */
@media (min-width: 1025px) {
  .nav-item .dropdown.dropdown-grid::-webkit-scrollbar {
    width: 6px;
  }

  .nav-item .dropdown.dropdown-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
  }

  .nav-item .dropdown.dropdown-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 999px;
  }
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: rgba(var(--primary-rgb), 0.04);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  transition: all var(--transition-fast);
  border: 1px solid rgba(var(--primary-rgb), 0.08);
}

.header-link:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.header-cta:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.header-cta i {
  font-size: 0.85rem;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  padding: 6px;
}

/* Offcanvas Sidebar */
body.offcanvas-open {
  overflow: hidden;
}

.offcanvas-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 10, 22, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  z-index: 1200;
}

.offcanvas-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.offcanvas-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 92vw);
  height: 100vh;
  background: linear-gradient(180deg, #14324e 0%, #0c2137 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: -18px 0 45px rgba(0, 0, 0, 0.35);
  transform: translateX(105%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 360ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 220ms ease;
  z-index: 1301;
  display: flex;
  flex-direction: column;
}

.offcanvas-sidebar.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.offcanvas-open .offcanvas-sidebar,
.offcanvas-overlay.open + .offcanvas-sidebar {
  transform: translateX(0) !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.offcanvas-header {
  display: flex;
  justify-content: flex-end;
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.offcanvas-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.offcanvas-close:hover {
  background: rgba(var(--accent-rgb), 0.14);
  border-color: rgba(var(--accent-rgb), 0.8);
  color: var(--accent);
}

.offcanvas-body {
  flex: 1;
  overflow-y: auto;
}

.offcanvas-links {
  margin: 0;
  padding: 0;
}

.offcanvas-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.offcanvas-links a {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px 14px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  line-height: 1.35;
}

.offcanvas-links a i {
  width: 12px;
  flex-shrink: 0;
  font-size: 0.72rem;
  color: rgba(var(--accent-rgb), 0.9);
}

.offcanvas-links a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.offcanvas-body::-webkit-scrollbar {
  width: 6px;
}

.offcanvas-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  background: var(--primary);
}

/* Slider */
.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(var(--primary-rgb), 0.85) 0%,
      rgba(var(--primary-rgb), 0.4) 60%,
      rgba(var(--primary-rgb), 0.2) 100%);
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--accent-rgb), 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  color: var(--accent);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out both;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero h1 span {
  color: var(--accent);
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 560px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.45s both;
}

/* Hero Slider Dots */
.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.hero-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.2);
}

/* New Slider Classes */
.slider {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
}

.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(var(--primary-rgb), 0.85) 0%,
      rgba(var(--primary-rgb), 0.4) 60%,
      rgba(var(--primary-rgb), 0.2) 100%);
}

.slide-content {
  position: relative;
  z-index: 10;
  max-width: 680px;
  padding: 0 var(--container-padding);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  line-height: 1.8;
  max-width: 560px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.slider-nav {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.slider-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.2);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

.animate-fade-in {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.delay-1 {
  animation-delay: 0.15s;
}

.delay-2 {
  animation-delay: 0.3s;
}

.delay-3 {
  animation-delay: 0.45s;
}

.delay-4 {
  animation-delay: 0.6s;
}

/* Glow Button */
.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-glow:hover::after {
  opacity: 1;
}

/* Glass Button */
.btn-glass {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  animation: fadeInUp 1s ease both 1s;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  margin: 0 auto 8px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 4px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
  }
}

.scroll-indicator span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

/* Hero Dot Progress Bar */
.hero-dot {
  position: relative;
  overflow: hidden;
}

.hero-dot span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: inherit;
  transition: none;
}

.hero-dot.active span {
  animation: dotProgress 5s linear forwards;
}

@keyframes dotProgress {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

/* ============================================
   MARQUEE / NEWS TICKER
   ============================================ */
.news-ticker {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  padding: 10px 0;
  overflow: hidden;
}

.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ticker-label {
  background: var(--accent);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 1px;
  flex-shrink: 0;
}

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

.ticker-content {
  display: flex;
  gap: 50px;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
}

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

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-600);
  font-size: 0.88rem;
  font-weight: 500;
  flex-shrink: 0;
}

.ticker-item i {
  color: var(--accent-dark);
}

.ticker-item a:hover {
  color: var(--primary);
}

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

  100% {
    transform: translateX(-50%);
  }
}

/* ============================================
   WELCOME SECTION
   ============================================ */
.welcome-section {
  padding: var(--section-padding);
  background: var(--white);
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.welcome-image {
  position: relative;
}

.welcome-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.welcome-image::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.welcome-stats-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent);
  color: var(--primary);
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.welcome-stats-badge .stat-num {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-serif);
  line-height: 1;
}

.welcome-stats-badge .stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.welcome-text p {
  color: var(--gray-500);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
}

/* ---------- PREMIUM WELCOME STYLING ---------- */
.premium-welcome {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 252, 1) 100%);
  position: relative;
  overflow: hidden;
}

.premium-welcome::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(253, 200, 0, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.welcome-grid {
  position: relative;
  z-index: 2;
}

.premium-image-wrapper {
  position: relative;
}

.image-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.05),
    0 20px 60px rgba(0, 0, 0, 0.12),
    0 0 40px rgba(var(--accent-rgb), 0.15);
}

.image-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
}

.image-frame:hover img {
  transform: scale(1.02);
  filter: brightness(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 33, 71, 0) 0%, rgba(0, 33, 71, 0.08) 100%);
  pointer-events: none;
}

.premium-badge {
  position: absolute;
  bottom: -30px;
  right: 30px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--primary);
  padding: 24px 32px;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 40px rgba(var(--accent-rgb), 0.3),
    0 0 0 1px rgba(var(--accent-rgb), 0.2);
  text-align: center;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.premium-badge:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(var(--accent-rgb), 0.4),
    0 0 0 1px rgba(var(--accent-rgb), 0.2);
}

.badge-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: inline-block;
}

.premium-text {
  padding-top: 20px;
}

.premium-badge-style {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(253, 200, 0, 0.1) 0%, rgba(253, 200, 0, 0.05) 100%);
  color: var(--accent-dark);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  text-transform: uppercase;
}

.premium-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--gray-900);
  font-family: var(--font-serif);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-underline {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 2px;
  margin-bottom: 24px;
}

.premium-intro {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 28px !important;
  line-height: 1.8;
  text-align: left !important;
  font-weight: 500;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: rgba(var(--primary-rgb), 0.03);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(var(--primary-rgb), 0.06);
  transform: translateX(4px);
}

.feature-item i {
  font-size: 1.25rem;
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}

.feature-item p {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin: 0 !important;
  line-height: 1.6;
}

.welcome-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.premium-btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.25);
  transition: all 0.3s ease;
  border: none;
}

.premium-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.35);
}

.premium-btn-ghost {
  border: 2px solid var(--gray-200);
  color: var(--primary);
  transition: all 0.3s ease;
  background: transparent;
}

.premium-btn-ghost:hover {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.04);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.12);
}

/* ============================================
   STATS COUNTER BAR
   ============================================ */
.stats-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}

.stats-bar::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='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%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");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.stat-card {
  text-align: center;
  color: var(--white);
  padding: 20px;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-card .stat-icon {
  width: 60px;
  height: 60px;
  background: rgba(var(--accent-rgb), 0.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s ease, background 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(var(--accent-rgb), 0.25);
}

.stat-card .stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  font-family: var(--font-serif);
  line-height: 1;
  margin-bottom: 2px;
  display: inline;
}

.stat-card .stat-suffix {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-card .stat-label {
  font-size: 0.85rem;
  opacity: 0.7;
  font-weight: 500;
  margin-top: 6px;
}

/* ============================================
   THREE COLUMN SECTION (News, Principal, Achievements)
   ============================================ */
.three-col-section {
  padding: var(--section-padding);
  background: var(--gray-50);
}

.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.col-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.col-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.col-card-header {
  background: var(--primary);
  color: var(--white);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.col-card-header i {
  color: var(--accent);
  font-size: 1.2rem;
}

.col-card-body {
  padding: 24px;
  max-height: 460px;
  overflow-y: auto;
}

.col-card-body::-webkit-scrollbar {
  width: 4px;
}

.col-card-body::-webkit-scrollbar-thumb {
  background: var(--gray-200);
  border-radius: 4px;
}

/* News list */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--gray-50);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.news-item:hover {
  background: rgba(var(--accent-rgb), 0.08);
  transform: translateX(4px);
}

.news-item-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  font-size: 0.9rem;
}

.news-item-text {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.5;
  font-weight: 500;
}

.news-item-date {
  font-size: 0.72rem;
  color: var(--gray-400);
  margin-top: 4px;
}

/* Principal card */
.principal-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.principal-photo {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.principal-photo img {
  width: 120px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.principal-info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.principal-info span {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.principal-message {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
  text-align: justify;
}

/* Achievement slider */
.achievement-slider {
  position: relative;
  min-height: 260px;
}

.achievement-card {
  text-align: center;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.achievement-card.active {
  display: block;
  opacity: 1;
}

.achievement-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

.achievement-card h4 {
  font-size: 0.95rem;
  color: var(--primary);
  line-height: 1.4;
  font-family: var(--font-sans);
  font-weight: 600;
}

.ach-nav-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 0.75rem;
}

.ach-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.col-card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
  text-align: center;
}

/* ============================================
   DEPARTMENTS / PROGRAMS
   ============================================ */
.departments-section {
  padding: var(--section-padding);
  background: var(--white);
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.dept-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.dept-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.dept-card:hover::before {
  transform: scaleX(1);
}

.dept-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
}

.dept-icon {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(var(--accent-rgb), 0.08));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  color: var(--primary);
  transition: all var(--transition-normal);
}

.dept-card:hover .dept-icon {
  background: var(--primary);
  color: var(--accent);
  transform: scale(1.1) rotate(5deg);
}

.dept-card h3 {
  font-size: 1.1rem;
  font-family: var(--font-sans);
  margin-bottom: 10px;
  font-weight: 700;
}

.dept-card p {
  font-size: 0.85rem;
  color: var(--gray-400);
  line-height: 1.6;
}

/* ============================================
   CAMPUS LIFE / DIAMOND GRID
   ============================================ */
.campus-section {
  padding: var(--section-padding);
  background: var(--gray-50);
}

.campus-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 48px;
}

.campus-item {
  width: 140px;
  height: 140px;
  background: var(--white);
  transform: rotate(45deg);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.campus-item:hover {
  background: rgba(var(--accent-rgb), 0.08);
  transform: rotate(45deg) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.campus-item-inner {
  transform: rotate(-45deg);
  text-align: center;
}

.campus-item-inner i {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}

.campus-item-inner p {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-600);
}

/* ============================================
   PHOTO GALLERY
   ============================================ */
.gallery-section {
  padding: var(--section-padding);
  background: var(--white);
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
  margin-top: 48px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(var(--primary-rgb), 0.7) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

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

.gallery-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  color: var(--white);
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  font-size: 0.9rem;
  font-weight: 600;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   CTA / CALL TO ACTION
   ============================================ */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.06);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.04);
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}

.cta-content h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.cta-content h2 span {
  color: var(--accent);
}

.cta-content p {
  font-size: 1.05rem;
  opacity: 0.8;
  max-width: 550px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-name {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.footer-col ul li a::before {
  content: '›';
  color: var(--accent);
  font-weight: 700;
}

.footer-col ul li a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.86rem;
}

.footer-contact li i {
  color: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: var(--accent);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
  z-index: 2;
  transition: color var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--accent);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1360px) and (min-width: 769px) {
  .header-shell {
    gap: 8px;
  }

  .logo-img {
    width: 65px;
    height: 65px;
  }

  .logo-name {
    font-size: 1.76rem;
  }

  .logo-kicker {
    font-size: 0.9rem;
  }

  .logo-location {
    font-size: 0.82rem;
  }

  .main-nav {
    gap: 4px;
    margin-right: 10px;
  }

  .main-nav > a,
  .main-nav > .nav-item > a {
    font-size: 0.78rem;
    padding: 7px 9px;
    letter-spacing: 0.2px;
  }

  .nav-actions {
    margin-left: 10px;
    padding-left: 10px;
  }

  .header-cta {
    padding: 9px 18px;
    font-size: 0.82rem;
  }
}

@media (max-width: 1024px) {
  .three-col-grid {
    grid-template-columns: 1fr;
  }

  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .welcome-image {
    order: -1;
  }

  .image-frame img {
    height: 400px;
  }

  .premium-badge {
    bottom: -25px;
    right: 20px;
    padding: 20px 28px;
  }

  .premium-title {
    font-size: 2.4rem;
  }

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

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

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

@media (max-width: 768px) {
  :root {
    --section-padding: 50px 0;
  }

  .topbar {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .logo-img {
    width: 60px;
    height: 60px;
  }

  .logo-name {
    font-size: 1.56rem;
  }

  .logo-inline-city {
    margin-left: 6px;
  }

  .logo-kicker {
    font-size: 0.86rem;
    letter-spacing: 0.35px;
  }

  .logo-location {
    font-size: 0.79rem;
    letter-spacing: 0.25px;
  }

  /* Mobile Nav */
  .main-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    padding: 70px 20px 20px;
    z-index: 999;
    overflow-y: auto;
  }

  .main-nav.mobile-open a {
    padding: 10px 14px;
    border-bottom: 1px solid var(--gray-100);
    width: 100%;
  }

  .main-nav.mobile-open a::after {
    display: none;
  }

  .nav-item {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .nav-item .dropdown {
    position: static;
    transform: none !important;
    box-shadow: none;
    border: none;
    border-top: none;
    padding: 0 0 0 12px;
    opacity: 1;
    visibility: visible;
    display: none;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-top: 4px;
    min-width: auto;
    overflow-x: auto;
  }

  .nav-item .dropdown::before {
    display: none;
  }

  .nav-item .dropdown.mobile-show {
    display: block;
  }

  .nav-item .dropdown a {
    color: var(--gray-600);
    padding: 8px 12px;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--gray-100);
    white-space: nowrap;
    width: max-content;
    min-width: 100%;
  }

  .nav-item .dropdown a::before {
    opacity: 1;
    transform: none;
    color: var(--accent-dark);
  }

  .nav-item .dropdown a:hover {
    color: var(--primary);
    background: rgba(var(--accent-rgb), 0.08);
  }

  .hero {
    height: 70vh;
    min-height: 500px;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }

  .campus-item {
    width: 110px;
    height: 110px;
  }

  /* Mobile responsive for premium welcome */
  .premium-welcome {
    padding: 60px 0;
  }

  .premium-welcome::before {
    width: 400px;
    height: 400px;
    top: -30%;
    right: -20%;
  }

  .premium-title {
    font-size: 1.8rem;
  }

  .image-frame img {
    height: 300px;
  }

  .premium-badge {
    bottom: -20px;
    right: 12px;
    padding: 16px 24px;
    font-size: 0.85rem;
  }

  .badge-icon {
    font-size: 1.2rem;
  }

  .features-list {
    gap: 12px;
  }

  .feature-item {
    padding: 12px;
    gap: 12px;
  }

  .feature-item i {
    font-size: 1rem;
  }

  .welcome-buttons {
    flex-direction: column;
  }

  .welcome-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}


  .logo-location {
    font-size: 0.68rem;
  }

  .hero {
    height: 60vh;
    min-height: 400px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dept-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .gallery-item.tall,
  .gallery-item.wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .campus-grid {
    gap: 20px;
  }

  .campus-item {
    width: 95px;
    height: 95px;
  }

  /* Extra small mobile for premium welcome */
  .premium-badge {
    bottom: -15px;
    right: 8px;
    padding: 14px 20px;
    font-size: 0.75rem;
  }

  .premium-title {
    font-size: 1.5rem;
  }

  .image-frame img {
    height: 250px;
  }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   PAGE BANNER / BREADCRUMB
   ============================================ */
.page-banner {
  position: relative;
  height: 320px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.page-banner-bg {
  position: absolute;
  inset: 0;
}

.page-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.9) 0%, rgba(var(--primary-rgb), 0.6) 100%);
}

.page-banner-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.page-banner-content h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.breadcrumb-nav a {
  color: var(--accent);
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

/* ============================================
   INNER PAGE CONTENT
   ============================================ */
.page-content {
  padding: var(--section-padding);
}

.page-content p {
  color: var(--gray-500);
  line-height: 1.85;
  margin-bottom: 20px;
  text-align: justify;
}

.page-content h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.page-content h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  margin-top: 32px;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.content-sidebar {
  position: sticky;
  top: 100px;
}

/* Info Cards */
.info-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 24px;
  transition: all var(--transition-normal);
}

.info-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.info-card h4 {
  font-size: 1.05rem;
  font-family: var(--font-sans);
  margin-bottom: 12px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card h4 i {
  color: var(--accent);
}

.info-card ul {
  padding-left: 0;
}

.info-card ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-card ul li:last-child {
  border-bottom: none;
}

.info-card ul li::before {
  content: '▸';
  color: var(--accent);
  font-weight: 700;
}

/* Course Cards */
.course-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all var(--transition-normal);
}

.course-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.course-card .course-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4rem;
  color: var(--white);
}

.course-card h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  margin: 0 0 8px;
}

.course-card p {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin: 0;
}

/* Team Cards */
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-normal);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.team-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.team-card-body {
  padding: 20px;
}

.team-card h4 {
  font-size: 1rem;
  font-family: var(--font-sans);
  margin-bottom: 4px;
}

.team-card span {
  font-size: 0.82rem;
  color: var(--accent-dark);
  font-weight: 600;
}

.team-card p {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--gray-400);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.timeline-item h4 {
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--primary);
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  margin-top: 0;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
  outline: none;
  color: var(--gray-700);
}

.form-control:focus {
  border-color: var(--accent);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

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

/* Map Container */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* FAQ Accordion */
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary);
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: var(--gray-50);
}

.faq-question i {
  transition: transform var(--transition-normal);
  color: var(--accent);
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 24px 18px;
}

.faq-answer p {
  font-size: 0.9rem;
  margin: 0;
}

/* Infrastructure Grid */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.infra-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 280px;
  cursor: pointer;
}

.infra-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.infra-card:hover img {
  transform: scale(1.08);
}

.infra-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(var(--primary-rgb), 0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.infra-card-overlay h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  margin: 0;
}

.infra-card-overlay p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  margin: 4px 0 0;
}

/* Gallery Filters */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.gallery-filters .filter-btn {
  padding: 8px 20px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-filters .filter-btn:hover,
.gallery-filters .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Full Gallery Grid */
.full-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.full-gallery-grid .gallery-item {
  height: 250px;
}

/* Vision Mission Boxes */
.vm-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border-left: 5px solid var(--accent);
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.vm-box h3 {
  margin-top: 0;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.vm-box h3 i {
  color: var(--accent);
}

/* ============================================
   DEPARTMENT OF EDUCATION PAGE
   ============================================ */
.edu-department-hero {
  background-image: linear-gradient(115deg, rgba(var(--primary-rgb), 0.86), rgba(var(--primary-rgb), 0.58)), url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?w=1920&q=80');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 110px 0;
}

.edu-department-hero-inner {
  max-width: 700px;
}

.edu-department-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 14px;
}

.edu-department-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
}

.edu-page-content {
  padding-top: 0;
}

.edu-page-content .container {
  max-width: 1380px;
}

.edu-tabs-shell {
  margin-top: -28px;
  background: #f6f8fc;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.edu-program-layout {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  align-items: stretch;
}

.edu-program-nav {
  background: #e8edf5;
  border-right: 1px solid var(--gray-100);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.edu-program-btn {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.edu-program-btn:hover {
  border-color: rgba(var(--primary-rgb), 0.2);
  background: rgba(255, 255, 255, 0.95);
}

.edu-program-btn.active {
  background: var(--info);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.edu-program-content {
  min-width: 0;
}

.edu-program-panel {
  display: none;
}

.edu-program-panel.active {
  display: block;
}

.edu-tab-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 6px 0;
  overflow-x: hidden;
  background: linear-gradient(180deg, #edf2f9 0%, #e3eaf5 100%);
  border-bottom: 1px solid #d5deeb;
  scrollbar-width: none;
}

.edu-tab-btn {
  border: 1px solid rgba(var(--primary-rgb), 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 14px 11px;
  min-height: 48px;
  line-height: 1.15;
  letter-spacing: 0.15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 10px 10px 0 0;
  transition: all var(--transition-fast);
}

.edu-tab-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e8f1fd 100%);
  border-color: rgba(27, 98, 168, 0.34);
  color: #103f70;
  box-shadow: 0 6px 14px rgba(27, 89, 149, 0.14);
  transform: none;
}

.edu-tab-btn.active {
  background: linear-gradient(135deg, #5f9fda, #347cc7);
  color: var(--white);
  border-color: rgba(24, 85, 143, 0.38);
  box-shadow: 0 9px 18px rgba(35, 91, 147, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.edu-tab-btn:focus-visible {
  outline: 2px solid rgba(53, 127, 199, 0.48);
  outline-offset: 1px;
}

.edu-tab-panels {
  padding: 28px;
}

.edu-tab-panel {
  display: none;
}

.edu-tab-panel.active {
  display: block;
}

.edu-overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 26px;
  align-items: start;
}

.edu-overview-aside {
  position: sticky;
  top: 110px;
}

.edu-afrc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #1c8cd6, #0e73bc);
  color: var(--white);
  font-weight: 700;
}

.edu-afrc-btn:hover {
  color: var(--white);
  filter: brightness(1.05);
}

.edu-divider {
  border: 0;
  border-top: 1px solid var(--gray-200);
  margin: 26px 0;
}

.edu-panel-title {
  margin-top: 0;
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary);
}

.edu-list {
  list-style: disc;
  margin: 0 0 22px;
  padding-left: 22px;
}

.edu-list li {
  margin: 8px 0;
  color: var(--gray-600);
}

.edu-sub-list {
  list-style: circle;
  padding-left: 22px;
  margin-top: 8px;
}

.edu-teacher-list li strong {
  color: var(--primary);
}

.edu-inline-note {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
}

.edu-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin: 18px 0 26px;
}

.edu-photo-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.edu-photo-card img {
  width: 100%;
  height: 112px;
  object-fit: cover;
}

.edu-pdf-block {
  margin-top: 18px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.edu-pdf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray-200);
  background: #f3f7fd;
}

.edu-pdf-head h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  color: var(--primary);
}

.edu-pdf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: #1f74be;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
}

.edu-pdf-link:hover {
  color: var(--white);
  filter: brightness(1.05);
}

.edu-pdf-frame {
  width: 100%;
  height: 620px;
  border: 0;
  background: #f8fafd;
}

.edu-doc-preview-grid {
  margin-top: 18px;
}

.edu-doc-preview-card {
  margin: 0;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.edu-doc-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray-200);
  background: #f3f7fd;
}

.edu-doc-preview-head h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  color: var(--primary);
}

.edu-doc-preview-page {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-500);
  white-space: nowrap;
}

.edu-doc-preview-media {
  position: relative;
  padding: 16px 50px;
  background: #edf2f9;
}

.edu-doc-preview-canvas {
  display: block;
  width: 100%;
  height: auto;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.edu-doc-preview-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.edu-doc-preview-nav:hover {
  background: var(--primary-light);
}

.edu-doc-preview-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--gray-400);
}

.edu-doc-preview-prev {
  left: 10px;
}

.edu-doc-preview-next {
  right: 10px;
}

.edu-doc-preview-status {
  margin: 0;
  padding: 14px;
  font-size: 0.88rem;
  color: var(--gray-500);
  border-top: 1px solid var(--gray-100);
  background: #f8fafd;
}

.edu-doc-preview-status.hidden {
  display: none;
}

.edu-doc-preview-status.is-error {
  color: #6f4b1f;
  background: #fff5eb;
  border-top-color: #f4d4b5;
}

.edu-pdf-missing {
  margin-top: 18px;
  padding: 14px;
  border-radius: 10px;
  background: #fff5eb;
  border: 1px solid #f4d4b5;
  color: #6f4b1f;
}

.edu-faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.edu-faculty-card {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.edu-faculty-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.edu-faculty-body {
  padding: 16px;
}

.edu-faculty-body h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-family: var(--font-sans);
}

.edu-faculty-role {
  margin: 0 0 8px;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.edu-faculty-details {
  margin-bottom: 12px;
  color: var(--gray-500);
  font-size: 0.82rem;
  line-height: 1.55;
}

.edu-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  background: #1e73be;
  color: var(--white);
}

.edu-profile-btn:hover {
  color: var(--white);
  filter: brightness(1.06);
}

.edu-bed-faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  margin-top: 0;
  background: #ececec;
  border: 1px solid #e3e3e3;
}

.edu-bed-faculty-card {
  perspective: 1200px;
  min-height: 380px;
}

.edu-bed-faculty-flip {
  position: relative;
  min-height: 380px;
  transform-style: preserve-3d;
  transition: transform 0.65s ease;
}

.edu-bed-faculty-card:hover .edu-bed-faculty-flip,
.edu-bed-faculty-card:focus-within .edu-bed-faculty-flip {
  transform: rotateY(180deg);
}

.edu-bed-faculty-face {
  position: absolute;
  inset: 0;
  border: 1px solid #e5e5e5;
  background: #f1f1f1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 14px 20px;
  box-sizing: border-box;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.edu-bed-faculty-front {
  justify-content: flex-start;
}

.edu-bed-faculty-photo-wrap {
  width: 156px;
  height: 182px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #d1d1d1;
  background: var(--white);
  margin-bottom: 16px;
  flex: 0 0 auto;
}

.edu-bed-faculty-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edu-bed-faculty-front h4,
.edu-bed-faculty-back h4 {
  margin: 0;
  color: #0d3f75;
  font-size: 1.14rem;
  line-height: 1.28;
  font-family: var(--font-serif);
}

.edu-bed-faculty-back {
  transform: rotateY(180deg);
  justify-content: flex-start;
  background: #ecf4fb;
}

.edu-bed-faculty-front p,
.edu-bed-faculty-back p {
  margin: 10px 0 0;
  color: #33495f;
  font-size: 1.12rem;
  line-height: 1.3;
}

.edu-bed-faculty-front .edu-profile-btn {
  margin-top: 14px;
  padding: 8px 15px;
  font-size: 0.82rem;
  border-radius: 8px;
  background: #1e73be;
  color: var(--white);
}

.edu-bed-faculty-front .edu-profile-btn:hover {
  color: var(--white);
}

.edu-bed-faculty-back .edu-profile-btn {
  margin-top: auto;
  margin-bottom: 2px;
  padding: 8px 15px;
  font-size: 0.82rem;
  border-radius: 8px;
  background: #1e73be;
  color: var(--white);
}

.edu-bed-faculty-back .edu-profile-btn:hover {
  color: var(--white);
}

.edu-bed-faculty-hint {
  margin: 20px 0 0;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.edu-bed-faculty-profiles {
  margin-top: 14px;
}

.edu-bed-faculty-profile {
  display: none;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #f7f8fa;
  padding: 18px;
  margin-top: 12px;
}

.edu-bed-faculty-profile:target {
  display: block;
  scroll-margin-top: 120px;
}

.edu-bed-profile-head {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 18px;
}

.edu-bed-profile-photo {
  margin: 0;
  width: 126px;
  border: 1px solid #d0d0d0;
  background: var(--white);
  padding: 4px;
}

.edu-bed-profile-photo img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.edu-bed-profile-meta p {
  margin: 0 0 6px;
  color: #2f3f4f;
  font-size: 1.02rem;
  line-height: 1.34;
}

.edu-bed-profile-updated {
  margin: 0 0 14px;
  color: #3f4f61;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.edu-bed-profile-updated i {
  color: #8f78d2;
  font-size: 0.9rem;
}

.edu-bed-profile-accordion {
  border: 1px solid #d7dbe1;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f3f6;
}

.edu-bed-profile-detail {
  overflow: hidden;
}

.edu-bed-profile-detail + .edu-bed-profile-detail {
  border-top: 1px solid #d7dbe1;
}

.edu-bed-profile-detail summary {
  list-style: none;
  position: relative;
  cursor: pointer;
  padding: 12px 16px 12px 50px;
  color: #0b3765;
  font-size: 1.05rem;
  font-weight: 700;
  background: #f1f3f6;
  transition: background-color 0.28s ease;
}

.edu-bed-profile-detail[open] > summary {
  background: #e8edf4;
}

.edu-bed-profile-detail summary::-webkit-details-marker {
  display: none;
}

.edu-bed-profile-detail summary::before {
  content: "+";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-52%);
  color: #0b3765;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
}

.edu-bed-profile-detail[open] > summary::before {
  content: "-";
}

.edu-bed-profile-detail-body {
  max-height: 0;
  opacity: 0;
  display: block;
  padding: 0 16px 0 50px;
  background: var(--white);
  border-top: 0;
  overflow: hidden;
  transition: max-height 0.42s ease, padding 0.35s ease, opacity 0.25s ease, border-color 0.25s ease;
}

.edu-bed-profile-detail[open] > .edu-bed-profile-detail-body {
  max-height: 1200px;
  opacity: 1;
  padding: 0 16px 14px 50px;
  border-top: 1px solid #e5e8ee;
}

.edu-bed-profile-detail-body p {
  margin: 10px 0 0;
  color: #4c5a69;
  font-size: 0.9rem;
}

.edu-bed-profile-detail-body p:first-child {
  margin-top: 12px;
}

.edu-bed-faculty-profile > .edu-profile-btn {
  margin-top: 14px;
}

.edu-faculty-profile-page {
  background: #f5f7fb;
}

.edu-faculty-profile-toolbar {
  margin-bottom: 14px;
}

.edu-faculty-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.edu-faculty-profile-card {
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #f7f8fa;
  padding: 18px;
}

.edu-faculty-profile-list-card {
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.edu-faculty-profile-list-card h3 {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 1rem;
}

.edu-faculty-profile-list {
  display: grid;
  gap: 10px;
}

.edu-faculty-profile-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #e1e7ef;
  background: #f7f9fd;
  color: inherit;
}

.edu-faculty-profile-item:hover {
  background: #eef4ff;
  color: inherit;
}

.edu-faculty-profile-item.active {
  border-color: #8eb5dd;
  background: #e8f2fe;
}

.edu-faculty-profile-item img {
  width: 54px;
  height: 66px;
  object-fit: cover;
  border: 1px solid #d5dbe5;
  border-radius: 4px;
  flex-shrink: 0;
}

.edu-faculty-profile-item span {
  display: block;
}

.edu-faculty-profile-item strong {
  display: block;
  color: var(--primary);
  font-size: 0.86rem;
  line-height: 1.3;
}

.edu-faculty-profile-item small {
  display: block;
  color: var(--gray-500);
  font-size: 0.76rem;
  line-height: 1.3;
}

@media (max-width: 1400px) {
  .edu-bed-faculty-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .edu-faculty-profile-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.edu-link-list a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.edu-link-list a:hover {
  color: var(--accent-dark);
}

.edu-table-wrap {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  overflow-x: auto;
  background: var(--white);
}

.edu-publication-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.edu-publication-table th,
.edu-publication-table td {
  border: 1px solid var(--gray-100);
  padding: 12px;
  text-align: left;
  font-size: 0.9rem;
}

.edu-publication-table thead th {
  background: #edf2f9;
  color: var(--primary);
  font-weight: 700;
}

.edu-gallery-block + .edu-gallery-block {
  margin-top: 24px;
}

.edu-gallery-grid .edu-photo-card img {
  height: 124px;
}

/* Responsive Inner Pages */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    position: static;
  }

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

  .edu-overview-layout {
    grid-template-columns: 1fr;
  }

  .edu-tab-nav {
    gap: 2px;
    padding: 4px 6px 0;
  }

  .edu-tab-btn {
    font-size: 0.81rem;
    padding: 12px 9px;
    min-height: 44px;
  }

  .edu-program-layout {
    grid-template-columns: 1fr;
  }

  .edu-program-nav {
    border-right: 0;
    border-bottom: 1px solid var(--gray-100);
    padding: 12px;
    flex-direction: row;
    overflow-x: auto;
  }

  .edu-program-btn {
    min-width: max-content;
    text-align: center;
  }

  .edu-bed-faculty-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .edu-bed-profile-head {
    grid-template-columns: 140px 1fr;
    gap: 16px;
  }

  .edu-bed-profile-photo {
    width: 112px;
  }

  .edu-overview-aside {
    position: static;
  }
}

@media (max-width: 768px) {
  .page-banner {
    height: 240px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .edu-department-hero {
    padding: 84px 0;
  }

  .edu-department-hero h1 {
    font-size: 2rem;
  }

  .edu-tab-nav {
    padding: 0 10px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .edu-tab-btn {
    padding: 14px 15px;
    font-size: 0.86rem;
  }

  .edu-tab-panels {
    padding: 20px 16px;
  }

  .edu-faculty-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
  }

  .edu-bed-faculty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edu-pdf-frame {
    height: 470px;
  }

  .edu-doc-preview-media {
    padding: 14px 44px;
  }

  .edu-doc-preview-nav {
    width: 32px;
    height: 32px;
  }

  .edu-bed-faculty-flip {
    min-height: 320px;
  }

  .edu-bed-faculty-card {
    min-height: 320px;
  }

  .edu-bed-faculty-photo-wrap {
    width: 138px;
    height: 165px;
  }

  .edu-bed-faculty-front h4,
  .edu-bed-faculty-back h4 {
    font-size: 0.92rem;
  }

  .edu-bed-faculty-front p,
  .edu-bed-faculty-back p {
    font-size: 0.95rem;
  }

  .edu-bed-faculty-profile {
    padding: 14px;
  }

  .edu-bed-profile-head {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 12px;
  }

  .edu-bed-profile-photo {
    width: 108px;
  }

  .edu-bed-profile-meta p,
  .edu-bed-profile-updated {
    font-size: 0.92rem;
  }

  .edu-bed-profile-detail summary {
    font-size: 0.98rem;
    padding: 10px 12px 10px 42px;
  }

  .edu-bed-profile-detail summary::before {
    left: 14px;
    font-size: 1.4rem;
  }

  .edu-bed-profile-detail-body {
    padding: 0 12px 0 42px;
  }

  .edu-bed-profile-detail[open] > .edu-bed-profile-detail-body {
    padding: 0 12px 12px 42px;
  }
}

@media (max-width: 480px) {
  .full-gallery-grid {
    grid-template-columns: 1fr;
  }

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

  .edu-pdf-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .edu-pdf-frame {
    height: 340px;
  }

  .edu-doc-preview-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .edu-doc-preview-media {
    padding: 12px 40px;
  }

  .edu-doc-preview-prev {
    left: 6px;
  }

  .edu-doc-preview-next {
    right: 6px;
  }

  .edu-bed-faculty-grid {
    grid-template-columns: 1fr;
  }

  .edu-bed-faculty-flip,
  .edu-bed-faculty-card {
    min-height: 300px;
  }

  .edu-bed-faculty-photo-wrap {
    width: 132px;
    height: 158px;
  }

  .edu-bed-profile-photo {
    width: 96px;
  }

  .edu-bed-profile-meta p,
  .edu-bed-profile-updated {
    font-size: 0.88rem;
  }

  .edu-bed-profile-detail summary {
    font-size: 0.92rem;
    padding: 10px 10px 10px 38px;
  }

  .edu-bed-profile-detail summary::before {
    left: 12px;
  }

  .edu-bed-profile-detail-body {
    padding: 0 10px 0 38px;
  }

  .edu-bed-profile-detail[open] > .edu-bed-profile-detail-body {
    padding: 0 10px 10px 38px;
  }
}

/* ============================================
   HOMEPAGE SECTION STYLES (New Classes)
   ============================================ */

/* Section Padding & Header */
.section-padding {
  padding: var(--section-padding);
}

.bg-light {
  background: var(--gray-50);
}

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

.section-header .section-subtitle {
  margin: 0 auto;
}

/* Welcome Section */
.welcome {
  background: var(--white);
}

.welcome .welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.welcome .welcome-image {
  position: relative;
}

.welcome .welcome-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.welcome .welcome-image::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent);
  color: var(--primary);
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.exp-number {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-serif);
  line-height: 1;
  display: block;
}

.exp-text {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  display: block;
}

.welcome-text p {
  color: var(--gray-500);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
}

.welcome-btns {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

/* Stats Section */
.stats {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}

.stats::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='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%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");
}

.stats .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  color: var(--white);
  padding: 20px;
}

.stat-item .stat-icon {
  width: 56px;
  height: 56px;
  background: rgba(var(--accent-rgb), 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4rem;
  color: var(--accent);
}

.stat-item .counter {
  font-size: 2.6rem;
  font-weight: 800;
  font-family: var(--font-serif);
  line-height: 1;
  margin-bottom: 6px;
  display: inline;
}

.stat-suffix {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-item p {
  font-size: 0.85rem;
  opacity: 0.7;
  font-weight: 500;
  margin: 0;
}

/* Info Section / Widgets */
.info-section {
  background: var(--gray-50);
}

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

.info-card-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.info-card-widget:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.widget-header {
  background: var(--primary);
  color: var(--white);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-header h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-header h3 i {
  color: var(--accent);
}

.widget-nav {
  display: flex;
  gap: 6px;
}

.widget-nav button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  font-size: 0.7rem;
}

.widget-nav button:hover {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.widget-body {
  padding: 20px 24px;
  flex: 1;
  overflow-y: auto;
  max-height: 420px;
}

.widget-body::-webkit-scrollbar {
  width: 4px;
}

.widget-body::-webkit-scrollbar-thumb {
  background: var(--gray-200);
  border-radius: 4px;
}

.widget-body p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 12px;
}

.widget-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
}

/* News Items */
.news-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--gray-50);
  transition: all var(--transition-fast);
  cursor: pointer;
  margin-bottom: 10px;
}

.news-item:hover {
  background: rgba(var(--accent-rgb), 0.08);
  transform: translateX(4px);
}

.news-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  font-size: 0.85rem;
}

.news-content h4 {
  font-size: 0.85rem;
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}

.news-content span {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* Principal Widget */
.principal-profile {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.principal-profile img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.principal-profile strong {
  display: block;
  font-size: 0.95rem;
  color: var(--primary);
}

.principal-profile small {
  font-size: 0.78rem;
  color: var(--gray-400);
  display: block;
}

.principal-profile em {
  font-size: 0.82rem;
  color: var(--accent-dark);
  font-style: normal;
  font-weight: 600;
}

/* Achievement Slider */
.achievement-slider {
  position: relative;
  min-height: 280px;
}

.achievement-slide {
  transition: opacity 0.5s ease;
}

.achievement-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.achievement-slide h4 {
  font-size: 0.9rem;
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.4;
}

/* Dept Grid */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dept-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-normal);
}

.dept-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.dept-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4rem;
  color: var(--accent-dark);
  transition: all var(--transition-normal);
}

.dept-card:hover .dept-icon {
  background: var(--primary);
  color: var(--accent);
}

.dept-card h3 {
  font-size: 1.1rem;
  font-family: var(--font-sans);
  margin-bottom: 8px;
}

.dept-card p {
  font-size: 0.85rem;
  color: var(--gray-400);
  line-height: 1.5;
  margin-bottom: 16px;
}

.dept-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 0.5px;
}

.dept-card:hover .dept-link {
  color: var(--primary);
}

.dept-card-cta {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.dept-card-cta h3,
.dept-card-cta p {
  color: var(--white);
}

.dept-card-cta p {
  opacity: 0.7;
}

.dept-card-cta .dept-icon {
  background: rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
}

.dept-card-cta .dept-link {
  color: var(--accent);
}

/* Campus Life Grid */
.campus-life {
  background: var(--white);
}

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

.campus-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 30px 20px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  text-decoration: none;
  color: var(--gray-600);
  transition: all var(--transition-normal);
}

.campus-item:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.campus-item i {
  font-size: 2rem;
  color: var(--accent-dark);
  transition: color var(--transition-fast);
}

.campus-item:hover i {
  color: var(--accent);
}

.campus-item span {
  font-weight: 600;
  font-size: 0.88rem;
}

/* Partners & Recruiters Board */
.st-partners {
  padding: 40px 0;
}

.partners-board {
  background: #E0EBEB;
  /* Matched to the light teal/blue in image */
  border-radius: 40px;
  padding: 50px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.partners-header {
  margin-bottom: 40px;
}

.partners-header p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 10px auto 0;
}

.partners-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  animation: scrollMarquee 25s linear infinite;
}

.partners-track:hover {
  animation-play-state: paused;
}

.partner-logo {
  height: 40px;
  object-fit: contain;
  transition: transform 0.3s;
  display: block;
}

.partner-text-logo {
  transition: transform 0.3s;
}

.partner-logo:hover,
.partner-text-logo:hover {
  transform: scale(1.08);
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

  /* Scrolls half the track assuming duplicate items */
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  height: 220px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(var(--primary-rgb), 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.gallery-overlay i {
  color: var(--white);
  font-size: 1.6rem;
}

/* CTA Section */
.cta {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  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='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%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");
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.cta p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Ticker for new homepage */
.news-ticker .ticker-wrap {
  overflow: hidden;
  flex: 1;
}

.news-ticker .ticker-content span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-600);
  font-size: 0.88rem;
  font-weight: 500;
  flex-shrink: 0;
}

.text-accent {
  color: var(--accent-dark) !important;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox-close:hover {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

/* Scroll to Top */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-3px);
}

/* Footer Styles */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  padding-right: 20px;
}

.footer-brand .logo-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  opacity: 0.7;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  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);
  transition: all var(--transition-fast);
  font-size: 0.85rem;
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact li {
  display: flex !important;
  gap: 12px;
  margin-bottom: 14px !important;
}

.footer-contact i {
  color: var(--accent);
  font-size: 0.9rem;
  margin-top: 3px;
}

.footer-contact span {
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  opacity: 0.5;
  margin: 0;
}

/* Mobile Responsive - Homepage Sections */
@media (max-width: 1024px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

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

  .campus-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

@media (max-width: 768px) {
  .welcome .welcome-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .dept-grid {
    grid-template-columns: 1fr;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 20px 20px;
    box-shadow: var(--shadow-xl);
    transition: left var(--transition-normal);
    z-index: 9999;
    overflow-y: auto;
    align-items: stretch;
  }

  .main-nav.mobile-open {
    left: 0;
  }

  .main-nav a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
  }

  .nav-item .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    display: block;
    min-width: 0;
    width: 100%;
    opacity: 1;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal), visibility var(--transition-normal);
    padding: 0;
    margin-left: 16px;
  }

  .nav-item .dropdown.mobile-show {
    visibility: visible;
    max-height: 500px;
    padding: 4px 0;
  }

  .topbar-left,
  .topbar-right {
    display: none;
  }
}

@media (max-width: 480px) {
  .campus-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   HEADER REFRESH
   ============================================ */
.topbar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  min-height: 44px;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.topbar .container::-webkit-scrollbar {
  display: none;
}

.topbar-left {
  flex-wrap: nowrap;
  gap: 10px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.topbar-left a {
  white-space: nowrap;
  font-size: 0.74rem;
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  line-height: 1;
}

.topbar-badge i {
  font-size: 0.8rem;
}

.topbar-right {
  flex: 0 0 auto;
  margin-left: auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 5px;
  white-space: nowrap;
}

.topbar-link {
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
}

.topbar-divider {
  flex: 0 0 auto;
  height: 12px;
}

.topbar-follow-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-left: 1px;
}

.topbar-social-link {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
}

.topbar-social-link:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.16);
}

.header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.08);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 1000;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.34s ease, background 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.header.scrolled {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
}

@media (min-width: 769px) {
  .header.scrolled .header-shell {
    display: flex;
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
  }

  .header.scrolled .main-nav {
    border-top: none;
    padding: 12px 0;
    margin-right: 0;
    justify-content: center;
  }

  .header.scrolled.scroll-hidden {
    transform: translate3d(0, calc(-100% - 6px), 0);
    opacity: 0;
    pointer-events: none;
  }

  .header.scrolled.scroll-visible {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    pointer-events: auto;
  }
}

.header .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: 0;
  padding-bottom: 0;
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 15px 0;
  max-height: 150px;
  opacity: 1;
  overflow-y: hidden;
  overflow-x: visible;
  transition: max-height 0.46s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.34s ease, padding 0.34s ease;
}

.logo {
  min-width: 290px;
  margin-left: 0;
  padding-left: 4px;
}

.header .logo-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #0e3c71 0%, var(--primary) 68%, var(--primary-dark) 100%);
  border: 3px solid rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  position: relative;
}

.header .logo-icon::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
}

.logo-icon-inner {
  position: relative;
  z-index: 1;
  color: var(--accent);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo-text {
  gap: 2px;
}

.logo-kicker {
  display: inline-flex;
  width: fit-content;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.header .logo-name {
  font-size: 1.6rem;
  line-height: 1.1;
}

.header .logo-tagline {
  font-size: 0.82rem;
  letter-spacing: 0.9px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 12px 0;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  width: 100%;
  min-width: 0;
  transition: padding 0.3s ease, border-color 0.3s ease;
}

.main-nav>a,
.main-nav>.nav-item>a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  font-size: 0.89rem;
  font-weight: 700;
}

.main-nav a::after {
  display: none;
}

.main-nav>a:hover,
.main-nav>a.active,
.main-nav>.nav-item>a:hover,
.main-nav>.nav-item>a.active,
.nav-item:hover>a {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.nav-arrow {
  font-size: 0.62rem;
  opacity: 0.55;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-item:hover .nav-arrow,
.nav-item>a.active .nav-arrow {
  opacity: 1;
  transform: rotate(180deg);
}

.nav-item .dropdown {
  left: 0;
  top: calc(100% + 16px);
  transform: translateY(12px);
  min-width: 240px;
  padding: 10px;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.nav-item:hover .dropdown {
  transform: translateY(0);
}

.dropdown a {
  border-radius: 14px;
  padding: 11px 14px;
  font-weight: 600;
}

.mobile-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  align-items: center;
  justify-content: center;
  display: none;
}

.mobile-toggle:hover {
  background: var(--gray-50);
}

.page-home .st-home-shortcuts {
  background: #fbfcff;
}

.page-home .st-home-shortcuts .container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.page-home .st-home-shortcuts a {
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
}

.page-home .st-home-shortcuts a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

@media (max-width: 1180px) {
  .header-shell {
    gap: 10px;
  }

  .header .logo-name {
    font-size: 1.36rem;
  }

  .main-nav>a,
  .main-nav>.nav-item>a {
    padding: 10px 11px;
    font-size: 0.83rem;
  }

  .header-cta span {
    display: none;
  }

  .header-cta {
    padding: 12px 14px;
    font-size: 0.8rem;
  }
}


@media (max-width: 992px) {
  .topbar-right {
    display: none;
  }

  .topbar-left {
    width: 100%;
    justify-content: center;
  }

  .logo {
    min-width: 0;
    margin-left: 0;
  }

  .header-actions {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .header-link {
    padding: 9px 12px;
    font-size: 0.84rem;
  }

  .header-cta {
    padding: 11px 12px;
    font-size: 0.86rem;
  }
}

@media (max-width: 768px) {
  .header-shell {
    min-height: 76px;
    gap: 12px;
  }

  .header .logo-icon {
    width: 54px;
    height: 54px;
  }

  .logo-kicker,
  .header .logo-tagline,
  .header-cta {
    display: none;
  }

  .header-link {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .header .logo-name {
    font-size: 1.16rem;
  }

  .main-nav {
    display: flex;
    position: fixed;
    top: 0;
    left: -320px;
    width: 304px;
    height: 100vh;
    padding: 88px 18px 24px;
    background: var(--white);
    border: none;
    border-radius: 0 24px 24px 0;
    box-shadow: var(--shadow-xl);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    z-index: 9999;
    overflow-y: auto;
    transition: left var(--transition-normal);
  }

  .main-nav.mobile-open {
    left: 0;
  }

  .nav-actions {
    margin: auto 0 0 0;
    padding: 20px 0 0 0;
    border-left: none;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
    justify-content: center;
    gap: 20px;
  }

  .main-nav>a,
  .main-nav>.nav-item>a {
    width: 100%;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 16px;
  }

  .nav-item .dropdown {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 12px;
    margin-top: 0;
    opacity: 1;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
  }

  .nav-item .dropdown.mobile-show {
    visibility: visible;
    max-height: 500px;
    padding-top: 6px;
  }

  .dropdown a {
    padding: 10px 12px;
    border-radius: 12px;
  }
}

/* ============================================
   OFFCANVAS SIDEBAR
   ============================================ */
.offcanvas-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  backdrop-filter: blur(3px);
}

.offcanvas-overlay.active,
.offcanvas-overlay.open {
  opacity: 1;
  visibility: visible;
}

.offcanvas-sidebar {
  position: fixed;
  top: 0;
  right: -360px;
  width: 320px;
  height: 100vh;
  background: #19232D;
  z-index: 100001;
  transition: right 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
}

.offcanvas-sidebar.active,
.offcanvas-sidebar.open {
  right: 0;
}

.offcanvas-header {
  padding: 24px;
  display: flex;
  justify-content: flex-end;
}

.offcanvas-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1.1rem;
}

.offcanvas-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.offcanvas-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.offcanvas-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.offcanvas-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.offcanvas-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: #D1D5DB;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  transition: all var(--transition-fast);
  letter-spacing: 0.5px;
}

.offcanvas-links a i {
  font-size: 0.8rem;
  color: #9CA3AF;
  transition: color var(--transition-fast);
}

.offcanvas-links a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.offcanvas-links a:hover i {
  color: var(--accent);
}

/* --- Photo Crossfade Slider --- */ .st-photo-slider  {
     position:  relative;
     width:  100%;
     height:  550px;
     border-radius:  var(--radius-lg);
     overflow:  hidden;
     box-shadow:  0 20px 40px rgba(0, 0, 0, 0.15);
     border:  8px solid white;
   
}

  .st-slide  {
     position:  absolute;
     top:  0;
     left:  0;
     width:  100%;
     height:  100%;
     opacity:  0;
     animation:  slideCrossfade 15s infinite;
   
}

  .st-slide img  {
     width:  100%;
     height:  100%;
     object-fit:  cover;
   
}

  .st-slide:nth-child(1)  {
   animation-delay:  0s;
   
}

 .st-slide:nth-child(2)  {
   animation-delay:  5s;
   
}

 .st-slide:nth-child(3)  {
   animation-delay:  10s;
   
}

  @keyframes slideCrossfade  {
     0%  {
     opacity:  0;
     
  }

     10%  {
     opacity:  1;
     
  }

     33%  {
     opacity:  1;
     
  }

     43%  {
     opacity:  0;
     
  }

     100%  {
     opacity:  0;
     
  }

   
}

  .slider-overlay  {
     position:  absolute;
     inset:  0;
     background:  linear-gradient(180deg,  transparent 60%,  rgba(0, 0, 0, 0.3));
     pointer-events:  none;
     z-index:  2;
   
}

  