/* ==========================================================================
   ROYAL ENGLISH SCHOOL - OFFICIAL DESIGN SYSTEM & STYLESHEET
   Est. 2004 | Bengaluru, Karnataka
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors derived from official logo */
  --primary: #1B255A;           /* Deep Royal Navy */
  --primary-dark: #0B132B;      /* Midnight Blue */
  --primary-light: #2B3A7C;     /* Lighter Navy */
  --secondary: #2D3B8B;         /* Academic Royal Blue */
  --secondary-light: #3544B1;   /* Vibrant Accent Blue */
  --accent-red: #D62828;       /* Crest Red */
  --accent-red-dark: #A81E1E;  /* Deep Red */
  --accent-red-light: #F7D6D6; /* Soft Red Light */
  --red-glow: rgba(214, 40, 40, 0.3);

  /* Neutral Surface Colors */
  --white: #FFFFFF;
  --light-bg: #F8FAFC;          /* Clean Off-white */
  --surface-card: #FFFFFF;
  --border-color: #E2E8F0;
  --border-hover: #CBD5E1;

  /* Typography Colors */
  --text-dark: #0F172A;         /* Primary Dark Slate */
  --text-body: #334155;         /* Body Text */
  --text-muted: #64748B;        /* Muted Text */

  /* Feedback Colors */
  --success: #10B981;
  --whatsapp-green: #25D366;

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Playfair Display', serif;

  /* Elevation Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 16px 40px rgba(27, 37, 90, 0.12);
  --shadow-red-glow: 0 8px 30px rgba(214, 40, 40, 0.25);

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESETS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--white);
  line-height: 1.65;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

body.mobile-nav-open {
  overflow: hidden;
}

body.mobile-nav-open .chatbot-trigger-btn,
body.mobile-nav-open .floating-btn-whatsapp,
body.mobile-nav-open .floating-btn-call,
body.mobile-nav-open .mobile-bottom-action-bar {
  display: none;
}

body.mobile-nav-open .top-announcement-bar {
  visibility: hidden;
}

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

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--accent-red-dark);
}

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

ul {
  list-style: none;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-red);
  color: var(--primary-dark);
  padding: 8px 16px;
  z-index: 10000;
  font-weight: 700;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* --------------------------------------------------------------------------
   3. REUSABLE UTILITIES & COMPONENTS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 4rem 0;
}

.bg-light-surface {
  background-color: var(--light-bg);
}

.bg-primary-navy {
  background-color: var(--primary);
  color: var(--white);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2.5rem auto;
}

.section-header.text-start {
  text-align: left;
  margin-left: 0;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(214, 40, 40, 0.12);
  border: 1px solid rgba(214, 40, 40, 0.4);
  color: var(--accent-red-dark);
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
}

.badge-tag-navy {
  background: rgba(27, 37, 90, 0.08);
  border-color: rgba(27, 37, 90, 0.2);
  color: var(--primary);
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title span.highlight {
  color: var(--secondary-light);
}

.red-line {
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-red), transparent);
  border-radius: 2px;
  margin: 0.75rem auto 0 auto;
}

.section-header.text-start .red-line {
  margin: 0.75rem 0 0 0;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Buttons */
.btn-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.925rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-normal);
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}

