:root {
  --navy-900: #0f3d5f;
  --navy-800: #164b73;
  --navy-700: #1d5b86;
  --gold-100: #f7f1dc;
  --gold-200: #e8dfc0;
  --gold-300: #d7c98d;
  --white: #ffffff;
  --slate-100: #f4f6f8;
  --slate-200: #e7ecf1;
  --slate-500: #5d6d7a;
  --slate-900: #16212c;
  --shadow: rgba(15, 61, 95, 0.14);
  --max-width: 1180px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--slate-900);
  background: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.eyebrow {
  display: inline-block;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-200);
  margin-bottom: 0.8rem;
}

.eyebrow-dark {
  color: var(--navy-900);
}

.section-header {
  margin-bottom: 2rem;
  text-align: center;
}

.section-header.left-align {
  text-align: left;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  color: var(--navy-900);
}

h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}

p {
  color: var(--slate-500);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 61, 95, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand img {
  width: 46px;
  height: 46px;
}

.brand-name,
.brand-tag {
  display: block;
  color: var(--white);
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.brand-tag {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.96rem;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--gold-200);
}

.nav-menu a[aria-current="page"] {
  color: var(--gold-200);
  font-weight: 700;
}

.nav-menu a.nav-cta[aria-current="page"] {
  color: var(--navy-900) !important;
  box-shadow: 0 0 0 2px var(--gold-300);
}

.nav-cta {
  background: var(--gold-200);
  color: var(--navy-900) !important;
  padding: 0.72rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 0 auto;
  transition: all 0.25s ease;
}

.hero {
  position: relative;
  min-height: 720px;
  background: var(--navy-900);
}

.hero-slider {
  position: relative;
  width: 100%;
  min-height: 720px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 61, 95, 0.88), rgba(15, 61, 95, 0.3));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  min-height: 720px;
  max-width: 760px;
  color: var(--white);
}

.hero-content h1,
.hero-content p,
.hero-content .eyebrow,
.hero-content li,
.hero-content strong,
.hero-content span {
  color: var(--white);
}

.hero-text {
  max-width: 640px;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  padding: 0.95rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold-200);
  color: var(--navy-900);
  box-shadow: 0 8px 20px rgba(232, 223, 192, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-stats {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  min-width: 130px;
  gap: 0.25rem;
}

.hero-stats strong {
  font-size: 1.8rem;
}

.hero-stats span {
  opacity: 0.8;
}

.about-grid,
.admissions-grid,
.admissions-lower,
.contact-grid,
.footer-grid,
.subject-layout {
  display: grid;
  gap: 2rem;
}

.about-grid {
  grid-template-columns: 2fr 1fr;
  align-items: start;
  margin-bottom: 2.5rem;
}

.about-copy {
  display: grid;
  gap: 1.25rem;
}

.mission-boxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mission-boxes article,
.accreditation-card,
.process-card,
.requirements-card,
.fees-card,
.calendar-card,
.enquiry-card,
.life-card,
.news-card,
.staff-card,
.contact-form {
  background: var(--slate-100);
  border: 1px solid rgba(15, 61, 95, 0.06);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px var(--shadow);
}

.mission-boxes article {
  padding: 1.5rem;
}

.accreditation-card {
  padding: 1.8rem;
  background: linear-gradient(180deg, #e9f1f9, #f8f9fa);
}

.badge {
  display: inline-block;
  background: var(--navy-900);
  color: var(--white);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.accreditation-card ul,
.process-card ol,
.requirements-card ul,
.calendar-card ul,
.contact-details,
.site-footer ul {
  margin-top: 1rem;
  padding-left: 1.1rem;
  color: var(--slate-500);
}

.principal-message {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 61, 95, 0.04), rgba(232, 223, 192, 0.18));
  border-radius: var(--radius);
  padding: 1.5rem;
}

.principal-photo img {
  border-radius: 16px;
  min-height: 340px;
  object-fit: cover;
}

.principal-copy h3 {
  margin-bottom: 1rem;
}

.principal-copy strong,
.principal-copy span {
  display: block;
  color: var(--navy-900);
}

.academics {
  background: var(--navy-900);
}

.academics .section-header h2,
.academics .section-header .eyebrow,
.academics h3,
.academics p,
.academics span {
  color: var(--white);
}

.program-grid,
.life-grid,
.news-grid,
.faculty-grid {
  display: grid;
  gap: 1.5rem;
}

.program-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 2rem;
}

