/* ==========================================================================
   Lord's Grace English School & Jr. College
   Brand Color System & Institutional Stylesheet
   Derived from Official School Crest / Emblem
   ========================================================================== */

/* 1. Centralized Logo-Derived Brand Color System */
:root {
  /* Brand Identity Tokens */
  --brand-primary: #153258;         /* Regal Institutional Navy Blue */
  --brand-primary-hover: #0f2542;   /* Deep Navy Hover */
  --brand-secondary: #0c1c2e;       /* Midnight Institutional Navy (Dark sections/Footer) */
  --brand-accent: #c89612;          /* Academic Crest Gold / Royal Amber (Logo Primary Accent) */
  --brand-accent-hover: #b0830c;    /* Deep Gold Hover */
  --brand-accent-light: #fef9ed;    /* Subtle Warm Gold Tint for Highlights/Pills */
  --brand-gold: #ddb323;            /* Direct Crest Pixel Gold */
  --brand-light: #f8fafc;           /* Crisp Light Background */
  --brand-dark: #111827;            /* Dark Slate Body Text */
  --brand-muted: #596b82;           /* Professional Muted Slate */
  --brand-border: #e2e8f0;          /* 1px Boundary Lines */
  --brand-border-dark: #1c334d;     /* Deep Borders for Dark Sections */
  --brand-white: #ffffff;
  --brand-error: #b91c1c;
  --brand-success: #15803d;

  /* Layout & Geometry */
  --radius: 8px;
  --radius-sm: 4px;
  --max-width: 1140px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--brand-white);
  color: var(--brand-dark);
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--brand-dark);
  background-color: var(--brand-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background-color var(--transition);
}

a:hover {
  color: var(--brand-primary-hover);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
}

/* Accessibility Focus States */
:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

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

.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--brand-border);
}

/* Section Header Typography */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-accent);
  margin-bottom: 8px;
}

.section-heading {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--brand-dark);
  letter-spacing: -0.02em;
}

.section-subheading {
  font-size: 1.05rem;
  color: var(--brand-muted);
  max-width: 680px;
  margin-top: 8px;
  line-height: 1.5;
}

.section-header-centered {
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.accent-bar {
  width: 48px;
  height: 3px;
  background-color: var(--brand-accent);
  margin-top: 14px;
  border-radius: var(--radius-sm);
}

.accent-bar.centered {
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

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

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

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

.btn-secondary:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary-hover);
  background-color: var(--brand-light);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   PREMIUM FLOATING HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: transparent;
  width: 100%;
  padding: 8px 16px 4px;
}

.header-floating-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 18px;
  max-width: 1440px !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  background-color: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #d49a1d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  box-sizing: border-box;
}

.brand-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.school-logo-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.school-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.school-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0d2c52;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-family: 'Inter', Georgia, serif;
  white-space: nowrap;
}

.school-tagline {
  font-size: 0.72rem;
  font-weight: 400;
  color: #64748b;
  margin-top: 1px;
  line-height: 1.2;
  white-space: nowrap;
}

/* Primary Navigation */
.main-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  display: flex;
  align-items: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #153258;
  padding: 7px 11px;
  text-decoration: none;
  border-radius: 20px;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-link svg {
  flex-shrink: 0;
  color: currentColor;
  transition: transform var(--transition);
}

.nav-dropdown-chevron {
  margin-left: -2px;
  opacity: 0.75;
}

.nav-link:hover {
  color: #b88111;
  background-color: rgba(212, 154, 29, 0.08);
}

/* Active Golden Pill Capsule */
.nav-link.active {
  background: linear-gradient(135deg, #d49a1d 0%, #b88111 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(212, 154, 29, 0.38);
}

.nav-link.active svg {
  color: #ffffff;
}

/* Vertical Nav Divider */
.nav-divider {
  width: 1px;
  height: 22px;
  background-color: #cbd5e1;
  margin: 0 4px;
}

/* Golden Pill ERP Login Button */
.erp-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #c78d14 0%, #b47d0e 100%);
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(199, 141, 20, 0.38);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
}

.erp-login-btn:hover {
  background: linear-gradient(135deg, #b88111 0%, #9e6c0a 100%);
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(199, 141, 20, 0.48);
  transform: translateY(-1px);
}

.erp-login-btn svg {
  flex-shrink: 0;
  color: #ffffff;
}

/* Hamburger Button */
.nav-toggle {
  display: none;
  background-color: transparent;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--brand-primary);
}

.hamburger-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 15px;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--brand-dark);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--brand-white);
  background-color: var(--brand-secondary);
  overflow: hidden;
}

.hero-background-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #1e334d;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(12, 28, 46, 0.82);
}

.hero-container {
  position: relative;
  z-index: 2;
  padding-top: 90px;
  padding-bottom: 70px;
}

.hero-content {
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-gold);
  margin-bottom: 14px;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--brand-white);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.hero-subheading {
  font-size: 1.25rem;
  font-weight: 500;
  color: #e2e8f0;
  margin-bottom: 16px;
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 660px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background-color: var(--brand-accent);
  color: var(--brand-secondary);
  border-color: var(--brand-accent);
  padding: 13px 26px;
  font-size: 0.96rem;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition);
}

.btn-hero-primary:hover {
  background-color: var(--brand-accent-hover);
  border-color: var(--brand-accent-hover);
  color: var(--brand-secondary);
}