.btn-gold {
  background: linear-gradient(135deg, #F0C954 0%, #C89B2E 100%);
  color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(200, 155, 46, 0.35);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(200, 155, 46, 0.5);
  color: var(--primary-dark);
}

.btn-navy {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-navy:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline-navy:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

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

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

.btn-custom i {
  transition: transform var(--transition-fast);
}

.btn-custom:hover i {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   4. TOP ANNOUNCEMENT BAR
   -------------------------------------------------------------------------- */
.top-announcement-bar {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(214, 40, 40, 0.3);
  position: relative;
  z-index: 1002;
}

.announcement-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.announcement-marquee-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.announcement-pill {
  background: linear-gradient(135deg, #F0C954 0%, #C89B2E 100%);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.725rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(200, 155, 46, 0.4);
}

.announcement-text {
  font-weight: 500;
  color: var(--white);
}

.announcement-text a {
  color: var(--accent-red-light);
  text-decoration: underline;
  font-weight: 600;
  margin-left: 6px;
}

.announcement-quick-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.announcement-link {
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
}

.announcement-link:hover {
  color: var(--accent-red-light);
}

/* --------------------------------------------------------------------------
   5. MAIN NAVIGATION & HEADER (FIXED NO OVERLAP)
   -------------------------------------------------------------------------- */
.main-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.main-header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  gap: 1.5rem;
}

/* Logo Setup */
.brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 92px;
  width: auto;
  object-fit: contain;
}

.brand-name-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  margin-left: 0.85rem;
}

.brand-name-main {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary);
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-transform: uppercase;
}

.brand-name-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-red-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Nav Menu Items */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap;
}

.mobile-nav-header,
.mobile-nav-overlay {
  display: none;
}

.nav-item {
  position: relative;
}

.nav-link-custom {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--secondary);
}

.nav-link-custom.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-red);
  border-radius: 2px;
}

/* Academics Dropdown Menu */
.dropdown-menu-custom {
  position: absolute;
  top: 100%;
  left: -20px;
  width: 250px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-fast);
  z-index: 1010;
}

.nav-item:hover .dropdown-menu-custom {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item-custom {
  display: block;
  padding: 10px 20px;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.dropdown-item-custom:hover {
  background: var(--light-bg);
  color: var(--secondary);
  padding-left: 26px;
}

/* Header Action Right */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.search-trigger-btn {
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 5.5rem 0 7.5rem 0;
  overflow: hidden;
}

.hero-overlay-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge-est {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  background: rgba(214, 40, 40, 0.15);
  border: 1px solid var(--accent-red);
  border-radius: var(--radius-pill);
  color: var(--accent-red-light);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.hero-title span.accent-word {
  color: var(--accent-red-light);
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
}

.hero-description {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2.25rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-media-wrapper {
  position: relative;
}

.hero-main-img-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.hero-main-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.hero-floating-card {
  position: absolute;
  bottom: -25px;
  left: -25px;
  background: var(--white);
  color: var(--text-dark);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 5;
  border-left: 5px solid var(--accent-red);
  animation: floatAnim 4s ease-in-out infinite;
}

.floating-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(214, 40, 40, 0.15);
  color: var(--accent-red-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.floating-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}

.floating-card-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   6b. HOME PROMO BANNER SLIDER
   -------------------------------------------------------------------------- */
.promo-banner-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 2560 / 926;
  overflow: hidden;
  background: transparent;
}

.promo-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease;
}

.promo-banner-slide.active {
  opacity: 1;
  visibility: visible;
}

.promo-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-banner-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.promo-banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.55);
  padding: 0;
  cursor: pointer;
  transition: var(--transition-fast);
}

.promo-banner-dot.active {
  background: var(--white);
  border-color: var(--white);
  transform: scale(1.2);
}

.promo-banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(11, 30, 61, 0.55);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition-fast);
}

.promo-banner-arrow:hover {
  background: var(--accent-red);
}

.promo-banner-arrow.prev { left: 16px; }
.promo-banner-arrow.next { right: 16px; }

/* --------------------------------------------------------------------------
   7. QUICK ACTION CARDS
   -------------------------------------------------------------------------- */
.quick-actions-section {
  position: relative;
  z-index: 10;
  padding-top: 3.5rem;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.quick-action-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
  text-decoration: none;
}

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

.action-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--light-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  transition: var(--transition-fast);
}

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

.action-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.action-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.action-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--secondary);
}

.quick-action-card:hover .action-arrow {
  color: var(--accent-red-dark);
}

