/* ══════════════════════════════════════════════════════════════
   TISSA CENTRAL COLLEGE — OFFICIAL WEBSITE STYLESHEET
   Colour Palette: Crimson #C41E3A | Gold #F5C518 | Dark #1A0A0E
   Fonts: Playfair Display (display) | Inter (body) | Noto Sans Sinhala
   ══════════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ─── */
:root {
  --crimson: #c41e3a;
  --crimson-dark: #9b1530;
  --crimson-deeper: #7a1026;
  --gold: #f5c518;
  --gold-dark: #d4a800;
  --gold-pale: #fdf3c0;
  --cream: #faf7f2;
  --dark: #1a0a0e;
  --dark-mid: #2d1218;
  --dark-soft: #4a2030;
  --white: #ffffff;
  --text-main: #2c1a1a;
  --text-muted: #6b4a4a;
  --border-subtle: rgba(196, 30, 58, 0.12);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-sinhala: "Noto Sans Sinhala", sans-serif;

  --shadow-sm: 0 2px 8px rgba(26, 10, 14, 0.08);
  --shadow-md: 0 6px 24px rgba(26, 10, 14, 0.12);
  --shadow-lg: 0 16px 48px rgba(26, 10, 14, 0.18);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

.sinhala-text {
  font-size: 0.95rem;
  line-height: 1.9;
}

.py-6 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

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

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

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--cream);
}
::-webkit-scrollbar-thumb {
  background: var(--crimson);
  border-radius: 3px;
}

/* ══════════════════════════════════════════════════════════════
   TOP BAR
   ══════════════════════════════════════════════════════════════ */
.topbar {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--crimson);
}

.topbar-motto {
  font-family: var(--font-sinhala);
  color: var(--gold);
  font-size: 0.82rem;
}

.topbar-links a,
.topbar .office-hours {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  transition: color var(--transition);
}

.topbar-links a:hover {
  color: var(--gold);
}

/* ══════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════ */
#mainNav {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(26, 10, 14, 0.1);
  padding: 0.6rem 0;
  transition:
    background var(--transition),
    box-shadow var(--transition);
  z-index: 1000;
}

#mainNav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 30px rgba(26, 10, 14, 0.15);
}

.nav-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--crimson);
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--crimson);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.navbar-toggler {
  border-color: var(--crimson);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23C41E3A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main) !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: var(--radius-sm);
  transition:
    color var(--transition),
    background var(--transition);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--crimson);
  transition:
    left var(--transition),
    right var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  left: 0.75rem;
  right: 0.75rem;
}

.nav-link:hover {
  color: var(--crimson) !important;
}

.btn-contact {
  background: var(--crimson) !important;
  color: var(--white) !important;
  padding: 0.4rem 1.1rem !important;
  border-radius: 50px !important;
  font-weight: 600;
}

.btn-contact:hover {
  background: var(--crimson-dark) !important;
}

.btn-contact::after {
  display: none;
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--crimson);
  padding: 0.5rem;
}

.dropdown-item {
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  transition:
    background var(--transition),
    color var(--transition);
}

.dropdown-item:hover {
  background: var(--crimson);
  color: var(--white);
}

/* ══════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(
      160deg,
      rgba(26, 10, 14, 0.88) 0%,
      rgba(156, 21, 48, 0.75) 50%,
      rgba(26, 10, 14, 0.92) 100%
    ),
    url("images/hero-bg.jpg") center center / cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Fallback gradient background if no hero image */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--dark) 0%,
    var(--crimson-deeper) 40%,
    var(--dark-mid) 100%
  );
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    rgba(26, 10, 14, 0.5) 100%
  );
  z-index: 1;
}

.hero-watermark {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.06;
  width: 600px;
  z-index: 1;
  perspective: 1200px;
  animation: slowSwing 20s ease-in-out infinite;
}

.hero-watermark img {
  width: 100%;
}

@keyframes slowSwing {
  0% {
    transform: translateY(-50%) rotateY(0deg);
  }
  50% {
    transform: translateY(-50%) rotateY(180deg);
  }
  100% {
    transform: translateY(-50%) rotateY(360deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 7rem 1rem 4rem;
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 197, 24, 0.15);
  border: 1px solid rgba(245, 197, 24, 0.4);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-title-sinhala {
  display: block;
  font-family: var(--font-sinhala);
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.4rem;
  opacity: 0.9;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-motto-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 0 auto 2rem;
  max-width: 600px;
}

.motto-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* .motto-sinhala {
  font-family: var(--font-sinhala);
  color: var(--gold);
  font-size: 2.05rem;
  white-space: nowrap;
} */

/* CTA Buttons */
.btn-gold {
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  border: 2px solid var(--gold);
  transition: all var(--transition);
  font-size: 0.92rem;
}

.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 197, 24, 0.35);
}