.btn-hero-secondary {
  background-color: transparent;
  color: var(--brand-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 13px 26px;
  font-size: 0.96rem;
  font-weight: 600;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

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

/* Hero Information Strip */
.hero-info-strip {
  position: relative;
  z-index: 2;
  background-color: rgba(12, 28, 46, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 0;
}

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

.strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.strip-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--brand-accent);
  color: var(--brand-secondary);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.strip-text {
  font-size: 0.88rem;
  font-weight: 500;
  color: #e2e8f0;
}

.strip-divider {
  width: 1px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   PAGE HERO BANNER (Multi-Page Header)
   ========================================================================== */
.page-banner {
  background: linear-gradient(135deg, #0a1b2d 0%, #153258 50%, #0c1c2e 100%);
  color: var(--brand-white);
  padding: 52px 0 46px;
  border-bottom: 3px solid var(--brand-accent);
  position: relative;
  overflow: hidden;
}

.page-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: -50px;
  width: 360px;
  height: 100%;
  background: radial-gradient(circle, rgba(200, 150, 18, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.breadcrumb-nav {
  margin-bottom: 14px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: #94a3b8;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.breadcrumb-item a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb-item a:hover {
  color: var(--brand-gold);
}

.breadcrumb-separator {
  color: #64748b;
  user-select: none;
}

.breadcrumb-item.active {
  color: var(--brand-gold);
  font-weight: 600;
}

.page-banner-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--brand-white);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.page-banner-subtitle {
  font-size: 1.1rem;
  color: #e2e8f0;
  max-width: 720px;
  line-height: 1.55;
  font-weight: 400;
}

/* Page Feature Grids & Content Cards */
.subpage-lead-card {
  background-color: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.value-card {
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  border-top: 4px solid var(--brand-primary);
  transition: transform var(--transition), box-shadow var(--transition);
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-color: var(--brand-accent-light);
  color: var(--brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.value-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

.value-desc {
  font-size: 0.92rem;
  color: var(--brand-muted);
  line-height: 1.55;
}

.facility-detail-card {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 32px;
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.facility-detail-card.reversed {
  grid-template-columns: 1fr 420px;
}

.facility-detail-card.reversed .facility-img-wrap {
  order: 2;
}

.facility-img-wrap {
  position: relative;
  min-height: 280px;
}

.facility-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facility-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.facility-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.facility-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 12px;
}

.facility-desc {
  font-size: 0.96rem;
  color: var(--brand-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.facility-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
}

.facility-feature-item {
  font-size: 0.88rem;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.facility-feature-item::before {
  content: '✓';
  color: var(--brand-success);
  font-weight: 700;
}

/* ==========================================================================
   QUICK ACTION BAR
   ========================================================================== */
.quick-action-bar {
  background-color: var(--brand-white);
  border-bottom: 1px solid var(--brand-border);
  padding: 24px 0;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  background-color: var(--brand-white);
  color: var(--brand-dark);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color var(--transition);
}

.quick-card:hover {
  border-color: var(--brand-accent);
}

.quick-icon-box {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background-color: var(--brand-accent-light);
  color: var(--brand-accent);
  border: 1px solid rgba(200, 150, 18, 0.2);
}

.quick-card-body {
  flex: 1;
}

.quick-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.2;
}

.quick-desc {
  font-size: 0.8rem;
  color: var(--brand-muted);
  line-height: 1.35;
  margin-top: 3px;
}

.quick-arrow {
  color: var(--brand-accent);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}

.about-image-wrapper .image-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--brand-border);
  background-color: #e2e8f0;
  aspect-ratio: 4 / 3;
}

.about-image-wrapper .responsive-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-caption-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background-color: rgba(12, 28, 46, 0.92);
  color: var(--brand-gold);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(221, 179, 35, 0.25);
}

.about-content .section-heading {
  margin-bottom: 12px;
}

.lead-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--brand-dark);
  line-height: 1.65;
  margin-top: 20px;
  margin-bottom: 16px;
}

.body-text {
  font-size: 0.95rem;
  color: var(--brand-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

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

.stat-card {
  padding: 24px 20px;
  background-color: var(--brand-light);
  border: 1px solid var(--brand-border);
  border-top: 3px solid var(--brand-accent);
  border-radius: var(--radius);
  text-align: left;
}

.stat-value {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.stat-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--brand-muted);
  line-height: 1.35;
}

/* ==========================================================================
   LEADERSHIP & TRUST SECTION (CHAIRMAN & PRINCIPAL)
   ========================================================================== */
.founder-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.leadership-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.leadership-card-vertical {
  background-color: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.leadership-card-vertical:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--brand-accent);
}

.leadership-card-header {
  display: flex;
  gap: 24px;
  padding: 28px;
  align-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--brand-border);
}

.leadership-avatar-wrap {
  width: 130px;
  height: 155px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--brand-white);
}

.leadership-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.leadership-header-meta {
  flex: 1;
}

.leadership-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.leadership-quote {
  position: relative;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--brand-dark);
  font-style: italic;
  margin-bottom: 20px;
  padding-left: 18px;
  border-left: 3px solid var(--brand-accent);
}

.leadership-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--brand-border);
}

.leadership-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #f1f5f9;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}

