﻿/* ==========================================================================
   UPHSD Calamba Campus - Learning Resource Centers
   Styles: Modern SaaS Aesthetic (Vanilla CSS)
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables & Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --color-primary-maroon: #800000;
  --color-primary-dark: #5e0000;
  --color-primary-light: #9a1a1a;
  --color-secondary-gold: #FFD700;
  --color-gold-hover: #e6c200;
  --color-gold-deep: #b38600;
  --color-gold-subtle: rgba(255, 215, 0, 0.12);

  /* Neutrals & Surfaces */
  --bg-page: #f4f6f8;
  --surface-card: #ffffff;
  --surface-hover: #fafbfc;
  --border-subtle: #e2e8f0;
  --border-card: #e5e9f0;

  /* Typography Colors */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* UI Tokens */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-container: 12px;
  --radius-pill: 9999px;
  --shadow-subtle: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 14px 28px rgba(128, 0, 0, 0.09), 0 4px 10px rgba(0, 0, 0, 0.04);
  --shadow-header: 0 4px 20px rgba(80, 0, 0, 0.25);
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Fonts */
  --font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Global Reset & Base Setup
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --------------------------------------------------------------------------
   Sticky Maroon Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-primary-maroon);
  color: var(--text-white);
  box-shadow: var(--shadow-header);
  border-bottom: 3px solid var(--color-secondary-gold);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand & Logo */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.logo-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary-dark);
  border: 2px solid var(--color-secondary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.logo-circle:hover {
  transform: scale(1.05);
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.logo-circle img,
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--color-secondary-gold);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-secondary-gold);
  transition: width var(--transition-smooth);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Return Bridge to Main Campus LRC */
.nav-campus-return {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-radius: var(--radius-pill);
  padding: 0.38rem 0.85rem !important;
  color: var(--color-secondary-gold) !important;
  font-weight: 700 !important;
  font-size: 0.86rem !important;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none !important;
}

.nav-campus-return::after {
  display: none !important;
}

.nav-campus-return:hover {
  background: var(--color-secondary-gold) !important;
  color: var(--color-primary-dark) !important;
  border-color: var(--color-secondary-gold) !important;
  transform: translateX(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.28);
}

.nav-campus-return .return-arrow {
  font-size: 0.98rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.nav-campus-return:hover .return-arrow {
  transform: translateX(-3px);
}

.nav-cta-btn {
  background: var(--color-secondary-gold);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-fast);
}

.nav-cta-btn:hover {
  background: #ffffff;
  color: var(--color-primary-maroon);
  transform: translateY(-1px);
}

.nav-signin-btn {
  background: transparent;
  color: var(--color-secondary-gold);
  border: 1.5px solid var(--color-secondary-gold);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.nav-signin-btn:hover {
  background: var(--color-secondary-gold);
  color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Header Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: inherit;
}

.dropdown-arrow {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown:focus-within .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--color-secondary-gold);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(128, 0, 0, 0.15);
  padding: 0.5rem 0;
  min-width: 220px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1100;
}

/* Hover bridge gap fix to prevent flicker / loss of hover */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(5px);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.65rem 1.25rem;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.dropdown-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary-maroon);
  opacity: 0.85;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: rgba(128, 0, 0, 0.05);
  color: var(--color-primary-maroon);
  border-left-color: var(--color-secondary-gold);
}

.dropdown-item:hover .dropdown-item-icon,
.dropdown-item:focus .dropdown-item-icon {
  opacity: 1;
  transform: scale(1.1);
}

.dropdown-item.active {
  color: var(--color-primary-maroon);
  background-color: rgba(128, 0, 0, 0.07);
  border-left-color: var(--color-secondary-gold);
  font-weight: 700;
}

.dropdown-item.active .dropdown-item-icon {
  opacity: 1;
  color: var(--color-primary-maroon);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.hamburger-bar {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  overflow: hidden;
  background-color: var(--color-primary-dark);
  border-bottom: 1px solid rgba(255, 215, 0, 0.25);
  padding: 4.5rem 1.5rem 4rem;
  text-align: center;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-slideshow::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, rgba(128, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
}

.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroFade 50s infinite;
}

.hero-slideshow .slide:nth-child(1) {
  background-image: url('https://lh3.googleusercontent.com/d/178AbqOdPfQdTP3PX9cX_vIPmZnmqZDpN');
  animation-delay: 0s;
}

.hero-slideshow .slide:nth-child(2) {
  background-image: url('https://lh3.googleusercontent.com/d/12c2uGPR71KrJq25k-mcpK5Vw-PhUemrW');
  animation-delay: 5s;
}

.hero-slideshow .slide:nth-child(3) {
  background-image: url('https://lh3.googleusercontent.com/d/1ktDqIfAdFJrRlyriEB1XibQMensyjl19');
  animation-delay: 10s;
}

.hero-slideshow .slide:nth-child(4) {
  background-image: url('https://lh3.googleusercontent.com/d/1mKXeHRK4IPbSj4jQ_cUjYXVcjdRFfPKr');
  animation-delay: 15s;
}

.hero-slideshow .slide:nth-child(5) {
  background-image: url('https://lh3.googleusercontent.com/d/1Y5c4kygQxUoDOqCYF-Ifzkg3-J_U67nR');
  animation-delay: 20s;
}

.hero-slideshow .slide:nth-child(6) {
  background-image: url('https://lh3.googleusercontent.com/d/1svOz9LwJ70HkRshWs33MG-HWwM5rXs33');
  animation-delay: 25s;
}

.hero-slideshow .slide:nth-child(7) {
  background-image: url('https://lh3.googleusercontent.com/d/1xD2nDGoIGE6Wtnhir5tmu4x8EQUmYZt7');
  animation-delay: 30s;
}

.hero-slideshow .slide:nth-child(8) {
  background-image: url('https://lh3.googleusercontent.com/d/1cC7BfuzINlrac8gIzxJ4ZXa1a3pWNfe5');
  animation-delay: 35s;
}

.hero-slideshow .slide:nth-child(9) {
  background-image: url('https://lh3.googleusercontent.com/d/1dbLgVq-dbgbeDuPuNHTencF7PsqBPcQb');
  animation-delay: 40s;
}

.hero-slideshow .slide:nth-child(10) {
  background-image: url('https://lh3.googleusercontent.com/d/1C-NRnvH7qwKe9O6DUvqAa-Gj7bPIxntp');
  animation-delay: 45s;
}

@keyframes heroFade {
  0% {
    opacity: 0;
  }
  2% {
    opacity: 1;
  }
  10% {
    opacity: 1;
  }
  12% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.hero-container {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.hero-title-top {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  color: var(--color-secondary-gold);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero-title-main {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(to right, var(--color-secondary-gold) 0%, #ffffff 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.hero-quote {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: #f4f6f8;
  font-style: italic;
  font-weight: 500;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: #F4F6F8;
  max-width: 720px;
  margin: 0 auto;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.hero-stats-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  gap: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary-maroon);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-divider {
  width: 1px;
  height: 28px;
  background-color: var(--border-subtle);
}

/* --------------------------------------------------------------------------
   Main Content Split Layout (25% Sidebar / 75% Content)
   -------------------------------------------------------------------------- */
.main-wrapper {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
}

.split-layout-container {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

/* --------------------------------------------------------------------------
   Left Sidebar: Global Digital Resources (25% approx.)
   -------------------------------------------------------------------------- */
.sidebar-resources {
  flex: 0 0 280px;
  position: sticky;
  top: 85px;
  z-index: 10;
}

.sidebar-card {
  background: var(--surface-card);
  border-radius: var(--radius-container);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-subtle);
  padding: 1.5rem;
  overflow: hidden;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--color-gold-subtle);
  color: var(--color-primary-maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-primary-maroon);
  line-height: 1.2;
}

.sidebar-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Resource Menu & Interactive Hover Items */
.resource-menu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.resource-item {
  background: var(--bg-page);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-smooth);
  position: relative;
}

.resource-item-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.resource-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--color-primary-maroon);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.resource-title-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.resource-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  transition: color var(--transition-fast);
}

.resource-fullname {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.resource-arrow {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: bold;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

/* Tooltip / Expandable Description Area */
.resource-tooltip {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease,
              transform 0.3s ease,
              margin-top 0.3s ease;
}

.tooltip-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border-subtle);
}

.tooltip-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary-maroon);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tooltip-link:hover {
  color: var(--color-gold-deep);
}

/* Hover & Focus State for Left Sidebar Items */
.resource-item:hover,
.resource-item:focus-visible {
  background-color: #ffffff;
  border-color: var(--color-secondary-gold);
  box-shadow: 0 4px 12px rgba(128, 0, 0, 0.08);
  transform: translateY(-2px);
}

.resource-item:hover .resource-icon-badge,
.resource-item:focus-visible .resource-icon-badge {
  background-color: var(--color-primary-maroon);
  color: var(--color-secondary-gold);
  border-color: var(--color-primary-maroon);
}

.resource-item:hover .resource-name,
.resource-item:focus-visible .resource-name {
  color: var(--color-primary-maroon);
}

.resource-item:hover .resource-arrow,
.resource-item:focus-visible .resource-arrow {
  color: var(--color-primary-maroon);
  transform: translateX(3px);
}

.resource-item:hover .resource-tooltip,
.resource-item:focus-visible .resource-tooltip {
  max-height: 140px;
  opacity: 1;
  transform: translateY(0);
}

/* Help Box inside Sidebar & Ask PIA Branding */
.sidebar-help-box {
  margin-top: 1.5rem;
  padding: 1.15rem;
  background: linear-gradient(135deg, rgba(128, 0, 0, 0.05) 0%, rgba(255, 215, 0, 0.12) 100%);
  border-radius: var(--radius-container);
  border: 1.5px solid rgba(128, 0, 0, 0.12);
  box-shadow: 0 4px 15px rgba(128, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.sidebar-help-box:hover {
  border-color: var(--color-secondary-gold);
  box-shadow: 0 8px 20px rgba(128, 0, 0, 0.08);
}

.pia-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.pia-avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.pia-avatar {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary-maroon) 0%, var(--color-primary-dark) 100%);
  color: var(--color-secondary-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(128, 0, 0, 0.25);
  border: 2px solid #ffffff;
}

.pia-pulse-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background-color: #16a34a;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
  animation: pulseGreenDot 2s infinite ease-in-out;
}

.pia-title-group {
  display: flex;
  flex-direction: column;
}

.pia-super-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary-maroon);
}

.pia-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.15;
}

.pia-subtitle-wrap {
  margin-bottom: 0.45rem;
}

.pia-full-name {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--color-primary-light);
  display: inline-block;
  background: rgba(128, 0, 0, 0.06);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
}

.pia-desc {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 0.95rem;
}

.pia-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pia-primary-btn,
.PIA-btn,
a.ASK.PIA-btn,
a.PIA-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.55rem 0.85rem;
  background: linear-gradient(135deg, var(--color-primary-maroon) 0%, var(--color-primary-dark) 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(128, 0, 0, 0.2);
  transition: all var(--transition-fast);
}

.pia-primary-btn:hover,
.PIA-btn:hover,
a.ASK.PIA-btn:hover,
a.PIA-btn:hover {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #3d0000 100%);
  color: var(--color-secondary-gold);
  box-shadow: 0 4px 12px rgba(128, 0, 0, 0.3);
  transform: translateY(-1px);
  text-decoration: none;
}

.pia-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.45rem 0.85rem;
  background-color: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.pia-secondary-btn:hover {
  border-color: var(--color-primary-maroon);
  color: var(--color-primary-maroon);
  background-color: rgba(128, 0, 0, 0.03);
}

/* Modal Window for Ask PIA */
.pia-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.pia-modal-overlay.visible {
  opacity: 1;
  pointer-events: none;
}

.pia-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: transparent;
  pointer-events: none;
}

.pia-modal-overlay.visible .pia-modal-backdrop {
  pointer-events: auto;
}

.pia-modal-card {
  position: fixed;
  bottom: 6.5rem;
  right: 2.5rem;
  width: 380px;
  max-width: calc(100vw - 3rem);
  max-height: 600px;
  background-color: #ffffff;
  border-radius: var(--radius-container);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  transform-origin: bottom right;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
  pointer-events: auto;
}

.pia-modal-overlay.visible .pia-modal-card {
  transform: translateY(0);
}

.pia-modal-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--color-primary-maroon) 0%, var(--color-primary-dark) 100%);
  color: #ffffff;
  border-bottom: 2px solid var(--color-secondary-gold);
}

.pia-modal-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid var(--color-secondary-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary-gold);
  flex-shrink: 0;
}

.pia-header-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background-color: #22c55e;
  border-radius: 50%;
  border: 2px solid var(--color-primary-maroon);
}

.pia-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.pia-modal-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.15rem;
}

.pia-chat-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  max-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background-color: #f8fafc;
  flex: 1 1 auto;
  transition: max-height 0.3s ease;
}

.pia-chat-body.expanded {
  max-height: 400px;
}

.pia-msg-bubble {
  display: flex;
  gap: 0.65rem;
  max-width: 92%;
  animation: fadeInMsg 0.25s ease-out;
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.pia-bot-msg {
  align-self: flex-start;
}

.pia-user-msg {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.pia-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-primary-maroon);
  color: var(--color-secondary-gold);
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pia-user-msg .pia-msg-avatar {
  background-color: #475569;
  color: #ffffff;
}

.pia-msg-text {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  border-top-left-radius: 2px;
  padding: 0.75rem 0.9rem;
  font-size: 0.82rem;
  color: #1e293b;
  line-height: 1.45;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.pia-user-msg .pia-msg-text {
  background-color: var(--color-primary-maroon);
  color: #ffffff;
  border-color: var(--color-primary-maroon);
  border-top-left-radius: 12px;
  border-top-right-radius: 2px;
}

.pia-quick-prompts {
  padding: 0.65rem 1.25rem 0.75rem;
  background-color: #ffffff;
  border-top: 1px solid var(--border-subtle);
  transition: padding 0.25s ease;
}

.pia-quick-prompts.collapsed {
  padding: 0.45rem 1.25rem;
}

.prompts-header-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 0.1rem 0;
  margin-bottom: 0.45rem;
}

.pia-quick-prompts.collapsed .prompts-header-toggle {
  margin-bottom: 0;
}

.prompts-header-toggle:hover {
  opacity: 0.85;
}

.prompts-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0;
  letter-spacing: 0.5px;
}

.prompts-label svg {
  color: var(--color-primary-maroon);
}

.prompts-toggle-btn {
  background-color: rgba(128, 0, 0, 0.06);
  border: 1px solid rgba(128, 0, 0, 0.12);
  padding: 0.2rem 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-primary-maroon);
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.prompts-toggle-btn:hover {
  background-color: var(--color-primary-maroon);
  color: #ffffff;
}

.toggle-chevron {
  transition: transform 0.25s ease;
}

.pia-quick-prompts.collapsed .toggle-chevron {
  transform: rotate(180deg);
}

.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-height: 180px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin-top 0.25s ease;
}

.pia-quick-prompts.collapsed .prompt-chips {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

.prompt-chip {
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.prompt-chip:hover {
  background-color: rgba(128, 0, 0, 0.08);
  border-color: var(--color-primary-maroon);
  color: var(--color-primary-maroon);
}

.pia-chat-form {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background-color: #ffffff;
  border-top: 1px solid var(--border-subtle);
  gap: 0.5rem;
}

.pia-chat-input {
  flex: 1;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  outline: none;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.pia-chat-input:focus {
  border-color: var(--color-primary-maroon);
}

.pia-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-primary-maroon);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.pia-send-btn:hover {
  background-color: var(--color-primary-dark);
}

.pia-external-link {
  padding: 0.5rem 1.25rem;
  background-color: #fafbfc;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.pia-external-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.73rem;
  color: var(--color-primary-maroon);
  font-weight: 600;
}

.pia-external-link a:hover {
  text-decoration: underline;
  color: var(--color-gold-deep);
}

/* --------------------------------------------------------------------------
   Center/Right Area: Library Branch Selection (75% approx.)
   -------------------------------------------------------------------------- */
.main-branches {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.branches-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.branches-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.01em;
}

.branches-subheading {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.branches-status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #15803d;
  background-color: #dcfce7;
  border: 1px solid #bbf7d0;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
}

/* Real-Time Campus Clock & Date Pill */
.campus-clock-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-size: 0.82rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.campus-clock-pill:hover {
  border-color: rgba(128, 0, 0, 0.25);
  box-shadow: 0 4px 12px rgba(128, 0, 0, 0.08);
}

.clock-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-maroon);
}

.clock-live-dot {
  width: 8px;
  height: 8px;
  background-color: #16a34a;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
  animation: pulseGreenDot 2s infinite ease-in-out;
}

@keyframes pulseGreenDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.clock-display-text {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.clock-live-time {
  font-weight: 700;
  color: var(--color-primary-maroon);
}

.clock-sep {
  color: var(--text-light);
}

.clock-live-date {
  color: var(--text-muted);
  font-weight: 500;
}

/* Individual Branch Card Meta & Status Indicators */
.card-meta-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.32rem;
  min-width: 0;
}

/* ==========================================================================
   Branch Card Status Pill (Standardized Option 3: Luminescent Neon Beacon)
   Features Symmetrical Optical Centering & High-Contrast Hover Luminance
   ========================================================================== */

.branch-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  height: 24px;
  box-sizing: border-box;
  padding: 0 0.65rem 0 0.52rem; /* Optically counterbalances leading dot for true text centering */
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.branch-status-pill .status-text {
  line-height: 1;
  display: inline-block;
  transform: translateY(0.5px); /* Micro-pixel optical vertical alignment */
}

.branch-status-pill .status-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

/* Open State (Luminescent Neon Green) */
.branch-status-pill.status-open {
  background: linear-gradient(135deg, rgba(6, 95, 70, 0.06) 0%, rgba(16, 185, 129, 0.16) 100%);
  border: 1.5px solid #10b981;
  color: #065f46;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.28), inset 0 0 6px rgba(16, 185, 129, 0.1);
}

.branch-status-pill.status-open .status-dot {
  background-color: #00ff88;
  box-shadow: 0 0 8px #00ff88, 0 0 14px rgba(0, 255, 136, 0.7);
  animation: neonBeaconPulse 1.8s infinite alternate ease-in-out;
}

@keyframes neonBeaconPulse {
  0% { transform: scale(0.9); opacity: 0.75; box-shadow: 0 0 6px #00ff88; }
  100% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px #00ff88, 0 0 18px rgba(0, 255, 136, 0.8); }
}

/* Closed State (Luminescent Coral Red) */
.branch-status-pill.status-closed {
  background: linear-gradient(135deg, rgba(153, 27, 27, 0.06) 0%, rgba(239, 68, 68, 0.16) 100%);
  border: 1.5px solid #ef4444;
  color: #991b1b;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.28);
}

.branch-status-pill.status-closed .status-dot {
  background-color: #ff3333;
  box-shadow: 0 0 8px #ff3333, 0 0 14px rgba(255, 51, 51, 0.6);
  animation: none;
}

/* Card Hover State (Flipping to Maroon Surface) */
.branch-card:hover .branch-status-pill.status-open,
.branch-card:focus-within .branch-status-pill.status-open {
  background: rgba(0, 255, 136, 0.16) !important;
  color: #00ff88 !important;
  border-color: #00ff88 !important;
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.55) !important;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.6) !important;
}

