/* ==========================================================================
   PHYSICS EXCELLENCE ACADEMY (PEA) - STYLESHEET
   Brand Colors: Deep Navy Blue (#0B2545) & Royal Gold (#D4AF37)
   ========================================================================== */

:root {
  /* Core Brand Colors (Derived from Logo) */
  --navy-primary: #0B2545;
  --navy-dark: #06172E;
  --navy-light: #133966;
  --navy-accent: #1E4E8C;

  --gold-primary: #D4AF37;
  --gold-light: #F4E07E;
  --gold-dark: #A88318;
  --gold-gradient: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #AA771C 100%);
  --gold-glow: rgba(212, 175, 55, 0.25);

  /* Secondary & Neutral Palette */
  --bg-main: #E2E8F0;
  --bg-card: #FFFFFF;
  --bg-header: #F4F7FA;
  --text-primary: #0B2545;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --border-light: #E2E8F0;
  --border-gold: rgba(212, 175, 55, 0.4);

  /* Accent status colors */
  --success-color: #10B981;
  --whatsapp-color: #25D366;
  --youtube-color: #FF0000;
  --facebook-color: #1877F2;

  /* Typography */
  --font-heading: 'Outfit', 'Montserrat', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-quote: 'Rozha One', Georgia, serif;

  /* Elevations & Shadows */
  --shadow-sm: 0 2px 4px rgba(11, 37, 69, 0.05);
  --shadow-md: 0 4px 12px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 10px 25px rgba(11, 37, 69, 0.12);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.2);

  /* Layout */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

.container {
  width: 94%;
  max-width: 1360px;
  margin: 0 auto;
}

