:root {
  --primary: #0A1F44;
  --primary-mid: #102A5E;
  --primary-light: #1A3A7A;
  --gold: #C9A84C;
  --gold-light: #E8C96D;
  --gold-muted: #F5E6B8;
  --white: #FFFFFF;
  --off-white: #F8F6F1;
  --text-dark: #0A1F44;
  --text-muted: #5A6A80;
  --border: #C9A84C30;
  --shadow: 0 8px 32px rgba(10, 31, 68, 0.15);
  --shadow-strong: 0 18px 42px rgba(10, 31, 68, 0.22);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-pill: 40px;
  --container: 1200px;
  --nav-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--text-dark);
  background: var(--off-white);
  line-height: 1.7;
}

img {
  width: 100%;
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  line-height: 1.2;
  margin: 0 0 1rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 55px 0;
}

.section-light {
  background: var(--off-white);
}

.section-dark {
  background: var(--primary);
  color: var(--white);
}

.section-pattern {
  background:
    linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(201, 168, 76, 0) 45%),
    repeating-linear-gradient(-35deg, rgba(201, 168, 76, 0.08) 0 10px, transparent 10px 26px),
    var(--primary);
  color: var(--white);
}

.eyebrow,
.page-badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 2.2rem;
  text-align: center;
}

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

.section-heading h2,
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-heading p,
.hero-subtitle,
.page-hero p {
  color: var(--text-muted);
}

.section-dark .section-heading p,
.section-pattern .section-heading p,
.section-dark .hero-subtitle,
.section-pattern p,
.page-hero p {
  color: rgba(248, 246, 241, 0.78);
}

.gold-underline {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 999px;
  margin: 1rem auto 1.3rem;
}