/* --------------------------------------------------------------------------
   8. LEGACY & TIMELINE SECTION (2004)
   -------------------------------------------------------------------------- */
.legacy-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.legacy-img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.legacy-img-frame img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.legacy-experience-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--primary-dark);
  color: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 2px solid var(--accent-red);
}

.legacy-years {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-red);
  line-height: 1;
}

.legacy-text {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Timeline */
.timeline-track {
  position: relative;
  padding-left: 2rem;
  border-left: 2px dashed var(--border-hover);
  margin-top: 2rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.4rem;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-red);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-year {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--secondary-light);
  letter-spacing: 1px;
}

.timeline-heading {
  font-size: 1.15rem;
  color: var(--primary);
  margin: 4px 0;
}

.timeline-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* Counters Grid */
.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding: 2.5rem;
  background: var(--primary);
  border-radius: var(--radius-lg);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

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

.counter-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--accent-red);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.counter-label {
  font-size: 0.925rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   9. ABOUT US SECTION & VALUES
   -------------------------------------------------------------------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  --card-accent: var(--secondary);
  --card-accent-dark: var(--primary);
  --card-glow: rgba(45, 59, 139, 0.28);
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.value-card.animate-fade-up {
  transform: translateY(30px) scale(0.94);
}

.value-card.animate-fade-up.in-view {
  transform: translateY(0) scale(1);
}

.value-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px var(--card-glow);
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--card-accent) 0%, var(--card-accent-dark) 100%);
  transition: var(--transition-fast);
}

/* Unique theme per card: navy, crest red, royal gold */
.values-grid .value-card:nth-child(2) {
  --card-accent: var(--accent-red);
  --card-accent-dark: var(--accent-red-dark);
  --card-glow: rgba(214, 40, 40, 0.28);
}

.values-grid .value-card:nth-child(3) {
  --card-accent: #F0C954;
  --card-accent-dark: #C89B2E;
  --card-glow: rgba(200, 155, 46, 0.32);
}

.value-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--card-accent) 0%, var(--card-accent-dark) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 16px var(--card-glow);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.values-grid .value-card:nth-child(3) .value-icon {
  color: var(--primary-dark);
}

.value-icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 20px;
  border: 2px solid var(--card-accent);
  opacity: 0;
  z-index: -1;
  animation: valuePulse 2.4s ease-out infinite;
}

.value-card:nth-child(2) .value-icon::after { animation-delay: 0.3s; }
.value-card:nth-child(3) .value-icon::after { animation-delay: 0.6s; }

@keyframes valuePulse {
  0% { opacity: 0.55; transform: scale(0.85); }
  70% { opacity: 0; transform: scale(1.25); }
  100% { opacity: 0; transform: scale(1.25); }
}

.value-card:hover .value-icon {
  transform: scale(1.1) rotate(-6deg);
}

.value-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   10. ACADEMICS & STAGES
   -------------------------------------------------------------------------- */
.academic-stages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.academic-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.academic-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.academic-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.academic-grade-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary-dark);
  color: var(--accent-red-light);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}

.academic-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.academic-stage-title {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.academic-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   11. RESULTS & ACADEMIC EXCELLENCE
   -------------------------------------------------------------------------- */
.icse-results-box {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.icse-header {
  text-align: center;
  margin-bottom: 3rem;
}

.icse-title {
  font-size: 2.25rem;
  color: var(--white);
}

.icse-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

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

.icse-stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.5rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition-fast);
}

.icse-stat-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.icse-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-red);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.icse-label {
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   12. WHAT SETS US APART - FEATURE GRID
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

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

.feature-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(45, 59, 139, 0.08);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: var(--transition-fast);
}

.feature-card:hover .feature-icon-box {
  background: var(--secondary);
  color: var(--white);
}

.feature-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   13. BEYOND THE CLASSROOM
   -------------------------------------------------------------------------- */
.beyond-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.beyond-card {
  position: relative;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: flex-end;
  text-decoration: none;
}