.branch-card:hover .branch-status-pill.status-closed,
.branch-card:focus-within .branch-status-pill.status-closed {
  background: rgba(239, 68, 68, 0.22) !important;
  color: #ff6b6b !important;
  border-color: #ff6b6b !important;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.55) !important;
}

/* Real-Time Branch Schedule & Time Tracker Box */
.branch-time-tracker {
  background-color: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.tracker-schedule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.schedule-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #334155;
}

.schedule-badge svg {
  color: var(--color-primary-maroon);
  flex-shrink: 0;
}

.schedule-days {
  font-weight: 600;
}

.schedule-hours {
  font-weight: 700;
  color: #0f172a;
}

.tracker-live-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.tracker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-light);
  flex-shrink: 0;
}

.branch-time-tracker.is-open {
  background-color: rgba(220, 252, 231, 0.35);
  border-color: #bbf7d0;
}

.branch-time-tracker.is-open .tracker-dot {
  background-color: #16a34a;
}

.branch-time-tracker.is-open .tracker-status-detail {
  color: #15803d;
  font-weight: 600;
}

.branch-time-tracker.is-closed {
  background-color: rgba(254, 226, 226, 0.25);
  border-color: #fecaca;
}

.branch-time-tracker.is-closed .tracker-dot {
  background-color: #dc2626;
}

.branch-time-tracker.is-closed .tracker-status-detail {
  color: #b91c1c;
  font-weight: 500;
}

/* 3-Column Responsive Grid */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Branch Cards */
.branch-card {
  background: var(--surface-card);
  border-radius: var(--radius-container);
  border: 2px solid transparent;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  outline: none;
  transition: all 0.4s ease;
}

/* Background Images on Hover */
.branch-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transform: scale(1.1);
  background-size: cover;
  background-position: center;
  transition: all 0.5s ease;
  pointer-events: none;
}

#card-jhs::before {
  background-image: linear-gradient(to bottom, rgba(128, 0, 0, 0.45), rgba(0, 0, 0, 0.75)),
                    url('https://lh3.googleusercontent.com/d/1XLgzkJGf1C-oornd4nLvX09qYDN_-ZnP');
}

#card-shs::before {
  background-image: linear-gradient(to bottom, rgba(128, 0, 0, 0.45), rgba(0, 0, 0, 0.75)),
                    url('https://lh3.googleusercontent.com/d/1xUK5IVmYPXxlJOoEmMm6GcHeQKRHk2EE');
}

#card-college::before {
  background-image: linear-gradient(to bottom, rgba(128, 0, 0, 0.45), rgba(0, 0, 0, 0.75)),
                    url('https://lh3.googleusercontent.com/d/14JztqGFiSP8uMdGAP9c3LW9DmTKaLknW');
}

.branch-card:hover::before,
.branch-card:focus-within::before {
  opacity: 1;
  transform: scale(1);
}

.card-top-accent {
  height: 4px;
  background-color: var(--border-subtle);
  position: relative;
  z-index: 2;
  transition: background-color 0.4s ease;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 2;
  transition: color 0.4s ease;
}

.card-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
  gap: 0.75rem;
  min-height: 48px;
}

.department-pill {
  font-size: 0.67rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background-color: rgba(128, 0, 0, 0.08);
  color: var(--color-primary-maroon);
  padding: 0.2rem 0.52rem;
  border-radius: var(--radius-pill);
  transition: all 0.4s ease;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

/* Specific compact size for longer department titles: Basic Education & Higher Education */
#card-jhs .department-pill,
#card-basic-ed .department-pill,
#card-college .department-pill {
  font-size: 0.63rem;
  padding: 0.17rem 0.46rem;
  letter-spacing: 0.03em;
}

.level-indicator {
  font-size: 0.74rem;
  color: var(--text-light);
  font-weight: 600;
  transition: color 0.4s ease;
  white-space: nowrap;
  line-height: 1.2;
}

.branch-icon-container {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-container);
  background: linear-gradient(135deg, rgba(128, 0, 0, 0.05) 0%, rgba(255, 215, 0, 0.15) 100%);
  color: var(--color-primary-maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}

.branch-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  min-height: 2.8rem;
  position: relative;
  z-index: 2;
  transition: color 0.4s ease;
}

.branch-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
  position: relative;
  z-index: 2;
  transition: color 0.4s ease;
}

.branch-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.feature-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  transition: all 0.4s ease;
}

.card-footer {
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.branch-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--bg-page);
  color: var(--color-primary-maroon);
  border: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.4s ease;
}

.btn-arrow {
  transition: transform var(--transition-fast);
}

/* Distinct Card Hover Effect & Reveal */
.branch-card:hover,
.branch-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--color-secondary-gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.branch-card:hover .card-top-accent,
.branch-card:focus-within .card-top-accent {
  background-color: var(--color-secondary-gold);
}

.branch-card:hover .branch-icon-container,
.branch-card:focus-within .branch-icon-container {
  background: rgba(255, 215, 0, 0.2);
  color: #FFD700;
  border: 1px solid rgba(255, 215, 0, 0.5);
  transform: scale(1.08);
}

.branch-card:hover .branch-icon-container svg,
.branch-card:focus-within .branch-icon-container svg {
  color: #FFD700;
  stroke: #FFD700;
}

.branch-card:hover .branch-title,
.branch-card:focus-within .branch-title {
  color: #FFFFFF;
}

.branch-card:hover .branch-desc,
.branch-card:focus-within .branch-desc {
  color: #F4F6F8;
}

.branch-card:hover .level-indicator,
.branch-card:focus-within .level-indicator {
  color: #E2E8F0;
}

.branch-card:hover .department-pill,
.branch-card:focus-within .department-pill {
  background-color: rgba(255, 215, 0, 0.2);
  color: #FFD700;
  border: 1px solid rgba(255, 215, 0, 0.5);
}

.branch-card:hover .branch-status-pill.status-open,
.branch-card:focus-within .branch-status-pill.status-open {
  background-color: rgba(0, 255, 136, 0.16);
  color: #00ff88;
  border-color: #00ff88;
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.55);
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

.branch-card:hover .branch-status-pill.status-closed,
.branch-card:focus-within .branch-status-pill.status-closed {
  background-color: rgba(239, 68, 68, 0.22);
  color: #ff6b6b;
  border-color: #ff6b6b;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.55);
}

.branch-card:hover .feature-tag,
.branch-card:focus-within .feature-tag {
  background-color: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Schedule Tracker Hover Contrast */
.branch-card:hover .branch-time-tracker,
.branch-card:focus-within .branch-time-tracker {
  background-color: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 215, 0, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.branch-card:hover .schedule-badge,
.branch-card:focus-within .schedule-badge {
  color: #F4F6F8;
}

.branch-card:hover .schedule-badge svg,
.branch-card:focus-within .schedule-badge svg {
  color: #FFD700;
  stroke: #FFD700;
}

.branch-card:hover .schedule-days,
.branch-card:focus-within .schedule-days {
  color: #E2E8F0;
}

.branch-card:hover .schedule-hours,
.branch-card:focus-within .schedule-hours {
  color: #FFFFFF;
}

.branch-card:hover .tracker-live-info,
.branch-card:focus-within .tracker-live-info {
  color: #E2E8F0;
}

.branch-card:hover .branch-time-tracker.is-open,
.branch-card:focus-within .branch-time-tracker.is-open {
  background-color: rgba(22, 163, 74, 0.25);
  border-color: rgba(134, 239, 172, 0.4);
}

.branch-card:hover .branch-time-tracker.is-open .tracker-status-detail,
.branch-card:focus-within .branch-time-tracker.is-open .tracker-status-detail {
  color: #86efac;
}

.branch-card:hover .branch-time-tracker.is-closed,
.branch-card:focus-within .branch-time-tracker.is-closed {
  background-color: rgba(220, 38, 38, 0.25);
  border-color: rgba(252, 165, 165, 0.4);
}

.branch-card:hover .branch-time-tracker.is-closed .tracker-status-detail,
.branch-card:focus-within .branch-time-tracker.is-closed .tracker-status-detail {
  color: #fca5a5;
}

/* Button Hover State */
.branch-card:hover .branch-action-btn,
.branch-card:focus-within .branch-action-btn {
  background-color: var(--color-secondary-gold);
  color: #4A0404;
  border-color: var(--color-secondary-gold);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.35);
}

.branch-card:hover .branch-action-btn .btn-arrow,
.branch-card:focus-within .branch-action-btn .btn-arrow {
  transform: translateX(4px);
  color: #4A0404;
  stroke: #4A0404;
}

.branch-card .branch-action-btn:hover {
  background-color: #FFFFFF;
  color: var(--color-primary-maroon);
  border-color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.3);
}

.branch-card .branch-action-btn:hover .btn-arrow {
  color: var(--color-primary-maroon);
  stroke: var(--color-primary-maroon);
}

/* --------------------------------------------------------------------------
   General Guidelines Section
   -------------------------------------------------------------------------- */
.guidelines-card {
  background: #ffffff;
  border-radius: var(--radius-container);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-subtle);
  padding: 1.75rem;
  margin-top: 0.5rem;
}

.guidelines-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.guidelines-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: var(--color-gold-subtle);
  color: var(--color-primary-maroon);
  display: flex;
  align-items: center;
  justify-content: center;
}

.guidelines-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
}

.guidelines-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.guidelines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.rule-box {
  background: var(--bg-page);
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.rule-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-primary-maroon);
  background: rgba(128, 0, 0, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.rule-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.35rem;
}

.rule-box p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Frosted-Glass Maroon Footer with High-Contrast Typography
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: rgba(128, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 215, 0, 0.3);
  margin-top: auto;
  position: relative;
  color: #f4f6f8;
}

.footer-top-accent {
  display: none;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1.2fr 1.1fr;
  gap: 2.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--color-secondary-gold);
  background-color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand-title {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.footer-brand-sub {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-secondary-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-vision {
  font-size: 0.825rem;
  color: #f4f6f8;
  line-height: 1.55;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-heading svg {
  color: var(--color-secondary-gold);
  stroke: var(--color-secondary-gold);
}

.footer-address {
  font-style: normal;
  font-size: 0.85rem;
  color: #f4f6f8;
  line-height: 1.6;
}

.footer-address strong {
  color: #ffffff;
}

/* Schedule List */
.schedule-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.schedule-item {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

.schedule-dept {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.825rem;
}

.schedule-time {
  color: #f4f6f8;
}

.schedule-time strong {
  color: var(--color-secondary-gold);
}

.schedule-item.closed-note .schedule-time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
}

/* Contact Block */
.contact-block {
  margin-bottom: 1rem;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.contact-email {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  word-break: break-all;
  display: inline-block;
  border-bottom: 1.5px dotted rgba(255, 255, 255, 0.65);
  padding-bottom: 2px;
  transition: all var(--transition-fast);
}

.contact-email:hover {
  color: var(--color-secondary-gold);
  border-color: var(--color-secondary-gold);
}

.quick-support-notice {
  font-size: 0.75rem;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.25);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-secondary-gold);
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  background-color: rgba(0, 0, 0, 0.25);
  padding: 1.25rem 1.5rem;
}

.footer-bottom-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #f4f6f8;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-bottom-links a {
  color: #ffffff;
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--color-secondary-gold);
}

.footer-bottom-links .sep {
  color: rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------------------------
   Toast Notification (Interactive Click Feedback)
   Redesigned & repositioned at Top-Right (below header) to eliminate FAB overlap
   -------------------------------------------------------------------------- */
.toast-notification {
  position: fixed;
  top: 88px;
  right: 24px;
  bottom: auto;
  z-index: 10000;
  background: rgba(17, 24, 39, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 0.9rem 1.25rem;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4.5px solid var(--color-secondary-gold);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 380px;
  opacity: 0;
  transform: translateX(30px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.toast-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--color-secondary-gold);
  color: var(--color-primary-dark);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.35);
}

.toast-content strong,
.toast-content .toast-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

.toast-content p,
.toast-content .toast-message {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-top: 3px;
  line-height: 1.35;
}

.toast-notification.toast-error {
  border-left-color: #ef4444;
}

.toast-notification.toast-error .toast-icon {
  background-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

@media screen and (max-width: 600px) {
  .toast-notification {
    top: 76px;
    right: 16px;
    left: 16px;
    max-width: none;
    transform: translateY(-20px) scale(0.96);
  }
  .toast-notification.show {
    transform: translateY(0) scale(1);
  }
}

/* --------------------------------------------------------------------------
   Developer Statistics Dashboard (#developer-stats)
   Default: hidden (display: none). Unhidden with display: flex on dev auth.
   -------------------------------------------------------------------------- */
#developer-stats {
  display: none;
}

.dev-dashboard {
  background: #1e2229;
  color: var(--color-secondary-gold);
  border-bottom: 2px solid var(--color-secondary-gold);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 1100;
  animation: slideDownDev 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownDev {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dev-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.dev-brand-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dev-badge-title {
  background: var(--color-secondary-gold);
  color: #1e2229;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.dev-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #e2e8f0;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.dev-metrics-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
}

.metric-label {
  color: #94a3b8;
  font-weight: 500;
}

.metric-val {
  color: #ffffff;
  font-weight: 800;
  font-family: monospace;
  font-size: 0.95rem;
}

.metric-val.highlight {
  color: var(--color-secondary-gold);
}

.metric-divider {
  width: 1px;
  height: 18px;
  background-color: rgba(255, 255, 255, 0.2);
}

.dev-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.dev-close-btn:hover {
  background: rgba(255, 215, 0, 0.15);
  color: var(--color-secondary-gold);
  border-color: var(--color-secondary-gold);
}

/* --------------------------------------------------------------------------
   Institutional Authentication Modal (div.login-modal-overlay)
   Centered popup modal with white card, 12px corners, subtle drop shadow
   -------------------------------------------------------------------------- */
.login-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.login-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.login-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.login-modal-card {
  position: relative;
  z-index: 2;
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-container);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25), 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 2.25rem 2rem;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-modal-overlay.visible .login-modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-page);
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-subtle);
}

.modal-close-btn:hover {
  background: var(--color-primary-maroon);
  color: #ffffff;
  border-color: var(--color-primary-maroon);
}

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-logo-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary-dark);
  border: 2.5px solid var(--color-secondary-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 12px rgba(128, 0, 0, 0.18);
}

.modal-logo-circle .logo-icon {
  width: 38px;
  height: 38px;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.modal-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Modal Form Controls */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.login-alert-box {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  animation: shakeAlert 0.3s ease;
}

@keyframes shakeAlert {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-field-icon {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  pointer-events: none;
}

.form-input {
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.7rem 0.85rem 0.7rem 2.4rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background-color: var(--bg-page);
  color: var(--text-main);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus {
  background-color: #ffffff;
  border-color: var(--color-primary-maroon);
  box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.12);
}

.login-submit-btn {
  background-color: var(--color-primary-maroon);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  box-shadow: 0 3px 10px rgba(128, 0, 0, 0.2);
  transition: all var(--transition-fast);
}

.login-submit-btn:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 6px 16px rgba(128, 0, 0, 0.3);
  transform: translateY(-1px);
}

.login-submit-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Demo Accounts Helper inside Modal */
.demo-accounts-helper {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-subtle);
  text-align: left;
}

.demo-helper-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
}

.demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.demo-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--bg-page);
  color: #475569;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.demo-chip:hover {
  background: var(--color-primary-maroon);
  color: #ffffff;
  border-color: var(--color-primary-maroon);
}

.demo-chip.staff-chip {
  background: #fdf2f8;
  color: #9d174d;
  border-color: #fbcfe8;
}

.demo-chip.staff-chip:hover {
  background: var(--color-primary-maroon);
  color: #f7df94;
  border-color: #d4af37;
}

.demo-chip.dev-chip {
  background: rgba(255, 215, 0, 0.15);
  color: #855d00;
  border-color: rgba(255, 215, 0, 0.6);
}

.demo-chip.dev-chip:hover {
  background: #1e2229;
  color: var(--color-secondary-gold);
  border-color: var(--color-secondary-gold);
}

.demo-chip.gs-chip {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.demo-chip.gs-chip:hover {
  background: #f59e0b;
  color: #ffffff;
  border-color: #f59e0b;
}

.demo-chip.jhs-chip {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

.demo-chip.jhs-chip:hover {
  background: var(--color-primary-maroon);
  color: #ffffff;
  border-color: var(--color-primary-maroon);
}

/* ==========================================================================
   Responsive Breakpoints
   Strict constraint: On smartphone & smaller tablet screens, layout collapses
   into a single vertical column: Hero -> Digital Resources -> 3 Library Cards
   ========================================================================== */

/* Medium Screens (Tablets: <= 1024px) */
@media screen and (max-width: 1024px) {
  .split-layout-container {
    gap: 1.5rem;
  }

  .sidebar-resources {
    flex: 0 0 250px;
  }

  .branches-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .branches-grid .branch-card:last-child {
    grid-column: span 2;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Tablet & Mobile Screens (<= 768px): Strictly single column vertical stacking */
@media screen and (max-width: 768px) {
  /* Header navigation mobile collapse */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-primary-maroon);
    border-bottom: 2px solid var(--color-secondary-gold);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    padding: 1.25rem 1.5rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
  }

  .nav-menu.open {
    max-height: 420px;
    opacity: 1;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  .nav-link {
    width: 100%;
    font-size: 1rem;
  }

  .nav-cta-btn,
  .nav-signin-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 0.5rem;
  }

  /* Mobile Dropdown Overrides */
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }
  
  .dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-top: none;
    background: rgba(0, 0, 0, 0.2); /* Darker contrast against maroon mobile menu */
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
    display: none;
    padding: 0.35rem 0;
  }

  .dropdown-menu::before {
    display: none;
  }
  
  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:focus-within .dropdown-menu,
  .nav-dropdown.open .dropdown-menu {
    display: block;
  }
  
  .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.65rem 1.25rem;
    border-left: 3px solid transparent;
  }

  .dropdown-item .dropdown-item-icon {
    color: var(--color-secondary-gold);
  }
  
  .dropdown-item:hover,
  .dropdown-item:focus {
    background-color: rgba(255, 215, 0, 0.15);
    color: var(--color-secondary-gold);
    border-left-color: var(--color-secondary-gold);
  }

  .dropdown-item.active {
    background-color: rgba(255, 215, 0, 0.22);
    color: var(--color-secondary-gold);
    border-left-color: var(--color-secondary-gold);
    font-weight: 700;
  }

  /* Responsive Developer Dashboard Ribbon */
  .dev-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
  }

  .dev-metrics-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    width: 100%;
  }

  .dev-metrics-group .metric-divider {
    display: none;
  }

  .dev-action-area {
    width: 100%;
  }

  .dev-close-btn {
    width: 100%;
    justify-content: center;
  }

  /* Responsive Modal Adjustments */
  .login-modal-overlay {
    padding: 1rem;
  }

  .login-modal-card {
    padding: 1.75rem 1.25rem;
  }

  /* Hero adjustments */
  .hero-section {
    padding: 3rem 1.25rem 2.5rem;
  }

  .hero-stats-row {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-container);
    width: 100%;
  }

  .stat-divider {
    width: 100%;
    height: 1px;
  }

  /* Core Split Layout collapses to single vertical column */
  .split-layout-container {
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
  }

  /* Sidebar stacks at full width, directly under Hero */
  .sidebar-resources {
    flex: none;
    width: 100%;
    position: static;
  }

  /* On mobile, open tooltip smoothly by default or on tap */
  .resource-tooltip {
    max-height: 160px;
    opacity: 1;
    transform: translateY(0);
  }

  /* Main branch cards stack in 1 column */
  .branches-grid {
    grid-template-columns: 1fr;
  }

  .branches-grid .branch-card:last-child {
    grid-column: span 1;
  }

  .guidelines-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Footer collapses to single column */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1.25rem 2rem;
  }

  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* Small Smartphone Screens (<= 480px) */