.btn-crimson {
  background: var(--crimson);
  color: var(--white);
  font-weight: 600;
  padding: 0.65rem 1.75rem;
  border-radius: 50px;
  border: 2px solid var(--crimson);
  transition: all var(--transition);
}

.btn-crimson:hover {
  background: var(--crimson-dark);
  border-color: var(--crimson-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-crimson {
  background: transparent;
  color: var(--crimson);
  font-weight: 600;
  padding: 0.65rem 1.75rem;
  border-radius: 50px;
  border: 2px solid var(--crimson);
  transition: all var(--transition);
}

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

/* Hero Stats */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  margin-top: 3rem;
  overflow: hidden;
}

.stat-item {
  flex: 1;
  min-width: 120px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
  align-self: stretch;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll-hint i {
  font-size: 1rem;
}

/* ─── Hero Crest / Logo ─── */
.hero-crest {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-crest-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 50%;
  border: 3px solid rgba(245, 197, 24, 0.6);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  padding: 8px;
  box-shadow:
    0 0 0 6px rgba(245, 197, 24, 0.12),
    0 0 0 12px rgba(245, 197, 24, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.4);
  animation: crestPulse 4s ease-in-out infinite;
}

@keyframes crestPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 6px rgba(245, 197, 24, 0.12),
      0 0 0 12px rgba(245, 197, 24, 0.06),
      0 8px 32px rgba(0, 0, 0, 0.4);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(245, 197, 24, 0.2),
      0 0 0 16px rgba(245, 197, 24, 0.08),
      0 8px 40px rgba(0, 0, 0, 0.5);
  }
}

/* Mobile: slightly smaller */
@media (max-width: 575.98px) {
  .hero-crest-img {
    width: 80px;
    height: 80px;
    padding: 6px;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* ─── Hero Motto Block ─── */
.hero-motto-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem auto 2rem;
  max-width: 720px;
  padding: 0 1rem;
}

.motto-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  min-width: 40px;
}

.motto-text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
  flex-shrink: 0;
}

.motto-pali {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.05em;
  font-style: italic;
}

.motto-english {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.motto-sinhala {
  font-family: var(--font-sinhala), "Iskoola Pota", "FM Abhaya", sans-serif;
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 0.1rem;
}
.motto-sinhala-small {
  font-family: var(--font-sinhala), "Iskoola Pota", "FM Abhaya", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 0.1rem;
}
/* ─── Responsive Adjustments ─── */
@media (max-width: 575.98px) {
  .hero-motto-block {
    flex-direction: column;
    gap: 0.8rem;
  }
  .motto-line {
    width: 60px;
    height: 1px;
    flex: none;
  }
  .motto-pali {
    font-size: 0.85rem;
  }
  .motto-english {
    font-size: 0.7rem;
  }
  .motto-sinhala {
    font-size: 0.95rem;
  }
}

/* ══════════════════════════════════════════════════════════════
   NOTICES TICKER
   ══════════════════════════════════════════════════════════════ */
.notices-ticker {
  display: flex;
  background: var(--crimson);
  color: var(--white);
  overflow: hidden;
}

.ticker-label {
  background: var(--dark);
  color: var(--gold);
  padding: 0.65rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ticker-wrap {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-content {
  white-space: nowrap;
  font-size: 0.82rem;
  padding: 0.65rem 0;
  animation: ticker 35s linear infinite;
}

@keyframes ticker {
  from {
    transform: translateX(100vw);
  }
  to {
    transform: translateX(-100%);
  }
}

/* ══════════════════════════════════════════════════════════════
   SECTION COMMON ELEMENTS
   ══════════════════════════════════════════════════════════════ */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 0.6rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.heading-ornament {
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--crimson), var(--gold));
  border-radius: 2px;
  margin: 0.8rem auto 0;
}

.heading-ornament.ornament-light {
  background: linear-gradient(to right, var(--gold), rgba(245, 197, 24, 0.3));
}

.section-desc {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.section-subtext {
  font-size: 0.9rem;
}

.sub-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.bg-cream {
  background: var(--cream);
}

/* ══════════════════════════════════════════════════════════════
   PRINCIPAL SECTION
   ══════════════════════════════════════════════════════════════ */
.section-principal {
  background: var(--white);
}

.principal-photo-wrap {
  position: relative;
  display: inline-block;
}

.principal-photo-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cream), var(--gold-pale));
  border: 5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--crimson);
  margin: 0 auto;
  box-shadow:
    0 0 0 12px rgba(245, 197, 24, 0.12),
    var(--shadow-lg);
}
/* Make the container clip the image into a circle */
.principal-photo-placeholder {
  position: relative;
  overflow: hidden; /* essential for clipping */
  /* keep all existing styles: width, height, border, background, shadow... */
}