.beyond-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.beyond-card:hover .beyond-card-img {
  transform: scale(1.1);
}

.beyond-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(11, 19, 43, 0.1) 30%, rgba(11, 19, 43, 0.92) 100%);
  z-index: 1;
}

.beyond-card-content {
  position: relative;
  z-index: 2;
  padding: 2.25rem;
  color: var(--white);
}

.beyond-title {
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.beyond-desc {
  font-size: 0.925rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   14. EVENTS & NEWS SECTION
   -------------------------------------------------------------------------- */
.event-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: var(--white);
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.event-img-box {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.event-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-date-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary-dark);
  color: var(--accent-red);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  box-shadow: var(--shadow-md);
}

.event-day {
  font-size: 1.25rem;
  display: block;
}

.event-month {
  font-size: 0.75rem;
  text-transform: uppercase;
}

.event-content {
  padding: 1.5rem;
}

.event-category-tag {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--secondary-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
  display: block;
}

.event-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.event-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   15. SPORTS SECTION & ACHIEVEMENTS
   -------------------------------------------------------------------------- */
.sports-hero-card {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  color: var(--white);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.sports-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.sports-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
}

.sports-item i {
  color: var(--accent-red);
}

.sports-card-disclosure {
  grid-template-columns: 1fr;
  text-align: center;
  padding: 3rem 2.5rem;
}

.sports-card-title {
  font-size: 2.2rem;
  color: var(--white);
  margin: 1rem 0;
  word-break: break-word;
}

.sports-card-desc {
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto 1.75rem auto;
}

/* --------------------------------------------------------------------------
   16. INFRASTRUCTURE & CAMPUS GALLERY
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

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

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

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 19, 43, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  color: var(--white);
  font-size: 1.5rem;
}

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

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  max-height: 80vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* --------------------------------------------------------------------------
   17. PARENT TESTIMONIALS SLIDER
   -------------------------------------------------------------------------- */
.testimonials-slider-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}

.testimonial-quote-icon {
  font-size: 3rem;
  color: rgba(214, 40, 40, 0.4);
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-size: 1.25rem;
  color: var(--text-dark);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.testimonial-author {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 2rem;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--light-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

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

/* --------------------------------------------------------------------------
   18. ADMISSION TIMELINE & ENQUIRY FORM
   -------------------------------------------------------------------------- */
.admission-timeline-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.step-card {
  background: var(--white);
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease,
              box-shadow 0.25s ease;
}

.admission-timeline-grid.in-view .step-card {
  opacity: 1;
  transform: translateY(0);
}

.admission-timeline-grid .step-card:nth-child(1) { transition-delay: 0.05s; }
.admission-timeline-grid .step-card:nth-child(2) { transition-delay: 0.12s; }
.admission-timeline-grid .step-card:nth-child(3) { transition-delay: 0.19s; }
.admission-timeline-grid .step-card:nth-child(4) { transition-delay: 0.26s; }
.admission-timeline-grid .step-card:nth-child(5) { transition-delay: 0.33s; }
.admission-timeline-grid .step-card:nth-child(6) { transition-delay: 0.4s; }

.step-card:hover,
.step-card:active {
  background: var(--light-bg);
  box-shadow: var(--shadow-md);
}

.step-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-red-dark);
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-card:hover .step-num,
.step-card:active .step-num {
  transform: scale(1.15);
}

.step-title {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.step-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Form Container */
.enquiry-form-card {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-control-custom {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(45, 59, 139, 0.15);
}

.form-control-custom.error {
  border-color: #EF4444;
}

.error-text {
  font-size: 0.775rem;
  color: #EF4444;
}

/* Modal Confirmation */
.form-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10005;
}

.form-modal-overlay.active {
  display: flex;
}

.form-modal-box {
  background: var(--white);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.modal-check-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1.5rem auto;
}

/* --------------------------------------------------------------------------
   18a. BEYOND ACADEMICS - INFRASTRUCTURE PHOTO BANNER
   -------------------------------------------------------------------------- */
.infra-photo-banner {
  position: relative;
  height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}

.infra-photo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.infra-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 1.75rem;
  background: linear-gradient(to top, rgba(11, 19, 43, 0.85) 0%, transparent 100%);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   18b. CONTACT PAGE
   -------------------------------------------------------------------------- */
.contact-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 3.5rem;
}

.contact-map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  line-height: 0;
}