@media screen and (max-width: 480px) {
  .header-container {
    padding: 0.65rem 1rem;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.68rem;
  }

  .logo-circle {
    width: 38px;
    height: 38px;
  }

  .hero-title-top,
  .hero-title-main {
    font-size: 1.85rem;
  }

  .card-body {
    padding: 1.25rem;
  }

  .branch-title {
    min-height: auto;
  }
}


/* ==========================================================================
   GS / JBHS Library Explorer Portal Styles (.jhs-*)
   Adaptive Institutional Portal for Grade School & Junior High
   ========================================================================== */

/* Top Adaptive Department Switcher Bar */
.portal-view-switcher-bar {
  background: #ffffff;
  border-bottom: 2px solid rgba(128, 0, 0, 0.12);
  padding: 0.85rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 10;
}

.portal-switcher-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.switcher-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.switcher-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-secondary-gold);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.35);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.35);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(255, 215, 0, 0.15);
  }
}

.switcher-label {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.switcher-active-name {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--color-primary-maroon);
}

.student-session-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(128, 0, 0, 0.08);
  border: 1px solid rgba(128, 0, 0, 0.22);
  color: var(--color-primary-maroon);
  padding: 0.28rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.student-session-tag .tag-icon {
  font-size: 0.95rem;
}

.dept-segmented-control {
  display: inline-flex;
  background: #f1f5f9;
  padding: 0.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid #e2e8f0;
  gap: 0.35rem;
}

.dept-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.dept-tab-btn:hover {
  color: var(--color-primary-maroon);
  background: rgba(255, 255, 255, 0.8);
}

.dept-tab-btn.active {
  background: var(--color-primary-maroon);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(128, 0, 0, 0.25);
}

.dept-tab-btn .tab-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

.dept-tab-btn.active .tab-badge {
  background: var(--color-secondary-gold);
  color: var(--color-primary-dark);
}

/* Header Student Identification Badge */
.header-student-item {
  display: flex;
  align-items: center;
}

.header-student-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 215, 0, 0.55);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.95rem;
  color: #ffffff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.student-badge-avatar {
  font-size: 1.15rem;
  line-height: 1;
}

.student-badge-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.student-badge-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
}

.student-badge-role {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-secondary-gold);
  white-space: nowrap;
}

.nav-signout-btn {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  padding: 0.38rem 0.85rem !important;
  font-size: 0.8rem !important;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-signout-btn:hover {
  background: #dc2626 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}

/* Header Portals Dropdown Enhancements (Approach A) */
#navPortalsDropdown .dropdown-menu {
  min-width: 290px;
}

.dropdown-text-wrap {
  display: flex;
  flex-direction: column;
}

.dropdown-portal-title {
  font-weight: 700;
  color: var(--text-dark, #1f2937);
  font-size: 0.88rem;
  display: block;
}

.dropdown-portal-sub {
  font-size: 0.72rem;
  color: #6b7280;
  display: block;
  margin-top: 1px;
}

.portal-lock-pill {
  font-size: 0.82rem;
  margin-left: auto;
  opacity: 0.7;
  padding-left: 0.5rem;
  white-space: nowrap;
}

.portal-lock-pill.enrolled {
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.portal-lock-pill.locked {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.95;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.portal-lock-pill.admin {
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.dropdown-item.portal-locked {
  opacity: 0.65;
  background-color: transparent;
  transition: opacity 0.2s, background-color 0.2s;
}

.dropdown-item.portal-locked:hover {
  opacity: 0.95;
  background-color: rgba(239, 68, 68, 0.05);
}

.dropdown-divider-item {
  height: 1px;
  background: #e5e7eb;
  margin: 0.35rem 0;
}

.dropdown-item-secondary {
  font-size: 0.82rem;
  color: #4b5563;
  font-weight: 600;
}

/* Enrolled Library Card Highlights (Location B) */
.branch-card.enrolled-highlight {
  border: 2px solid #f59e0b !important;
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.22), 0 0 0 3px rgba(253, 230, 138, 0.6) !important;
  transform: translateY(-4px);
}

.branch-card.enrolled-highlight .card-top-accent {
  background: linear-gradient(90deg, #f59e0b, #d97706) !important;
  height: 5px !important;
}

.enrolled-library-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fef3c7;
  color: #92400e;
  border: 1.5px solid #fde68a;
  border-radius: var(--radius-pill);
  padding: 0.22rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 800;
  margin: 0.5rem 0 0.25rem;
  animation: pulseEnrolled 2.4s infinite ease-in-out;
}

@keyframes pulseEnrolled {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.branch-action-btn.proceed-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35) !important;
}

.branch-action-btn.proceed-btn:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45) !important;
}

/* JHS Hero Section (Institutional Maroon Foundation) */
.jhs-hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #a81c1c 70%, #850000 100%);
  color: var(--text-white);
  padding: 4rem 1.5rem 3.75rem;
  border-bottom: 5px solid var(--color-secondary-gold);
  position: relative;
  overflow: hidden;
  transition: background 0.5s ease;
}

.jhs-hero.gs-theme {
  background: linear-gradient(135deg, #660000 0%, #991b1b 60%, #b45309 100%);
}

.jhs-hero.jhs-theme {
  background: linear-gradient(135deg, #4d0000 0%, #7b0000 65%, #1e1b4b 100%);
}

.jhs-hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.jhs-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

.jhs-hero-content {
  flex: 1;
  max-width: 720px;
}

.jhs-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 215, 0, 0.6);
  color: var(--color-secondary-gold);
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.jhs-hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.collections-hero-title,
#collectionsHeroTitle {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.65rem;
  letter-spacing: 0.01em;
  color: var(--color-secondary-gold, #FFD700);
  background: linear-gradient(to right, var(--color-secondary-gold, #FFD700) 0%, #ffffff 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.45));
}

.jhs-hero-subtitle {
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 1.75rem;
  opacity: 0.96;
}

.jhs-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.jhs-tag {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

/* Interactive Grade-Level Filtering Pills */
.jhs-grade-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.grade-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.grade-pill:hover {
  background: rgba(255, 215, 0, 0.28);
  border-color: var(--color-secondary-gold);
  color: var(--color-secondary-gold);
  transform: translateY(-2px);
}

.grade-pill.current-student-grade {
  background: linear-gradient(135deg, #FFD700 0%, #FFA000 100%);
  color: #4A0000;
  border-color: #FFFFFF;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.7);
  font-weight: 900;
  transform: scale(1.05);
}

.grade-pill .pill-badge-tag {
  font-size: 0.74rem;
  font-weight: 800;
  background: rgba(74, 0, 0, 0.16);
  color: #4A0000;
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-pill);
  margin-left: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Floating Decorative Mascot with Smooth Switch */
.jhs-mascot-container {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mascot-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mascot-wrapper.active-mascot {
  display: flex;
  opacity: 1;
}

.mascot-wrapper:not(.active-mascot) {
  display: none;
  opacity: 0;
}

.floating-mascot {
  animation: floating 3s ease-in-out infinite;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.35));
  width: 180px;
  height: 180px;
  transition: transform 0.3s ease;
}

.floating-mascot:hover {
  transform: scale(1.08) rotate(3deg);
}

@keyframes floating {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Dual-Zone Layout Structure (.gs-corner, .jbhs-hub) */
.jhs-main-wrapper {
  max-width: 1200px;
  margin: 3rem auto 5rem;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  width: 100%;
}

.zone-section {
  transition: all 0.35s ease;
}

.zone-section.is-featured {
  order: 1;
}

.zone-section.is-secondary {
  order: 2;
  opacity: 0.96;
}

/* Department Bridge Banner (to cross-switch between GS & JHS) */
.dept-bridge-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px dashed #cbd5e1;
  border-radius: 20px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  box-shadow: var(--shadow-subtle);
}

.dept-bridge-text h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 0 0 0.25rem;
}

.dept-bridge-text p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

.dept-bridge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary-maroon);
  color: #ffffff;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.dept-bridge-btn:hover {
  background: var(--color-secondary-gold);
  color: var(--color-primary-dark);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Zone Headers */
.zone-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.zone-header h2 {
  font-size: 2rem;
  margin: 0;
  font-weight: 800;
}

.zone-header p {
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.8;
  margin: 0;
}

.gs-header {
  color: #d97706;
  border-color: #fde68a;
}

.jbhs-header {
  color: var(--color-primary-maroon);
  border-color: var(--color-secondary-gold);
}

/* Playful Category Card Design */
.jhs-category-card {
  background-color: var(--surface-card);
  border-radius: 24px;
  border: 2px solid var(--border-subtle);
  border-bottom: 6px solid var(--border-subtle);
  padding: 2.25rem 1.75rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
  outline: none;
}

/* Card Differentiation */
.gs-card {
  border: 2px solid #fde68a;
  background-color: #fffbeb;
}

.gs-card .jhs-card-btn {
  background-color: #f59e0b;
  color: white;
}

.jbhs-card {
  border: 2px solid var(--border-subtle);
  background-color: white;
}

.jbhs-card .jhs-card-btn {
  background-color: var(--color-primary-maroon);
  color: white;
}

/* Interactive Hover Effects */
.jhs-category-card:hover,
.jhs-category-card:focus-visible {
  transform: translateX(-10px);
  box-shadow: 0 20px 35px rgba(128, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06);
  border-bottom-color: var(--color-secondary-gold);
}

/* Card Icon Box & Oversized SVGs */
.jhs-card-icon {
  width: 90px;
  height: 90px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.jhs-card-icon svg {
  width: 64px;
  height: 64px;
  transition: transform 0.3s ease;
}

/* Icon Container Playful Color Accents */
.jhs-icon-story {
  background: #fff8e6;
  color: #d97706;
  border: 2px solid #fef3c7;
}

.jhs-icon-textbook {
  background: #eff6ff;
  color: #2563eb;
  border: 2px solid #dbeafe;
}

.jhs-icon-interactive {
  background: #ecfdf5;
  color: #059669;
  border: 2px solid #d1fae5;
}

.jhs-icon-research {
  background: #f5f3ff;
  color: #7c3aed;
  border: 2px solid #ede9fe;
}

/* Icon Secondary Hover Animation (Scale & Wiggle) */
@keyframes wiggle {
  0%, 100% {
    transform: scale(1.12) rotate(0deg);
  }
  25% {
    transform: scale(1.12) rotate(-5deg);
  }
  75% {
    transform: scale(1.12) rotate(5deg);
  }
}

.jhs-category-card:hover .jhs-card-icon svg,
.jhs-category-card:focus-visible .jhs-card-icon svg {
  animation: wiggle 0.6s ease-in-out infinite;
}

/* Card Content & Typography (High Legibility for Young Readers) */
.jhs-card-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary-light);
  background: #fff0f0;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.jhs-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.jhs-card-desc {
  font-size: 1.08rem;
  font-weight: 450;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* Card Action Button */
.jhs-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary-maroon);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  margin-top: auto;
}

.jhs-card-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.jhs-category-card:hover .jhs-card-btn {
  background: var(--color-secondary-gold);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.jhs-category-card:hover .jhs-card-btn svg {
  transform: translateX(4px);
}

/* Responsive adjustments for JHS */
@media screen and (max-width: 868px) {
  .jhs-hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .jhs-hero-content {
    max-width: 100%;
  }

  .jhs-hero-title {
    font-size: 2.25rem;
  }

  .jhs-hero-subtitle {
    font-size: 1.15rem;
  }

  .jhs-hero-tags,
  .jhs-grade-pills {
    justify-content: center;
  }

  .portal-switcher-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .dept-segmented-control {
    width: 100%;
    justify-content: stretch;
  }

  .dept-tab-btn {
    flex: 1;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .dept-bridge-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1.25rem;
  }

  .floating-mascot {
    width: 140px;
    height: 140px;
  }
}

@media screen and (max-width: 480px) {
  .jhs-hero {
    padding: 3rem 1rem 2.5rem;
  }

  .jhs-hero-title {
    font-size: 1.85rem;
  }

  .jhs-main-wrapper {
    margin: 2rem auto 3.5rem;
    padding: 0 1rem;
    gap: 2.5rem;
  }

  .jhs-category-card {
    padding: 1.75rem 1.25rem 1.5rem;
  }
}


/* ==========================================================================
   About Us Page Styles (.about-*)
   LRC Team & Staff Profiles
   ========================================================================== */

/* About Hero */
.about-hero {
  padding: 4rem 1.5rem;
  text-align: center;
  background-color: var(--color-primary-dark);
  border-bottom: 2px solid var(--color-secondary-gold);
  color: white;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.about-hero-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.about-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: transparent;
  background: linear-gradient(to right, var(--color-secondary-gold) 0%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.about-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Main & Grid */
.about-main {
  max-width: 1100px;
  margin: 3rem auto 5rem;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  width: 100%;
}

.about-section {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.about-section-header {
  text-align: left;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.about-section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about-section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Staff Card Aesthetics */
.staff-card {
  background: var(--surface-card);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-subtle);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.staff-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-secondary-gold);
  box-shadow: 0 12px 24px rgba(128, 0, 0, 0.1);
}

/* Avatar & Typography */
.staff-avatar-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--color-primary-maroon), var(--color-secondary-gold));
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.staff-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  display: block;
}

.staff-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.staff-role {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  display: inline-block;
}

.librarian-role {
  background: rgba(128, 0, 0, 0.1);
  color: var(--color-primary-maroon);
  border: 1px solid rgba(128, 0, 0, 0.15);
}

.assistant-role {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.staff-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.staff-contact-btn {
  width: 100%;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: white;
  color: var(--color-primary-maroon);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
}

.staff-contact-btn:hover {
  background: var(--color-primary-maroon);
  color: white;
  border-color: var(--color-primary-maroon);
  box-shadow: 0 4px 10px rgba(128, 0, 0, 0.2);
}


/* Chief Librarian Spotlight & Hierarchy */
.chief-librarian-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 0.5rem;
}

.chief-card {
  max-width: 440px;
  width: 100%;
  border: 2px solid rgba(255, 215, 0, 0.55);
  box-shadow: 0 10px 25px rgba(128, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  background: linear-gradient(to bottom, #ffffff 0%, #fffdf8 100%);
}

.chief-badge {
  background: linear-gradient(135deg, rgba(128, 0, 0, 0.12), rgba(255, 215, 0, 0.25));
  color: var(--color-primary-dark);
  border: 1.5px solid var(--color-secondary-gold);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.chief-card .staff-avatar-wrap {
  width: 130px;
  height: 130px;
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.25);
}


/* ==========================================================================
   GS/JBHS Featured Collection / Books of the Month (.jhs-featured-*)
   Horizontal Touch-Friendly Scrollable Book Carousel
   ========================================================================== */

/* Section Layout */
.jhs-featured-section {
  padding: 4rem 1.5rem;
  background-color: #fffbeb;
  border-top: 1px solid #fef3c7;
  border-bottom: 2px dashed #fde68a;
  position: relative;
}

/* Header Styling */
.jhs-section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.jhs-section-header h2 {
  color: var(--color-primary-maroon);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.jhs-section-header p {
  font-size: 1.1rem;
  color: #b45309;
  font-weight: 500;
}

/* Carousel Wrapper & Marquee Track */
.jhs-carousel-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 1.25rem 0;
  max-width: 1200px;
  margin: 2rem auto 0;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.jhs-carousel-wrapper::before,
.jhs-carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 3;
  pointer-events: none;
}

.jhs-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--carousel-fade, #fffbeb) 15%, transparent 100%);
}

.jhs-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--carousel-fade, #fffbeb) 15%, transparent 100%);
}

.jhs-carousel-wrapper.is-dragging {
  cursor: grabbing;
}

.jhs-carousel-wrapper.is-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.jhs-carousel-wrapper.is-dragging .jhs-book-item {
  transform: none !important;
  pointer-events: none;
}

.jhs-carousel-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

/* Book Item Cards */
.jhs-book-item {
  flex: 0 0 220px;
  background: white;
  padding: 1rem;
  border-radius: 16px;
  border: 2px solid var(--border-subtle);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.jhs-book-item:hover,
.jhs-book-item:focus-visible {
  transform: translateX(-10px) scale(1.02);
  border-color: var(--color-secondary-gold);
  box-shadow: 0 12px 20px rgba(128, 0, 0, 0.1);
  outline: none;
}

/* Book Covers */
.jhs-book-cover {
  width: 100%;
  height: 260px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  background-color: #f1f5f9;
}

.jhs-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.jhs-book-item:hover .jhs-book-cover img {
  transform: scale(1.05);
}

/* Badges & Text */
.jhs-book-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 2;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Modal Details Category Tag - Prevent absolute positioning to top-right */
#modalDetailsContent .modal-category-badge,
#modalDetailsContent .jhs-book-badge,
.modal-details .jhs-book-badge {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  top: auto !important;
  right: auto !important;
  margin: 0 !important;
  box-shadow: none !important;
  width: auto !important;
  vertical-align: middle;
}

.jhs-book-badge.new-arrival {
  background: #fef08a;
  color: #854d0e;
  border: 1.5px solid #facc15;
}

.jhs-book-badge.staff-pick {
  background: #dcfce7;
  color: #166534;
  border: 1.5px solid #4ade80;
}

.jhs-book-badge.popular {
  background: #ffedd5;
  color: #9a3412;
  border: 1.5px solid #fb923c;
}

.jhs-book-badge.general-ref {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1.5px solid #93c5fd;
}

.jhs-book-badge.circulation {
  background: #ecfdf5;
  color: #047857;
  border: 1.5px solid #6ee7b7;
}

.jhs-book-badge.filipiniana {
  background: #fffbeb;
  color: #b45309;
  border: 1.5px solid #fcd34d;
}

.jhs-book-badge.fiction {
  background: #faf5ff;
  color: #6b21a8;
  border: 1.5px solid #d8b4fe;
}

.jhs-book-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.35rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7rem;
}