.site-back-button {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  background: var(--navy-primary);
  color: #fff;
  font: 700 .9rem var(--font-body);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.site-back-button:hover,
.site-back-button:focus-visible {
  background: var(--gold-primary);
  color: var(--navy-dark);
  outline: none;
  transform: translateY(-2px);
}

@media (max-width: 760px) {
  .site-back-button {
    left: 14px;
    bottom: 88px;
    min-height: 42px;
    padding: 9px 13px;
  }
}

/* ==========================================================================
   1. TOP ANNOUNCEMENT STRIP
   ========================================================================== */
.top-announcement-strip {
  background: var(--navy-dark);
  color: #FFFFFF;
  padding: 8px 0;
  font-size: 0.85rem;
  border-bottom: 2px solid var(--gold-primary);
}

.strip-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-gold {
  background: var(--gold-gradient);
  color: var(--navy-dark);
}

.strip-text {
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.strip-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.strip-btn:hover {
  background: var(--gold-primary);
  color: var(--navy-dark);
}

.strip-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-announcement-strip .header-search-bar {
  margin-left: 0;
  margin-right: 15px;
}

.top-announcement-strip .header-search-bar input {
  padding: 4px 12px 4px 28px;
  border: 1px solid #D4AF37;
  background: rgba(212, 175, 55, 0.1);
  color: #FFFFFF;
  font-size: 0.75rem;
  width: 140px;
  transition: all 0.3s ease;
}

.top-announcement-strip .header-search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.top-announcement-strip .header-search-bar input:focus {
  border-color: #D4AF37;
  background: rgba(212, 175, 55, 0.15);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

.top-announcement-strip .header-search-bar i {
  left: 10px;
  font-size: 0.75rem;
  color: #D4AF37;
}

/* ==========================================================================
   1.5 TOP PAGE MENU
   ========================================================================== */
.top-page-menu {
  background: #FFFFFF;
  border-bottom: 2px solid var(--gold-primary);
  padding: 5px 0;
}

.top-menu-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.top-menu-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.top-menu-list li {
  margin: 0;
}

/* Header Search Bar */
.header-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 60px;
  /* Shift search bar more to the right of Contact Us */
}

.header-search-bar input {
  padding: 8px 12px 8px 35px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 220px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.header-search-bar input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.header-search-bar i {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

/* Responsive adjustment for top menu */
@media (max-width: 768px) {
  .strip-content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .strip-text {
    white-space: normal;
    text-align: center;
  }

  .strip-actions {
    width: 100%;
    justify-content: center;
  }

  .top-menu-container {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .top-menu-list {
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .top-menu-list a {
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
  }

  .header-search-bar {
    width: 100%;
    max-width: 300px;
    margin-bottom: 5px;
    margin-left: 0;
    /* Reset margin on mobile screens */
  }

  .header-search-bar input {
    width: 100%;
  }
}

.top-menu-list a {
  display: block;
  padding: 12px 24px;
  color: var(--navy-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.top-menu-list a:hover,
.top-menu-list a.active {
  color: var(--gold-dark);
  border-bottom: 3px solid var(--gold-primary);
}

/* ==========================================================================
   2. MAIN HEADER (Matching Hand-sketched Top Layout)
   ========================================================================== */
.main-header {
  background: var(--navy-primary);
  padding: 10px 0;
  border-bottom: 3px solid var(--gold-primary);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-spacer {
  display: none;
}

/* Top Center: Logo */
.header-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.brand-logo {
  max-width: 280px;
  height: 165px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(11, 37, 69, 0.15));
  transition: var(--transition);
}

.brand-logo:hover {
  transform: scale(1.04) rotate(2deg);
}

/* Center: Academy Box & Quotes */
.header-center-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Sketch title box outline */
.academy-title-box {
  border: 3px double var(--navy-primary);
  padding: 4px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  box-shadow: var(--shadow-sm);
}

.academy-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--navy-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}

.motto-tagline {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.motto-tagline .star {
  color: #FFFFFF;
  font-size: 1.2rem;
}

.quote-box {
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--gold-primary);
  padding: 6px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 4px;
  position: relative;
  max-width: 680px;
}

.quote-text {
  font-style: italic;
  font-size: 0.95rem;
  color: #FFFFFF;
  font-weight: 500;
  display: inline;
}

.quote-author {
  display: inline-block;
  font-weight: 700;
  color: var(--gold-light);
  font-size: 0.9rem;
  margin-left: 8px;
}

/* ==========================================================================
   INDEPENDENT FLOATING QUICK SIDE BUTTONS (ALWAYS VISIBLE ICONS)
   ========================================================================== */
.side-quick-buttons {
  position: fixed;
  right: 14px;
  top: 32%;
  transform: translateY(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.quick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-primary);
  color: #FFFFFF;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(11, 37, 69, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 2px solid var(--gold-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.quick-btn i {
  font-size: 1.25rem;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Tooltip text label popping out to the left on hover */
.quick-btn-label {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy-dark);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border: 1px solid var(--border-gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.quick-btn-label strong {
  color: var(--gold-light);
}

/* Hover on SPECIFIC button -> ICON zooms gently & ONLY its label pops out! */
.quick-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 14px var(--gold-glow);
}

.quick-btn:hover .quick-btn-label {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-4px);
}

/* Brand Button Color Styles */
.phone-quick-btn {
  background: #0B2545;
  color: #F4E07E;
}

.wa-quick-btn {
  background: #25D366;
  color: #FFFFFF;
  border-color: #1EBE57;
}

.ig-quick-btn {
  background: #E1306C;
  color: #FFFFFF;
  border-color: #C13584;
}

.fb-quick-btn {
  background: #1877F2;
  color: #FFFFFF;
  border-color: #0C63D4;
}

.yt-quick-btn {
  background: #FF0000;
  color: #FFFFFF;
  border-color: #CC0000;
}

/* ==========================================================================
   3. MAIN NAVIGATION BAR (Classes & Categories)
   ========================================================================== */
.main-navbar {
  background: var(--navy-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--gold-primary);
}

.navbar-container {
  display: flex;
  align-items: center;
}

.mobile-nav-toggle {
  display: none;
  width: 100%;
  background: var(--navy-dark);
  color: var(--gold-primary);
  border: none;
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.nav-tabs-list {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-tabs-list::-webkit-scrollbar {
  display: none;
}

.nav-item {
  flex: 1;
  text-align: center;
  min-width: 140px;
}

.nav-link {
  width: 100%;
  padding: 15px 12px;
  background: transparent;
  border: none;
  border-bottom: 4px solid transparent;
  color: #E2E8F0;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.nav-link i {
  color: var(--gold-primary);
  font-size: 0.9rem;
}

.nav-item:hover .nav-link {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.nav-item.active .nav-link {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-primary);
  border-bottom-color: var(--gold-primary);
  font-weight: 700;
}

/* Dropdown styling */
.nav-item.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--navy-primary);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  text-align: left;
  border: 1px solid var(--navy-light);
  border-top: 2px solid var(--gold-primary);
  border-radius: 0 0 6px 6px;
  padding: 8px 0;
}

.nav-item.dropdown:hover .dropdown-content {
  display: block;
}

.nav-item.dropdown.open .dropdown-content {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #E2E8F0;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: var(--transition);
}

.dropdown-item i {
  color: var(--gold-primary);
  font-size: 0.9rem;
  width: 16px;
  text-align: center;
}

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

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--gold-primary);
  padding-left: 20px;
}

.local-dropdown-submenu {
  position: relative;
}

.local-dropdown-submenu .submenu-content {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background-color: var(--navy-primary);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  border: 1px solid var(--navy-light);
  border-top: 2px solid var(--gold-primary);
  border-radius: 0 6px 6px 6px;
  padding: 8px 0;
}

.local-dropdown-submenu:hover .submenu-content {
  display: block;
}

.local-dropdown-submenu.open .submenu-content {
  display: block;
}

.local-dropdown-submenu .dropdown-item {
  justify-content: space-between;
}

/* Ensure the wrapper does not clip dropdowns on desktop */
@media (min-width: 993px) {
  .nav-tabs-list {
    overflow: visible;
    flex-wrap: wrap;
  }
}



/* ==========================================================================
   5. 3-COLUMN MAIN CONTENT LAYOUT
   ========================================================================== */
.main-body {
  padding: 25px 0 50px;
}

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

/* Universal Widget Card Styles */
.widget-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 20px;
}

.widget-header {
  background: var(--navy-primary);
  color: #FFFFFF;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--gold-primary);
}

.widget-header h2,
.widget-header h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-header i {
  color: var(--gold-primary);
}

/* --- LEFT SIDEBAR: Notification / सूचना Board --- */
.notification-widget {
  border-top: 4px solid var(--navy-primary);
}

.bell-ring {
  animation: bellSwing 2s infinite ease-in-out;
}

@keyframes bellSwing {

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

  10%,
  30%,
  50% {
    transform: rotate(12deg);
  }

  20%,
  40% {
    transform: rotate(-12deg);
  }

  60% {
    transform: rotate(0);
  }
}

.live-dot {
  width: 10px;
  height: 10px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
}

.notification-ticker-box {
  max-height: 420px;
  overflow-y: auto;
  padding: 12px;
}

.notification-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notice-item {
  padding: 10px 12px;
  background: #F8FAFC;
  border-left: 3px solid var(--gold-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: var(--transition);
}

.notice-item:hover {
  background: #F1F5F9;
  transform: translateX(3px);
}

.notice-item.urgent {
  border-left-color: #EF4444;
  background: #FEF2F2;
}

.notice-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--navy-primary);
  color: #FFFFFF;
  margin-bottom: 4px;
}

.notice-badge.Hindi {
  background: #D97706;
}

.notice-text {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.4;
}

.notice-date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.widget-footer {
  padding: 10px 15px;
  background: #F8FAFC;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.link-btn {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-btn:hover {
  color: var(--gold-dark);
}

/* Quick Tools Bullet List Style (Matching Screenshot) */
.quick-links-content {
  padding: 16px 20px 20px 24px;
}

.bullet-links-list {
  list-style-type: disc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bullet-links-list li {
  color: #000000;
  font-size: 0.92rem;
  line-height: 1.4;
}

.bullet-links-list li a {
  color: #0000FF;
  text-decoration: underline;
  font-weight: 500;
  transition: var(--transition);
}

.bullet-links-list li a:hover {
  color: #0000A0;
}

.quick-tile:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: var(--shadow-sm);
}

/* --- CENTER COLUMN: Main Content & Resources --- */
.content-toolbar-card {
  background: var(--bg-card);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.active-category-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy-primary);
}

.category-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.search-box {
  position: relative;
  min-width: 260px;
}

.search-box input {
  width: 100%;
  padding: 10px 36px 10px 38px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--navy-primary);
  box-shadow: 0 0 0 3px rgba(11, 37, 69, 0.1);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

/* Resource Grid */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

.resource-tag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.type-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.pill-syllabus {
  background: #E0F2FE;
  color: #0369A1;
}

.pill-video {
  background: #FEE2E2;
  color: #B91C1C;
}

.pill-question {
  background: #FEF3C7;
  color: #B45309;
}

.pill-model {
  background: #F3E8FF;
  color: #6B21A8;
}

.pill-material {
  background: #DCFCE7;
  color: #15803D;
}

.class-code {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.card-item-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 8px;
  line-height: 1.35;
}

.card-item-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
}

.btn-navy {
  background: var(--navy-primary);
  color: #FFFFFF;
}

.btn-navy:hover {
  background: var(--navy-dark);
}

.btn-gold {
  background: var(--gold-gradient);
  color: var(--navy-dark);
  box-shadow: 0 2px 8px var(--gold-glow);
}

.btn-gold:hover {
  filter: brightness(1.08);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--navy-primary);
  color: var(--navy-primary);
}