.founder-card-frame {
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  background-color: var(--brand-white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.founder-image-box {
  width: 100%;
  aspect-ratio: 4 / 4.5;
  background-color: #cbd5e1;
  overflow: hidden;
}

.founder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.founder-card-frame:hover .founder-img {
  transform: scale(1.03);
}

.founder-caption {
  padding: 20px;
  border-top: 1px solid var(--brand-border);
  background-color: var(--brand-white);
}

.founder-role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-accent);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.founder-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.founder-trust {
  font-size: 0.85rem;
  color: var(--brand-muted);
}

.founder-credentials {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid var(--brand-border);
  border-left: 3px solid var(--brand-accent);
  border-radius: var(--radius);
  background-color: var(--brand-white);
  font-size: 0.88rem;
}

.leadership-separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-border), transparent);
  margin: 56px 0;
}

/* ==========================================================================
   ACADEMICS SECTION
   ========================================================================== */
.academics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

.academic-card:hover {
  border-color: var(--brand-accent);
}

.academic-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #e2e8f0;
  overflow: hidden;
}

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

.academic-category-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(12, 28, 46, 0.92);
  color: var(--brand-gold);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid rgba(221, 179, 35, 0.25);
}

.academic-body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.academic-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 10px;
}

.academic-desc {
  font-size: 0.88rem;
  color: var(--brand-muted);
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}

.academic-footer {
  border-top: 1px solid var(--brand-border);
  padding-top: 14px;
}

.academic-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-accent);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.academic-link:hover {
  color: var(--brand-accent-hover);
}

/* ==========================================================================
   CAMPUS / INFRASTRUCTURE
   ========================================================================== */
.campus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.campus-card {
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--brand-white);
  transition: border-color var(--transition);
}

.campus-card:hover {
  border-color: var(--brand-accent);
}

.campus-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background-color: #cbd5e1;
  overflow: hidden;
}

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

.campus-overlay-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(12, 28, 46, 0.92);
  padding: 12px 16px;
  color: var(--brand-white);
}

.campus-badge {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-gold);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.campus-item-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--brand-white);
}

/* ==========================================================================
   GALLERY SECTION WITH FILTERS & LIGHTBOX
   ========================================================================== */
.gallery-filter-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--brand-light);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 4px;
  margin-top: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-filter-btn {
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-muted);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}

.gallery-filter-btn:hover {
  color: var(--brand-primary);
}

.gallery-filter-btn.active {
  background-color: var(--brand-primary);
  color: var(--brand-white);
}

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

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--brand-border);
  background-color: #0c1c2e;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  border-color: var(--brand-accent);
  box-shadow: 0 12px 28px rgba(13, 44, 82, 0.16);
}

.gallery-item.is-hidden {
  display: none !important;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

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

.gallery-category-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #d49a1d 0%, #b88111 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.gallery-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(12, 28, 46, 0.2) 0%, rgba(12, 28, 46, 0.88) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-zoom-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212, 154, 29, 0.9);
  color: #0c1c2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

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

.gallery-caption {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-modal[hidden] {
  display: none !important;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(12, 28, 46, 0.94);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
}

#lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-caption {
  margin-top: 14px;
  color: #e2e8f0;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background-color: rgba(12, 28, 46, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--brand-white);
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
  color: var(--brand-secondary);
}

.lightbox-close {
  top: -46px;
  right: 0;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
}

.lightbox-prev {
  left: -54px;
  width: 40px;
  height: 40px;
  font-size: 1.3rem;
}

.lightbox-next {
  right: -54px;
  width: 40px;
  height: 40px;
  font-size: 1.3rem;
}

/* ==========================================================================
   HAPPENINGS SECTION
   ========================================================================== */
.happenings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.happening-card {
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  background-color: var(--brand-white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.happening-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #cbd5e1;
}

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

.happening-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--brand-accent);
  color: var(--brand-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.happening-body {
  padding: 22px 20px;
}

.happening-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

.happening-desc {
  font-size: 0.88rem;
  color: var(--brand-muted);
  line-height: 1.6;
}

.happenings-footer {
  text-align: center;
  margin-top: 40px;
}

/* ==========================================================================
   ADMISSIONS & DONATION SECTIONS
   ========================================================================== */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.content-box {
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  background-color: var(--brand-white);
}

.box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--brand-border);
}

.box-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.box-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  background-color: var(--brand-accent-light);
  color: var(--brand-accent);
  padding: 4px 10px;
  border: 1px solid rgba(200, 150, 18, 0.25);
  border-radius: var(--radius-sm);
}

.styled-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--brand-dark);
}

.ordered-list {
  padding-left: 20px;
}

.ordered-list li::marker {
  font-weight: 700;
  color: var(--brand-accent);
}

.bullet-list {
  list-style-type: square;
  padding-left: 20px;
}

.bullet-list li::marker {
  color: var(--brand-accent);
}

.box-action-wrap {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--brand-border);
}

.document-notice {
  margin-top: 24px;
  padding: 14px 16px;
  background-color: var(--brand-light);
  border-left: 3px solid var(--brand-accent);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--brand-muted);
}

/* Donation Left Details */
.support-pillars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--brand-dark);
}

.pillar-bullet {
  color: var(--brand-accent);
  font-size: 1.2rem;
  line-height: 1;
}