.section-heading.left .gold-underline,
.hero-content .gold-underline {
  margin-left: 0;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

.grid-3,
.grid-4,
.grid-5,
.grid-6 {
  grid-template-columns: 1fr;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

.card-navy {
  background: var(--primary-mid);
  color: var(--white);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.card-top-accent {
  border-top: 3px solid var(--gold);
}

.card-left-accent {
  border-left: 4px solid var(--gold);
}

.card-gold-border {
  border: 1px solid rgba(201, 168, 76, 0.45);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary:hover {
  background: transparent;
  color: var(--gold);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-secondary.light {
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--primary);
}

.btn-pill {
  border-radius: var(--radius-pill);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: var(--primary);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
  width: 100%;
}

.navbar.home-nav {
  background: transparent;
}

.navbar.scrolled,
.navbar.inner-nav {
  background: rgba(10, 31, 68, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.32);
  box-shadow: 0 10px 28px rgba(5, 15, 34, 0.18);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand svg {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--primary);
  border-top: 1px solid rgba(201, 168, 76, 0.2);
  padding: 1rem 1rem 1.5rem;
  display: none;
}

.nav-menu.open {
  display: block;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-links a {
  position: relative;
  color: var(--white);
  font-weight: 500;
  padding: 0.7rem 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.25rem;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a.partner-link {
  color: var(--gold-light);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a.partner-link::after {
  background: var(--gold-light);
}

.nav-links a.partner-link:hover {
  color: var(--white);
}

.nav-links a.partner-link:hover::after {
  background: var(--white);
}

.nav-apply {
  display: none;
}

.nav-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.nav-toggle-bars {
  position: relative;
  width: 22px;
  height: 16px;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 7px; }
.nav-toggle-bars span:nth-child(3) { top: 14px; }

.nav-toggle.open .nav-toggle-bars span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.nav-toggle.open .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .nav-toggle-bars span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: calc(var(--nav-height) + 30px) 0 50px;
  background:
    linear-gradient(135deg, rgba(10, 31, 68, 0.92), rgba(10, 31, 68, 0.75)),
    url("../images/New School image.png") center/cover;
  color: var(--white);
}

.hero-content {
  max-width: 840px;
  text-align: center;
  margin: 0 auto;
}

.hero-content .pill,
.hero-content .gold-underline {
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  margin-top: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  max-width: 580px;
  margin: 0 auto 1.7rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}

.hero-stat i,
.hero-stat span:first-child {
  color: var(--gold);
  font-size: 1.15rem;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 1.25rem;
  animation: bounce 1.8s infinite;
}

.hero-animate {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.hero-animate.delay-1 { animation-delay: 0.1s; }
.hero-animate.delay-2 { animation-delay: 0.25s; }
.hero-animate.delay-3 { animation-delay: 0.4s; }
.hero-animate.delay-4 { animation-delay: 0.55s; }
.hero-animate.delay-5 { animation-delay: 0.7s; }
.hero-animate.delay-6 { animation-delay: 0.85s; }

.page-hero {
  padding: calc(var(--nav-height) + 35px) 0 60px;
  background: linear-gradient(135deg, rgba(10, 31, 68, 0.98), rgba(16, 42, 94, 0.94));
  color: var(--white);
}

.page-hero .container {
  max-width: 820px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: rgba(248, 246, 241, 0.7);
  font-size: 0.95rem;
}

.breadcrumbs a {
  color: var(--gold-light);
}

.image-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.image-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
  width: 100%;
  display: block;
}

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


.feature-list,
.icon-rows,
.check-list {
  display: grid;
  gap: 1rem;
}

.icon-row {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
}

.icon-box,
.icon-row i {
  color: var(--gold);
  font-size: 1.2rem;
  margin-top: 0.15rem;
}

.quote-block {
  margin-top: 1.7rem;
  padding: 1.4rem 1.5rem;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  font-style: italic;
}

.section-dark .quote-block {
  background: rgba(255, 255, 255, 0.06);
}

.trust-grid,
.academic-scroll,
.activities-grid,
.testimonial-grid,
.team-grid,
.subject-grid,
.gallery-grid,
.class-highlights,
.highlights-grid,
.contact-cards,
.overview-stats {
  display: grid;
  gap: 1.25rem;
}

.trust-card,
.teacher-card,
.subject-card,
.timeline-item,
.step-card,
.contact-card,
.highlight-card {
  padding: 1.5rem;
}

.trust-card i,
.subject-card i,
.contact-card i {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.trust-card p,
.teacher-card p,
.subject-card p,
.activity-block p,
.timeline-item p {
  color: rgba(248, 246, 241, 0.75);
}

.section-light .subject-card p,
.section-light .teacher-card p,
.section-light .contact-card p,
.section-light .timeline-item p,
.section-light .step-card p {
  color: var(--text-muted);
}

.class-card {
  padding: 1.35rem;
  min-width: 185px;
  border: 1px solid rgba(201, 168, 76, 0.45);
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.class-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(10, 31, 68, 0.22);
  border-color: var(--gold-light);
}

.class-card h3 {
  color: var(--gold);
  font-size: 1.3rem;
}

.class-card a {
  color: var(--gold-light);
  font-weight: 700;
}

.class-row-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 0.5rem;
}

.activity-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
}

.activity-tile img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.activity-tile:hover img {
  transform: scale(1.05);
}

.activity-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 31, 68, 0.05), rgba(10, 31, 68, 0.85));
}

.activity-caption {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1rem;
  z-index: 1;
  color: var(--gold-light);
  font-size: 1.2rem;
  font-family: "Playfair Display", serif;
}

.testimonial-card {
  padding: 1.6rem;
}

.testimonial-card .quote-icon {
  color: var(--gold);
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.testimonial-meta {
  margin-top: 1.2rem;
}

.testimonial-meta strong {
  display: block;
  color: var(--primary);
}

.testimonial-meta span {
  color: var(--gold);
  font-size: 0.95rem;
}

.cta-banner {
  text-align: center;
}

.page-intro {
  max-width: 860px;
  margin: 0 auto 2rem;
  text-align: center;
}

.value-card,
.teacher-card,
.stat-card,
.step-card,
.contact-card,
.highlight-card,
.syllabus-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.value-card,
.stat-card,
.step-card,
.highlight-card {
  background: var(--primary-mid);
  color: var(--white);
  border: 1px solid rgba(201, 168, 76, 0.28);
}

.value-card {
  padding: 2rem 1.5rem;
  border-top: 3px solid var(--gold);
}

.value-card i,
.stat-card h3,
.step-number,
.highlight-card h4 {
  color: var(--gold);
}

.teacher-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(201, 168, 76, 0.28);
}

.teacher-card img {
  height: 260px;
  object-fit: cover;
}

.teacher-card-body {
  padding: 1.4rem;
}

.teacher-role {
  color: var(--gold);
  font-weight: 700;
}

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

.stat-card {
  padding: 1.5rem;
  text-align: center;
}

.stat-card h3 {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  margin-bottom: 0.4rem;
}

.academic-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.8rem;
}

.academic-card p {
  color: rgba(248, 246, 241, 0.75);
}

.approach-card {
  padding: 1.6rem;
}

.approach-card h3,
.syllabus-card h3,
.activity-block h2,
.contact-card h3,
.step-card h3 {
  font-size: 1.45rem;
}

.subject-card {
  padding: 1.5rem;
  text-align: center;
}

.subject-card h3 {
  font-size: 1.2rem;
}

.highlight-box {
  background: var(--primary);
  color: var(--white);
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.highlight-box h4 {
  color: var(--gold);
  font-family: "DM Sans", sans-serif;
  margin-bottom: 0.4rem;
}

.syllabus-card {
  background: var(--white);
  border-top: 3px solid var(--gold);
  padding: 1.5rem;
}

.syllabus-section {
  position: relative;
}

.syllabus-tabs {
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem;
  margin: 0 auto 1.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.syllabus-tab {
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  border: 1px solid rgba(201, 168, 76, 0.28);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.syllabus-tab:hover,
.syllabus-tab.active {
  background: var(--primary);
  color: var(--gold);
  transform: translateY(-2px);
}

.syllabus-panels {
  position: relative;
}

.syllabus-panel {
  display: none;
}

.syllabus-panel.active {
  display: block;
  animation: fadeUp 0.35s ease;
}

.syllabus-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.syllabus-feature-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  border-top: 4px solid var(--gold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.syllabus-feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.syllabus-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin-bottom: 0.9rem;
  background: rgba(201, 168, 76, 0.14);
  color: var(--gold);
  font-size: 1.05rem;
}

.syllabus-feature-card ul {
  color: var(--text-muted);
  display: grid;
  gap: 0.5rem;
  padding-left: 1rem;
}

.syllabus-feature-card li {
  line-height: 1.55;
}

.syllabus-feature-card.accent-blue {
  border-top-color: #4f7cfb;
}

.syllabus-feature-card.accent-red {
  border-top-color: #d9534f;
}

.syllabus-feature-card.accent-green {
  border-top-color: #2e8b57;
}

.syllabus-feature-card.accent-purple {
  border-top-color: #8b5cf6;
}

.syllabus-feature-card.accent-gold {
  border-top-color: #c9a84c;
}

.syllabus-feature-card.accent-cyan {
  border-top-color: #0f766e;
}

.syllabus-feature-card.accent-orange {
  border-top-color: #ea580c;
}

.syllabus-feature-card.accent-indigo {
  border-top-color: #4f46e5;
}

.syllabus-feature-card.accent-pink {
  border-top-color: #d946ef;
}

.syllabus-feature-card.accent-teal {
  border-top-color: #0f766e;
}

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

.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.photo-card img {
  aspect-ratio: 1 / 0.8;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.45s ease;
  width: 100%;
  height: 100%;
  display: block;
}

.photo-card:hover img {
  transform: scale(1.05);
}

.photo-card:hover {
  outline: 2px solid rgba(201, 168, 76, 0.5);
}

.activity-block {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 3rem;
}

.activity-block:nth-child(even) .activity-media {
  order: 2;
}

.activity-block:nth-child(even) .activity-content {
  order: 1;
}

.activity-media {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.activity-block img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 430px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.activity-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Specific image adjustment to avoid cropping heads; shifts image content downward */
.activity-media img.object-adjust {
  object-position: center 15%;
}

.object-adjust-top {
  object-position: center top !important;
}


.gold-bullets li {
  margin-bottom: 0.65rem;
}

@media (max-width: 900px) {
  .activity-block {
    grid-template-columns: 1fr;
  }

  .activity-block:nth-child(even) .activity-media,
  .activity-block:nth-child(even) .activity-content {
    order: initial;
  }
}

.gold-bullets li::marker {
  color: var(--gold);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--gold), rgba(201, 168, 76, 0.15));
}

.timeline-item {
  position: relative;
  margin-left: 2.2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.timeline-item::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  left: -29px;
  top: 28px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(201, 168, 76, 0.14);
  animation: goldPulse 2.5s infinite;
}

.timeline-item h3 {
  color: var(--primary);
}

.step-card {
  padding: 1.6rem;
  position: relative;
}

.step-number {
  font-family: "Playfair Display", serif;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
}

.doc-list li {
  list-style: none;
  padding-left: 1.9rem;
  position: relative;
  margin-bottom: 0.8rem;
}

.doc-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--gold);
  position: absolute;
  left: 0;
  top: 0.05rem;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border: 1px solid rgba(201, 168, 76, 0.25);
}

.inquiry-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-weight: 700;
  color: var(--primary);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(10, 31, 68, 0.14);
  background: var(--white);
  color: var(--text-dark);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.12);
}