/* The image itself – fill the circle with cover */
.principal-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures the face is centred and fills the circle */
  display: block;
  border-radius: 50%; /* matches the container */
}
.principal-card-badge {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--crimson);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 1.2rem;
  border-radius: 50px;
  white-space: nowrap;
}

.principal-message {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 1rem;
}

.principal-signature {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.signature-line {
  width: 60px;
  height: 2px;
  background: var(--gold);
}

.principal-signature span {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════════
   ABOUT — VISION/MISSION CARDS
   ══════════════════════════════════════════════════════════════ */
.vm-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  border-top: 4px solid var(--crimson);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

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

.vm-card--mission {
  border-top-color: var(--gold);
}

.vm-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.vm-card--mission .vm-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--dark);
}

.vm-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

/* ══════════════════════════════════════════════════════════════
   TIMELINE
   ══════════════════════════════════════════════════════════════ */
.timeline {
  position: relative;
  padding: 1rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--crimson), var(--gold));
  transform: translateX(-50%);
}

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

.timeline-item.left {
  justify-content: flex-end;
  padding-right: calc(50% + 2rem);
}
.timeline-item.right {
  justify-content: flex-start;
  padding-left: calc(50% + 2rem);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--crimson);
  border: 3px solid var(--gold);
  z-index: 1;
}

.timeline-content {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-sm);
  max-width: 380px;
  border-left: 3px solid var(--crimson);
}

.timeline-item.right .timeline-content {
  border-left: none;
  border-right: 3px solid var(--gold);
}

.timeline-year {
  display: inline-block;
  background: var(--crimson);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}

.timeline-item.right .timeline-year {
  background: var(--gold);
  color: var(--dark);
}

.timeline-content h5 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.timeline-content p {
  font-size: 0.87rem;
  color: var(--text-muted);
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   INFO CARDS (Name evolution, Motto)
   ══════════════════════════════════════════════════════════════ */
.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--crimson);
}

.info-card--motto {
  border-top-color: var(--gold);
}

.info-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--crimson);
  margin-bottom: 1rem;
}

.name-list {
  list-style: none;
  padding: 0;
}

.name-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.name-list li:last-child {
  border-bottom: none;
}

.year-badge {
  background: var(--crimson);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
}

.motto-pali {
  font-family: var(--font-sinhala);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--crimson);
  margin-bottom: 0.3rem;
}