.info-notice {
  border: 1px solid var(--brand-border);
  border-left: 3px solid var(--brand-accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  background-color: var(--brand-white);
  font-size: 0.88rem;
  line-height: 1.55;
}

.info-notice-title {
  color: var(--brand-accent);
}

/* ==========================================================================
   MODERN 3-METHOD DONATION PORTAL (Bank Transfer, QR/UPI, Net Banking)
   ========================================================================== */
.donation-portal-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%);
  border-top: 1px solid var(--brand-border);
  border-bottom: 1px solid var(--brand-border);
  padding: 64px 0 72px;
}

.donation-portal-wrap {
  max-width: 1040px;
  margin: 0 auto;
}

/* Portal Introduction Header */
.portal-intro-box {
  background: linear-gradient(135deg, #0d2c52 0%, #071e38 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 36px 32px 32px;
  margin-bottom: 36px;
  border-left: 4px solid #d49a1d;
  box-shadow: 0 12px 32px rgba(13, 44, 82, 0.12);
  position: relative;
  overflow: hidden;
}

.portal-intro-box::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(212, 154, 29, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.portal-intro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e5a924;
  margin-bottom: 8px;
}

.portal-intro-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.portal-intro-text {
  font-size: 0.96rem;
  line-height: 1.65;
  color: #e2e8f0;
  max-width: 860px;
  margin-bottom: 20px;
}

.portal-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 5px 11px;
  border-radius: 20px;
}

.trust-chip svg {
  color: #e5a924;
  flex-shrink: 0;
}

/* 3-Method Selection Cards */
.donation-method-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.method-tab-btn {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 18px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all var(--transition);
  font-family: inherit;
  color: inherit;
  outline: none;
}

.method-tab-btn:hover {
  border-color: #d49a1d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 44, 82, 0.08);
}

.method-tab-btn.active {
  border-color: #d49a1d;
  background: linear-gradient(180deg, #ffffff 0%, #fefcf6 100%);
  box-shadow: 0 10px 28px rgba(212, 154, 29, 0.16);
}

.method-tab-btn.active::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #d49a1d;
  box-shadow: 0 0 8px rgba(212, 154, 29, 0.8);
}

.method-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0d2c52;
  color: #e5a924;
  margin-bottom: 12px;
  transition: transform var(--transition), background-color var(--transition);
}

.method-tab-btn:hover .method-icon-box {
  transform: scale(1.06);
}

.method-tab-btn.active .method-icon-box {
  background: linear-gradient(135deg, #0d2c52 0%, #081d37 100%);
  box-shadow: 0 4px 14px rgba(13, 44, 82, 0.35);
  color: #f6cb55;
}

.method-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0d2c52;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.method-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 8px;
}

.method-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 12px;
  background-color: rgba(212, 154, 29, 0.12);
  color: #b88111;
  border: 1px solid rgba(212, 154, 29, 0.22);
}

/* Method Content Panels */
.method-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 12px 32px rgba(13, 44, 82, 0.06);
  border-top: 4px solid #d49a1d;
  animation: tabFadeIn 0.25s ease-out;
}

.method-panel[hidden] {
  display: none !important;
}

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

.panel-heading-wrap {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.panel-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0d2c52;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.panel-subtitle {
  font-size: 0.88rem;
  color: #64748b;
}

/* --- Panel 1: Bank Transfer Styles --- */
.bank-transfer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 32px;
  align-items: start;
}

.bank-details-card {
  background: #fafcff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px 22px;
}

.bank-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #e2e8f0;
}

.bank-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0d2c52;
}

.bank-info-table {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bank-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid #edf2f7;
  gap: 12px;
}

.bank-info-row:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.bank-field-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: #475569;
  flex-shrink: 0;
}

.bank-field-value {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: right;
  font-family: 'Inter', var(--font-sans);
}

.placeholder-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  background-color: #fef3c7;
  color: #92400e;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px dashed #d97706;
  letter-spacing: 0.02em;
}

.btn-copy-chip {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0d2c52;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-copy-chip:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #081d37;
}

.btn-copy-chip.copied {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.bank-instructions-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bank-step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bank-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #334155;
}

.step-num-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #0d2c52;
  color: #e5a924;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.bank-retain-note {
  background: #f8fafc;
  border-left: 3px solid #d49a1d;
  padding: 12px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #475569;
}

/* --- Panel 2: QR Code / UPI Styles --- */
.qr-upi-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 36px;
  align-items: center;
}

.qr-code-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  position: relative;
}

.qr-frame-wrapper {
  width: 220px;
  height: 220px;
  margin: 0 auto 16px;
  background: #fcfcfc;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
}

.qr-crest-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 2px solid #d49a1d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.qr-crest-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.qr-code-svg {
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.qr-placeholder-tag {
  font-size: 0.78rem;
  font-weight: 800;
  color: #92400e;
  background-color: #fef3c7;
  border: 1px solid #fde68a;
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 10px;
  display: inline-block;
  letter-spacing: 0.02em;
}

.qr-actions-row {
  margin-top: 14px;
}

.btn-qr-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #0d2c52;
  background-color: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-qr-download:hover {
  background-color: #e2e8f0;
  border-color: #0d2c52;
  color: #081d37;
}

.qr-info-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qr-instruction-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0d2c52;
  margin-bottom: 4px;
}

.qr-instruction-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.55;
}

.upi-id-banner {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.upi-id-label-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.upi-id-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.05em;
}