.program-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.program-tag {
  display: inline-block;
  background: var(--gold-200);
  color: var(--navy-900);
  border-radius: 999px;
  padding: 0.36rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.subject-layout {
  grid-template-columns: 2fr 1fr;
  align-items: start;
}

.subject-list,
.achievement-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.subject-tags span {
  background: rgba(232, 223, 192, 0.12);
  color: var(--gold-200);
  border: 1px solid rgba(232, 223, 192, 0.22);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-size: 0.88rem;
}

.achievement-panel {
  display: grid;
  gap: 1rem;
}

.achievement-stat {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.achievement-stat strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--gold-200);
}

.admissions {
  background: linear-gradient(180deg, #f8f7f3, #ffffff);
}

.admissions-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 2rem;
}

.process-card,
.requirements-card,
.fees-card,
.calendar-card,
.enquiry-card {
  padding: 1.6rem;
}

.fees-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(15, 61, 95, 0.09);
}

.fees-row:last-of-type {
  border-bottom: 0;
}

.fees-card small {
  display: block;
  margin-top: 0.75rem;
  color: var(--slate-500);
}

.admissions-lower {
  grid-template-columns: 1fr 1.2fr;
}

.enquiry-form,
.newsletter-form,
.contact-form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--navy-900);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(15, 61, 95, 0.14);
  border-radius: 12px;
  background: var(--white);
  padding: 0.85rem 1rem;
  color: var(--slate-900);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(15, 61, 95, 0.25);
  border-color: rgba(15, 61, 95, 0.35);
}

.download-link {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--navy-900);
  font-weight: 700;
}

.life-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 2rem;
}

.life-card {
  padding: 1.5rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 18px rgba(15, 61, 95, 0.08);
}

.faculty {
  background: var(--slate-100);
}

.faculty-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.staff-card {
  overflow: hidden;
}

.staff-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.staff-card div {
  padding: 1rem 1rem 1.2rem;
}

.staff-card p {
  color: var(--navy-700);
  font-weight: 600;
}

.news {
  background: var(--white);
}

.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 2.2rem;
}

.news-card {
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.news-body {
  padding: 1.1rem 1rem 1.3rem;
}

.news-date {
  display: inline-block;
  color: var(--navy-900);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  border-radius: var(--radius);
  padding: 1.75rem;
}

.newsletter h3,
.newsletter .eyebrow {
  color: var(--white);
}

.newsletter-form {
  grid-template-columns: minmax(220px, 1fr) auto;
  width: min(520px, 100%);
}

.newsletter-form input {
  background: rgba(255, 255, 255, 0.98);
}

.contact-grid {
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
}

.contact-details {
  margin-bottom: 1.2rem;
  display: grid;
  gap: 0.7rem;
}

.map-wrap {
  overflow: hidden;
  border-radius: 16px;
  min-height: 260px;
  box-shadow: 0 10px 20px rgba(15, 61, 95, 0.1);
}

.map-wrap iframe {
  width: 100%;
  min-height: 260px;
  border: 0;
}

.contact-form {
  padding: 1.5rem;
}

.site-footer {
  background: var(--navy-900);
  color: var(--white);
  padding-top: 3rem;
}

.footer-grid {
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  align-items: start;
}

.footer-brand p,
.site-footer li,
.site-footer a,
.footer-bottom p {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  padding-left: 0;
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease;/* smooth transition for hover effect */
}

.social-links img {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

social-links a:hover{
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);

}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1.5rem;
  padding: 1rem 0 2rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .about-grid,
  .subject-layout,
  .contact-grid,
  .admissions-lower,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .program-grid,
  .life-grid,
  .news-grid,
  .faculty-grid,
  .admissions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newsletter {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1rem 1.25rem;
    background: rgba(15, 61, 95, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    width: 100%;
    padding: 0.35rem 0;
  }

  .hero,
  .hero-slider,
  .hero-content {
    min-height: 640px;
  }

  .hero-content {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .mission-boxes,
  .program-grid,
  .life-grid,
  .news-grid,
  .faculty-grid,
  .gallery,
  .admissions-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-name {
    font-size: 0.9rem;
  }
}