.jhs-book-author {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: auto;
  font-style: italic;
}

/* ==========================================================================
   Grade School Custom Pointer, Visual Accents & Magic Page Effects
   ========================================================================== */

/* Custom Magic Star Cursors (Grade School Mode Only on Desktop; disabled for staff) */
@media (hover: hover) and (pointer: fine) {
  body.gs-portal-mode:not(.staff-mode-no-fx),
  body.gs-portal-mode:not(.staff-mode-no-fx) input,
  body.gs-portal-mode:not(.staff-mode-no-fx) select {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M3 3L11 19L14 13L20 10L3 3Z' fill='%23FFD700' stroke='%23800000' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M19 19L21 16L23 19L26 21L23 23L21 26L19 23L16 21L19 19Z' fill='%23FFD700' stroke='%23800000' stroke-width='1'/%3E%3Ccircle cx='21' cy='21' r='1.5' fill='%23FFFFFF'/%3E%3C/svg%3E") 3 3, auto !important;
  }

  body.gs-portal-mode:not(.staff-mode-no-fx) a,
  body.gs-portal-mode:not(.staff-mode-no-fx) button,
  body.gs-portal-mode:not(.staff-mode-no-fx) .jhs-book-item,
  body.gs-portal-mode:not(.staff-mode-no-fx) .jhs-category-card,
  body.gs-portal-mode:not(.staff-mode-no-fx) .libby-book-item,
  body.gs-portal-mode:not(.staff-mode-no-fx) .libby-book-cover,
  body.gs-portal-mode:not(.staff-mode-no-fx) .libby-btn,
  body.gs-portal-mode:not(.staff-mode-no-fx) .page-btn,
  body.gs-portal-mode:not(.staff-mode-no-fx) .clear-btn,
  body.gs-portal-mode:not(.staff-mode-no-fx) .grade-pill,
  body.gs-portal-mode:not(.staff-mode-no-fx) .floating-mascot,
  body.gs-portal-mode:not(.staff-mode-no-fx) .dept-tab-btn,
  body.gs-portal-mode:not(.staff-mode-no-fx) [role="button"] {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='rgba(255,215,0,0.22)' stroke='%23FFD700' stroke-width='1.5' stroke-dasharray='2 3'/%3E%3Cpath d='M4 4L13 21L16 15L23 12L4 4Z' fill='%23FFD700' stroke='%23800000' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M21 21L23 17L25 21L29 23L25 25L23 29L21 25L17 23L21 21Z' fill='%23FFFFFF' stroke='%23B45309' stroke-width='1'/%3E%3C/svg%3E") 5 5, pointer !important;
  }
}

/* Collections Grid & Book Item Accents in Grade School Mode */
body.gs-portal-mode .libby-book-item {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

body.gs-portal-mode .libby-book-item:hover {
  transform: translateY(-8px) rotate(1.2deg) scale(1.03);
}

body.gs-portal-mode .libby-book-item:hover .libby-book-cover {
  box-shadow: -2px 0 6px rgba(0, 0, 0, 0.08), 8px 24px 32px rgba(245, 158, 11, 0.28) !important;
}

body.gs-portal-mode .libby-borrow {
  background-color: #d97706;
}

body.gs-portal-mode .libby-borrow:hover {
  background-color: #b45309;
  transform: translateY(-1px);
}

body.gs-portal-mode .libby-sample {
  background-color: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

body.gs-portal-mode .libby-sample:hover {
  background-color: #fde68a;
  transform: translateY(-1px);
}

body.gs-portal-mode .libby-open-story {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: none;
}

body.gs-portal-mode .libby-open-story:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-1px);
}

/* Grade School Carousel Visual Accents (.gs-book-accent) */
.jhs-book-item.gs-book-accent {
  border-radius: 20px;
  border: 2px solid #fde68a;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(128, 0, 0, 0.07);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.3s ease;
}

.jhs-book-item.gs-book-accent:hover,
.jhs-book-item.gs-book-accent:focus-visible {
  transform: translateY(-12px) rotate(2.5deg) scale(1.05);
  border-color: #f59e0b;
  box-shadow: 0 16px 28px rgba(245, 158, 11, 0.2), 0 8px 16px rgba(128, 0, 0, 0.1);
}

.jhs-book-item.gs-book-accent .jhs-book-cover {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* Subtle Physical Book Spine Sheen */
.jhs-book-item.gs-book-accent .jhs-book-cover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0.2) 0%, rgba(0,0,0,0.1) 3%, transparent 7%, transparent 95%, rgba(0,0,0,0.12) 100%);
  border-radius: inherit;
}

/* Star Rating Accent */
.book-star-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 0.45rem;
  color: #f59e0b;
  font-size: 0.88rem;
  letter-spacing: 1.5px;
  filter: drop-shadow(0 1px 2px rgba(245, 158, 11, 0.3));
}

/* Playful Click Sparkle Particle */
.gs-sparkle-particle {
  position: fixed;
  pointer-events: none;
  z-index: 999999;
  font-size: 1.25rem;
  user-select: none;
  animation: gsParticleAnim 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes gsParticleAnim {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(0.3) rotate(0deg);
  }
  50% {
    opacity: 0.95;
    transform: translate3d(var(--tx, 15px), var(--ty, -25px), 0) scale(1.25) rotate(45deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--tx-end, 30px), var(--ty-end, -50px), 0) scale(0.5) rotate(90deg);
  }
}

/* Interactive Mascot Speech Bubble & Reaction */
.mascot-speech-bubble {
  position: absolute;
  top: -42px;
  right: -25px;
  background: #ffffff;
  color: var(--color-primary-dark);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 0.45rem 0.95rem;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  border: 2px solid var(--color-secondary-gold);
  white-space: nowrap;
  animation: speechPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 10;
  pointer-events: none;
}

.mascot-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 32px;
  border-width: 8px 8px 0;
  border-style: solid;
  border-color: #ffffff transparent;
}

@keyframes speechPop {
  0% { opacity: 0; transform: translateY(6px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.floating-mascot.mascot-reacting {
  animation: mascotBounce 0.65s ease-in-out !important;
}

@keyframes mascotBounce {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  35% { transform: translateY(-24px) rotate(12deg) scale(1.15); }
  70% { transform: translateY(-6px) rotate(-6deg) scale(1.06); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}

/* ==========================================================================
   GRADE SCHOOL MULTIMEDIA & DISCOVERY HUB MODAL (OPTION A)
   Interactive Games, Audiobooks, Podcasts & Educational Videos
   Strictly scoped to Grade School mode
   Responsive on 2015 PCs (1366x768 / low-spec GPUs) and mobile devices
   ========================================================================== */

/* Quick Header Triggers in Grade School Zone */
.gs-quick-media-triggers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-left: auto;
}

.gs-media-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fef3c7;
  border: 1.5px solid #fde68a;
  color: #92400e;
  padding: 0.38rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.1);
  user-select: none;
}

.gs-media-pill-btn:hover {
  background: #d97706;
  border-color: #b45309;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.gs-media-pill-btn:active {
  transform: translateY(0);
}

/* GS Multimedia Hub Modal Window */
.gs-media-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  /* Solid high-contrast background fallback for 2015 PCs without laggy GPU blur overhead */
  background: rgba(18, 12, 6, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease-out;
  /* Hardware-accelerated composite layer */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.gs-media-modal-overlay.visible {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.gs-media-modal-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.gs-media-modal-card {
  position: relative;
  z-index: 2;
  width: 960px;
  max-width: calc(100vw - 1.5rem);
  max-height: 88vh; /* Comfortable headroom on short 1366x768 laptop displays */
  background: #ffffff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(253, 230, 138, 0.9);
  transform: translate3d(0, 14px, 0) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.gs-media-modal-overlay.visible .gs-media-modal-card {
  transform: translate3d(0, 0, 0) scale(1) !important;
}

/* Modal Header */
.gs-media-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: linear-gradient(135deg, #78350f 0%, #b45309 50%, #d97706 100%);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-bottom: 3px solid #fde68a;
  flex-shrink: 0;
}

.gs-media-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.gs-media-header-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  border: 2px solid rgba(255, 215, 0, 0.7);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
  flex-shrink: 0;
}

.gs-media-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.2px;
  line-height: 1.25;
}

.gs-media-sub {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: #fef3c7;
  font-weight: 500;
  line-height: 1.3;
}

.gs-media-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  flex-shrink: 0;
}

.gs-media-close-btn:hover {
  background: #ffffff;
  color: #92400e;
  transform: rotate(90deg);
}

/* Modal Navigation Tabs */
.gs-media-tabs {
  display: flex;
  gap: 0.45rem;
  background: #fffbeb;
  border-bottom: 2px solid #fde68a;
  padding: 0.55rem 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  flex-shrink: 0;
}

.gs-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.05rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 800;
  background: transparent;
  color: #92400e;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
  min-height: 38px;
}

.gs-tab-btn:hover {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.gs-tab-btn.active {
  background: #d97706;
  color: #ffffff;
  border-color: #b45309;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

/* Modal Body & Panels */
.gs-media-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 1.25rem 1.5rem 2rem;
  background: #fafaf9;
}

/* Sleek scrollbar for 2015 desktop browsers */
.gs-media-body::-webkit-scrollbar {
  width: 6px;
}
.gs-media-body::-webkit-scrollbar-track {
  background: #f5f5f4;
}
.gs-media-body::-webkit-scrollbar-thumb {
  background: #f59e0b;
  border-radius: 99px;
}
.gs-media-body::-webkit-scrollbar-thumb:hover {
  background: #d97706;
}

.gs-tab-panel {
  display: none;
  animation: gsTabFade 0.22s ease-out;
}

.gs-tab-panel.active {
  display: block;
}

@keyframes gsTabFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   SUB-PANEL: ðŸŽ® INTERACTIVE GAMES
   ========================================================================== */
.games-subnav {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}

.game-choice-btn {
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid #e7e5e4;
  background: #ffffff;
  color: #57534e;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.game-choice-btn:hover {
  border-color: #d97706;
  color: #d97706;
}

.game-choice-btn.active {
  background: #fef3c7;
  border-color: #d97706;
  color: #92400e;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15);
}

.game-view-container {
  background: #ffffff;
  border: 2px solid #fde68a;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* Memory Match Game */
.memory-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 1.5px dashed #fde68a;
}

.memory-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fef3c7;
  color: #92400e;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.86rem;
}

.memory-reset-btn {
  background: #f59e0b;
  color: #ffffff;
  border: none;
  padding: 0.42rem 1.05rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.memory-reset-btn:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.memory-reset-btn:active {
  transform: translateY(0);
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto;
}

.memory-card {
  aspect-ratio: 1;
  perspective: 1000px;
  -webkit-perspective: 1000px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.memory-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 12px;
  will-change: transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.memory-card.flipped .memory-card-inner,
.memory-card.matched .memory-card-inner {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

.memory-card-front,
.memory-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Facedown Card (â“ cover) */
.memory-card-front {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  color: #ffffff;
  font-size: clamp(1.4rem, 4vw, 2rem);
  border: 3px solid #fde68a;
  box-shadow: 0 4px 10px rgba(180, 83, 9, 0.2);
}

/* Revealed Card (Emoji face) */
.memory-card-back {
  background: #ffffff;
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
  border: 3px solid #10b981;
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.25);
}

.memory-card.matched .memory-card-back {
  background: #ecfdf5;
  border-color: #059669;
  animation: matchBounce 0.38s ease;
}

@keyframes matchBounce {
  0% { transform: rotateY(180deg) scale(1); }
  50% { transform: rotateY(180deg) scale(1.1); }
  100% { transform: rotateY(180deg) scale(1); }
}

.memory-win-banner {
  display: none;
  text-align: center;
  padding: 1.25rem;
  background: #ecfdf5;
  border: 2px solid #10b981;
  border-radius: 16px;
  margin-top: 1rem;
}

/* Trivia Quiz Quest */
.quiz-box {
  max-width: 620px;
  margin: 0 auto;
}

.quiz-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  font-weight: 800;
  font-size: 0.88rem;
  color: #92400e;
}

.quiz-question-card {
  background: #fef3c7;
  border: 2px solid #fde68a;
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.15rem;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 800;
  color: #78350f;
  line-height: 1.4;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.quiz-opt-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #ffffff;
  border: 2px solid #e7e5e4;
  padding: 0.75rem 1.15rem;
  border-radius: 12px;
  font-size: 0.94rem;
  font-weight: 700;
  color: #292524;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  min-height: 44px;
}

.quiz-opt-btn:hover:not(:disabled) {
  border-color: #d97706;
  background: #fffbeb;
  transform: translateX(3px);
}

.quiz-opt-btn.correct {
  background: #dcfce7 !important;
  border-color: #16a34a !important;
  color: #166534 !important;
}

.quiz-opt-btn.wrong {
  background: #fee2e2 !important;
  border-color: #dc2626 !important;
  color: #991b1b !important;
}

.quiz-feedback {
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  display: none;
  line-height: 1.45;
}

.quiz-feedback.correct-feedback {
  display: block;
  background: #dcfce7;
  color: #166534;
  border: 1.5px solid #86efac;
}

.quiz-feedback.wrong-feedback {
  display: block;
  background: #fee2e2;
  color: #991b1b;
  border: 1.5px solid #fca5a5;
}

/* Word Scramble Quest */
.scramble-box {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}

.scramble-tiles {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin: 1.25rem 0;
  flex-wrap: wrap;
}

.scramble-tile {
  width: clamp(36px, 8vw, 48px);
  height: clamp(42px, 9vw, 52px);
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: 2px solid #fde68a;
  border-radius: 10px;
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25);
}

.scramble-input-row {
  display: flex;
  gap: 0.5rem;
  max-width: 360px;
  margin: 0 auto 1rem;
}

.scramble-input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  border: 2px solid #fde68a;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  outline: none;
  min-height: 44px;
  box-sizing: border-box;
}

.scramble-input:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.scramble-submit-btn {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 0 1.25rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
}

.scramble-submit-btn:hover {
  background: #059669;
}

/* External Kids Learning Games */
.external-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.ext-game-card {
  background: #ffffff;
  border: 2px solid #e7e5e4;
  border-radius: 14px;
  padding: 1.15rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: all 0.2s;
}

.ext-game-card:hover {
  border-color: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.ext-game-icon {
  font-size: 1.85rem;
}

.ext-game-title {
  font-weight: 800;
  font-size: 1rem;
  color: #292524;
  margin: 0;
}

.ext-game-desc {
  font-size: 0.82rem;
  color: #78716c;
  margin: 0;
  line-height: 1.4;
}

/* ==========================================================================
   SUB-PANEL: ðŸŽ§ AUDIOBOOKS & READ-ALOUD
   ========================================================================== */
.audiobook-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.25rem;
}

.story-picker-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.story-pick-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #ffffff;
  border: 2px solid #fde68a;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.story-pick-btn:hover {
  background: #fffbeb;
  border-color: #d97706;
}

.story-pick-btn.active {
  background: #fef3c7;
  border-color: #b45309;
  box-shadow: 0 3px 10px rgba(180, 83, 9, 0.15);
}

.story-pick-icon {
  font-size: 1.65rem;
  flex-shrink: 0;
}

.story-pick-info h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #78350f;
}

.story-pick-info p {
  margin: 0.12rem 0 0;
  font-size: 0.76rem;
  color: #92400e;
}

.story-viewer-card {
  background: #ffffff;
  border: 2px solid #fde68a;
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.story-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid #fef3c7;
  margin-bottom: 1rem;
}

.story-read-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.read-aloud-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 0.48rem 1.05rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 38px;
}

.read-aloud-btn:hover {
  background: #059669;
}

.speed-select {
  padding: 0.38rem 0.65rem;
  border-radius: 8px;
  border: 1.5px solid #d6d3d1;
  font-size: 0.8rem;
  font-weight: 700;
  outline: none;
  min-height: 38px;
  background: #ffffff;
}

.story-text-container {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  line-height: 1.75;
  color: #292524;
  max-height: clamp(200px, 36vh, 340px);
  overflow-y: auto;
  padding-right: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.story-sentence {
  transition: background-color 0.2s;
  padding: 3px 5px;
  border-radius: 4px;
  cursor: pointer;
}

.story-sentence:hover {
  background-color: #fef9c3;
}

.story-sentence.active-sentence {
  background-color: #fde047;
  color: #713f12;
  font-weight: 800;
  box-shadow: 0 0 0 2px #facc15;
}

/* ==========================================================================
   SUB-PANEL: ðŸŽ™ï¸ KIDS STORY PODCASTS
   ========================================================================== */
.podcasts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.podcast-card {
  background: #ffffff;
  border: 2px solid #fde68a;
  border-radius: 14px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: all 0.2s;
}

.podcast-card:hover {
  border-color: #d97706;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.12);
  transform: translateY(-2px);
}

.podcast-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.podcast-tag {
  font-size: 0.72rem;
  font-weight: 800;
  background: #fef3c7;
  color: #92400e;
  padding: 0.18rem 0.55rem;
  border-radius: 99px;
  text-transform: uppercase;
}

.podcast-duration {
  font-size: 0.78rem;
  font-weight: 700;
  color: #78716c;
}

.podcast-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #292524;
}

.podcast-desc {
  margin: 0;
  font-size: 0.84rem;
  color: #57534e;
  line-height: 1.4;
  flex: 1;
}

.podcast-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #d97706;
  color: #ffffff;
  border: none;
  padding: 0.55rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 40px;
}

.podcast-play-btn:hover {
  background: #b45309;
}

.podcast-player-dock {
  background: #fef3c7;
  border: 2px solid #fde68a;
  border-radius: 14px;
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.podcast-dock-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.podcast-dock-icon {
  font-size: 1.6rem;
}

.podcast-dock-info h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #78350f;
}

.podcast-dock-info p {
  margin: 0.12rem 0 0;
  font-size: 0.78rem;
  color: #92400e;
}

/* ==========================================================================
   SUB-PANEL: ðŸ“º EDUCATIONAL VIDEOS
   ========================================================================== */
.video-theater-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.video-player-frame-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: clamp(200px, 42vh, 440px);
  background: #000000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border: 2px solid #fde68a;
}

.video-player-frame-box iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-theater-info {
  background: #ffffff;
  border: 2px solid #fde68a;
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
}

.video-theater-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: #292524;
}

.video-theater-desc {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: #57534e;
  line-height: 1.4;
}

.video-playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
}

.video-thumb-card {
  background: #ffffff;
  border: 2px solid #e7e5e4;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.video-thumb-card:hover {
  border-color: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.video-thumb-card.active {
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.25);
}