.contact-map-frame iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

.contact-info-panel {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  margin-top: 1.5rem;
}

.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.contact-info-row:last-of-type {
  border-bottom: none;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: rgba(45, 59, 139, 0.08);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.contact-info-row-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-info-row-value {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 600;
}

.contact-social-row {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.social-icon-btn-light {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(45, 59, 139, 0.08);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-icon-btn-light:hover {
  background: var(--accent-red);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   19. AI CHATBOT & FLOATING BUTTONS
   -------------------------------------------------------------------------- */
.floating-btn-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 58px;
  height: 58px;
  background: var(--whatsapp-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition-fast);
}

.floating-btn-whatsapp:hover {
  transform: scale(1.1);
  color: var(--white);
}

.floating-pulse {
  animation: pulseGlow 2.5s infinite;
}

.floating-btn-call {
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #F0C954 0%, #C89B2E 100%);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-md);
  z-index: 999;
  transition: var(--transition-fast);
}

.floating-btn-call:hover {
  transform: scale(1.1);
  color: var(--primary-dark);
  background: linear-gradient(135deg, #C89B2E 0%, #A67F1F 100%);
}

.btn-tooltip {
  position: absolute;
  right: 70px;
  background: var(--primary-dark);
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
  pointer-events: none;
}

.floating-btn-whatsapp:hover .btn-tooltip,
.floating-btn-call:hover .btn-tooltip {
  opacity: 1;
  visibility: visible;
}

.chatbot-trigger-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(214, 40, 40, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 999;
  transition: var(--transition-normal);
  animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: 0.4s;
}

.chatbot-trigger-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(27, 37, 90, 0.4);
}

.chatbot-trigger-btn.is-hidden {
  display: none;
}

.chatbot-emoji {
  display: inline-block;
  animation: blinkAccent 1.6s ease-in-out infinite;
}

.chatbot-window {
  position: fixed;
  bottom: 95px;
  left: 25px;
  width: 380px;
  height: 520px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-window.active {
  display: flex;
}

.chatbot-header {
  background: var(--primary-dark);
  color: var(--white);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--accent-red);
}

.bot-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-red);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.bot-name {
  font-size: 1rem;
  font-weight: 700;
}

.bot-status {
  font-size: 0.725rem;
  color: #34D399;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chatbot-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--light-bg);
}

.msg-bubble {
  max-width: 82%;
  padding: 10px 16px;
  border-radius: 16px;
  font-size: 0.885rem;
  line-height: 1.45;
}

.msg-bot {
  background: var(--white);
  color: var(--text-dark);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.msg-user {
  background: var(--secondary);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.quick-reply-btn {
  background: var(--white);
  border: 1px solid var(--secondary-light);
  color: var(--secondary);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.quick-reply-btn:hover {
  background: var(--secondary);
  color: var(--white);
}

.chatbot-input-bar {
  padding: 0.75rem 1rem;
  background: var(--white);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  outline: none;
}

.chat-send-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   20. GLOBAL SEARCH OVERLAY
   -------------------------------------------------------------------------- */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 19, 43, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

.search-overlay.active {
  display: flex;
}

.search-container-box {
  width: 100%;
  max-width: 720px;
  padding: 0 1.5rem;
}

.search-input-wrapper {
  position: relative;
}

.search-main-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(214, 40, 40, 0.5);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-pill);
  font-size: 1.25rem;
  color: var(--white);
  outline: none;
  font-family: var(--font-heading);
}

.search-main-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-results-list {
  margin-top: 2rem;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-result-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  color: var(--white);
  text-decoration: none;
  transition: var(--transition-fast);
}

.search-result-card:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--accent-red);
}

/* --------------------------------------------------------------------------
   21. BACK TO TOP BUTTON
   -------------------------------------------------------------------------- */
.back-to-top-btn {
  position: fixed;
  bottom: 25px;
  right: 90px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  z-index: 998;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   22. FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.faq-question-btn {
  width: 100%;
  padding: 1.35rem 1.75rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-answer {
  padding: 0 1.75rem 1.5rem 1.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

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

/* --------------------------------------------------------------------------
   23. FOOTER
   -------------------------------------------------------------------------- */
.footer-main {
  background: var(--primary-dark);
  color: var(--white);
  padding: 5.5rem 0 2rem 0;
  position: relative;
  overflow: hidden;
}

.footer-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-red) 0%, var(--accent-red-light) 50%, var(--accent-red) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.85fr 0.95fr 1.25fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-info .brand-logo-link {
  display: inline-flex;
  margin-bottom: 1.5rem;
}

.footer-logo {
  height: 140px;
  background: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: block;
}

.footer-brand-info p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-heading {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  letter-spacing: 0.02em;
}

.footer-heading::after {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--accent-red);
  margin-top: 8px;
  border-radius: 2px;
}

.footer-links-list li {
  margin-bottom: 0.85rem;
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.footer-links-list a::before {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--accent-red-light);
  font-size: 0.7rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--white);
}

.footer-links-list a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-contact-info i {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.social-links-box {
  display: flex;
  gap: 14px;
  margin-top: 1.75rem;
}

.social-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.social-icon-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

.social-icon-btn:nth-child(1):hover {
  background: #1877f2;
}

.social-icon-btn:nth-child(2):hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-icon-btn:nth-child(3):hover {
  background: #ff0000;
}

.social-icon-btn:nth-child(4):hover {
  background: #0a66c2;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.55);
  transition: var(--transition-fast);
}

.footer-legal-links a:hover {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   24. ICON-LED VISUAL PANELS (brand iconography in place of photography)
   -------------------------------------------------------------------------- */
.visual-icon-frame {
  position: relative;
  height: 480px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(150deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.visual-icon-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(214, 40, 40, 0.25), transparent 55%);
}

.visual-icon-frame i {
  font-size: 5rem;
  color: var(--accent-red-light);
  position: relative;
}

.visual-icon-frame .visual-icon-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  position: relative;
}

.visual-icon-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.visual-icon-frame:hover img {
  transform: scale(1.06);
}

.visual-icon-frame.has-photo::before {
  background: linear-gradient(to top, rgba(11, 30, 61, 0.85) 0%, rgba(11, 30, 61, 0.15) 55%, transparent 100%);
}

.visual-icon-frame.has-photo {
  justify-content: flex-end;
  padding-bottom: 1.75rem;
}

.icon-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

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

.icon-tile {
  --tile-accent: var(--secondary);
  --tile-accent-dark: var(--primary);
  --tile-glow: rgba(45, 59, 139, 0.28);
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.icon-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--tile-accent) 0%, var(--tile-accent-dark) 100%);
}