.upi-id-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0d2c52;
}

.supported-apps-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.supported-apps-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 5px 12px;
  border-radius: 20px;
}

/* --- Panel 3: Net Banking / Online Payment (Easebuzz Architecture) --- */
.online-pay-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.amount-selector-block {
  background: #fafcff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px;
}

.amount-block-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0d2c52;
  margin-bottom: 12px;
  display: block;
}

.amount-preset-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.preset-amount-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0d2c52;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 11px 8px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  font-family: inherit;
}

.preset-amount-btn:hover {
  border-color: #d49a1d;
  color: #b88111;
  background-color: #fefcf6;
}

.preset-amount-btn.active {
  background: #0d2c52;
  color: #ffffff;
  border-color: #0d2c52;
  box-shadow: 0 4px 14px rgba(13, 44, 82, 0.28);
}

.custom-amount-wrapper {
  position: relative;
  max-width: 320px;
}

.currency-symbol-addon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0d2c52;
  pointer-events: none;
}

.custom-amount-input {
  width: 100%;
  padding: 11px 14px 11px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0d2c52;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-family: inherit;
  transition: border-color var(--transition);
}

.custom-amount-input:focus {
  outline: none;
  border-color: #d49a1d;
  box-shadow: 0 0 0 3px rgba(212, 154, 29, 0.15);
}

.online-form-fields-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.online-pay-action-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.btn-proceed-donation {
  background: linear-gradient(135deg, #0d2c52 0%, #081d37 100%);
  color: #ffffff !important;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 16px 28px;
  border-radius: 12px;
  border: 1px solid #d49a1d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(13, 44, 82, 0.25);
  transition: all var(--transition);
  font-family: inherit;
  width: 100%;
}

.btn-proceed-donation:hover {
  background: linear-gradient(135deg, #123868 0%, #0d2c52 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(13, 44, 82, 0.35);
  border-color: #f6cb55;
}

.security-badge-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.78rem;
  color: #64748b;
  flex-wrap: wrap;
  text-align: center;
}

.security-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   REUSABLE PAYMENT STATUS / EASEBUZZ GATEWAY MODAL
   ========================================================================== */
.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.payment-modal[hidden] {
  display: none !important;
}

.payment-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(3, 20, 39, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.payment-modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 540px;
  background: #ffffff;
  border-radius: 20px;
  border-top: 4px solid #d49a1d;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  padding: 28px 28px 24px;
  color: #0f172a;
  animation: tabFadeIn 0.25s ease-out;
}

.payment-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.3rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.payment-modal-close:hover {
  background-color: #f1f5f9;
  color: #0d2c52;
}

.payment-state-view[hidden] {
  display: none !important;
}

.payment-state-header {
  text-align: center;
  margin-bottom: 20px;
}

.state-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.state-icon-demo {
  background: #eff6ff;
  color: #0284c7;
  border: 1.5px solid #bae6fd;
}

.state-icon-success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1.5px solid #bbf7d0;
}

.state-icon-failure {
  background: #fef2f2;
  color: #dc2626;
  border: 1.5px solid #fecaca;
}

.state-icon-pending {
  background: #fffbeb;
  color: #d97706;
  border: 1.5px solid #fde68a;
}

.state-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0d2c52;
  margin-bottom: 4px;
}

.state-subtitle {
  font-size: 0.88rem;
  color: #64748b;
}

.gateway-payload-box {
  background: #0d1b2e;
  color: #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  font-family: monospace;
  font-size: 0.82rem;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gateway-payload-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gateway-payload-row:last-child {
  border-bottom: none;
}

.payload-key {
  color: #94a3b8;
}

.payload-val {
  color: #38bdf8;
  font-weight: 600;
}

.state-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.state-actions-row .btn {
  flex: 1;
}

.state-tabs-switcher {
  display: flex;
  gap: 6px;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 20px;
}

.switcher-tab-btn {
  flex: 1;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 4px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}

.switcher-tab-btn.active {
  background: #ffffff;
  color: #0d2c52;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Floating Copied Toast */
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background-color: #0d2c52;
  color: #ffffff;
  border: 1.5px solid #d49a1d;
  padding: 10px 20px;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 4500;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
}

.copy-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.copy-toast svg {
  color: #e5a924;
}

/* Responsive Media Queries for Donation Portal */
@media (max-width: 992px) {
  .donation-method-selector {
    gap: 12px;
  }
  .bank-transfer-grid {
    grid-template-columns: 1fr;
  }
  .qr-upi-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .qr-code-card {
    max-width: 320px;
    margin: 0 auto;
  }
  .online-form-fields-grid {
    grid-template-columns: 1fr;
  }
  .amount-preset-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .donation-method-selector {
    grid-template-columns: 1fr;
  }
  .method-panel {
    padding: 24px 18px;
  }
  .portal-intro-box {
    padding: 24px 18px;
  }
  .amount-preset-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .custom-amount-wrapper {
    max-width: 100%;
  }
  .bank-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .bank-field-value {
    width: 100%;
    justify-content: space-between;
  }
  .upi-id-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   FORMS & CARDS
   ========================================================================== */
.card {
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  background-color: var(--brand-white);
}

.form-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--brand-dark);
}

.form-desc {
  font-size: 0.88rem;
  color: var(--brand-muted);
  margin-bottom: 22px;
}

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

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