.video-thumb-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f5f5f4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
}

.video-thumb-play-icon {
  position: absolute;
  width: 36px;
  height: 36px;
  background: rgba(217, 119, 6, 0.9);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.video-thumb-details {
  padding: 0.75rem;
}

.video-thumb-category {
  font-size: 0.7rem;
  font-weight: 800;
  background: #fef3c7;
  color: #92400e;
  padding: 0.12rem 0.45rem;
  border-radius: 99px;
  display: inline-block;
  margin-bottom: 0.25rem;
}

.video-thumb-title {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 800;
  color: #292524;
  line-height: 1.35;
}

/* ==========================================================================
   BREAKPOINT 1: 2015 LAPTOPS & SHORT VIEWPORTS (1366x768 screens, <= 750px height)
   ========================================================================== */
@media (max-height: 750px) {
  .gs-media-modal-card {
    max-height: 94vh;
  }
  .gs-media-header {
    padding: 0.65rem 1.25rem;
  }
  .gs-media-header-icon {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
  .gs-media-title {
    font-size: 1.12rem;
  }
  .gs-media-sub {
    font-size: 0.76rem;
  }
  .gs-media-tabs {
    padding: 0.4rem 1rem;
  }
  .gs-tab-btn {
    padding: 0.38rem 0.85rem;
    font-size: 0.82rem;
    min-height: 34px;
  }
  .gs-media-body {
    padding: 0.85rem 1.15rem 1.5rem;
  }
  .game-view-container {
    padding: 0.85rem 1rem;
  }
  .memory-grid {
    max-width: 380px;
    gap: 0.5rem;
  }
  .story-text-container {
    max-height: 220px;
  }
  .video-player-frame-box {
    max-height: 36vh;
  }
}

/* ==========================================================================
   BREAKPOINT 2: TABLETS & HALF-WINDOW DESKTOPS (<= 840px width)
   ========================================================================== */
@media (max-width: 840px) {
  .gs-media-modal-card {
    width: 100%;
    max-width: calc(100vw - 1rem);
  }
  .audiobook-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .story-picker-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
  }
  .video-playlist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   BREAKPOINT 3: MOBILE PHONES (<= 640px width)
   ========================================================================== */
@media (max-width: 640px) {
  .gs-media-modal-overlay {
    padding: 0.35rem 0.25rem 0;
    align-items: flex-end; /* Mobile app bottom-sheet style */
  }

  .gs-media-modal-card {
    width: 100%;
    max-width: 100vw;
    max-height: 94vh;
    border-radius: 18px 18px 0 0;
  }

  /* Header mobile */
  .gs-media-header {
    padding: 0.75rem 1rem;
  }
  .gs-media-header-left {
    gap: 0.65rem;
  }
  .gs-media-header-icon {
    width: 34px;
    height: 34px;
    font-size: 1.15rem;
  }
  .gs-media-title {
    font-size: 1.05rem;
  }
  .gs-media-sub {
    font-size: 0.74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
  }
  .gs-media-close-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 1.3rem;
  }

  /* Category tabs mobile swipe bar */
  .gs-media-tabs {
    padding: 0.45rem 0.75rem;
    gap: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gs-media-tabs::-webkit-scrollbar {
    display: none;
  }
  .gs-tab-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    min-height: 36px;
  }

  /* Modal body mobile */
  .gs-media-body {
    padding: 0.85rem 0.75rem 1.75rem;
  }

  /* Games Subnav */
  .games-subnav {
    gap: 0.35rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .games-subnav::-webkit-scrollbar {
    display: none;
  }
  .game-choice-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    flex-shrink: 0;
    white-space: nowrap;
    min-height: 34px;
  }

  .game-view-container {
    padding: 0.85rem;
    border-radius: 14px;
  }

  /* Memory Card Game mobile */
  .memory-stats-bar {
    margin-bottom: 0.75rem;
    gap: 0.4rem;
  }
  .memory-stat-badge {
    padding: 0.25rem 0.65rem;
    font-size: 0.76rem;
  }
  .memory-reset-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    min-height: 32px;
  }
  .memory-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
    max-width: 100%;
  }

  /* Trivia Quiz mobile */
  .quiz-question-card {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border-radius: 12px;
  }
  .quiz-opt-btn {
    padding: 0.7rem 0.85rem;
    font-size: 0.86rem;
    min-height: 44px;
  }

  /* Word Scramble mobile */
  .scramble-tiles {
    gap: 0.35rem;
    margin: 1rem 0;
  }
  .scramble-input-row {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }
  .scramble-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem;
    font-size: 1rem;
  }
  .scramble-submit-btn {
    width: 100%;
    padding: 0.65rem;
  }

  /* Audiobooks mobile */
  .story-picker-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.45rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .story-picker-list::-webkit-scrollbar {
    display: none;
  }
  .story-pick-btn {
    flex-shrink: 0;
    min-width: 180px;
    padding: 0.55rem 0.75rem;
    gap: 0.5rem;
  }
  .story-pick-icon {
    font-size: 1.4rem;
  }
  .story-pick-info h4 {
    font-size: 0.85rem;
  }
  .story-pick-info p {
    font-size: 0.72rem;
  }
  .story-viewer-card {
    padding: 0.85rem;
  }
  .story-viewer-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
  .story-read-controls {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.35rem;
  }
  .story-text-container {
    font-size: 0.96rem;
    line-height: 1.65;
    max-height: 240px;
  }

  /* Podcasts mobile */
  .podcasts-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .podcast-card {
    padding: 1rem;
  }
  .podcast-player-dock {
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem;
  }
  .podcast-dock-left {
    gap: 0.6rem;
  }
  .podcast-dock-icon {
    font-size: 1.4rem;
  }

  /* Video Theater mobile */
  .video-playlist-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  /* Header Quick Pills on Mobile */
  .zone-header.gs-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .gs-quick-media-triggers {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    margin-top: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gs-quick-media-triggers::-webkit-scrollbar {
    display: none;
  }
  .gs-media-pill-btn {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
  }
}

/* ==========================================================================
   BREAKPOINT 4: ULTRA-NARROW SCREENS (<= 360px width, e.g. iPhone SE 1st gen)
   ========================================================================== */
@media (max-width: 360px) {
  .gs-media-header-icon {
    display: none;
  }
  .gs-media-title {
    font-size: 0.98rem;
  }
  .memory-grid {
    gap: 0.35rem;
  }
  .scramble-tile {
    width: 32px;
    height: 38px;
    font-size: 1.15rem;
  }
}

/* ==========================================================================
   ACCESSIBILITY: REDUCED MOTION (OPTIMIZES 2015 HARDWARE WITH WEAK GPUS)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .gs-media-modal-card,
  .memory-card-inner,
  .scramble-tile,
  .gs-tab-panel,
  .quiz-opt-btn,
  .podcast-card,
  .ext-game-card {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Grade School Playroom Shortcut Banner (jhs-collections.html)
   ========================================================================== */
.gs-playroom-collections-banner {
  margin-top: 2rem;
  padding: 1.25rem 1.75rem;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px dashed #f59e0b;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.gs-playroom-collections-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.18);
}

.gs-banner-content {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-align: left;
}

.gs-banner-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
  animation: gsBounceSoft 2.5s infinite ease-in-out;
}

.gs-banner-text {
  flex: 1;
}

.gs-banner-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;
  color: #78350f;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gs-banner-desc {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: #92400e;
  line-height: 1.45;
  font-weight: 600;
}

.gs-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85rem 1.4rem;
  border-radius: 99px;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.gs-banner-btn:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.4);
}

@media (max-width: 768px) {
  .gs-playroom-collections-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
  }
  .gs-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .gs-banner-title {
    justify-content: center;
  }
  .gs-banner-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   GRADE SCHOOL TWIN MEGA-PORTALS (RECOMMENDATION 1)
   Two Primary Learning Pillars: The Reading Castle & The Discovery Arcade
   Strictly scoped to Grade School (.gs-corner, .gs-twin-grid, .gs-portal-card)
   Zero impact on Junior High Hub (.jbhs-card)
   ========================================================================== */

.gs-corner .gs-twin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.gs-portal-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf5 45%, #fef9c3 100%);
  border: 2.5px solid #fde68a;
  border-bottom: 6px solid #f59e0b;
  border-radius: 26px;
  padding: 2.25rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.08);
  min-height: 450px;
  cursor: pointer;
}

.gs-portal-card:hover,
.gs-portal-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.2), 0 0 0 2px #fde68a;
  border-bottom-color: #d97706;
}

/* Discovery Arcade portal green/emerald accent */
.gs-portal-card:nth-child(2) {
  background: linear-gradient(180deg, #ffffff 0%, #f7fdfa 45%, #ecfdf5 100%);
  border-color: #a7f3d0;
  border-bottom-color: #10b981;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.08);
}

.gs-portal-card:nth-child(2):hover,
.gs-portal-card:nth-child(2):focus-visible {
  box-shadow: 0 20px 45px rgba(16, 185, 129, 0.2), 0 0 0 2px #a7f3d0;
  border-bottom-color: #059669;
}

/* Whimsical Hero Illustration Badges */
.gs-portal-art-badge {
  position: relative;
  width: clamp(96px, 12vw, 124px);
  height: clamp(96px, 12vw, 124px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.gs-badge-castle {
  background: radial-gradient(circle, #fffbeb 0%, #fef3c7 60%, rgba(253, 230, 138, 0.4) 100%);
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.15), 0 0 0 4px #ffffff;
}

.gs-badge-arcade-art {
  background: radial-gradient(circle, #f0fdf4 0%, #d1fae5 60%, rgba(167, 243, 208, 0.4) 100%);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.15), 0 0 0 4px #ffffff;
}

.gs-portal-hero-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.08));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.gs-portal-card:hover .gs-badge-castle .gs-portal-hero-svg {
  transform: translateY(-6px) scale(1.05);
  filter: drop-shadow(0 12px 20px rgba(217, 119, 6, 0.22));
}

.gs-portal-card:hover .gs-badge-arcade-art .gs-portal-hero-svg {
  transform: translateY(-6px) scale(1.05) rotate(-2deg);
  filter: drop-shadow(0 12px 20px rgba(16, 185, 129, 0.22));
}

.gs-portal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: 100%;
}

.gs-badge-story {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.gs-badge-arcade {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.gs-portal-card .jhs-card-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #78350f;
  margin: 0.5rem 0 0.65rem;
  line-height: 1.3;
}

.gs-portal-card:nth-child(2) .jhs-card-title {
  color: #065f46;
}

.gs-portal-card .jhs-card-desc {
  font-size: 1.02rem;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 1.15rem;
  max-width: 480px;
}

/* Topic / Feature Chips inside Mega-Portals */
.gs-portal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  width: 100%;
}

.gs-topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  background: #ffffff;
  border: 1.5px solid #fde68a;
  color: #92400e;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.gs-portal-card:nth-child(2) .gs-topic-chip {
  border-color: #a7f3d0;
  color: #047857;
}

.gs-topic-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.gs-portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff !important;
  border: none;
  font-weight: 800;
  font-size: 1.02rem;
  padding: 0.88rem 1.65rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
  margin-top: auto;
  min-height: 48px;
  width: 100%;
  max-width: 320px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.gs-portal-btn:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.4);
}

.gs-portal-btn-arcade {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.gs-portal-btn-arcade:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

/* 2015 Laptop Responsive Optimization (1366x768 / short viewports <= 750px) */
@media (max-height: 750px) {
  .gs-portal-card {
    min-height: auto;
    padding: 1.6rem 1.4rem 1.35rem;
    border-radius: 20px;
  }
  .gs-portal-art-badge {
    width: 80px;
    height: 80px;
    margin-bottom: 0.65rem;
  }
  .gs-portal-card .jhs-card-title {
    font-size: 1.35rem;
    margin: 0.35rem 0 0.5rem;
  }
  .gs-portal-card .jhs-card-desc {
    font-size: 0.92rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
  }
  .gs-portal-chips {
    margin-bottom: 0.9rem;
    gap: 0.35rem;
  }
  .gs-topic-chip {
    padding: 0.25rem 0.6rem;
    font-size: 0.76rem;
  }
  .gs-portal-btn {
    padding: 0.75rem 1.35rem;
    font-size: 0.95rem;
    min-height: 44px;
  }
}

/* Mobile Screens (<= 640px) */
@media (max-width: 640px) {
  .gs-corner .gs-twin-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .gs-portal-card {
    min-height: auto;
    padding: 1.6rem 1.25rem 1.4rem;
    border-radius: 20px;
  }
  .gs-portal-art-badge {
    width: 84px;
    height: 84px;
    margin-bottom: 0.75rem;
  }
  .gs-portal-card .jhs-card-title {
    font-size: 1.32rem;
  }
  .gs-portal-card .jhs-card-desc {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  .gs-portal-chips {
    gap: 0.35rem;
    margin-bottom: 1.15rem;
  }
  .gs-topic-chip {
    padding: 0.25rem 0.55rem;
    font-size: 0.74rem;
  }
  .gs-portal-btn {
    width: 100%;
    max-width: 100%;
    padding: 0.82rem;
    font-size: 0.96rem;
    min-height: 46px;
  }
}

/* ==========================================================================
   Libby Aesthetic Book Grid (.bookshelf-grid & .libby-book-item)
   Physical Book Illusion with Realistic Shadows & Dual-Action Buttons
   ========================================================================== */
.bookshelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 3rem 2rem;
  padding: 3rem 0;
}

.libby-book-item:hover { transform: translateY(-4px); }

.libby-book-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 2px 8px 8px 2px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 
    -2px 0 5px rgba(0,0,0,0.05),
    5px 15px 25px rgba(0,0,0,0.15);
  transition: box-shadow 0.3s ease;
  background-color: #f1f5f9;
}

.libby-book-item:hover .libby-book-cover {
  box-shadow: 
    -2px 0 5px rgba(0,0,0,0.05),
    8px 20px 30px rgba(0,0,0,0.25);
}

.libby-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* The "Physical Spine" Illusion */
.book-spine {
  position: absolute;
  top: 0; left: 0; bottom: 0; width: 4%;
  background: linear-gradient(to right, 
    rgba(255,255,255,0.3) 0%, 
    rgba(0,0,0,0.1) 10%, 
    rgba(255,255,255,0.1) 50%, 
    rgba(0,0,0,0.15) 100%);
  border-right: 1px solid rgba(0,0,0,0.1);
  z-index: 2;
}

/* Libby Dual Buttons */
.libby-btn {
  padding: 0.6rem 0;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  flex: 1;
}

.libby-borrow {
  background-color: #d97706;
  color: white;
  border: none;
}
.libby-borrow:hover { background-color: #b45309; }

.libby-sample {
  background-color: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}
.libby-sample:hover { background-color: #fde68a; }


/* Continuous Infinite Marquee Scroll Animation */
@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Shifts exactly half the width plus half the gap to perfectly loop */
    transform: translateX(calc(-50% - 0.75rem)); 
  }
}


/* Spotlight Header Link & Button Interactivity */
.spotlight-title-link:hover h3 {
  color: var(--color-primary-maroon) !important;
}

.spotlight-title-link:hover span:last-child {
  transform: translateX(4px);
}