.motto-roman {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.motto-meaning {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.motto-sinhala-full {
  font-family: var(--font-sinhala);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   RULES
   ══════════════════════════════════════════════════════════════ */
.rule-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: box-shadow var(--transition);
}

.rule-card:hover {
  box-shadow: var(--shadow-md);
}

.rule-card i {
  font-size: 1.4rem;
  color: var(--crimson);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.rule-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* Principals Table */
.principals-table-wrap {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.principals-table {
  margin: 0;
}

.principals-table thead tr {
  background: var(--crimson);
  color: var(--white);
}

.principals-table thead th {
  padding: 0.85rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.principals-table tbody td {
  padding: 0.75rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.principals-table tbody tr:hover {
  background: var(--gold-pale);
}

/* ══════════════════════════════════════════════════════════════
   ACHIEVEMENTS
   ══════════════════════════════════════════════════════════════ */
.section-achievements {
  background: linear-gradient(
    135deg,
    var(--dark) 0%,
    var(--crimson-deeper) 50%,
    var(--dark-mid) 100%
  );
  position: relative;
  overflow: hidden;
}

.section-achievements::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='15'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.achievement-tabs {
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.achievement-tab-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.achievement-tab-btn:hover,
.achievement-tab-btn.active {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
  font-weight: 700;
}

.ach-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  height: 100%;
  transition:
    transform var(--transition),
    background var(--transition);
}

.ach-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
}

.ach-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 1rem;
}

.ach-card h5 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.ach-card p {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1rem;
}

.ach-badge {
  display: inline-block;
  background: rgba(245, 197, 24, 0.15);
  border: 1px solid rgba(245, 197, 24, 0.4);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

/* ══════════════════════════════════════════════════════════════
   FACULTY
   ══════════════════════════════════════════════════════════════ */
.faculty-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  height: 100%;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-bottom: 4px solid var(--crimson);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

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

.faculty-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1.2rem;
}

.faculty-card h5 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.faculty-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.btn-link-crimson {
  color: var(--crimson);
  font-size: 0.85rem;
  font-weight: 600;
  transition: gap var(--transition);
}

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

/* ══════════════════════════════════════════════════════════════
   CO-CURRICULAR
   ══════════════════════════════════════════════════════════════ */
.leadership-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  border-left: 4px solid var(--crimson);
  transition: box-shadow var(--transition);
}

.leadership-card:hover {
  box-shadow: var(--shadow-md);
}

.leadership-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.leadership-card h5 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.leadership-card .small {
  color: var(--text-muted);
}

/* Clubs Grid */
.clubs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.club-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-size: 0.83rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: default;
}

.club-pill i {
  color: var(--crimson);
  font-size: 0.8rem;
}

.club-pill:hover {
  background: var(--crimson);
  color: var(--white);
  border-color: var(--crimson);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.club-pill:hover i {
  color: var(--gold);
}

/* ══════════════════════════════════════════════════════════════
   EVENTS
   ══════════════════════════════════════════════════════════════ */
.event-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}

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

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--crimson);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  min-width: 55px;
  text-align: center;
  flex-shrink: 0;
}

.event-date .month {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.event-date .day {
  font-size: 1.4rem;
  font-weight: 900;
  font-family: var(--font-display);
  line-height: 1;
}

.event-body h6 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.event-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   FACILITIES
   ══════════════════════════════════════════════════════════════ */
.section-facilities {
  background: linear-gradient(
    135deg,
    var(--crimson-deeper) 0%,
    var(--dark) 100%
  );
}

.facility-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  height: 100%;
  transition:
    transform var(--transition),
    background var(--transition);
}

.facility-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
}

.facility-icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.facility-card h5 {
  font-family: var(--font-display);
  color: var(--white);
  margin-bottom: 0.75rem;
}

.facility-card p {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(245, 197, 24, 0.3);
}

/* ══════════════════════════════════════════════════════════════
   HOW TO APPLY
   ══════════════════════════════════════════════════════════════ */
.section-apply {
  background: var(--white);
}

.apply-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--crimson);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

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

.apply-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 1.1rem;
}

.apply-card h5 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.apply-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.apply-badge {
  display: inline-block;
  background: rgba(196, 30, 58, 0.08);
  border: 1px solid rgba(196, 30, 58, 0.25);
  color: var(--crimson);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

.apply-contact-note {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ══════════════════════════════════════════════════════════════
   GALLERY
   ══════════════════════════════════════════════════════════════ */
.gallery-filter-btn {
  background: var(--white);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-rows: 180px;
  gap: 0.75rem;
}

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

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

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--gold-pale),
    rgba(196, 30, 58, 0.08)
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--crimson);
}

.gallery-placeholder i {
  font-size: 2rem;
  opacity: 0.4;
}

.gallery-placeholder span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0 1rem;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(196, 30, 58, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}

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

/* ══════════════════════════════════════════════════════════════
   PARENTS' CORNER
   ══════════════════════════════════════════════════════════════ */
.section-parents {
  background: linear-gradient(
    135deg,
    var(--dark-mid) 0%,
    var(--crimson-deeper) 100%
  );
}

.parent-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  color: var(--white);
}

.parent-icon {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.parent-card h5 {
  font-family: var(--font-display);
  color: var(--white);
  margin-bottom: 0.75rem;
}

.parent-card p {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1rem;
}

.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.notice-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 0.4rem;
}

/* ══════════════════════════════════════════════════════════════
   PPA
   ══════════════════════════════════════════════════════════════ */
.ppa-desc {
  max-width: 750px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.8;
}