.icon-tile.animate-fade-up {
  transform: translateY(30px) scale(0.94);
}

.icon-tile.animate-fade-up.in-view {
  transform: translateY(0) scale(1);
}

/* Unique theme cycling every 3 tiles: navy, crest red, royal gold */
.icon-tile:nth-child(3n+2) {
  --tile-accent: var(--accent-red);
  --tile-accent-dark: var(--accent-red-dark);
  --tile-glow: rgba(214, 40, 40, 0.28);
}

.icon-tile:nth-child(3n+3) {
  --tile-accent: #F0C954;
  --tile-accent-dark: #C89B2E;
  --tile-glow: rgba(200, 155, 46, 0.32);
}

.icon-tile p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 0.6rem;
}

.icon-tile:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px var(--tile-glow);
}

.icon-tile i {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
  color: var(--white);
  margin: 0 auto 1.25rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--tile-accent) 0%, var(--tile-accent-dark) 100%);
  box-shadow: 0 6px 16px var(--tile-glow);
  position: relative;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-tile:nth-child(3n+3) i {
  color: var(--primary-dark);
}

.icon-tile i::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--tile-accent);
  opacity: 0;
  z-index: -1;
  animation: tilePulse 2.4s ease-out infinite;
}

.icon-tile:nth-child(2) i::after { animation-delay: 0.3s; }
.icon-tile:nth-child(3) i::after { animation-delay: 0.6s; }
.icon-tile:nth-child(4) i::after { animation-delay: 0.9s; }
.icon-tile:nth-child(5) i::after { animation-delay: 1.2s; }
.icon-tile:nth-child(6) i::after { animation-delay: 1.5s; }