.spotlight-access-btn:hover {
  background: var(--color-primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(128, 0, 0, 0.25) !important;
}

.spotlight-access-btn:hover svg {
  transform: translateX(3px);
}


/* ==========================================================================
   Spotlight Split-Layout Design (.spotlight-split-layout)
   Stationary Creative Intro Card on Left + Scrolling Carousel on Right
   ========================================================================== */

.spotlight-split-layout {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 5rem;
}

.spotlight-intro-card {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2rem;
  background: linear-gradient(145deg, var(--color-primary-maroon), var(--color-primary-dark));
  color: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(128, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.spotlight-intro-card::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.spotlight-icon-wrap {
  font-size: 2.5rem;
  display: inline-block;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.spotlight-intro-card h3 {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.8rem;
  line-height: 1.2;
  margin: 0.75rem 0 1rem;
  position: relative;
  z-index: 2;
}

.spotlight-intro-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.spotlight-action-btn {
  background: var(--color-secondary-gold);
  color: var(--color-primary-dark);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: fit-content;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.spotlight-action-btn:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  background: #ffe033;
}

/* Ensure Carousel inside Split Layout expands and fills remaining space */
.spotlight-split-layout .jhs-carousel-wrapper {
  flex: 1;
  min-width: 0;
  padding: 1rem 0;
  margin: 0;
  max-width: none;
}

@media screen and (max-width: 900px) {
  .spotlight-split-layout {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
  }

  .spotlight-intro-card {
    flex: none;
    width: 100%;
    padding: 2rem 1.5rem;
  }
}

/* ==========================================================================
   MISSION, VISION & OBJECTIVES (MVO) PAGE
   ========================================================================== */

.mvo-main {
  max-width: 1000px;
  margin: 4rem auto 5rem;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mvo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.mvo-card {
  background: var(--surface-card);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-subtle);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.mvo-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-secondary-gold);
  box-shadow: 0 12px 24px rgba(128, 0, 0, 0.08);
}

.mvo-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary-maroon);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mvo-card h2 svg {
  color: var(--color-secondary-gold);
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.mvo-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.objectives-card {
  border-top: 4px solid var(--color-primary-maroon);
}

.objectives-list {
  list-style: none;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.objectives-list li {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.objectives-list li::before {
  content: 'âœ“';
  color: var(--color-secondary-gold);
  font-weight: 900;
  font-size: 1.1rem;
  background: rgba(128, 0, 0, 0.05);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ==========================================================================
   GLOBAL FLOATING CHAT WIDGET (ASK PIA)
   ========================================================================== */

.floating-chat-btn { position: fixed; bottom: 2rem; right: 2.5rem; width: 65px; height: 65px; border-radius: 50%; background-color: var(--color-primary-maroon); color: white; border: none; box-shadow: 0 4px 15px rgba(128, 0, 0, 0.4); cursor: pointer; z-index: 9999; display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease, background-color 0.3s; }
.floating-chat-btn:hover { transform: scale(1.1); background-color: var(--color-secondary-gold); color: var(--color-primary-dark); }
.chat-notification-dot { position: absolute; top: 12px; right: 14px; width: 12px; height: 12px; background: #10B981; border: 2px solid white; border-radius: 50%; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

@media (max-width: 480px) {
  .floating-chat-btn {
    bottom: 1rem;
    right: 1rem;
    width: 55px;
    height: 55px;
  }
  .pia-modal-card {
    right: 1rem;
    bottom: 5rem;
    width: calc(100vw - 2rem);
    max-height: 80vh;
  }
}

/* ==========================================================================
   IMMERSIVE READER & FOCUS MODE (MODAL ENHANCEMENTS)
   ========================================================================== */

/* Immersive Reader Tool Buttons */
.tool-btn {
  background: #fff;
  border: 1px solid #d97706;
  color: #d97706;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 100px;
}
.tool-btn:hover {
  background: #fef3c7;
}
.tool-btn.audio-playing {
  background: #d97706;
  color: white;
  animation: pulse-audio 2s infinite;
}
@keyframes pulse-audio {
  0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(217, 119, 6, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

/* Focus Mode (Dark Theme Overrides) */
.modal-content.focus-mode {
  background: #0f172a;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.9);
}
.modal-content.focus-mode .modal-header {
  background: #020617;
  border-bottom: 1px solid #1e293b;
  color: #94a3b8;
}
.modal-content.focus-mode .close-btn {
  color: #64748b;
}
.modal-content.focus-mode .close-btn:hover {
  color: #cbd5e0;
}
.modal-content.focus-mode .modal-details {
  background: #0f172a;
  border-right: 1px solid #1e293b;
}
.modal-content.focus-mode #modalDetailsContent p {
  color: #cbd5e0;
  border-bottom-color: #1e293b;
}
.modal-content.focus-mode #modalDetailsContent strong {
  color: #64748b;
}
.modal-content.focus-mode #modalDetailsContent .modal-category-badge,
.modal-content.focus-mode #modalDetailsContent .jhs-book-badge {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
}
.modal-content.focus-mode .modal-nav, 
.modal-content.focus-mode .immersive-controls {
  border-top-color: #1e293b !important;
}
.modal-content.focus-mode .immersive-controls span {
  color: #475569 !important;
}
.modal-content.focus-mode .nav-btn {
  background-color: #334155;
  color: #94a3b8;
}
.modal-content.focus-mode .nav-btn:hover:not(:disabled) {
  background-color: #475569;
  color: white;
}
.modal-content.focus-mode .tool-btn {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}
.modal-content.focus-mode .tool-btn:hover {
  background: #334155;
  color: white;
}
.modal-content.focus-mode .tool-btn.audio-playing {
  background: #475569;
  color: white;
  border-color: #475569;
}
.modal-content.focus-mode .modal-preview {
  background: #020617;
}

/* ==========================================================================
   IMMERSIVE READER & FULLSCREEN THEME SUPPORT
   ========================================================================== */

/* Fullscreen Display Support */
.modal-content:fullscreen,
.modal-content:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  border: none;
}

/* Fullscreen Layout Overrides */
.modal-content:fullscreen .modal-details,
.modal-content:-webkit-full-screen .modal-details {
  display: none !important;
}
.modal-content:fullscreen .modal-header,
.modal-content:-webkit-full-screen .modal-header {
  display: none !important;
}
.modal-content:fullscreen .modal-preview,
.modal-content:-webkit-full-screen .modal-preview {
  flex: 1;
  height: 100vh;
  width: 100vw;
}

/* Fullscreen Page Background: Dark Mode (Default) */
.modal-content:fullscreen,
.modal-content:-webkit-full-screen,
.modal-content:fullscreen .modal-body,
.modal-content:-webkit-full-screen .modal-body,
.modal-content:fullscreen .modal-preview,
.modal-content:-webkit-full-screen .modal-preview {
  background-color: #0b1120 !important;
  transition: background-color 0.3s ease;
}
.modal-content:fullscreen .modal-preview iframe,
.modal-content:-webkit-full-screen .modal-preview iframe {
  background-color: #0b1120;
}

/* Fullscreen Page Background: Light Mode Override (When .fs-light-theme is active) */
.modal-content.fs-light-theme:fullscreen,
.modal-content.fs-light-theme:-webkit-full-screen,
.modal-content.fs-light-theme:fullscreen .modal-body,
.modal-content.fs-light-theme:-webkit-full-screen .modal-body,
.modal-content.fs-light-theme:fullscreen .modal-preview,
.modal-content.fs-light-theme:-webkit-full-screen .modal-preview {
  background-color: #f8fafc !important;
}
.modal-content.fs-light-theme:fullscreen .modal-preview iframe,
.modal-content.fs-light-theme:-webkit-full-screen .modal-preview iframe {
  background-color: #ffffff;
}

/* Dynamic Island Fullscreen Music Pill (Option 2 - Minimal Distraction-Free) */
.fs-music-player {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.42);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 6px 14px;
  display: none;
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  color: #e2e8f0;
  width: 104px;
  overflow: hidden;
  user-select: none;
  transition: width 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              border-radius 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease,
              padding 0.3s ease;
}
.modal-content:fullscreen .fs-music-player,
.modal-content:-webkit-full-screen .fs-music-player {
  display: flex;
}
.fs-music-player:hover,
.fs-music-player:focus-within {
  width: 170px;
  border-radius: 18px;
  padding: 10px 14px 12px;
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

/* Top pill bar (always visible) */
.fs-pill-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 26px;
}
.fs-pill-left {
  display: flex;
  align-items: center;
  gap: 7px;
}
.fs-pill-icon {
  font-size: 0.85rem;
  line-height: 1;
  opacity: 0.9;
}
.fs-pill-play {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f59e0b;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s ease;
}
.fs-pill-play:hover {
  background: #f59e0b;
  color: #0f172a;
  transform: scale(1.08);
}
.fs-music-player:hover .fs-pill-play,
.fs-music-player:focus-within .fs-pill-play {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.6);
  width: 0;
  margin: 0;
}

/* Expandable Drawer (Reveals on hover) */
.fs-player-drawer {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              margin-top 0.3s ease;
  margin-top: 0;
}
.fs-music-player:hover .fs-player-drawer,
.fs-music-player:focus-within .fs-player-drawer {
  max-height: 90px;
  opacity: 1;
  pointer-events: auto;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 8px;
}

.fs-player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
}
.fs-player-btn {
  background: none;
  border: none;
  color: #cbd5e0;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.fs-player-btn:hover {
  color: #f59e0b;
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.1);
}
.fs-main-play {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  width: 34px;
  height: 34px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}
.fs-main-play:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0f172a;
  transform: scale(1.12);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.6);
}

/* Icon State Toggle */
.fs-icon-pause { display: none; }
.fs-icon-play { display: block; }
.fs-music-player.is-playing .fs-icon-play { display: none; }
.fs-music-player.is-playing .fs-icon-pause { display: block; }

/* Volume bar & Mute */
.fs-volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
}
.fs-mute-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  transition: color 0.2s ease;
}
.fs-mute-btn:hover {
  color: #f59e0b;
}
.fs-volume-slider {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  accent-color: #f59e0b;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.18);
}

/* Mini CSS Equalizer Animation */
.mini-eq {
  display: flex;
  gap: 2.5px;
  align-items: flex-end;
  height: 14px;
}
.eq-bar {
  width: 3px;
  background: #f59e0b;
  border-radius: 1.5px;
  height: 3px;
  transition: height 0.15s ease;
}
.is-playing .eq-bar,
.fs-music-player.is-playing .eq-bar {
  animation: eq-bounce 1s infinite alternate ease-in-out;
}
.eq-bar:nth-child(1) { animation-delay: 0.0s; }
.eq-bar:nth-child(2) { animation-delay: 0.25s; }
.eq-bar:nth-child(3) { animation-delay: 0.5s; }
.eq-bar:nth-child(4) { animation-delay: 0.15s; }
@keyframes eq-bounce {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* ==========================================================================
   HISTORY & HERITAGE PAGE STYLING
   ========================================================================== */

.history-hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-maroon) 100%);
  color: #ffffff;
  padding: 4.5rem 1.5rem 3.5rem;
  text-align: center;
  border-bottom: 3px solid var(--color-secondary-gold);
}

.history-hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.history-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid var(--color-secondary-gold);
  color: var(--color-secondary-gold);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.history-title {
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: transparent;
  background: linear-gradient(to right, var(--color-secondary-gold) 0%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.history-subtitle {
  font-size: 1.15rem;
  color: #e2e8f0;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.history-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

/* Genesis Overview Card */
.history-intro-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 2.5rem;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
  border-left: 5px solid var(--color-primary-maroon);
}

.history-intro-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.history-intro-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.history-intro-header h2 {
  font-size: 1.65rem;
  color: var(--color-primary-dark);
  font-weight: 700;
  margin: 0;
}

.history-intro-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.history-intro-quote {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(128, 0, 0, 0.03);
  border-left: 3px solid var(--color-secondary-gold);
  border-radius: var(--radius-sm);
  font-style: italic;
  color: var(--color-primary-dark);
  font-weight: 500;
}

/* Timeline Layout */
.timeline-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.timeline-section-header h2 {
  font-size: 2rem;
  color: var(--color-primary-dark);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.timeline-section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.history-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 0;
}

.history-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-secondary-gold) 0%, var(--color-primary-maroon) 100%);
  border-radius: 2px;
}

@media screen and (min-width: 769px) {
  .history-timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-node {
  position: absolute;
  left: 30px;
  top: 0;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary-dark);
  border: 3px solid var(--color-secondary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary-gold);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 2;
  transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-node {
  transform: translateX(-50%) scale(1.15);
  background: var(--color-primary-maroon);
}

.timeline-card {
  position: relative;
  margin-left: 65px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(128, 0, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.5);
}

.timeline-year-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary-maroon) 0%, var(--color-primary-dark) 100%);
  color: var(--color-secondary-gold);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.timeline-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.65rem;
}

.timeline-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.timeline-highlights {
  margin-top: 1rem;
  padding-left: 1.25rem;
  list-style: disc;
  color: var(--text-main);
  font-size: 0.9rem;
  line-height: 1.6;
}

.timeline-highlights li {
  margin-bottom: 0.35rem;
}

@media screen and (min-width: 769px) {
  .timeline-node {
    left: 50%;
  }

  .timeline-item:nth-child(odd) .timeline-card {
    width: calc(50% - 45px);
    margin-left: 0;
    margin-right: auto;
    text-align: right;
  }

  .timeline-item:nth-child(odd) .timeline-highlights {
    padding-left: 0;
    padding-right: 1.25rem;
    list-style-position: inside;
  }

  .timeline-item:nth-child(even) .timeline-card {
    width: calc(50% - 45px);
    margin-left: auto;
    text-align: left;
  }
}

/* History Pillars Section */
.history-pillars-section {
  margin-top: 5rem;
  text-align: center;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--color-secondary-gold);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  text-align: center;
  transition: all 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(128, 0, 0, 0.08);
}

.pillar-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(128, 0, 0, 0.06);
  border: 2px solid var(--color-secondary-gold);
  color: var(--color-primary-maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.65rem;
}

.pillar-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* History Task Force & Administrators */
.history-taskforce-section {
  margin-top: 5rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.taskforce-section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 2.5rem;
}

.taskforce-section-header h2 {
  font-size: 1.85rem;
  color: var(--color-primary-dark);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.taskforce-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.taskforce-card {
  background: #fdfbf7;
  border: 1px solid rgba(128, 0, 0, 0.1);
  border-left: 4px solid var(--color-primary-maroon);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.15rem;
  transition: all 0.25s ease;
}

.taskforce-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(128, 0, 0, 0.08);
  border-left-color: var(--color-secondary-gold);
}

.taskforce-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.25rem;
}

.taskforce-role {
  font-size: 0.825rem;
  color: var(--color-primary-maroon);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.taskforce-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  line-height: 1.45;
}

/* Programs Expansion Grid */
.programs-expansion-card {
  margin-top: 4rem;
  background: linear-gradient(135deg, #fdfbf7 0%, #ffffff 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.75rem 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.programs-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.program-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid rgba(128, 0, 0, 0.15);
  color: var(--color-primary-dark);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.program-tag:hover {
  background: var(--color-primary-maroon);
  color: #ffffff;
  border-color: var(--color-primary-maroon);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(128, 0, 0, 0.15);
}

.program-tag svg {
  color: var(--color-secondary-gold);
}

/* History Quote Banner */
.history-quote-banner {
  background: linear-gradient(135deg, var(--color-primary-maroon) 0%, var(--color-primary-dark) 100%);
  color: #ffffff;
  padding: 3rem 2rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-secondary-gold);
  margin-top: 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(128, 0, 0, 0.2);
}

.history-quote-banner::after {
  content: 'â€œ';
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 10rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: rgba(255, 215, 0, 0.08);
  pointer-events: none;
}

.history-quote-banner h3 {
  font-size: 1.85rem;
  color: var(--color-secondary-gold);
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 0.85rem;
}

.history-quote-banner p {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.92);
}

/* ==========================================================================
   College Learning Resource Center Portal & Institutional Thesis Repository
   ========================================================================== */

/* College Portal Scoped Metallic Gold & Rich Academic Foundation */
.college-portal-body {
  --color-secondary-gold: #d4af37;
  --color-gold-champagne: #f7df94;
  --color-gold-antique: #9e7b27;
  --gold-metallic-grad: linear-gradient(135deg, #f5d061 0%, #d4af37 50%, #9e7b27 100%);
  --gold-glow-shadow: 0 8px 24px rgba(212, 175, 55, 0.28);
}

/* Collegiate Hero Design (High-Impact Research Console) */
.college-hero {
  position: relative;
  overflow: hidden;
  background-color: #0c0202; /* Rich Dark Maroon foundation */
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 3.25rem 1.5rem 4rem;
  color: #ffffff;
}

/* Cinematic Blended Splitting */
.hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(115deg, rgba(12, 2, 2, 0.93) 0%, rgba(20, 3, 3, 0.85) 45%, rgba(45, 6, 6, 0.65) 75%, rgba(12, 2, 2, 0.75) 100%),
                    url('https://images.unsplash.com/photo-1521587760476-6c12a4b040da?q=80&w=1920&auto=format&fit=crop'); /* High-impact university library interior */
  background-size: cover;
  background-position: center right;
  opacity: 0.95;
  filter: saturate(1.1) brightness(0.95);
}

/* Geometric High-Tech Cyber Mesh */
.hero-mesh-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: linear-gradient(to right, rgba(212, 175, 55, 0.04) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(212, 175, 55, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 15% 30%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 15% 30%, black, transparent 80%);
  opacity: 0.65;
  pointer-events: none;
}

.college-hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Badges & Labels */
.college-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  color: #e6c364;
  padding: 0.4rem 1.15rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.15);
}

.college-hero-title {
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: #d4af37;
  background: linear-gradient(135deg, #ffffff 5%, #f7df94 32%, #d4af37 68%, #a67c1e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  text-transform: capitalize;
}

.college-hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  line-height: 1.5;
  max-width: 650px;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Student Personalization Greeting */
.college-student-greeting {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1.1rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: #ffffff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.college-student-greeting strong {
  color: #f7df94;
}

.greeting-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.15); }
}

/* Glassmorphic Search Desk */
.college-hero-search-wrapper {
  width: 100%;
  max-width: 720px;
  background: rgba(15, 23, 42, 0.62);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  padding: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.college-hero-search-wrapper:focus-within {
  border-color: #d4af37;
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.25), 0 0 0 1px rgba(212, 175, 55, 0.3);
}

.college-hero-search-form {
  display: flex;
  align-items: center;
}

.search-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0aec0;
  padding: 0 0.8rem;
}

.hero-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.6rem 0.5rem;
}
.hero-search-input::placeholder {
  color: #718096;
}

.hero-search-btn {
  background: linear-gradient(135deg, #f5d061 0%, #d4af37 50%, #9e7b27 100%);
  color: #2b0404;
  font-weight: 850;
  font-size: 0.88rem;
  border-radius: 10px;
  padding: 0.65rem 1.4rem;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-search-btn:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f7df94 40%, #d4af37 100%);
  color: #2b0404;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.4);
}
.search-kbd-hint {
  font-weight: 500;
  opacity: 0.65;
  font-size: 0.78rem;
}

/* College Department Filtering tag Row */
.college-discipline-filter-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}
.discipline-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #a0aec0;
  letter-spacing: 0.8px;
}
.discipline-pills-list {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.discipline-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.38rem 0.85rem;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s;
}
.discipline-pill:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.5);
  color: #f7df94;
}
.discipline-pill.active {
  background: linear-gradient(135deg, #eed075 0%, #d4af37 60%, #ab8224 100%);
  border-color: #d4af37;
  color: #2b0404;
  font-weight: 850;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.32);
}

/* Lower Meta Status Row & CTA's */
.college-hero-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  border-top: 1.5px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.8rem;
}

.meta-badges-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.college-schedule-badge,
.college-facility-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: #cbd5e1;
}

.college-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5d061, #c59b27);
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.6);
  display: inline-block;
}
.facility-status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
  animation: mini-glowing 2s infinite alternate;
}

@keyframes mini-glowing {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.college-cta-group {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* CTA Design Upgrade */
.college-btn-primary {
  background: linear-gradient(135deg, #f5d061 0%, #d4af37 50%, #9e7b27 100%);
  color: #2b0404;
  font-weight: 850;
  font-size: 0.85rem;
  padding: 0.72rem 1.35rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.college-btn-primary:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f7df94 40%, #d4af37 100%);
  color: #2b0404;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
  transform: translateY(-1.5px);
}

.college-btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.65rem 1.35rem;
  border-radius: 8px;
  transition: all 0.2s;
}
.college-btn-secondary:hover {
  border-color: #d4af37;
  color: #f7df94;
  background: rgba(212, 175, 55, 0.1);
}
/* Smartphone Adjustments and Vertical Stacking */
@media screen and (max-width: 900px) {
  .college-hero {
    min-height: auto;
    padding: 2.75rem 1.25rem 2.5rem;
  }
  .hero-bg-media {
    background-position: 70% center; /* Adjust camera viewpoint for small viewports */
  }
  .college-hero-container {
    align-items: stretch;
  }
  .college-hero-title {
    font-size: 2.3rem;
  }
  .college-hero-subtitle {
    font-size: 1.1rem;
    max-width: 100%;
  }
  .college-discipline-filter-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .college-hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .college-cta-group {
    width: 100%;
  }
  .college-btn-primary,
  .college-btn-secondary {
    flex: 1 1 100%;
    width: 100%;
    text-align: center;
  }
}
/* College Section Wrappers */
.college-main-content {
  background: #f8fafc;
  min-height: 80vh;
  padding-bottom: 5rem;
}

.college-section {
  max-width: 1260px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 1rem;
}

.section-tag-pill {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary-maroon);
  background: rgba(128, 0, 0, 0.08);
  border: 1px solid rgba(128, 0, 0, 0.18);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.65rem;
}

.college-section-header {
  margin-bottom: 2rem;
  position: relative;
}

.college-section-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--color-primary-dark);
  letter-spacing: -0.01em;
  margin: 0 0 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.college-section-subtitle {
  font-size: 0.98rem;
  color: #64748b;
  margin: 0;
  max-width: 800px;
  line-height: 1.55;
}