.btn-outline:hover {
  background: var(--navy-primary);
  color: #FFFFFF;
}

.btn-block {
  width: 100%;
  flex: none;
}

/* Empty State */
.no-material-box {
  grid-column: 1 / -1;
  background: #FFFFFF;
  padding: 40px 20px;
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-light);
  color: var(--text-muted);
}

.no-material-box i {
  font-size: 2.5rem;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

/* --- RIGHT SIDEBAR: About Academy, Vision & Director --- */
.about-description {
  font-size: 0.86rem;
  color: var(--text-secondary);
  padding: 14px 16px;
  line-height: 1.5;
}

.vision-mission-box {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vm-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--navy-primary);
  background: #F8FAFC;
}

.vm-item.vision {
  border-left-color: var(--gold-primary);
}

.vm-item.mission {
  border-left-color: var(--navy-primary);
}

.vm-item h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vm-item h4 i {
  color: var(--gold-dark);
}

.vm-item p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Managing Director & Faculty Card (matching photo sketch) */
.director-card,
.faculty-widget {
  padding: 16px;
  border-top: 4px solid var(--gold-primary);
  position: relative;
  overflow: hidden;
}

.faculty-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.faculty-header h2 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--navy-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

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

.faculty-nav-btn {
  background: #F1F5F9;
  border: 1px solid var(--border-light);
  color: var(--navy-primary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.faculty-nav-btn:hover {
  background: var(--navy-primary);
  color: var(--gold-primary);
  border-color: var(--navy-primary);
}

.faculty-slider-container {
  overflow: hidden;
  width: 100%;
}

.faculty-slider-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.faculty-profile-card {
  min-width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 4px 2px;
}

.faculty-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.faculty-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #CBD5E1;
  cursor: pointer;
  transition: all 0.25s ease;
}

.faculty-dot.active {
  background: var(--gold-dark);
  width: 20px;
  border-radius: 4px;
}

.director-photo-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 12px;
}