.error-message {
  color: #aa2e2e;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.success-card {
  display: none;
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.12), rgba(201, 168, 76, 0.22));
  border: 1px solid rgba(201, 168, 76, 0.35);
}

.success-card.visible {
  display: block;
  animation: fadeUp 0.5s ease;
}

.success-card i {
  font-size: 2.4rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.error-card {
  display: none;
  text-align: center;
  padding: 2.2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.12), rgba(244, 63, 94, 0.22));
  border: 1px solid rgba(244, 63, 94, 0.35);
  box-shadow: 0 8px 32px rgba(244, 63, 94, 0.08);
}

.error-card.visible {
  display: block;
  animation: fadeUp 0.5s ease;
}

.error-card i {
  font-size: 2.4rem;
  color: #f43f5e;
  margin-bottom: 1rem;
}


.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--primary);
  font-weight: 700;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.gallery-item:hover {
  outline: 2px solid rgba(201, 168, 76, 0.5);
}

.gallery-item.hidden {
  display: none;
}

.contact-details {
  display: grid;
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

.contact-line {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.map-frame {
  border: 0;
  width: 100%;
  min-height: 100%;
  height: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-footer {
  background: #050F22;
  color: rgba(248, 246, 241, 0.82);
  border-top: 3px solid var(--gold);
}

.footer-main {
  padding: 55px 0 35px;
  display: grid;
  gap: 2rem;
}

.footer-brand p,
.footer-links a,
.footer-contact p {
  color: rgba(248, 246, 241, 0.76);
}

.footer-links {
  display: grid;
  gap: 0.8rem;
}

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

.footer-links a.partner-link {
  color: var(--gold-light);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

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

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.social-links a,
.whatsapp-small {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.28);
}

.footer-bottom {
  background: #030A16;
  color: var(--gold);
  text-align: center;
  padding: 1rem;
  font-size: 0.95rem;
}

.floating-whatsapp,
.back-to-top {
  position: fixed;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-strong);
  z-index: 1150;
}

.floating-whatsapp {
  right: 20px;
  bottom: 20px;
  background: var(--gold);
  color: var(--primary);
}

.floating-whatsapp::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 2px solid rgba(201, 168, 76, 0.5);
  border-radius: 50%;
  animation: whatsappPulse 3s infinite;
}

.back-to-top {
  left: 20px;
  bottom: 22px;
  background: var(--primary);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Utility classes */
.btn-center {
  justify-content: center !important;
  margin-top: 2rem;
}

.hero-btn-group {
  justify-content: center;
}

.link-gold {
  color: var(--gold);
  font-weight: 700;
  transition: color 0.3s ease;
}

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

/* Accessibility - Focus visible */
body.keyboard-nav *:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Error card for form failures */
.error-card {
  display: none;
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(170, 46, 46, 0.12), rgba(170, 46, 46, 0.22));
  border: 1px solid rgba(170, 46, 46, 0.35);
}

.error-card.visible {
  display: block;
  animation: fadeUp 0.5s ease;
}

.error-card i {
  font-size: 2.4rem;
  color: #aa2e2e;
  margin-bottom: 1rem;
}

/* Submission Modal */
.submission-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

.submission-modal.show {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.4s ease;
}

.modal-header {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--primary);
}