/* Digital Resources Grid */
.college-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 992px) {
  .college-resources-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.college-resource-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.6rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.college-resource-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 28px rgba(128, 0, 0, 0.08);
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.college-resource-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #fdf2f2;
  border: 1.5px solid rgba(128, 0, 0, 0.2);
  color: var(--color-primary-maroon);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.college-resource-card:hover .college-resource-badge {
  background: var(--color-primary-maroon);
  color: #f7df94;
  border-color: var(--color-primary-maroon);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
}

.access-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.access-pill.sso {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.access-pill.open {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.access-pill.remote {
  background: #fefce8;
  color: #a16207;
  border: 1px solid #fef08a;
}

.access-pill.screening {
  background: #fdf2f8;
  color: #be185d;
  border: 1px solid #fbcfe8;
}

.college-resource-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.25rem;
}

.college-resource-subtitle {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary-maroon);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.college-resource-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 1rem;
  flex: 1;
}

.card-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.mini-tag {
  font-size: 0.74rem;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.college-resource-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #f1f5f9;
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 1px solid #cbd5e1;
  transition: all 0.2s ease;
  margin-top: auto;
}

.college-resource-card:hover .college-resource-action {
  background: var(--color-primary-maroon);
  color: #ffffff;
  border-color: var(--color-primary-maroon);
}

/* ==========================================================================
   Section 2: Institutional Thesis Repository Gateway Card
   ========================================================================== */

.college-thesis-gateway-card {
  background: linear-gradient(135deg, #1f0303 0%, #3d0505 50%, #580808 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 18px;
  color: #ffffff;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), 0 0 20px rgba(212, 175, 55, 0.08);
  margin-top: 1.5rem;
}

.college-thesis-gateway-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.04) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.gateway-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.gateway-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.14);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  color: #f7df94;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.gateway-stat-pill {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
}

.gateway-stat-pill strong {
  color: #f7df94;
  font-size: 1.05rem;
  text-shadow: 0 1px 8px rgba(212, 175, 55, 0.25);
}

.gateway-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 0.85rem;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.gateway-desc {
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  max-width: 820px;
  margin: 0 0 1.5rem;
  position: relative;
  z-index: 1;
}

.gateway-programs-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.65rem;
  position: relative;
  z-index: 1;
}

.gateway-programs-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.program-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.program-chip:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: #d4af37;
  color: #f7df94;
  transform: translateY(-1px);
}

.program-chip.chip-more {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.45);
  color: #f7df94;
  font-weight: 700;
}

.gateway-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 1;
}

.gateway-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #f5d061 0%, #d4af37 50%, #9e7b27 100%);
  color: #2b0404;
  font-weight: 850;
  font-size: 0.98rem;
  padding: 0.8rem 1.65rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 2px 10px rgba(212, 175, 55, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gateway-launch-btn:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f7df94 40%, #d4af37 100%);
  color: #2b0404;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 4px 16px rgba(212, 175, 55, 0.45);
}

.gateway-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}

/* Senior Capstone & Defense Toolkit */
.defense-toolkit-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 2.25rem;
  margin-top: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.toolkit-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1.5px solid #f1f5f9;
}

.toolkit-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(247, 223, 148, 0.25) 0%, rgba(212, 175, 55, 0.12) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  color: #9e7b27;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.12);
}

.toolkit-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 0 0 0.25rem;
}

.toolkit-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.toolkit-item {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.toolkit-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(128, 0, 0, 0.06);
  transform: translateY(-2px);
}

.toolkit-item-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(128, 0, 0, 0.1);
  color: var(--color-primary-maroon);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.toolkit-item h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.45rem;
}

.toolkit-item p {
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 1.25rem;
  flex: 1;
}

.toolkit-action-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-maroon);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
}

.toolkit-action-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* College Services Grid */
.college-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.college-service-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.6rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.college-service-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(128, 0, 0, 0.07);
  transform: translateY(-2px);
}

.college-service-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fdf2f2;
  border: 1px solid rgba(128, 0, 0, 0.18);
  color: var(--color-primary-maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.college-service-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 0 0 0.5rem;
}

.college-service-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 0.85rem;
  flex: 1;
}

.facility-spec-list {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin: 0.5rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  gap: 0.5rem;
}

.spec-label {
  color: #64748b;
  font-weight: 600;
}

.spec-val {
  color: #0f172a;
  font-weight: 700;
  text-align: right;
}

/* ==========================================================================
   Institutional Header, Navigation & Brand Horizon Refinements
   Applied across College Portal, Main Campus Index, and all Academic Pages
   ========================================================================== */

/* Institutional Header: Maroon with White-to-Maroon Horizon Logo Dissolve */
.college-portal-body .site-header,
.main-campus-body .site-header,
.site-header.institutional-header {
  background-color: var(--color-primary-maroon);
  border-bottom: 3px solid #d4af37;
  box-shadow: var(--shadow-header);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.college-portal-body .site-header .header-container,
.main-campus-body .site-header .header-container,
.site-header.institutional-header .header-container {
  max-width: 1420px;
  width: 100%;
  gap: clamp(1rem, 1.4vw, 1.5rem);
  padding: 0 1.5rem !important;
  display: flex;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

/* Brand Link with Horizontal, Ultra-Smooth White-to-Maroon Gradient Horizon */
.college-portal-body .brand-link,
.main-campus-body .brand-link,
.institutional-header .brand-link {
  display: flex;
  align-items: center;
  align-self: stretch;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin: 0;
  margin-left: -1.5rem;
  padding: 0.55rem 4.5rem 0.55rem 0.75rem;
  background: linear-gradient(
    to right,
    #ffffff 0%,
    #ffffff calc(100% - 4.2rem),
    rgba(255, 255, 255, 0.88) calc(100% - 3.4rem),
    rgba(255, 255, 255, 0.62) calc(100% - 2.5rem),
    rgba(255, 255, 255, 0.35) calc(100% - 1.6rem),
    rgba(255, 255, 255, 0.12) calc(100% - 0.8rem),
    rgba(255, 255, 255, 0.02) calc(100% - 0.2rem),
    rgba(255, 255, 255, 0) 100%
  );
}

/* Extension to left viewport edge on ultra-wide screens */
.college-portal-body .brand-link::before,
.main-campus-body .brand-link::before,
.institutional-header .brand-link::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 0;
  bottom: 0;
  width: 100vw;
  background-color: #ffffff;
  pointer-events: none;
}

.college-header-logo {
  height: 60px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 3;
  transition: transform var(--transition-fast);
}

.brand-link:hover .college-header-logo {
  transform: scale(1.02);
}

.college-portal-body .site-header .nav-menu,
.main-campus-body .site-header .nav-menu,
.institutional-header .nav-menu {
  display: flex;
  align-items: center;
  align-self: center;
  padding: 0.5rem 0;
  flex-shrink: 0;
}

.college-portal-body .site-header .nav-list,
.main-campus-body .site-header .nav-list,
.institutional-header .nav-list {
  gap: clamp(0.75rem, 1.1vw, 1.25rem);
  flex-wrap: nowrap !important;
}

/* Hard Anti-Wrap Lock Across All Header Navigation Elements */
.college-portal-body .site-header .nav-item,
.main-campus-body .site-header .nav-item,
.institutional-header .nav-item,
#headerAuthAction,
.header-student-item,
.college-portal-body .site-header .nav-signin-btn,
.college-portal-body .site-header .nav-signout-btn,
.college-portal-body .header-student-badge,
.main-campus-body .site-header .nav-signin-btn,
.main-campus-body .site-header .nav-signout-btn,
.main-campus-body .header-student-badge {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* High-Contrast White Navigation Typography on Maroon Surface */
.college-portal-body .site-header .nav-link,
.main-campus-body .site-header .nav-link,
.institutional-header .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.2rem;
  transition: color var(--transition-fast);
  position: relative;
}

.college-portal-body .site-header .nav-link::after,
.main-campus-body .site-header .nav-link::after,
.institutional-header .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #d4af37;
  transition: width var(--transition-smooth);
  border-radius: 2px;
}

.college-portal-body .site-header .nav-link:hover,
.college-portal-body .site-header .nav-link.active,
.main-campus-body .site-header .nav-link:hover,
.main-campus-body .site-header .nav-link.active,
.institutional-header .nav-link:hover,
.institutional-header .nav-link.active {
  color: #ffffff;
}

.college-portal-body .site-header .nav-link:hover::after,
.college-portal-body .site-header .nav-link.active::after,
.main-campus-body .site-header .nav-link:hover::after,
.main-campus-body .site-header .nav-link.active::after,
.institutional-header .nav-link:hover::after,
.institutional-header .nav-link.active::after {
  width: 100%;
}