.director-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 100%);
  border: 3px solid var(--gold-primary);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.director-placeholder-icon {
  font-size: 3.5rem;
  color: var(--gold-light);
  margin-top: 15px;
}

.director-badge {
  position: absolute;
  bottom: 0;
  right: -5px;
  background: var(--navy-primary);
  color: var(--gold-primary);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold-primary);
}

.director-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-primary);
}

.director-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

.director-quote {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.4;
  background: #F8FAFC;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}

.director-quote i {
  color: var(--gold-dark);
}

.director-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 14px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 8px 0;
}

.stat-box {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--navy-primary);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==========================================================================
   6. MODAL WINDOWS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 23, 46, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 680px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  background: var(--navy-primary);
  color: #FFFFFF;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--gold-primary);
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 20px;
}

.video-responsive-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #000;
  margin-bottom: 12px;
}

.video-responsive-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.pdf-placeholder-box {
  text-align: center;
  padding: 30px 10px;
}

.pdf-icon-large {
  font-size: 3.5rem;
  color: #EF4444;
  margin-bottom: 10px;
}

.pdf-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.main-footer {
  background: linear-gradient(to right, #0b192c, #1a2f4c);
  color: #FFFFFF;
  padding: 40px 0 15px;
  border-top: 4px solid var(--gold-primary);
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.05), transparent 50%);
  pointer-events: none;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: relative;
  z-index: 1;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  width: 220px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.02);
}

.brand-text h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold-primary);
  margin-bottom: 5px;
  letter-spacing: -0.5px;
}

.brand-text>p:first-of-type {
  font-size: 1.1rem;
  color: #e2e8f0;
  font-weight: 600;
  margin-bottom: 15px;
}

.brand-desc {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 90%;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  background: var(--gold-primary);
  color: var(--navy-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

@media (min-width: 993px) {
  .footer-links-container {
    padding-left: 20%;
  }
}

.footer-contact-container h4,
.footer-links-container h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #FFFFFF;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding-bottom: 10px;
}

.footer-contact-container h4::after,
.footer-links-container h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold-primary);
}

.footer-contact-container h4 i,
.footer-links-container h4 i {
  color: var(--gold-primary);
}

.footer-contact-list,
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-contact-list li i {
  color: var(--gold-primary);
  margin-top: 4px;
}

.footer-contact-list a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-list a:hover {
  color: var(--gold-primary);
}

.footer-links-list li {
  display: flex;
  align-items: center;
}

.footer-links-list a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links-list a i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  color: var(--gold-primary);
}

.footer-links-list a:hover {
  color: var(--gold-primary);
  transform: translateX(5px);
}

.footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.copyright {
  font-size: 0.9rem;
  color: #94a3b8;
  text-align: center;
}

.copyright strong {
  color: var(--gold-primary);
}