.ppa-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--border-subtle);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

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

.ppa-card--featured {
  border-bottom-color: var(--gold);
  background: linear-gradient(to bottom, var(--white), var(--gold-pale));
}

.ppa-card i {
  font-size: 2.2rem;
  color: var(--crimson);
  margin-bottom: 1rem;
  display: block;
}

.ppa-card--featured i {
  color: var(--gold-dark);
}

.ppa-card h6 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

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

/* ─── PPA: Call for Applications ─── */
.ppa-callforapps {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--gold);
}

.ppa-callforapps-tag {
  display: inline-block;
  background: var(--crimson);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.9rem;
  border-radius: 50px;
}

.ppa-callforapps-header .sub-heading {
  margin-top: 0.6rem;
}

.ppa-callforapps-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

.ppa-poster-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ppa-poster-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 3px solid var(--gold-pale);
  display: block;
  transition: transform var(--transition);
}

.ppa-poster-stack a:hover .ppa-poster-img {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.ppa-lang-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 0.6rem;
}

.ppa-callforapps-org {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.ppa-positions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ppa-position-pill {
  background: var(--gold-pale);
  color: var(--dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  border: 1px solid rgba(245, 197, 24, 0.5);
}

.ppa-callforapps-meta {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ppa-callforapps-meta li {
  font-size: 0.87rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.ppa-callforapps-meta li:last-child {
  border-bottom: none;
}

.ppa-callforapps-meta strong {
  color: var(--dark);
}

.ppa-lang-divider {
  border: none;
  border-top: 1px dashed var(--border-subtle);
  margin: 1.5rem 0;
}

.ppa-oath-box {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border-left: 4px solid var(--crimson);
}

.ppa-oath-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ppa-oath-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.ppa-oath-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.ppa-oath-text:last-child {
  margin-bottom: 0;
}

@media (max-width: 575.98px) {
  .ppa-callforapps {
    padding: 1.5rem;
  }
  .ppa-oath-box {
    flex-direction: column;
  }
}

/* ══════════════════════════════════════════════════════════════
   NEWS
   ══════════════════════════════════════════════════════════════ */
.section-news {
  background: linear-gradient(
    135deg,
    var(--dark) 0%,
    var(--crimson-darker, #5a0c1f) 100%
  );
  background: var(--dark-mid);
}

.news-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
  transition:
    background var(--transition),
    transform var(--transition);
}

.news-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.news-tag {
  display: inline-block;
  background: var(--crimson);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.news-tag--sports {
  background: var(--gold);
  color: var(--dark);
}

.news-card h6 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.news-card p {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.2rem;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
}

.news-read {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.78rem;
  transition: gap var(--transition);
}

.news-read:hover {
  color: var(--gold-dark);
}

/* ══════════════════════════════════════════════════════════════
   ANTHEM
   ══════════════════════════════════════════════════════════════ */
.anthem-wrap {
  max-width: 550px;
  margin: 0 auto;
}

.anthem-icon {
  font-size: 3rem;
  color: var(--crimson);
  margin-bottom: 1rem;
  display: block;
}

.anthem-wrap h3 {
  font-family: var(--font-display);
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.anthem-wrap p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════════ */
.section-contact {
  background: linear-gradient(
    135deg,
    var(--crimson-deeper) 0%,
    var(--dark) 100%
  );
}

.contact-info {
  color: var(--white);
}

.contact-detail {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(245, 197, 24, 0.15);
  border: 1px solid rgba(245, 197, 24, 0.3);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.contact-detail h6 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.contact-detail p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin: 0;
}
.contact-detail a {
  color: rgba(255, 255, 255, 0.75);
}
.contact-detail a:hover {
  color: var(--gold);
}

.social-links {
  display: flex;
  gap: 0.65rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.social-btn:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.social-btn--sm {
  width: 34px;
  height: 34px;
  font-size: 0.78rem;
}

.contact-form-wrap {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-form-wrap h5 {
  color: var(--white);
  font-family: var(--font-display);
}

.contact-form-wrap .form-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}

.tc-input {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--white) !important;
  padding: 0.65rem 1rem !important;
  font-size: 0.88rem !important;
  transition:
    border-color var(--transition),
    background var(--transition) !important;
}

.tc-input:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.15) !important;
  outline: none;
}

.tc-input::placeholder {
  color: rgba(255, 255, 255, 0.35) !important;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--dark);
  border-top: 3px solid var(--crimson);
  padding: 4rem 0 0;
}

.footer-top {
  padding-bottom: 3rem;
}

.footer-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
  font-weight: 700;
}

.footer-sub {
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.footer-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
}

.footer-motto-text {
  font-family: var(--font-sinhala);
  color: var(--gold);
  font-size: 0.9rem;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

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

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

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

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

.footer-subscribe {
  display: flex;
  gap: 0;
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  border: none;
  color: var(--white);
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  outline: none;
}

.footer-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.footer-sub-btn {
  background: var(--gold);
  color: var(--dark);
  border: none;
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background var(--transition);
}

.footer-sub-btn:hover {
  background: var(--gold-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

.footer-credit {
  color: rgba(255, 255, 255, 0.3) !important;
}

.text-gold {
  color: var(--gold);
}
.text-crimson {
  color: var(--crimson);
}

/* ══════════════════════════════════════════════════════════════
   BACK TO TOP
   ══════════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--crimson);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--dark);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .py-6 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-content {
    padding: 6rem 1rem 3rem;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    padding: 1rem;
    flex: 1 1 50%;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item.left,
  .timeline-item.right {
    padding-left: 3.5rem;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-item.right .timeline-content {
    border-right: none;
    border-left: 3px solid var(--gold);
  }

  .topbar {
    display: none;
  }

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

@media (max-width: 767.98px) {
  .hero-stats {
    border-radius: var(--radius-md);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }
  .gallery-item--wide {
    grid-column: span 2;
  }
  .gallery-item--tall {
    grid-row: span 1;
  }
  .contact-form-wrap {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .brand-name {
    font-size: 0.95rem;
  }
  .brand-sub {
    display: none;
  }
  .hero-stats {
    flex-direction: column;
  }
  .stat-item {
    flex: 1;
    padding: 0.75rem;
  }
  .stat-divider {
    display: none;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .leadership-card {
    flex-direction: column;
  }
  .leadership-icon {
    width: 44px;
    height: 44px;
  }
  .event-card {
    flex-direction: column;
  }
  .hero-motto-banner {
    flex-direction: column;
    gap: 0.5rem;
  }
  .motto-line {
    width: 60px;
    height: 1px;
  }
}

/* ─── Sinhala Text Rendering Fix ─── */
/* Apply Sinhala font to all elements containing Sinhala text */
.principal-message,
.principal-signature span,
.section-principal .section-eyebrow,
.section-principal .section-heading,
.motto-pali,
.motto-sinhala-full,
.footer-motto-text,
.hero-motto-banner .motto-sinhala,
.topbar-motto,
.hero-title-sinhala {
  font-family:
    var(--font-sinhala), "Iskoola Pota", "FM Abhaya", "Sinhala MN",
    "Sinhala Sangam MN", sans-serif;
}

/* Ensure Sinhala text in the principal message renders with proper line-height */
.principal-message {
  font-family:
    var(--font-sinhala), "Iskoola Pota", "FM Abhaya", "Sinhala MN",
    "Sinhala Sangam MN", sans-serif;
  line-height: 1.9; /* Better readability for Sinhala */
  font-weight: 400;
}

/* For the motto in the info card */
.info-card--motto .motto-pali {
  font-family: var(--font-sinhala), "Iskoola Pota", "FM Abhaya", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
}

/* Hero section Sinhala text */
.hero-title-sinhala {
  font-family: var(--font-sinhala), "Iskoola Pota", "FM Abhaya", sans-serif;
  font-weight: 600;
}

/* Top bar motto */
.topbar-motto {
  font-family: var(--font-sinhala), "Iskoola Pota", "FM Abhaya", sans-serif;
}

/* General Sinhala text fallback - for any element with Sinhala characters */
[lang="si"],
.sinhala-text {
  font-family:
    var(--font-sinhala), "Iskoola Pota", "FM Abhaya", "Sinhala MN", sans-serif;
}

/* ══════════════════════════════════════════════════════════════
   PRINCIPALS PANEL (replaces long table — searchable, collapsible)
   ══════════════════════════════════════════════════════════════ */
.principals-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.principals-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.5rem;
  background: var(--cream);
  border-bottom: 1px solid var(--border-subtle);
}

.principals-search {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 340px;
}

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

.principals-search input {
  width: 100%;
  border: 1.5px solid var(--border-subtle);
  background: var(--white);
  border-radius: 50px;
  padding: 0.55rem 1rem 0.55rem 2.3rem;
  font-size: 0.85rem;
  color: var(--text-main);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.principals-search input:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.principals-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--crimson);
  white-space: nowrap;
}

.principals-list {
  max-height: 430px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.45s ease;
}

.principals-list.expanded {
  max-height: 4000px;
}

.principals-list::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--white));
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.principals-list.expanded::after {
  opacity: 0;
}

.principal-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 1.1rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition);
}