.required {
  color: var(--brand-accent);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--brand-dark);
  background-color: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.form-input.has-error,
.form-textarea.has-error {
  border-color: var(--brand-error);
}

.form-select {
  appearance: auto;
  cursor: pointer;
}

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

.field-error {
  display: block;
  font-size: 0.8rem;
  color: var(--brand-error);
  margin-top: 4px;
}

.field-error:empty {
  display: none;
}

.status-message {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.45;
  display: none;
}

.status-message.success {
  display: block;
  border: 1px solid var(--brand-success);
  color: var(--brand-success);
  background-color: var(--brand-white);
}

.status-message.error {
  display: block;
  border: 1px solid var(--brand-error);
  color: var(--brand-error);
  background-color: var(--brand-white);
}

/* ==========================================================================
   CONTACT SECTION & QUICK ACTIONS
   ========================================================================== */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-card {
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 26px 24px;
  background-color: var(--brand-white);
}

.contact-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--brand-border);
  color: var(--brand-dark);
}

.contact-item {
  margin-bottom: 16px;
}

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

.contact-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-muted);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.contact-address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--brand-dark);
}

.contact-phone-link {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.contact-hours-text {
  font-size: 0.92rem;
  color: var(--brand-dark);
}

/* Contact Quick Action Buttons: Call, WhatsApp, Get Directions */
.contact-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--brand-border);
}

.contact-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid var(--brand-border);
  background-color: var(--brand-light);
  color: var(--brand-dark);
  transition: border-color var(--transition), background-color var(--transition), color var(--transition);
}

.contact-action-btn.btn-call {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--brand-white);
}

.contact-action-btn.btn-call:hover {
  background-color: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  color: var(--brand-white);
}

.contact-action-btn.btn-whatsapp {
  background-color: #25d366;
  border-color: #25d366;
  color: #ffffff;
}

.contact-action-btn.btn-whatsapp:hover {
  background-color: #1eb757;
  border-color: #1eb757;
}

.contact-action-btn.btn-directions:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.map-wrapper {
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: #cbd5e1;
}

.map-wrapper iframe {
  display: block;
  width: 100%;
}

/* ==========================================================================
   PREMIUM INSTITUTIONAL FOOTER
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, #031427 0%, #061c36 45%, #020f1e 100%);
  color: #e2e8f0;
  border-top: 1px solid rgba(229, 169, 36, 0.35);
  position: relative;
  overflow: hidden;
}

/* Background Academic Watermark */
.site-footer::after {
  content: '';
  position: absolute;
  top: 10%;
  right: -40px;
  width: 480px;
  height: 380px;
  background: radial-gradient(circle, rgba(16, 77, 135, 0.16) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Fluid Wave Graphic at top of footer */
.footer-wave-wrap {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

.footer-wave-svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 28px;
}

.footer-main {
  position: relative;
  z-index: 2;
  padding: 56px 0 46px;
  max-width: 1320px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1.05fr 0.95fr 1.25fr;
  gap: 32px;
}

/* Vertical Dividers between columns */
.footer-col:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 28px;
}

/* Column 1: School Identity */
.footer-brand-col {
  display: flex;
  flex-direction: column;
}

.footer-brand-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.footer-crest-mark {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-crest-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.footer-brand-titles {
  display: flex;
  flex-direction: column;
}

.footer-school-name {
  display: block;
  font-size: 1.22rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.footer-gold-bar {
  width: 44px;
  height: 3px;
  background-color: #e5a924;
  margin: 7px 0 6px;
  border-radius: 2px;
}

.footer-trust-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #e5a924;
  letter-spacing: 0.01em;
}

.footer-desc {
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-top: 8px;
  max-width: 380px;
}

/* Column Titles with Gold Accent Underline */
.footer-col-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  display: block;
}

.footer-title-bar {
  display: block;
  width: 32px;
  height: 3px;
  background-color: #e5a924;
  margin-top: 6px;
  border-radius: 2px;
}

/* Column 2: Quick Links (2-Column with Icons) */
.footer-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

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

.footer-links-list a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  color: #cbd5e1;
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
}

.footer-links-list a svg {
  color: #94a3b8;
  flex-shrink: 0;
  transition: color var(--transition);
}

.footer-links-list a:hover {
  color: #e5a924;
  transform: translateX(3px);
}

.footer-links-list a:hover svg {
  color: #e5a924;
}

/* Column 3: Academics with Chevrons */
.footer-chevron-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-chevron-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #cbd5e1;
  text-decoration: none;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color var(--transition), border-color var(--transition);
}

.chevron-arrow {
  font-size: 1.25rem;
  line-height: 1;
  color: #94a3b8;
  transition: transform var(--transition), color var(--transition);
}

.footer-chevron-links a:hover {
  color: #e5a924;
  border-bottom-color: rgba(229, 169, 36, 0.35);
}

.footer-chevron-links a:hover .chevron-arrow {
  color: #e5a924;
  transform: translateX(4px);
}

/* Column 4: Contact Us with Badges */
.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(229, 169, 36, 0.14);
  border: 1px solid rgba(229, 169, 36, 0.38);
  color: #e5a924;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-address {
  font-style: normal;
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.footer-phone-text {
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.footer-phone-gold {
  color: #e5a924;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-phone-gold:hover {
  color: #f6cb55;
  text-decoration: underline;
}

.footer-hours-text {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.45;
}

/* Bottom Legal Line */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  background-color: #030d1a;
  position: relative;
  z-index: 2;
}