@media (max-width: 992px) {
  .footer-top-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-top-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-contact-container h4::after,
  .footer-links-container h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-contact-container h4,
  .footer-links-container h4 {
    justify-content: center;
  }

  .footer-contact-list li,
  .footer-links-list li {
    justify-content: center;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-links-container {
    padding-left: 0;
  }

  .copyright {
    font-size: 0.8rem;
    line-height: 1.5;
    padding: 0 10px;
    white-space: normal;
  }
}

/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS (MOBILE & TABLET DESIGN SYSTEM)
   ========================================================================== */

/* Laptop & Tablet Landscape (Max-width: 1100px) */
@media (max-width: 1100px) {
  .header-container {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .header-spacer {
    display: none;
  }

  .layout-grid {
    grid-template-columns: 260px 1fr;
    gap: 20px;
  }

  .right-sidebar {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

/* Tablet Portrait & Mobile Devices (Max-width: 992px) */
@media (max-width: 992px) {
  .layout-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  .center-content-column {
    display: contents !important;
  }

  /* Shift Hero Banner Carousel to TOP right after Header on Mobile/Tablet */
  .hero-carousel {
    order: 1 !important;
    width: 100% !important;
    margin-bottom: 16px !important;
  }

  .left-sidebar {
    order: 2 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
  }

  .content-toolbar-card {
    order: 3 !important;
    width: 100% !important;
  }

  #resourceGrid {
    order: 4 !important;
    width: 100% !important;
  }

  .right-sidebar {
    order: 5 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
  }

  /* Main Category Nav Tabs horizontal touch scroll on Tablet & Mobile */
  .mobile-nav-toggle {
    display: none !important;
  }

  @keyframes pulseScrollHint {

    0%,
    100% {
      transform: translateX(0);
      opacity: 0.8;
    }

    50% {
      transform: translateX(3px);
      opacity: 1;
    }
  }

  .mobile-scroll-hint {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    margin-left: 6px;
    flex-shrink: 0;
    animation: pulseScrollHint 1.8s infinite ease-in-out;
  }

  .nav-tabs-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin !important;
    scrollbar-color: var(--gold-primary) var(--navy-dark) !important;
    width: 100% !important;
    padding: 0 8px 6px 8px !important;
  }

  .nav-tabs-list::-webkit-scrollbar {
    display: none !important;
  }

  .nav-item {
    flex: 0 0 auto !important;
    min-width: max-content !important;
  }

  .nav-link {
    padding: 12px 14px !important;
    font-size: 0.88rem !important;
    white-space: nowrap !important;
    border-bottom: 3px solid transparent !important;
    border-left: none !important;
    justify-content: center !important;
  }

  .nav-item.active .nav-link {
    border-bottom-color: var(--gold-primary) !important;
  }

  /* Subnav Bar Always Visible with Touch Scroll on Mobile & Tablet */
  .subnav-bar {
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 10px 0 6px 0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin !important;
    scrollbar-color: var(--gold-primary) #E2E8F0 !important;
    border-bottom: 2px solid var(--border-gold);
  }

  .subnav-bar::-webkit-scrollbar {
    display: block !important;
    height: 4px !important;
  }

  .subnav-bar::-webkit-scrollbar-track {
    background: #E2E8F0 !important;
    border-radius: 4px !important;
  }

  .subnav-bar::-webkit-scrollbar-thumb {
    background: var(--gold-primary) !important;
    border-radius: 4px !important;
  }

  .subnav-container {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: max-content !important;
    padding: 0 14px !important;
  }

  .subnav-label {
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .subnav-pills {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: var(--gold-primary) #E2E8F0 !important;
  }

  .subnav-pills::-webkit-scrollbar {
    display: block !important;
    height: 4px !important;
  }

  .subnav-pills::-webkit-scrollbar-track {
    background: #E2E8F0 !important;
    border-radius: 4px !important;
  }

  .subnav-pills::-webkit-scrollbar-thumb {
    background: var(--gold-primary) !important;
    border-radius: 4px !important;
  }

  .subnav-pill {
    padding: 7px 14px !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
}

/* Mobile Devices & Small Tablets (Max-width: 768px) */
@media (max-width: 768px) {
  .header-container {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .header-logo-wrapper {
    margin-bottom: 10px;
  }

  .brand-logo {
    width: 130px;
    height: 90px;
    object-fit: contain;
  }

  .academy-name {
    font-size: 1.5rem;
    line-height: 1.25;
  }

  .motto-tagline {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }

  .quote-box {
    max-width: 100%;
    padding: 6px 12px;
    font-size: 0.82rem;
  }

  .layout-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .left-sidebar,
  .right-sidebar {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .content-toolbar-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }

  .search-box {
    width: 100%;
  }

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

  /* Side Quick Buttons on Mobile */
  .side-quick-buttons {
    display: none;
  }

  /* Footer Mobile Layout */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }

  .footer-brand {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}

/* ==========================================================================
   HERO BANNER CAROUSEL (IMG1, IMG2, IMG3, IMG4)
   ========================================================================== */
.hero-carousel-section {
  /* padding: 16px 0 8px 0; */
  background-color: var(--bg-main);
}

.hero-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--navy-dark);
  border: 1px solid var(--border-gold);
  margin-bottom: 20px;
}

.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 380px;
  max-height: 380px;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

/* Control Buttons */
.hero-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(11, 37, 69, 0.75);
  color: var(--gold-primary);
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
  z-index: 10;
  backdrop-filter: blur(4px);
}

.hero-carousel-btn:hover {
  background: var(--gold-primary);
  color: var(--navy-dark);
  box-shadow: var(--shadow-gold);
  transform: translateY(-50%) scale(1.08);
}

.hero-carousel-btn.prev-btn {
  left: 16px;
}

.hero-carousel-btn.next-btn {
  right: 16px;
}

/* Indicators */
.hero-carousel-indicators {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
  background: rgba(6, 23, 46, 0.6);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--gold-primary);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.hero-dot.active,
.hero-dot:hover {
  background: var(--gold-primary);
  width: 28px;
  border-radius: 10px;
  box-shadow: 0 0 8px var(--gold-primary);
}

@media (max-width: 768px) {
  .hero-carousel-section {
    padding: 10px 0 4px 0;
  }

  .carousel-slide {
    max-height: 240px;
  }

  .carousel-slide img {
    max-height: 240px;
    object-fit: cover;
  }

  .hero-carousel-btn {
    display: none;
  }

  .hero-carousel-indicators {
    bottom: 8px;
    padding: 4px 10px;
    gap: 6px;
  }

  .hero-dot {
    width: 8px;
    height: 8px;
  }

  .hero-dot.active {
    width: 20px;
  }
}

/* ==========================================================================
   DIGNITARIES & LEADERSHIP WIDGET (CHANCELLOR & VICE-CHANCELLOR)
   ========================================================================== */
.dignitaries-widget {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 16px 12px;
}

.dignitaries-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dignitary-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px;
}

.dignitary-photo-wrapper {
  width: 105px;
  height: 125px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  margin-bottom: 8px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
}

.dignitary-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dignitary-name {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--navy-primary);
  line-height: 1.25;
  margin-bottom: 2px;
}