.modal-body {
  padding: 2rem 1.5rem;
  text-align: center;
}

.modal-body i {
  font-size: 3.2rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: block;
}

.modal-body h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.modal-body p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  display: flex;
  justify-content: center;
}

.modal-close-btn {
  min-width: 140px;
}

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

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

/* Image error handling */
img {
  background: linear-gradient(45deg, var(--off-white), rgba(201, 168, 76, 0.1));
}

img[alt] {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -10px);
  }
  60% {
    transform: translate(-50%, -5px);
  }
}

@keyframes whatsappPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.85;
  }
  60% {
    transform: scale(1.2);
    opacity: 0;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

@keyframes goldPulse {
  0%, 100% {
    box-shadow: 0 0 0 6px rgba(201, 168, 76, 0.14);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(201, 168, 76, 0.06);
  }
}

@media (min-width: 700px) {
  .hero-stats,
  .grid-3,
  .grid-4,
  .grid-5,
  .grid-6,
  .trust-grid,
  .testimonial-grid,
  .class-highlights,
  .highlights-grid,
  .contact-cards,
  .subject-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2,
  .split,
  .footer-main,
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 960px) and (max-width: 1120px) {
  .nav-links {
    gap: 0.8rem;
    font-size: 0.9rem;
  }
  .nav-actions {
    gap: 0.8rem;
  }
}

@media (min-width: 960px) {
  .section {
    padding: 90px 0;
  }

  .nav-toggle {
    display: none;
  }

  .nav-apply {
    display: inline-flex;
  }

  .nav-menu {
    position: static;
    display: block;
    background: transparent;
    border: 0;
    padding: 0;
  }

  .nav-links {
    flex-direction: row;
    align-items: center;
    gap: 1.4rem;
  }

  .nav-links a {
    padding: 0.5rem 0;
  }

  .nav-actions {
    gap: 1.5rem;
  }

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

  .grid-3,
  .trust-grid,
  .testimonial-grid,
  .subject-grid,
  .team-grid,
  .contact-cards,
  .highlights-grid,
  .class-highlights {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

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

  .academic-scroll {
    grid-template-columns: repeat(5, 1fr);
  }

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

  .timeline {
    grid-template-columns: repeat(7, 1fr);
  }

  .timeline::before {
    left: 0;
    right: 0;
    top: 34px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .timeline-item {
    margin-left: 0;
    margin-top: 2.2rem;
    min-height: 210px;
  }

  .timeline-item::before {
    left: calc(50% - 7px);
    top: -37px;
  }

  .footer-main {
    grid-template-columns: 1.2fr 0.8fr 1fr;
  }
}

/* Calendar Styles */
.calendar-tabs-wrapper {
  overflow-x: auto;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  margin-bottom: 2.5rem;
  -webkit-overflow-scrolling: touch;
  text-align: center;
  scrollbar-width: none; /* Firefox */
}

.calendar-tabs-wrapper::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.calendar-tabs {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.35rem;
  background: rgba(10, 31, 68, 0.4);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(201, 168, 76, 0.2);
  text-align: left;
}

.calendar-tab {
  padding: 0.65rem 1.2rem;
  background: transparent;
  color: rgba(248, 246, 241, 0.8);
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.calendar-tab.active,
.calendar-tab:hover {
  background: var(--gold);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.25);
}

.calendar-panels {
  background: var(--primary-mid);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}

.calendar-panel {
  display: none;
}

.calendar-panel.active {
  display: block;
  animation: fadeUp 0.4s ease forwards;
}

.calendar-list {
  display: grid;
  gap: 0.85rem;
}

.calendar-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.95rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--gold);
  transition: transform 0.2s ease, background 0.2s ease;
}

.calendar-row:hover {
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.06);
}