.footer-bottom-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1440px;
  box-sizing: border-box;
}

.footer-bottom-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.copyright-mark {
  color: #f59e0b;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  padding: 2px 4px;
  border: none;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  transition: transform var(--transition), filter var(--transition);
}

.copyright-mark:hover {
  filter: brightness(1.3);
  transform: scale(1.15);
}

.copyright-mark:active {
  transform: scale(0.92);
}

.copyright-text-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.copyright-main {
  font-size: 0.86rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}

.copyright-sub {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.powered-by-text {
  font-size: 0.86rem;
  font-weight: 500;
  color: #94a3b8;
}

.powered-by-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  transition: opacity var(--transition);
}

.powered-by-link:hover {
  opacity: 0.85;
}

.robonic-word {
  color: #0284c7;
  color: #0ea5e9;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.infotech-word {
  color: #38bdf8;
  font-weight: 700;
}

/* ==========================================================================
   DEVELOPER DETAILS MODAL (Easter Egg Popup: 4 Clicks on Copyright)
   ========================================================================== */
.dev-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dev-modal[hidden] {
  display: none !important;
}

.dev-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(3, 20, 39, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: devFadeIn 0.2s ease-out;
}

.dev-modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  background: linear-gradient(145deg, #091c33 0%, #031427 100%);
  border: 1.5px solid #d49a1d;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(212, 154, 29, 0.22);
  padding: 30px 24px;
  color: #ffffff;
  animation: devModalPop 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes devFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes devModalPop {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(14px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.dev-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: #94a3b8;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: all var(--transition);
}

.dev-modal-close:hover {
  color: #ffffff;
  border-color: #d49a1d;
  background: rgba(212, 154, 29, 0.15);
}

.dev-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.dev-badge-glow {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 154, 29, 0.25) 0%, rgba(184, 129, 17, 0.1) 100%);
  border: 1px solid #d49a1d;
  color: #e5a924;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 0 20px rgba(212, 154, 29, 0.3);
}

.dev-modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.dev-modal-subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
}

.dev-info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 18px;
}

.dev-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d49a1d 0%, #b88111 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(212, 154, 29, 0.4);
  flex-shrink: 0;
}

.dev-text {
  display: flex;
  flex-direction: column;
}

.dev-role-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e5a924;
}

.dev-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 2px 0 3px;
}

.dev-company-badge {
  font-size: 0.78rem;
  color: #38bdf8;
  font-weight: 600;
}

.dev-meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dev-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
}

.dev-meta-lbl {
  color: #64748b;
  font-weight: 500;
  flex-shrink: 0;
}

.dev-meta-val {
  color: #cbd5e1;
  font-weight: 600;
  text-align: right;
}

.dev-site-btn {
  background: linear-gradient(135deg, #d49a1d 0%, #b88111 100%);
  color: #ffffff !important;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(212, 154, 29, 0.35);
  transition: all var(--transition);
}

.dev-site-btn:hover {
  background: linear-gradient(135deg, #b88111 0%, #9e6c0a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(212, 154, 29, 0.45);
}

/* ==========================================================================
   FLOATING ADMISSIONS ENQUIRY BUTTON & SIDE PANEL MODAL
   ========================================================================== */
.floating-enquiry-btn {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 998;
  background-color: var(--brand-accent);
  color: var(--brand-secondary);
  border: 1px solid var(--brand-accent);
  border-radius: var(--radius);
  padding: 13px 20px;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.floating-enquiry-btn:hover {
  background-color: var(--brand-accent-hover);
  border-color: var(--brand-accent-hover);
  color: var(--brand-secondary);
}

/* Modal Side Panel */
.enquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  justify-content: flex-end;
}

.enquiry-modal[hidden] {
  display: none !important;
}

.enquiry-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(12, 28, 46, 0.78);
}

.enquiry-panel {
  position: relative;
  z-index: 2;
  width: 440px;
  max-width: 100vw;
  height: 100vh;
  background-color: var(--brand-white);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--brand-border);
  overflow-y: auto;
}

.enquiry-panel-header {
  padding: 24px 22px;
  border-bottom: 1px solid var(--brand-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background-color: var(--brand-light);
}

.enquiry-panel-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.25;
  margin-bottom: 6px;
}

.enquiry-panel-subtitle {
  font-size: 0.85rem;
  color: var(--brand-muted);
  line-height: 1.45;
}

.enquiry-panel-close {
  background: transparent;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  flex-shrink: 0;
  transition: border-color var(--transition), color var(--transition);
}

.enquiry-panel-close:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

.enquiry-panel-body {
  padding: 24px 22px;
  flex: 1;
}

.panel-admission-info {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--brand-border);
}

.panel-info-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-primary);
  margin-bottom: 12px;
}

.panel-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--brand-dark);
  margin-bottom: 14px;
}

.panel-info-note {
  font-size: 0.82rem;
  color: var(--brand-muted);
  line-height: 1.45;
  font-style: italic;
}

/* ==========================================================================
   FLOATING MOBILE ACTION BAR (Mobile Only)
   ========================================================================== */
.mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: var(--brand-white);
  border-top: 1px solid var(--brand-border);
}