.dignitary-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #1E293B;
  margin-bottom: 1px;
}

.dignitary-subtitle {
  font-size: 0.88rem;
  font-weight: 400;
  color: #475569;
  line-height: 1.3;
  margin-bottom: 6px;
}

.dignitary-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0284C7;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: var(--transition);
  margin-top: 4px;
}

.dignitary-link i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.dignitary-link:hover {
  color: var(--navy-primary);
  text-decoration: underline;
}

.dignitary-link:hover i {
  transform: translateX(3px);
}

/* ==========================================================================
   STUDENT TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section {
  padding: 50px 0 60px;
  background: linear-gradient(180deg, #F8FAFC 0%, #EDF2F7 100%);
  border-top: 1px solid var(--border-light);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 40px;
}

.testimonials-main-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin: 10px 0 8px;
}

.testimonials-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.testimonial-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-primary);
}

.testimonial-card.highlight-card {
  border: 2px solid var(--gold-primary);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF5 100%);
  box-shadow: var(--shadow-gold);
}

.testimonial-rating {
  color: #F59E0B;
  display: flex;
  gap: 4px;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--navy-primary);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 22px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #F1F5F9;
  padding-top: 16px;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-primary);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.author-name {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--navy-primary);
  font-size: 1.02rem;
  margin-bottom: 2px;
}

.author-achievement {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 35px 0 45px;
  }

  .testimonials-main-title {
    font-size: 1.6rem;
  }

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

/* ==========================================================================
   MULTI-LEVEL DROPDOWN MENU
   ========================================================================== */
.top-menu-list li {
  position: relative;
}

.top-menu-list li.dropdown>a {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* First-level dropdown menu */
.top-menu-list .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: #FFFFFF;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold-primary);
  border-radius: 0 0 6px 6px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  display: block;
  padding: 6px 0;
  list-style: none;
  text-align: left;
}

.top-menu-list .dropdown-menu li {
  width: 100%;
  position: relative;
}

.top-menu-list .dropdown-menu li a {
  padding: 10px 20px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: var(--navy-primary) !important;
  transition: background 0.2s, color 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.top-menu-list .dropdown-menu li a:hover {
  background-color: #F8FAFC;
  color: var(--gold-dark) !important;
}

/* Show first level on hover */
.top-menu-list li.dropdown:hover>.dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Sub-menus (Second & Third levels) */
.top-menu-list .dropdown-submenu>.dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  margin-top: -6px;
  border-top: none;
  border-left: 3px solid var(--gold-primary);
  border-radius: 0 6px 6px 6px;
  transform: translateX(10px);
}