@keyframes tilePulse {
  0% { opacity: 0.55; transform: scale(0.85); }
  70% { opacity: 0; transform: scale(1.3); }
  100% { opacity: 0; transform: scale(1.3); }
}

.icon-tile:hover i {
  transform: scale(1.1) rotate(-6deg);
}

.icon-tile h4 {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 700;
}

.beyond-card-icon-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s ease;
}

.beyond-card:hover .beyond-card-icon-bg {
  transform: scale(1.08);
}

.beyond-card-icon-bg i {
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.14);
}

.event-icon-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
}

.event-icon-box i {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.85);
}

/* --------------------------------------------------------------------------
   25. MANDATORY PUBLIC DISCLOSURE PAGE
   -------------------------------------------------------------------------- */
.disclosure-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
}

.disclosure-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--border-color);
}

.disclosure-card-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.disclosure-card-header h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0;
}

.disclosure-card-header span {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.disclosure-table {
  width: 100%;
  border-collapse: collapse;
}

.disclosure-table tr {
  border-bottom: 1px solid var(--border-color);
}

.disclosure-table tr:last-child {
  border-bottom: none;
}

.disclosure-table th,
.disclosure-table td {
  text-align: left;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  vertical-align: top;
}

.disclosure-table th {
  width: 40%;
  color: var(--text-dark);
  font-weight: 600;
  background: var(--light-bg);
}

.disclosure-table td {
  color: var(--text-body);
}

.disclosure-toc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 2.5rem 0;
}

.disclosure-toc a {
  display: block;
  padding: 0.9rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.disclosure-toc a:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* --------------------------------------------------------------------------
   26. ABOUT PAGE — STORY TIMELINE (icon-node style, distinct from homepage timeline)
   -------------------------------------------------------------------------- */
.story-timeline-item {
  position: relative;
  display: flex;
  gap: 1.25rem;
  padding-bottom: 2.25rem;
}

.story-timeline-item:last-child {
  padding-bottom: 0;
}

.story-timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-red) 0%, var(--primary) 100%);
  opacity: 0.4;
}

.story-timeline-icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-red-glow);
}

.story-timeline-content {
  flex: 1;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-red);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  transition: var(--transition-fast);
}

.story-timeline-item:hover .story-timeline-content {
  border-color: var(--border-hover);
  border-left-color: var(--accent-red);
  box-shadow: var(--shadow-sm);
}

.story-timeline-year {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--white);
  background: var(--primary);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.story-timeline-heading {
  font-size: 1.1rem;
  color: var(--primary);
  margin: 0 0 0.35rem 0;
}

.story-timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   27. MANDATORY DISCLOSURE — TAB NAVIGATION
   -------------------------------------------------------------------------- */
.disclosure-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  padding: 1.1rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin: -3.5rem auto 3rem auto;
  max-width: 980px;
  position: relative;
  z-index: 5;
}