.college-portal-body .site-header .dropdown-toggle,
.main-campus-body .site-header .dropdown-toggle,
.institutional-header .dropdown-toggle {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.college-portal-body .site-header .dropdown-toggle:hover,
.college-portal-body .site-header .nav-dropdown:hover .dropdown-toggle,
.college-portal-body .site-header .nav-dropdown.open .dropdown-toggle,
.main-campus-body .site-header .dropdown-toggle:hover,
.main-campus-body .site-header .nav-dropdown:hover .dropdown-toggle,
.main-campus-body .site-header .nav-dropdown.open .dropdown-toggle,
.institutional-header .dropdown-toggle:hover,
.institutional-header .nav-dropdown:hover .dropdown-toggle,
.institutional-header .nav-dropdown.open .dropdown-toggle {
  color: #ffffff;
}

.college-portal-body .site-header .dropdown-arrow,
.main-campus-body .site-header .dropdown-arrow,
.institutional-header .dropdown-arrow {
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.25s ease, color 0.2s ease;
}

.college-portal-body .site-header .nav-dropdown:hover .dropdown-arrow,
.main-campus-body .site-header .nav-dropdown:hover .dropdown-arrow,
.institutional-header .nav-dropdown:hover .dropdown-arrow {
  color: #d4af37;
  transform: rotate(180deg);
}

/* Return to Main Campus Capsule Button */
.nav-campus-return {
  padding: 0.35rem 0.9rem !important;
  font-size: 0.85rem !important;
  white-space: nowrap;
  border: 1px solid rgba(212, 175, 55, 0.5) !important;
  color: #f7df94 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  font-weight: 700 !important;
  transition: all 0.2s ease;
}

.nav-campus-return:hover {
  background: linear-gradient(135deg, #f5d061 0%, #d4af37 50%, #9e7b27 100%) !important;
  color: #2b0404 !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
  transform: translateX(-2px);
}

/* Sign In & Sign Out Action Buttons on Maroon Header */
.college-portal-body .site-header .nav-signin-btn#openLoginBtn,
.main-campus-body .site-header .nav-signin-btn#openLoginBtn,
.institutional-header .nav-signin-btn#openLoginBtn {
  background: transparent;
  color: #f7df94;
  border: 1.5px solid #d4af37;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.college-portal-body .site-header .nav-signin-btn#openLoginBtn:hover,
.main-campus-body .site-header .nav-signin-btn#openLoginBtn:hover,
.institutional-header .nav-signin-btn#openLoginBtn:hover {
  background: linear-gradient(135deg, #f5d061 0%, #d4af37 50%, #9e7b27 100%);
  color: #2b0404;
  border-color: #d4af37;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}

.college-portal-body .site-header .nav-signout-btn#signOutBtn,
.college-portal-body .site-header .nav-signout-btn#headerSignOutBtn,
.main-campus-body .site-header .nav-signout-btn#headerSignOutBtn,
.institutional-header .nav-signout-btn {
  background: transparent;
  color: #fca5a5;
  border: 1.5px solid #ef4444;
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.college-portal-body .site-header .nav-signout-btn#signOutBtn:hover,
.college-portal-body .site-header .nav-signout-btn#headerSignOutBtn:hover,
.main-campus-body .site-header .nav-signout-btn#headerSignOutBtn:hover,
.institutional-header .nav-signout-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Student Badge Pill on Maroon Header */
.college-portal-body .header-student-badge,
.main-campus-body .header-student-badge,
.institutional-header .header-student-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  color: #ffffff;
  padding: 0.28rem 0.72rem;
  font-size: 0.82rem;
  max-width: 220px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.college-portal-body .student-badge-avatar,
.main-campus-body .student-badge-avatar,
.institutional-header .student-badge-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary-dark);
  border: 1.5px solid #d4af37;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #f7df94;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.college-portal-body .student-badge-name,
.main-campus-body .student-badge-name,
.institutional-header .student-badge-name {
  color: #ffffff;
  font-weight: 700;
  max-width: 115px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.college-portal-body .student-badge-role,
.main-campus-body .student-badge-role,
.institutional-header .student-badge-role {
  color: #f7df94;
  font-size: 0.72rem;
  max-width: 155px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Option A: Staff Header Badge Quick-Menu Dropdown */
.header-student-item:not(.is-staff-session) .staff-badge-caret,
.header-student-item:not(.is-staff-session) .staff-badge-dropdown-menu {
  display: none !important;
}

.header-student-badge {
  cursor: pointer;
}

.header-student-item.is-staff-session .header-student-badge {
  max-width: 260px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-student-item.is-staff-session .header-student-badge:hover,
.header-student-item.is-staff-session:hover .header-student-badge,
.header-student-item.is-staff-session.open .header-student-badge {
  background: rgba(255, 255, 255, 0.2);
  border-color: #d4af37;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.staff-badge-caret {
  margin-left: 0.15rem;
  color: #f7df94;
  flex-shrink: 0;
}

.staff-badge-dropdown-menu {
  left: auto;
  right: 0;
  min-width: 255px;
  transform: translateY(15px);
}

.nav-dropdown.is-staff-session:hover .staff-badge-dropdown-menu,
.nav-dropdown.is-staff-session:focus-within .staff-badge-dropdown-menu,
.nav-dropdown.is-staff-session.open .staff-badge-dropdown-menu {
  transform: translateY(5px);
}

.staff-dropdown-header {
  padding: 0.35rem 1.25rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-maroon);
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 0.25rem;
}

/* Institutional Header Responsive Layout */
@media (max-width: 1024px) {
  .college-portal-body .site-header .header-container,
  .main-campus-body .site-header .header-container,
  .institutional-header .header-container {
    padding: 0 1rem !important;
  }

  .college-portal-body .brand-link,
  .main-campus-body .brand-link,
  .institutional-header .brand-link {
    margin-left: -1rem;
    padding: 0.45rem 3.6rem 0.45rem 0.5rem;
    background: linear-gradient(
      to right,
      #ffffff 0%,
      #ffffff calc(100% - 3.2rem),
      rgba(255, 255, 255, 0.88) calc(100% - 2.4rem),
      rgba(255, 255, 255, 0.60) calc(100% - 1.6rem),
      rgba(255, 255, 255, 0.28) calc(100% - 0.9rem),
      rgba(255, 255, 255, 0.05) calc(100% - 0.3rem),
      rgba(255, 255, 255, 0) 100%
    );
  }

  .college-header-logo {
    height: 48px;
    max-width: 190px;
  }

  .college-portal-body .nav-toggle,
  .main-campus-body .nav-toggle,
  .institutional-header .nav-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
  }

  .college-portal-body .hamburger-bar,
  .main-campus-body .hamburger-bar,
  .institutional-header .hamburger-bar {
    background-color: #ffffff;
  }

  .college-portal-body .nav-menu,
  .main-campus-body .nav-menu,
  .institutional-header .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-primary-maroon);
    border-bottom: 3px solid #d4af37;
    display: none;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  }

  .college-portal-body .nav-menu.open,
  .main-campus-body .nav-menu.open,
  .institutional-header .nav-menu.open {
    display: block;
  }

  .college-portal-body .nav-list,
  .main-campus-body .nav-list,
  .institutional-header .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }

  .college-portal-body .nav-item,
  .main-campus-body .nav-item,
  .institutional-header .nav-item {
    width: 100%;
  }

  .college-portal-body .header-student-item,
  .main-campus-body .header-student-item,
  .institutional-header .header-student-item {
    margin-top: 0.5rem;
  }

  .header-student-item:not(.is-staff-session) .header-student-badge {
    width: auto;
    justify-content: flex-start;
  }

  .header-student-item.is-staff-session .header-student-badge {
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
  }

  .header-student-item.is-staff-session .student-badge-info {
    margin-right: auto;
  }

  .staff-badge-dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-top: none;
    background: rgba(0, 0, 0, 0.22);
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
    display: none;
    padding: 0.35rem 0;
  }

  .nav-dropdown.is-staff-session:hover .staff-badge-dropdown-menu,
  .nav-dropdown.is-staff-session:focus-within .staff-badge-dropdown-menu,
  .nav-dropdown.is-staff-session.open .staff-badge-dropdown-menu {
    display: block;
    transform: none !important;
  }

  .staff-badge-dropdown-menu .staff-dropdown-header {
    color: #f7df94;
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  .staff-badge-dropdown-menu .dropdown-item,
  .staff-badge-dropdown-menu .dropdown-portal-title {
    color: rgba(255, 255, 255, 0.94);
  }

  .staff-badge-dropdown-menu .dropdown-portal-sub {
    color: rgba(255, 255, 255, 0.72);
  }

  .staff-badge-dropdown-menu .dropdown-item:hover,
  .staff-badge-dropdown-menu .dropdown-item:focus {
    background-color: rgba(255, 215, 0, 0.16);
    color: var(--color-secondary-gold);
  }

  .main-campus-body .nav-menu.open {
    max-height: 80vh;
    overflow-y: auto;
  }
}

/* ==========================================================================
   Campus Footer Refinements (The Oxford Oxblood Edition)
   Applied to College Portal & Main Campus Index
   ========================================================================== */

.college-portal-body .site-footer,
.main-campus-body .site-footer {
  background: linear-gradient(180deg, #2c0505 0%, #1c0303 55%, #0e0101 100%);
  border-top: none;
  position: relative;
  overflow: hidden;
  color: #f1f5f9;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

/* Metallic Gold Top Accent Ribbon with Ambient Glow */
.college-portal-body .site-footer::before,
.main-campus-body .site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.15) 0%, #f5d061 25%, #d4af37 50%, #9e7b27 75%, rgba(212, 175, 55, 0.15) 100%);
  box-shadow: 0 1px 12px rgba(212, 175, 55, 0.45);
  z-index: 2;
}

/* Subtle Crimson Ambient Lighting Vignette */
.college-portal-body .site-footer::after,
.main-campus-body .site-footer::after {
  content: '';
  position: absolute;
  top: -120px;
  right: 10%;
  width: 500px;
  height: 300px;
  background: radial-gradient(circle, rgba(128, 0, 0, 0.22) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.college-portal-body .site-footer .footer-container,
.main-campus-body .site-footer .footer-container {
  position: relative;
  z-index: 2;
  padding: 4rem 1.5rem 3rem;
}

/* Brand Column */
.college-portal-body .footer-brand-title,
.main-campus-body .footer-brand-title {
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.college-portal-body .footer-brand-sub,
.main-campus-body .footer-brand-sub {
  color: #f7df94;
  letter-spacing: 0.08em;
  font-weight: 750;
  font-size: 0.76rem;
}

.college-portal-body .footer-desc,
.main-campus-body .footer-desc,
.main-campus-body .footer-vision {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  font-size: 0.85rem;
}

.college-portal-body .footer-logo-circle,
.main-campus-body .footer-logo-circle {
  border: 2px solid #d4af37;
  background-color: #120101;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* Clickable Brand Logo Link in Footer */
.footer-brand-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 1.25rem;
  text-decoration: none;
  box-shadow: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: fit-content;
}

.footer-brand-link:hover,
.footer-brand-link:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.footer-lrc-logo {
  height: 68px;
  max-width: 240px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  transition: filter 0.25s ease, transform 0.25s ease;
}

.footer-brand-link:hover .footer-lrc-logo {
  filter: brightness(0) invert(1) drop-shadow(0 0 14px rgba(247, 223, 148, 0.75)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
  transform: translateY(-2px);
}

.footer-lrc-title {
  color: #f7df94;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer-brand-link:hover .footer-lrc-title,
.footer-brand-link:focus-visible .footer-lrc-title {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(247, 223, 148, 0.7);
}

@media (max-width: 480px) {
  .footer-lrc-logo {
    height: 56px;
    max-width: 200px;
  }
  .footer-lrc-title {
    font-size: 0.80rem;
  }
}

/* Headings with Gold Typography & Icons */
.college-portal-body .footer-heading,
.main-campus-body .footer-heading {
  color: #f7df94;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.college-portal-body .footer-heading svg,
.main-campus-body .footer-heading svg {
  color: #d4af37;
  stroke: #d4af37;
}

/* Campus Location Address */
.college-portal-body .footer-address,
.main-campus-body .footer-address {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  font-size: 0.86rem;
}

.college-portal-body .footer-address strong,
.main-campus-body .footer-address strong {
  color: #ffffff;
}

/* Operating Hours Frosted Glass Card */
.college-portal-body .site-footer .schedule-list,
.main-campus-body .site-footer .schedule-list {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  gap: 0.65rem;
}

.college-portal-body .site-footer .schedule-item:not(.closed-note),
.main-campus-body .site-footer .schedule-item:not(.closed-note) {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.college-portal-body .site-footer .schedule-item:not(.closed-note):hover,
.main-campus-body .site-footer .schedule-item:not(.closed-note):hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

.college-portal-body .schedule-dept,
.main-campus-body .schedule-dept {
  color: #ffffff;
  font-size: 0.825rem;
  font-weight: 750;
  display: flex;
  align-items: center;
}

.college-portal-body .schedule-time,
.main-campus-body .schedule-time {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.84rem;
}

.college-portal-body .schedule-time strong,
.main-campus-body .schedule-time strong {
  color: #f7df94;
  font-weight: 800;
  text-shadow: 0 1px 6px rgba(212, 175, 55, 0.25);
}

.college-portal-body .schedule-item.closed-note,
.main-campus-body .schedule-item.closed-note {
  padding: 0.35rem 0.6rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  margin-top: 0.25rem;
}

.college-portal-body .schedule-item.closed-note .schedule-time,
.main-campus-body .schedule-item.closed-note .schedule-time {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.76rem;
}

/* Frosted Real-Time Schedule Tracker Card for Campus Branches */
.main-campus-body .branch-time-tracker {
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
}

.main-campus-body .branch-time-tracker.is-open {
  background: rgba(220, 252, 231, 0.5);
  border-color: rgba(187, 247, 208, 0.8);
}

.main-campus-body .branch-time-tracker.is-closed {
  background: rgba(254, 226, 226, 0.4);
  border-color: rgba(254, 202, 202, 0.8);
}

.footer-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
  margin-right: 0.4rem;
  vertical-align: middle;
  animation: pulseGreen 2s infinite;
}

/* Interactive Contact Email Badge & Quick Support */
.college-portal-body .contact-label,
.main-campus-body .contact-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.college-portal-body .contact-email,
.main-campus-body .contact-email {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.college-portal-body .contact-email:hover,
.main-campus-body .contact-email:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: #d4af37;
  color: #f7df94;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}

.college-portal-body .quick-support-notice,
.main-campus-body .quick-support-notice {
  background: rgba(0, 0, 0, 0.45);
  border-left: 3px solid #d4af37;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  padding: 0.6rem 0.85rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Footer Bottom Bar (Midnight Depth) */
.college-portal-body .footer-bottom,
.main-campus-body .footer-bottom {
  background-color: #080101;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  padding: 1.35rem 1.5rem;
  position: relative;
  z-index: 2;
}

.college-portal-body .footer-bottom-container,
.main-campus-body .footer-bottom-container {
  color: rgba(255, 255, 255, 0.72);
}

.college-portal-body .footer-bottom-links a,
.main-campus-body .footer-bottom-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.college-portal-body .footer-bottom-links a:hover,
.main-campus-body .footer-bottom-links a:hover {
  color: #f7df94;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .college-thesis-gateway-card {
    padding: 2rem 1.25rem;
  }
  .gateway-footer-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .gateway-launch-btn {
    justify-content: center;
  }
  .toolkit-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Adaptive Hybrid JHS/GS Portal Footer (Ages 5-16)
   Supports dynamic Grade School (Ages 5-11) & Junior High (Ages 12-16) modes
   ========================================================================== */
.jhs-portal-page .site-footer {
  background: linear-gradient(180deg, #2c0505 0%, #1c0303 55%, #0e0101 100%);
  border-top: none;
  position: relative;
  overflow: hidden;
  color: #f1f5f9;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.jhs-portal-page .site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.15) 0%, #f5d061 25%, #d4af37 50%, #9e7b27 75%, rgba(212, 175, 55, 0.15) 100%);
  box-shadow: 0 1px 12px rgba(212, 175, 55, 0.45);
  z-index: 2;
  transition: all 0.35s ease;
}

/* Grade School Playful Rainbow/Gold Top Ribbon */
body.gs-portal-mode .site-footer::before {
  height: 4px;
  background: linear-gradient(90deg, #f59e0b 0%, #ec4899 22%, #8b5cf6 45%, #3b82f6 70%, #10b981 88%, #f59e0b 100%);
  box-shadow: 0 1px 16px rgba(245, 158, 11, 0.65), 0 0 8px rgba(236, 72, 153, 0.45);
}

.jhs-portal-page .site-footer::after {
  content: '';
  position: absolute;
  top: -120px;
  right: 10%;
  width: 500px;
  height: 300px;
  background: radial-gradient(circle, rgba(128, 0, 0, 0.22) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

body.gs-portal-mode .site-footer::after {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, transparent 70%);
}

.jhs-portal-page .site-footer .footer-container {
  position: relative;
  z-index: 2;
  padding: 4rem 1.5rem 3rem;
}

.jhs-portal-page .footer-heading {
  color: #f7df94;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  transition: color 0.3s ease;
}

.jhs-portal-page .footer-heading svg {
  color: #d4af37;
  stroke: #d4af37;
  transition: color 0.3s ease, stroke 0.3s ease;
}

body.gs-portal-mode .footer-heading {
  color: #fef08a;
}
body.gs-portal-mode .footer-heading svg {
  color: #f59e0b;
  stroke: #f59e0b;
}

.jhs-portal-page .footer-address {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  font-size: 0.86rem;
}
.jhs-portal-page .footer-address strong {
  color: #ffffff;
}

.jhs-portal-page .footer-vision {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  font-size: 0.85rem;
}

/* Department Badge in Brand Column */
.footer-dept-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #f7df94;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

body.gs-portal-mode .footer-dept-badge {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fef08a;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);
}

/* Floor Note in Location Column */
.footer-floor-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.footer-floor-note .floor-icon {
  font-size: 0.9rem;
}

/* Schedule Card */
.jhs-portal-page .site-footer .schedule-list {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.3s ease;
}

body.gs-portal-mode .site-footer .schedule-list {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(255, 255, 255, 0.045);
}

.jhs-portal-page .site-footer .schedule-item:not(.closed-note) {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Primary Dept Schedule Highlight */
.jhs-portal-page .site-footer .schedule-primary-item {
  background: rgba(212, 175, 55, 0.12) !important;
  border: 1.5px solid rgba(212, 175, 55, 0.4) !important;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.15);
}

body.gs-portal-mode .site-footer .schedule-primary-item {
  background: rgba(245, 158, 11, 0.16) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

body.gs-portal-mode .site-footer .schedule-primary-item .schedule-dept {
  color: #fbbf24 !important;
}

/* Secondary College Schedule - De-emphasized */
.jhs-portal-page .site-footer .schedule-secondary-item {
  opacity: 0.65;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.jhs-portal-page .site-footer .schedule-secondary-item:hover {
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.07);
}

.jhs-portal-page .schedule-dept {
  color: #ffffff;
  font-size: 0.825rem;
  font-weight: 750;
  display: flex;
  align-items: center;
}

.jhs-portal-page .schedule-time {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.84rem;
}

.jhs-portal-page .schedule-time strong {
  color: #f7df94;
  font-weight: 800;
  text-shadow: 0 1px 6px rgba(212, 175, 55, 0.25);
}

body.gs-portal-mode .schedule-time strong {
  color: #fef08a;
  text-shadow: 0 1px 8px rgba(245, 158, 11, 0.35);
}

.jhs-portal-page .schedule-item.closed-note {
  padding: 0.35rem 0.6rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  margin-top: 0.25rem;
}

.jhs-portal-page .schedule-item.closed-note .schedule-time {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.76rem;
}

/* Contact Block */
.jhs-portal-page .contact-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.jhs-portal-page .contact-email {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.jhs-portal-page .contact-email:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: #d4af37;
  color: #f7df94;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}

/* Adaptive Support Card (Teacher-Librarian / Research Desk) */
.footer-support-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-left: 3.5px solid #d4af37;
  margin-top: 0.85rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.footer-support-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.5);
}

.support-card-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.support-card-text {
  flex: 1;
}

.support-card-text strong {
  display: block;
  color: #f7df94;
  font-size: 0.825rem;
  font-weight: 750;
  margin-bottom: 0.2rem;
  transition: color 0.3s ease;
}

.support-card-text p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

body.gs-portal-mode .footer-support-card {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 3.5px solid #f59e0b;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}

body.gs-portal-mode .support-card-text strong {
  color: #fef08a;
}

/* Footer Bottom Bar */
.jhs-portal-page .footer-bottom {
  background-color: #080101;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  padding: 1.35rem 1.5rem;
  position: relative;
  z-index: 2;
  transition: border-color 0.3s ease;
}

body.gs-portal-mode .footer-bottom {
  border-top-color: rgba(245, 158, 11, 0.3);
}

.jhs-portal-page .footer-bottom-container {
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
}

.jhs-portal-page .footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.jhs-portal-page .footer-bottom-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.80rem;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.jhs-portal-page .footer-bottom-links a:hover {
  color: #f7df94;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

body.gs-portal-mode .footer-bottom-links a:hover {
  color: #fef08a;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

/* ==========================================================================
   COLLEGE E-RESOURCE HUBS & MULTIMODAL MEDIA
   All Departments General E-Books & Health & Allied Sciences Flagship Portal
   Fully responsive across mobile (320px+) and low-spec 2015 PCs (1366x768)
   ========================================================================== */

/* Sub-Navigation Breadcrumb Bar */
.college-breadcrumb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: #110303;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.breadcrumb-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #f7df94;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}
.breadcrumb-back-link:hover {
  color: #ffffff;
  transform: translateX(-3px);
}
.breadcrumb-dept-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  background: rgba(212, 175, 55, 0.15);
  color: #eed075;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

/* Department Pill Badges & Live Tag */
.live-indicator-chip {
  display: inline-block;
  font-size: 0.65rem;
  background: #16a34a;
  color: #ffffff;
  padding: 0.12rem 0.45rem;
  border-radius: 99px;
  margin-left: 0.35rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  vertical-align: middle;
}
.discipline-pill.health-pill {
  border-color: rgba(22, 163, 74, 0.4);
}
.discipline-pill.health-pill:hover {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
}

/* Category Filter Row for General E-Books */
.ebook-category-filter-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.ebook-filter-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ebook-filter-btn:hover {
  border-color: #800000;
  color: #800000;
  background: #fdf2f2;
}
.ebook-filter-btn.active {
  background: #800000;
  border-color: #800000;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(128, 0, 0, 0.25);
}

/* E-Book Grid & Cards */
.college-ebook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.college-ebook-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}
.college-ebook-card:hover {
  transform: translateY(-4px);
  border-color: #d4af37;
  box-shadow: 0 10px 24px rgba(128, 0, 0, 0.08);
}
.ebook-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
}
.ebook-card-badge.ge {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.ebook-card-badge.research {
  background: #fefce8;
  color: #a16207;
  border: 1px solid #fef08a;
}
.ebook-card-badge.platform {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.ebook-card-badge.clinical {
  background: #fdf2f8;
  color: #be185d;
  border: 1px solid #fbcfe8;
}
.ebook-card-body {
  display: flex;
  gap: 1rem;
  margin-top: 0.8rem;
  flex: 1;
}
.ebook-icon-col {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}
.ebook-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ebook-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem;
  line-height: 1.35;
  padding-right: 4.8rem;
}
.ebook-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: #800000;
  margin: 0 0 0.6rem;
}
.ebook-desc {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 0.9rem;
  flex: 1;
}
.ebook-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.ebook-action-row {
  margin-top: auto;
}
.ebook-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.55rem 0.95rem;
  border-radius: 99px;
  text-decoration: none;
  border: 1px solid #cbd5e1;
  transition: all 0.2s ease;
  width: 100%;
}
.college-ebook-card:hover .ebook-action-btn {
  background: #800000;
  color: #ffffff;
  border-color: #800000;
}

/* College Podcast Grid & Cards */
.college-podcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.college-podcast-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}
.college-podcast-card:hover {
  transform: translateY(-4px);
  border-color: #d4af37;
  box-shadow: 0 10px 24px rgba(128, 0, 0, 0.08);
}
.podcast-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.podcast-channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #800000;
  background: #fdf2f2;
  padding: 0.22rem 0.6rem;
  border-radius: 99px;
  border: 1px solid rgba(128, 0, 0, 0.2);
}
.podcast-length-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.podcast-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.3rem;
  line-height: 1.35;
}
.podcast-host {
  font-size: 0.8rem;
  font-weight: 600;
  color: #800000;
  margin: 0 0 0.6rem;
}
.podcast-card-desc {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 1rem;
  flex: 1;
}
.podcast-actions-col {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  flex-wrap: wrap;
}
.podcast-listen-btn {
  flex: 1;
  min-width: 130px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #800000;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 0.85rem;
  border-radius: 99px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.podcast-listen-btn:hover {
  background: #600000;
  box-shadow: 0 4px 12px rgba(128, 0, 0, 0.25);
}
.podcast-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 0.85rem;
  border-radius: 99px;
  text-decoration: none;
  border: 1px solid #cbd5e1;
  transition: all 0.2s ease;
}
.podcast-secondary-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Health Portal Specific Program Hero Pills */
.health-programs-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}
.health-program-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.health-program-pill:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: #d4af37;
  color: #f7df94;
}

/* Health Ethics & Compliance Card */
.health-ethics-card {
  background: #fffbeb;
  border: 1.5px solid #fef3c7;
  border-left: 5px solid #d97706;
  border-radius: 12px;
  padding: 1.4rem;
  margin-top: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.health-ethics-icon {
  font-size: 1.8rem;
  line-height: 1;
  color: #d97706;
  flex-shrink: 0;
}
.health-ethics-info h4 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  font-weight: 800;
  color: #92400e;
}
.health-ethics-info p {
  margin: 0;
  font-size: 0.85rem;
  color: #78350f;
  line-height: 1.5;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .college-ebook-grid,
  .college-podcast-grid {
    grid-template-columns: 1fr;
  }
  .ebook-title {
    padding-right: 0;
    margin-top: 1.6rem;
  }
  .college-breadcrumb-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   MAIN CAMPUS HOMEPAGE - FROSTED CAMPUS WALLPAPER & GLASSMORPHISM SUITE
   Option C (Dual-Frosted Hybrid): Atmospheric White Veil + Frosted Glass Cards
   Background photograph Â© Karen De Ocampo
   Direct CDN URL: https://lh3.googleusercontent.com/d/1MkJjIjJU3ZVDEdcJTLFLJnKVyAXdAHQN
   ========================================================================== */

/* 1. Atmospheric Veiled Wallpaper on Body */
body.main-campus-body {
  background-color: #f8fafc;
  background-image: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.62) 0%, rgba(248, 250, 252, 0.72) 50%, rgba(255, 255, 255, 0.62) 100%),
    url("https://lh3.googleusercontent.com/d/1MkJjIjJU3ZVDEdcJTLFLJnKVyAXdAHQN");
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: background 0.3s ease;
}

/* 2. Frosted Glassmorphism for Main Campus Content Cards */
.main-campus-body .sidebar-card,
.main-campus-body .branch-card,
.main-campus-body .guidelines-card {
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.07), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.35s ease, 
              background-color 0.35s ease;
}

/* 3. Refined Interactive Hover Effects */
.main-campus-body .branch-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 16px 32px -8px rgba(128, 0, 0, 0.12), 
              0 0 0 1px rgba(212, 175, 55, 0.25);
  transform: translateY(-4px);
}

.main-campus-body .sidebar-card:hover,
.main-campus-body .guidelines-card:hover {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px -6px rgba(15, 23, 42, 0.09);
}

/* 4. Frosted Campus Clock Pill & Guidelines Rule Boxes */
.main-campus-body .campus-clock-pill {
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.main-campus-body .guidelines-card .rule-box {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

/* 5. Photographer Copyright & Provenance Attribution */
.college-portal-body .footer-copyright-group p,
.main-campus-body .footer-copyright-group p {
  margin: 0;
  line-height: 1.5;
}

.college-portal-body .footer-photo-credit,
.main-campus-body .footer-photo-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem !important;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.68);
  font-style: normal;
}

.college-portal-body .footer-photo-credit svg,
.main-campus-body .footer-photo-credit svg {
  color: #d4af37;
  flex-shrink: 0;
}

/* 6. Mobile & Low-Spec PC Scroll Performance Optimization */
@media (max-width: 768px) {
  body.main-campus-body,
  body.librarian-portal-page,
  body.telemetry-suite-page {
    background-attachment: scroll;
  }
}

@media (prefers-reduced-transparency: reduce) {
  body.main-campus-body {
    background-image: none;
    background-color: #f4f6f8;
  }
  .main-campus-body .sidebar-card,
  .main-campus-body .branch-card,
  .main-campus-body .guidelines-card,
  .main-campus-body .campus-clock-pill {
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* 7. Visible Gold Hairline Ribbon at Bottom of Hero Slideshow (matching Footer Top Ribbon) */
.main-campus-body .hero-section {
  border-bottom: none;
}

.main-campus-body .hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.15) 0%, #f5d061 25%, #d4af37 50%, #9e7b27 75%, rgba(212, 175, 55, 0.15) 100%);
  box-shadow: 0 1px 12px rgba(212, 175, 55, 0.45);
  z-index: 5;
  pointer-events: none;
}