/* Show sub-menus on hover */
.top-menu-list .dropdown-submenu:hover>.dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Mobile dropdown menu adjustments */
@media (max-width: 768px) {
  .top-menu-list li.dropdown>a {
    justify-content: flex-start;
  }

  .top-menu-list .dropdown-menu {
    position: static;
    transform: none !important;
    box-shadow: none;
    border-top: none;
    border-left: 2px solid var(--gold-primary);
    background: #F8FAFC;
    opacity: 1;
    visibility: visible;
    display: none;
    padding: 5px 0 5px 15px;
    min-width: 100%;
    margin-top: 5px;
  }

  .top-menu-list li.dropdown:hover>.dropdown-menu,
  .top-menu-list .dropdown-submenu:hover>.dropdown-menu,
  .top-menu-list li.dropdown.open>.dropdown-menu,
  .top-menu-list .dropdown-submenu.open>.dropdown-menu {
    display: block;
  }

  .top-menu-list .dropdown-submenu>.dropdown-menu {
    position: static;
    border-left: 2px solid var(--gold-light);
    transform: none;
    margin-top: 5px;
    background: #F1F5F9;
  }

  .top-menu-list .dropdown-menu li a {
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 12px !important;
  }
}

/* ==========================================================================
   QUICK LINKS SECTION
   ========================================================================== */
.quick-links-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-primary) 100%);
  padding: 40px 0;
  border-top: 4px solid var(--gold-primary);
  border-bottom: 4px solid var(--gold-primary);
  margin-bottom: 40px;
}

.quick-links-header {
  text-align: center;
  margin-bottom: 30px;
}

.quick-links-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.quick-links-title i {
  color: var(--gold-primary);
}

.quick-links-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.quick-link-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 120px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.quick-link-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.quick-link-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 12px var(--gold-glow);
  border-color: var(--gold-primary);
}

.quick-link-item:hover::before {
  opacity: 0.1;
}

.link-icon {
  font-size: 1.4rem;
  color: var(--gold-light);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.quick-link-item:hover .link-icon {
  color: var(--gold-primary);
  transform: scale(1.1);
}

.link-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .quick-links-container {
    gap: 15px;
  }

  .quick-link-item {
    min-width: calc(33.333% - 10px);
    padding: 15px 10px;
  }

  .link-icon {
    font-size: 1.5rem;
  }

  .link-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .quick-link-item {
    min-width: calc(50% - 10px);
  }
}