.principal-row:hover {
  background: var(--gold-pale);
}

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

.principal-row-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold-dark);
  text-align: center;
}

.principal-row-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.principal-row-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--crimson);
  background: rgba(196, 30, 58, 0.08);
  padding: 0.15rem 0.55rem;
  border-radius: 50px;
}

.principal-row-period {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.principal-row--current {
  background: linear-gradient(to right, var(--gold-pale), transparent);
}

.principal-row--current .principal-row-tag {
  color: var(--gold-dark);
  background: rgba(245, 197, 24, 0.18);
}

.principal-row.is-hidden {
  display: none;
}

.principals-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--cream);
  border: none;
  border-top: 1px solid var(--border-subtle);
  color: var(--crimson);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.9rem;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition);
}

.principals-toggle:hover {
  background: var(--crimson);
  color: var(--white);
}

.principals-toggle i {
  transition: transform var(--transition);
}

.principals-toggle.open i {
  transform: rotate(180deg);
}

/* Mobile: stack the row into two lines */
@media (max-width: 575.98px) {
  .principal-row {
    grid-template-columns: 30px 1fr;
    grid-template-areas:
      "num name"
      ".   period";
    row-gap: 0.25rem;
  }
  .principal-row-num {
    grid-area: num;
  }
  .principal-row-name {
    grid-area: name;
  }
  .principal-row-period {
    grid-area: period;
    font-size: 0.78rem;
  }
  .principals-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .principals-search {
    max-width: none;
  }
}