.calendar-date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius-sm);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 1.2rem;
}

.calendar-event {
  font-size: 1rem;
  color: rgba(248, 246, 241, 0.95);
  font-weight: 500;
}

/* Event Types styling */
.calendar-row.holiday {
  border-left-color: #f43f5e; /* Rose red */
}
.calendar-row.holiday .calendar-date-box {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.25);
  color: #fb7185;
}

.calendar-row.exam {
  border-left-color: #3b82f6; /* Bright blue */
}
.calendar-row.exam .calendar-date-box {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.25);
  color: #60a5fa;
}

.calendar-row.special {
  border-left-color: #10b981; /* Emerald green */
}
.calendar-row.special .calendar-date-box {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

/* ==========================================================================
   WTL School Gallery Styles (Dynamic Masonry Grid & Premium Lightbox)
   ========================================================================== */

/* Responsive Masonry Layout */
.gallery-grid {
  display: block !important; /* Override standard grid layout */
  column-count: 1;
  column-gap: 1.25rem;
  width: 100%;
}

@media (min-width: 576px) {
  .gallery-grid {
    column-count: 2;
  }
}

@media (min-width: 992px) {
  .gallery-grid {
    column-count: 3;
  }
}

.gallery-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 1.25rem;
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, outline 0.2s ease;
  cursor: pointer;
  background: var(--primary-mid);
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  outline: 2px solid var(--gold);
}