@media (max-width: 768px) {
  .card-actions {
    flex-direction: column;
  }

  .card-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   QUICK LINKS SECTION (SIMPLE)
   ========================================================================== */
.quick-links-section-simple {
  background: #f4f5f6;
  padding: 20px 0;
  margin-bottom: 40px;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.quick-links-title-simple {
  font-family: 'Courier New', Courier, monospace, var(--font-heading);
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.quick-links-title-simple i {
  margin-right: 5px;
  font-size: 1.2rem;
  color: #333;
}

.quick-links-container-simple {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-family: 'Courier New', Courier, monospace, var(--font-body);
  font-size: 1.05rem;
}

.simple-link {
  color: #222;
  text-decoration: none;
  transition: color 0.2s ease;
}

.simple-link:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}

.separator {
  color: #555;
}

/* Mobile Menu Toggle Default */
.mobile-menu-toggle {
  display: none;
}

/* Align 'View Details' buttons to the bottom of cards uniformly */
.mat-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mat-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.mat-bottom {
  margin-top: auto;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (Global)
   ========================================================================== */
@media screen and (max-width: 992px) {

  /* Grids */
  .course-grid,
  .features-grid,
  .faculty-grid,
  .footer-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media screen and (max-width: 768px) {

  /* Typography */
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 2rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  /* Fix Academy Name clipping on mobile */
  .academy-name {
    font-size: 1.3rem !important;
    white-space: normal !important;
    word-break: break-word !important;
    text-align: center;
    width: 100%;
    padding: 0 5px;
  }

  /* Top Nav / Menu */
  .strip-content,
  .main-header-container {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .header-actions {
    margin-top: 10px;
    justify-content: center;
  }

  /* Hamburger Menu Toggle */
  .mobile-menu-toggle {
    display: block;
    background: transparent;
    border: none;
    color: var(--navy-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px 0;
    width: 100%;
    text-align: right;
  }

  .top-menu-container {
    flex-direction: column;
    align-items: flex-end;
  }

  .top-menu-list {
    display: none;
    /* Hidden by default */
    flex-direction: column;
    width: 100%;
    background: #FFFFFF;
    border-top: 1px solid var(--border-light);
    padding: 0;
  }

  .top-menu-list.active {
    display: flex;
    /* Shown when toggled */
  }

  .top-menu-list>li {
    width: 100%;
    border-bottom: 1px solid var(--border-light);
  }

  .top-menu-list>li>a {
    display: block;
    padding: 12px 15px;
    width: 100%;
    text-align: left;
  }

  /* Prevent text overflow issues globally */
  * {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Hero Section */
  .hero-content-wrapper {
    flex-direction: column;
    padding: 20px 0 !important;
  }

  .hero-text,
  .hero-image-carousel {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .hero-carousel {
    height: 300px !important;
  }

  /* Grids */
  .course-grid,
  .features-grid,
  .faculty-grid,
  .footer-grid,
  .testimonial-grid {
    grid-template-columns: 1fr !important;
  }

  /* Stats */
  .stats-wrapper {
    flex-direction: column;
  }

  .stat-card {
    width: 100%;
    margin-bottom: 10px;
  }

  /* Footer */
  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  /* General padding reductions */
  section {
    padding: 40px 0 !important;
  }

  /* Split Layouts (e.g., Contact, Study Material) */
  .container[style*="display: flex; gap: 40px"] {
    flex-direction: column !important;
    gap: 20px !important;
  }

  .container>div[style*="flex: 1"] {
    width: 100% !important;
    min-width: 100% !important;
  }
}

/* Content manager upload illustration */
.upload-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.upload-intro h2{margin-bottom:7px!important}.upload-intro .muted{margin:0}.upload-illustration{position:relative;width:92px;height:76px;flex:0 0 92px;border-radius:14px;background:linear-gradient(145deg,#07315c,#0a619f);overflow:hidden;box-shadow:0 10px 20px #0b4d8738}.atom-core{position:absolute;left:32px;top:24px;z-index:2;display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#f5c848;color:#082b52;font:800 16px Arial,sans-serif;box-shadow:0 0 0 5px #f5c84822}.orbit{position:absolute;left:14px;top:27px;width:63px;height:20px;border:1px solid #cce9ff;border-radius:50%;opacity:.85}.orbit-two{transform:rotate(60deg)}.orbit-three{transform:rotate(-60deg)}.upload-spark{position:absolute;right:13px;top:10px;color:#fff;font:800 23px Arial;animation:uploadPulse 1.8s infinite}@keyframes uploadPulse{50%{transform:scale(1.25);opacity:.6}}@media(max-width:500px){.upload-illustration{width:70px;height:64px;flex-basis:70px}.atom-core{left:21px;top:18px}.orbit{left:4px;top:21px}.upload-spark{right:7px;top:5px}}

/* New dashboard uploads are shown here automatically, newest first. */
.latest-resources-panel{margin:18px 0;background:linear-gradient(135deg,#082b52,#0c4c87);border-radius:14px;padding:20px;box-shadow:0 10px 25px rgba(8,43,82,.18)}
.latest-resources-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;color:#fff;margin-bottom:15px}.latest-resources-heading span{display:block;color:#f5cf58;font-size:.72rem;font-weight:800;letter-spacing:.12em}.latest-resources-heading h2{margin:3px 0 0;font-size:1.35rem}.latest-resources-heading>a{color:#fff;text-decoration:none;font-weight:700;font-size:.88rem;white-space:nowrap}.latest-resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.latest-resource-card{display:flex;min-height:126px;overflow:hidden;background:#fff;border-radius:10px;text-decoration:none;color:#0b2949;transition:transform .2s,box-shadow .2s}.latest-resource-card:hover{transform:translateY(-3px);box-shadow:0 9px 18px rgba(0,0,0,.18)}.latest-image{position:relative;flex:0 0 102px;overflow:hidden;background:#d8e7f6}.latest-image img{width:100%;height:100%;display:block;object-fit:cover}.latest-image-overlay{position:absolute;inset:0;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,transparent,rgba(1,20,43,.58));font-size:1.35rem}.latest-card-body{display:flex;flex:1;min-width:0;flex-direction:column;gap:6px;padding:13px}.latest-resource-card strong{font-size:.9rem;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.latest-resource-card small{color:#64748b;font-size:.76rem;font-weight:600}.latest-type{color:#0c4c87;font-size:.7rem;font-weight:800;text-transform:uppercase}.latest-empty{color:#e3effd;margin:3px 0}
@media(max-width:560px){.latest-resource-grid{grid-template-columns:1fr}.latest-resources-heading h2{font-size:1.12rem}.latest-resources-panel{padding:15px}}

@media screen and (max-width: 480px) {
  .hero-carousel {
    height: 200px !important;
  }

  .top-announcement-strip .header-search-bar input {
    width: 100% !important;
  }

  /* Ensure small buttons don't overflow */
  .strip-actions {
    flex-direction: column;
    width: 100%;
  }
}

@media screen and (max-width: 768px) {

  /* Remove dropdown content on mobile responsive for the main category navbar */
  .nav-tabs-list .dropdown-content {
    display: none !important;
  }
}