.mobile-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 8px;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
  border: none;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}

.mobile-call {
  background-color: var(--brand-white);
  color: var(--brand-primary);
  border-right: 1px solid var(--brand-border);
}

.mobile-enquire {
  background-color: var(--brand-accent);
  color: var(--brand-secondary);
}

.mobile-erp {
  background-color: var(--brand-secondary);
  color: var(--brand-white) !important;
}

/* Responsive Navigation & Spacing */
/* Medium Desktops & Laptops (1141px to 1340px) - Tighten header spacing so ERP button never overflows */
@media (max-width: 1340px) and (min-width: 1141px) {
  .header-floating-bar {
    padding: 6px 12px;
    gap: 8px;
  }
  .brand-group {
    gap: 8px;
  }
  .school-logo-mark,
  .school-logo-img {
    width: 38px;
    height: 38px;
  }
  .school-name {
    font-size: 0.94rem;
  }
  .school-tagline {
    font-size: 0.68rem;
  }
  .nav-link {
    font-size: 0.8rem;
    padding: 6px 8px;
    gap: 4px;
  }
  .nav-link svg {
    width: 13px;
    height: 13px;
  }
  .erp-login-btn {
    font-size: 0.76rem;
    padding: 7px 12px;
    gap: 5px;
  }
  .erp-login-btn svg {
    width: 12px;
    height: 12px;
  }
}

/* Switch to Hamburger Navigation at <= 1140px */
@media (max-width: 1140px) {
  .site-header {
    padding: 6px 12px;
  }

  .header-floating-bar {
    border-radius: 14px;
    padding: 8px 14px;
  }

  .nav-divider {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 8px;
    right: 8px;
    width: auto;
    background-color: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
    z-index: 999;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .main-navigation.is-open {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 4px;
    padding: 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 0.92rem;
  }

  .erp-login-btn {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    font-size: 0.9rem;
    border-radius: 8px;
    margin-top: 6px;
  }

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

  .footer-col:not(:last-child) {
    border-right: none;
    padding-right: 0;
  }

  .footer-brand-col {
    grid-column: span 2;
  }
}

/* Tablet */
@media (max-width: 992px) {
  .facility-detail-card,
  .facility-detail-card.reversed {
    grid-template-columns: 1fr;
  }

  .facility-detail-card.reversed .facility-img-wrap {
    order: 0;
  }

  .facility-img-wrap {
    min-height: 220px;
    max-height: 260px;
  }

  .facility-content {
    padding: 24px;
  }

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

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

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

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

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

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

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

/* Mobile: <= 720px */
@media (max-width: 720px) {
  body {
    padding-bottom: 64px; /* Space for 3-button mobile action bar */
  }

  .page-banner {
    padding: 38px 0 32px;
  }

  .page-banner-title {
    font-size: 1.8rem;
  }

  .page-banner-subtitle {
    font-size: 0.95rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .facility-features {
    grid-template-columns: 1fr;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .section {
    padding: 52px 0;
  }

  .section-heading {
    font-size: 1.65rem;
  }

  .section-subheading {
    font-size: 0.92rem;
  }

  /* Header Branding on Small Screens */
  .school-logo-mark {
    width: 40px;
    height: 40px;
  }

  .school-logo-img {
    width: 40px;
    height: 40px;
  }

  .school-name {
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .school-tagline {
    font-size: 0.68rem;
  }

  /* Hero Mobile */
  .hero-section {
    min-height: 500px;
  }

  .hero-container {
    padding-top: 56px;
    padding-bottom: 44px;
  }

  .hero-title {
    font-size: 1.95rem;
    line-height: 1.2;
  }

  .hero-subheading {
    font-size: 1.05rem;
  }

  .hero-description {
    font-size: 0.92rem;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
  }

  .strip-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .strip-divider {
    display: none;
  }

  /* Quick Actions Mobile */
  .quick-action-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .quick-card {
    padding: 14px 12px;
    gap: 10px;
  }

  .quick-icon-box {
    width: 36px;
    height: 36px;
  }

  .quick-arrow {
    display: none;
  }

  /* About & Leadership Mobile */
  .about-grid,
  .founder-grid,
  .leadership-grid-2col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .leadership-card-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 16px;
  }

  .leadership-avatar-wrap {
    width: 140px;
    height: 165px;
  }

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

  .stat-card {
    padding: 18px 14px;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  /* Academics & Campus Mobile */
  .academics-grid,
  .campus-grid,
  .happenings-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Gallery Mobile - 2 Columns! */
  .gallery-filter-bar {
    width: 100%;
  }

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

  /* Lightbox Mobile */
  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }

  /* Admissions & Donation & Contact Mobile */
  .two-column {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .card,
  .content-box {
    padding: 22px 18px;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand-col {
    grid-column: span 1;
  }

  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-bottom-left {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .copyright-text-group {
    justify-content: center;
    text-align: center;
  }

  /* Hide floating button on mobile to avoid overlapping the bottom action bar */
  .floating-enquiry-btn {
    display: none;
  }

  /* Full-width Modal Panel on Mobile */
  .enquiry-panel {
    width: 100vw;
    height: 100vh;
    border-left: none;
  }

  /* Show 3-button Floating Mobile Action Bar */
  .mobile-action-bar {
    display: flex;
  }
}