.disclosure-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.3rem;
  border: none;
  background: transparent;
  color: var(--text-body);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.disclosure-tab-btn i {
  font-size: 0.85rem;
  color: var(--accent-red);
  transition: var(--transition-fast);
}

.disclosure-tab-btn:hover {
  background: var(--light-bg);
  color: var(--primary);
}

.disclosure-tab-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.disclosure-tab-btn.active i {
  color: var(--accent-red-light);
}

.disclosure-tab-panel {
  display: none;
  animation: fadeUpPanel 0.4s ease;
}

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

@keyframes fadeUpPanel {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   28. MANDATORY DISCLOSURE — DOCUMENT IMAGE CARDS
   -------------------------------------------------------------------------- */
.doc-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.doc-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

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

.doc-card-visual {
  position: relative;
  height: 230px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  overflow: hidden;
}

.doc-card-visual--red { background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%); }
.doc-card-visual--blue { background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%); }
.doc-card-visual--navy { background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%); }

.doc-card-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
  background: var(--white);
}

.doc-card:hover .doc-card-thumb {
  transform: scale(1.06);
}

.doc-card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0) 55%, rgba(15,23,42,0.55) 100%);
  pointer-events: none;
}

.doc-card-icon {
  position: absolute;
  z-index: 2;
  bottom: 10px;
  left: 10px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--white);
  backdrop-filter: blur(3px);
}

.doc-card-ribbon {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: -30px;
  transform: rotate(40deg);
  background: var(--white);
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 34px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.doc-card-body {
  padding: 1.4rem 1.5rem 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.doc-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 0.85rem 0;
  line-height: 1.35;
}

.doc-card-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.doc-card-meta li {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.4rem;
  line-height: 1.5;
}

.doc-card-meta li strong {
  color: var(--text-body);
  font-weight: 600;
  min-width: 84px;
  flex-shrink: 0;
}

.doc-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-color);
  color: var(--accent-red-dark);
  font-weight: 700;
  font-size: 0.85rem;
}

.doc-card-cta i {
  transition: var(--transition-fast);
}

.doc-card:hover .doc-card-cta i {
  transform: translateX(4px);
}

@media (max-width: 992px) {
  .doc-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .doc-cards-grid { grid-template-columns: 1fr; }
  .disclosure-tabs-nav { margin-top: -2.25rem; }
  .disclosure-tab-btn { flex: 1 1 auto; justify-content: center; padding: 0.7rem 0.8rem; font-size: 0.8rem; }
}

/* --------------------------------------------------------------------------
   29. IN-SITE DOCUMENT VIEWER PAGE (view-document.html)
   -------------------------------------------------------------------------- */
.doc-viewer-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}

.doc-viewer-back-link:hover {
  color: var(--white);
  gap: 0.7rem;
}

.doc-viewer-meta-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 1.25rem 0 0 0;
}

.doc-viewer-meta-pills li {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
}

.doc-viewer-meta-pills li strong {
  color: var(--white);
  font-weight: 700;
  margin-right: 4px;
}

.doc-viewer-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.doc-viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.5rem;
  background: var(--light-bg);
  border-bottom: 1px solid var(--border-color);
}

.doc-viewer-toolbar-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.doc-viewer-toolbar-label i {
  color: var(--accent-red);
}

.doc-viewer-toolbar-actions {
  display: flex;
  gap: 0.75rem;
}

.doc-viewer-frame-wrap {
  width: 100%;
  height: 82vh;
  min-height: 480px;
  background: #525659;
}

.doc-viewer-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.doc-viewer-fallback {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--white);
  text-align: center;
  padding: 2rem;
}

.doc-viewer-fallback i {
  font-size: 2.5rem;
  color: rgba(255,255,255,0.6);
}

@media (max-width: 640px) {
  .doc-viewer-toolbar { flex-direction: column; align-items: flex-start; }
  .doc-viewer-frame-wrap { height: 70vh; }
}