/* ══════════════════════════════════════════════════════════════
   VIDEO CARDS & THUMBNAILS (real YouTube thumbs + play overlay)
   ══════════════════════════════════════════════════════════════ */
.video-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
  padding: 1.1rem 1.1rem 1.25rem;
}

.video-card:hover {
  box-shadow: var(--shadow-md);
}

.video-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.85rem;
  padding: 0 0.15rem;
}

.video-thumb {
  position: relative;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.video-thumb:hover .video-thumb-img {
  transform: scale(1.06);
}

.video-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 10, 14, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.video-thumb:hover .video-thumb-overlay {
  background: rgba(26, 10, 14, 0.55);
}

.video-thumb .video-play-icon {
  font-size: 3.2rem;
  color: var(--gold);
  transition: transform var(--transition);
}

.video-thumb:hover .video-play-icon {
  transform: scale(1.15);
}

.anthem-video-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.anthem-play-btn {
  margin-bottom: 0.5rem;
}

/* ══════════════════════════════════════════════════════════════
   SUPPORT US SECTION
   ══════════════════════════════════════════════════════════════ */
.section-support {
  background: linear-gradient(
    135deg,
    var(--crimson-deeper) 0%,
    var(--dark-mid) 100%
  );
}

.support-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ══════════════════════════════════════════════════════════════
   VIDEO MODAL (LIGHTBOX)
   ══════════════════════════════════════════════════════════════ */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.video-modal.open {
  display: flex;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 4, 6, 0.9);
  backdrop-filter: blur(4px);
}

.video-modal-content {
  position: relative;
  width: min(90vw, 960px);
  z-index: 1;
}

.video-modal-frame-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-modal-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.video-modal-close:hover {
  background: var(--crimson);
  border-color: var(--crimson);
}

@media (max-width: 575.98px) {
  .video-modal-close {
    top: -2.8rem;
    width: 36px;
    height: 36px;
  }
}

/* ══════════════════════════════════════════════════════════════
   ANTHEM MINI PLAYER (floats, persists while scrolling)
   ══════════════════════════════════════════════════════════════ */
.anthem-mini-player {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 300px;
  background: var(--dark);
  border: 1px solid rgba(245, 197, 24, 0.25);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 1500;
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease;
}

.anthem-mini-player.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.anthem-mini-player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  background: var(--dark-mid);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.anthem-mini-player-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1;
}