.gallery-item img {
  width: 100%;
  height: auto !important; /* Ensure image natural heights are used for masonry */
  display: block;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Hover overlay style */
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 15, 34, 0.95) 0%, rgba(5, 15, 34, 0.5) 60%, rgba(5, 15, 34, 0.15) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

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

.gallery-item-filename {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "DM Sans", sans-serif;
  letter-spacing: 0.02em;
}

.gallery-item-category {
  color: var(--gold-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.gallery-item-zoom {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.9);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 3;
}

.gallery-item:hover .gallery-item-zoom {
  opacity: 1;
  transform: scale(1);
}

/* Premium Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 34, 0.97);
  z-index: 2500;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
}

.lightbox-modal.show {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(201, 168, 76, 0.35);
  transform: scale(0.95);
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox-modal.show .lightbox-image {
  transform: scale(1);
}

.lightbox-caption-wrapper {
  margin-top: 1.25rem;
  text-align: center;
}

.lightbox-caption {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-family: "Playfair Display", serif;
}

.lightbox-counter {
  color: var(--gold-light);
  font-size: 0.82rem;
  margin-top: 0.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "DM Sans", sans-serif;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--gold);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--gold);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  font-size: 1.25rem;
  user-select: none;
}

.lightbox-nav:hover {
  background: var(--gold);
  color: var(--primary);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.5);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
  left: -85px;
}

.lightbox-next {
  right: -85px;
}

@media (max-width: 991px) {
  .lightbox-prev {
    left: -65px;
  }
  .lightbox-next {
    right: -65px;
  }
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 15px;
    top: auto;
    bottom: -65px;
    transform: none;
  }
  .lightbox-prev:hover {
    transform: scale(1.08);
  }
  .lightbox-next {
    right: 15px;
    top: auto;
    bottom: -65px;
    transform: none;
  }
  .lightbox-next:hover {
    transform: scale(1.08);
  }
  .lightbox-close {
    right: 10px;
    top: -55px;
  }
  .lightbox-content {
    max-height: 70vh;
    max-width: 95vw;
  }
  .lightbox-image {
    max-height: 60vh;
  }
}