.anthem-mini-player-close:hover {
  color: var(--gold);
}

.anthem-mini-player-frame-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

.anthem-mini-player-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 575.98px) {
  .anthem-mini-player {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
  }

  /* Nudge back-to-top up so it doesn't collide with the mini player */
  body.anthem-open .back-to-top {
    bottom: calc(1rem + 190px + 0.75rem);
    transition: bottom var(--transition);
  }
}

/* Fallback thumbnail for videos with embedding disabled by the uploader */
.video-thumb--external {
  display: block;
}

.video-thumb--external .video-thumb-overlay {
  flex-direction: column;
  gap: 0.5rem;
}

.video-thumb-external-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  background: rgba(0, 0, 0, 0.45);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

/* ══════════════════════════════════════════════════════════════
   NAVBAR WAVING SCHOOL FLAG (extends from near the Contact button)
   ══════════════════════════════════════════════════════════════ */
#mainNav .container {
  position: relative;
}

.nav-flag {
  position: absolute;
  top: 50%;
  left: 100%;
  margin-left: -18px;
  width: 260px;
  transform-origin: 6% 45%;
  animation: flagSway 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 3px 6px rgba(26, 10, 14, 0.25));
}

.nav-flag picture,
.nav-flag img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes flagSway {
  0%,
  100% {
    transform: translateY(-50%) rotate(0deg) scaleY(1);
  }
  25% {
    transform: translateY(-50%) rotate(1.6deg) scaleY(0.99);
  }
  50% {
    transform: translateY(-50%) rotate(0.2deg) scaleY(1.01);
  }
  75% {
    transform: translateY(-50%) rotate(-1.3deg) scaleY(0.99);
  }
}

/* Extra-large screens: container has more breathing room, flag can be longer */
@media (max-width: 1399.98px) {
  .nav-flag {
    width: 210px;
    margin-left: -16px;
  }
}

@media (max-width: 1199.98px) {
  .nav-flag {
    width: 168px;
    margin-left: -14px;
  }
}

/* Below lg: nav links (including Contact) collapse into the hamburger menu,
   so anchor the flag beside the toggler instead of the now-hidden Contact button */
@media (max-width: 991.98px) {
  .nav-flag {
    left: auto;
    right: 54px;
    margin-left: 0;
    width: 66px;
  }
}

@media (max-width: 575.98px) {
  .nav-flag {
    display: none;
  }
}

/* ══════════════════════════════════════════════════════════════
   GALLERY — ALBUM GRID (data-driven, see js/gallery-data.js)
   ══════════════════════════════════════════════════════════════ */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.album-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.album-card:hover,
.album-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  outline: none;
}

.album-cover {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

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

.album-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 10, 14, 0.75),
    rgba(26, 10, 14, 0) 55%
  );
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
}

.album-cover-overlay i {
  color: var(--gold);
}

.album-category-tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(196, 30, 58, 0.9);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
}

.album-info {
  padding: 1.1rem 1.25rem 1.3rem;
}

.album-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.album-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════
   GALLERY LIGHTBOX (album viewer with prev/next)
   ══════════════════════════════════════════════════════════════ */
.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2100;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.gallery-lightbox.open {
  display: flex;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 4, 6, 0.92);
  backdrop-filter: blur(4px);
}

.gallery-lightbox-content {
  position: relative;
  width: min(92vw, 900px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-lightbox-frame {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--dark);
  box-shadow: var(--shadow-lg);
  min-height: 260px;
  max-height: 70vh;
}

.gallery-lightbox-frame img {
  width: 100%;
  height: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 2;
}

.gallery-lightbox-nav:hover {
  background: var(--crimson);
  border-color: var(--crimson);
}

.gallery-lightbox-prev {
  left: 1rem;
}

.gallery-lightbox-next {
  right: 1rem;
}

.gallery-lightbox-info {
  text-align: center;
  color: var(--white);
  margin-top: 1.25rem;
  max-width: 700px;
}

.gallery-lightbox-info h5 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.gallery-lightbox-info p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.gallery-lightbox-counter {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.gallery-lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 2;
}

.gallery-lightbox-close:hover {
  background: var(--crimson);
  border-color: var(--crimson);
}

@media (max-width: 575.98px) {
  .gallery-lightbox-close {
    top: -2.8rem;
    width: 36px;
    height: 36px;
  }
  .gallery-lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
  .album-cover {
    height: 170px;
  }
}
