/* =========================================================
   BRIGHTFUTURE ACADEMY
   Main Stylesheet
   Designed by SENTI LAB
========================================================= */

/* =========================
   1. ROOT VARIABLES
========================= */

:root {
  --primary: #123c69;
  --primary-dark: #0b2949;
  --primary-light: #e8f1f8;

  --secondary: #f4b942;
  --secondary-dark: #d99a1f;

  --accent: #2f7d6d;
  --accent-light: #e9f5f2;

  --white: #ffffff;
  --off-white: #f8fafc;

  --text-dark: #172033;
  --text-body: #5b6474;
  --text-light: #7f8998;

  --border: #e3e8ef;
  --shadow-light: 0 10px 30px rgba(18, 60, 105, 0.08);
  --shadow-medium: 0 18px 45px rgba(18, 60, 105, 0.14);
  --shadow-heavy: 0 25px 60px rgba(7, 33, 60, 0.2);

  --container-width: 1180px;

  --radius-small: 8px;
  --radius-medium: 14px;
  --radius-large: 24px;
  --radius-round: 999px;

  --transition: 0.3s ease;
}

/* =========================
   2. RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

section {
  position: relative;
}

.container {
  width: min(100% - 40px, var(--container-width));
  margin-inline: auto;
}

/* =========================
   3. TYPOGRAPHY
========================= */

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  color: var(--text-dark);
}

h1,
h2 {
  font-family: "Playfair Display", serif;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--text-body);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: var(--radius-round);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.light-tag {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 50px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 18px;
}

.section-heading p {
  max-width: 680px;
  font-size: 1.05rem;
}

.section-heading.centered p {
  margin-inline: auto;
}

/* =========================
   4. BUTTONS
========================= */

.primary-button,
.secondary-button,
.light-button,
.outline-light-button,
.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--radius-round);
  font-weight: 700;
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.primary-button {
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 12px 25px rgba(18, 60, 105, 0.22);
}

.primary-button:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(18, 60, 105, 0.28);
}

.secondary-button {
  color: var(--primary);
  background: var(--white);
  border: 1px solid var(--border);
}

.secondary-button:hover {
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.light-button {
  color: var(--primary-dark);
  background: var(--white);
}

.light-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.outline-light-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.outline-light-button:hover {
  color: var(--primary);
  background: var(--white);
  border-color: var(--white);
  transform: translateY(-3px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 800;
}

.text-link span {
  transition: transform var(--transition);
}

.text-link:hover span {
  transform: translateX(5px);
}

/* =========================
   5. HEADER
========================= */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(227, 232, 239, 0.8);
  backdrop-filter: blur(16px);
  transition:
    box-shadow var(--transition),
    background var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 30px rgba(18, 60, 105, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.logo-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(
    145deg,
    var(--primary),
    var(--primary-dark)
  );
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(18, 60, 105, 0.22);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text span {
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 800;
}

.logo-text small {
  margin-top: 5px;
  color: var(--secondary-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  padding: 28px 0;
  color: var(--text-body);
  font-size: 0.92rem;
  font-weight: 700;
  transition: color var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 19px;
  left: 0;
  height: 3px;
  border-radius: var(--radius-round);
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-button {
  min-height: 44px;
  padding-inline: 20px;
  color: var(--white);
  background: var(--primary);
  font-size: 0.9rem;
}

.nav-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 10px;
  background: var(--primary-light);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: var(--radius-round);
  background: var(--primary);
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================
   6. HERO
========================= */

.hero {
  min-height: 100vh;
  padding: 150px 0 90px;
  background:
    radial-gradient(
      circle at 90% 20%,
      rgba(244, 185, 66, 0.17),
      transparent 28%
    ),
    linear-gradient(135deg, #f7fbff 0%, #eef5fa 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 90px;
  left: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(47, 125, 109, 0.07);
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 70px;
}

.hero-content h1 {
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-content > p {
  max-width: 650px;
  margin-bottom: 32px;
  font-size: 1.08rem;
  line-height: 1.85;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 46px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
}

.highlight-item {
  position: relative;
  display: flex;
  flex-direction: column;
}

.highlight-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 6px;
  right: -19px;
  width: 1px;
  height: 43px;
  background: var(--border);
}

.highlight-item strong {
  color: var(--primary);
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
}

.highlight-item span {
  color: var(--text-light);
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-card {
  position: relative;
  padding: 14px;
  border-radius: 34px;
  background: var(--white);
  box-shadow: var(--shadow-heavy);
}

.hero-image-card::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 110px;
  height: 110px;
  border-radius: 25px;
  background: var(--secondary);
  z-index: -1;
}

.hero-image-card::after {
  content: "";
  position: absolute;
  bottom: -25px;
  left: -25px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--accent);
  z-index: -1;
}

.hero-image-card img {
  height: 570px;
  object-fit: cover;
  border-radius: 24px;
}

.image-badge {
  position: absolute;
  right: -35px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 250px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-medium);
}

.badge-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  color: var(--primary-dark);
  background: var(--secondary);
  font-size: 1.3rem;
}

.image-badge div:last-child {
  display: flex;
  flex-direction: column;
}

.image-badge strong {
  color: var(--primary-dark);
  font-size: 0.9rem;
}

.image-badge span {
  color: var(--text-light);
  font-size: 0.75rem;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-shape-one {
  top: 140px;
  right: 4%;
  width: 80px;
  height: 80px;
  border: 15px solid rgba(18, 60, 105, 0.08);
}

.hero-shape-two {
  right: 45%;
  bottom: 8%;
  width: 35px;
  height: 35px;
  background: rgba(244, 185, 66, 0.35);
}

/* =========================
   7. WELCOME SECTION
========================= */

.welcome-section {
  padding: 110px 0;
  background: var(--white);
}

.welcome-container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 90px;
}

.welcome-image {
  position: relative;
}

.welcome-image::before {
  content: "";
  position: absolute;
  top: -22px;
  left: -22px;
  width: 150px;
  height: 150px;
  border: 14px solid var(--primary-light);
  border-radius: 28px;
  z-index: 0;
}

.welcome-image img {
  position: relative;
  z-index: 1;
  height: 580px;
  border-radius: 30px;
  object-fit: cover;
  box-shadow: var(--shadow-medium);
}

.experience-card {
  position: absolute;
  right: -35px;
  bottom: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 190px;
  padding: 25px;
  border-radius: 18px;
  color: var(--white);
  background: var(--primary);
  box-shadow: var(--shadow-medium);
}

.experience-card strong {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
}

.experience-card span {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
}

.welcome-content h2 {
  margin-bottom: 22px;
}

.welcome-content > p {
  margin-bottom: 17px;
  font-size: 1rem;
  line-height: 1.85;
}

.welcome-features {
  display: grid;
  gap: 22px;
  margin: 32px 0;
}

.feature-item {
  display: flex;
  gap: 16px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--primary);
  background: var(--secondary);
  font-weight: 900;
}

.feature-item h3 {
  margin-bottom: 5px;
  color: var(--primary-dark);
}

.feature-item p {
  font-size: 0.9rem;
}

/* =========================
   8. PROGRAMS
========================= */

.programs-section {
  padding: 110px 0;
  background: var(--off-white);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.program-card {
  position: relative;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--white);
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.program-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--primary-light);
  transition: transform var(--transition);
}

.program-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: var(--shadow-medium);
}

.program-card:hover::before {
  transform: scale(1.25);
}

.featured-program {
  background: var(--primary);
  border-color: var(--primary);
}

.featured-program::before {
  background: rgba(255, 255, 255, 0.08);
}

.program-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 25px;
  border-radius: 16px;
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 900;
}

.featured-program .program-icon {
  color: var(--primary-dark);
  background: var(--secondary);
}

.program-level {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-program .program-level {
  color: var(--secondary);
}

.program-card h3 {
  margin-bottom: 14px;
  color: var(--primary-dark);
  font-size: 1.4rem;
}

.featured-program h3 {
  color: var(--white);
}

.program-card p {
  min-height: 110px;
  margin-bottom: 24px;
  line-height: 1.75;
}

.featured-program p {
  color: rgba(255, 255, 255, 0.75);
}

.program-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 800;
}

.featured-program a {
  color: var(--white);
}

.program-card a span {
  transition: transform var(--transition);
}

.program-card a:hover span {
  transform: translateX(5px);
}

/* =========================
   9. VALUES SECTION
========================= */

.values-section {
  padding: 100px 0;
  background:
    linear-gradient(
      135deg,
      rgba(11, 41, 73, 0.97),
      rgba(18, 60, 105, 0.94)
    ),
    url("https://images.unsplash.com/photo-1562774053-701939374585?auto=format&fit=crop&w=1600&q=80")
      center / cover no-repeat;
}

.values-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: 70px;
}

.values-content h2 {
  margin-bottom: 20px;
  color: var(--white);
}

.values-content p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.value-item {
  padding: 27px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  transition:
    transform var(--transition),
    background var(--transition);
}

.value-item:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.12);
}

.value-item strong {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--secondary);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
}

.value-item h3 {
  margin-bottom: 10px;
  color: var(--white);
}

.value-item p {
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.88rem;
}

/* =========================
   10. NEWS
========================= */

.news-section {
  padding: 110px 0;
  background: var(--white);
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 45px;
}

.section-heading-row h2 {
  max-width: 650px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.news-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.news-image {
  position: relative;
  height: 245px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.06);
}

.news-category {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 7px 12px;
  border-radius: var(--radius-round);
  color: var(--primary-dark);
  background: var(--secondary);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.news-content {
  padding: 26px;
}

.news-date {
  display: block;
  margin-bottom: 10px;
  color: var(--text-light);
  font-size: 0.76rem;
  font-weight: 700;
}

.news-content h3 {
  min-height: 62px;
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-size: 1.18rem;
}

.news-content p {
  min-height: 75px;
  margin-bottom: 20px;
  font-size: 0.88rem;
}

.news-content a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 800;
}

.news-content a span {
  transition: transform var(--transition);
}

.news-content a:hover span {
  transform: translateX(5px);
}

/* =========================
   11. EVENTS
========================= */

.events-section {
  padding: 110px 0;
  background: var(--off-white);
}

.events-list {
  display: grid;
  gap: 18px;
  max-width: 930px;
  margin-inline: auto;
}

.event-item {
  display: grid;
  grid-template-columns: 95px 1fr auto;
  align-items: center;
  gap: 25px;
  padding: 22px 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.event-item:hover {
  transform: translateX(7px);
  border-color: transparent;
  box-shadow: var(--shadow-light);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 75px;
  height: 82px;
  border-radius: 15px;
  color: var(--white);
  background: var(--primary);
}

.event-date strong {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  line-height: 1;
}

.event-date span {
  margin-top: 5px;
  color: var(--secondary);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-type {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-details h3 {
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.event-details p {
  font-size: 0.85rem;
}

.event-link {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
}

/* =========================
   12. ADMISSIONS
========================= */

.admissions-section {
  padding: 100px 0;
  color: var(--white);
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(244, 185, 66, 0.2),
      transparent 24%
    ),
    linear-gradient(135deg, var(--primary-dark), var(--primary));
  overflow: hidden;
}

.admissions-section::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 360px;
  height: 360px;
  border: 50px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.admissions-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 70px;
}

.admissions-content h2 {
  max-width: 700px;
  margin-bottom: 20px;
  color: var(--white);
}

.admissions-content p {
  max-width: 650px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
}

.admissions-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.admissions-card {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.admissions-card > span {
  display: block;
  margin-bottom: 10px;
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admissions-card h3 {
  margin-bottom: 6px;
  color: var(--white);
  font-size: 1.45rem;
}

.admissions-card p {
  margin-bottom: 23px;
  color: rgba(255, 255, 255, 0.66);
}

.admissions-card ul {
  display: grid;
  gap: 12px;
}

.admissions-card li {
  position: relative;
  padding-left: 27px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 600;
}

.admissions-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 900;
}

/* =========================
   13. CONTACT
========================= */

.contact-section {
  padding: 110px 0;
  background: var(--white);
}

.contact-container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: 80px;
}

.contact-content h2 {
  margin-bottom: 20px;
}

.contact-content > p {
  margin-bottom: 36px;
}

.contact-details {
  display: grid;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 13px;
  color: var(--primary);
  background: var(--primary-light);
  font-size: 1.1rem;
}

.contact-item div:last-child {
  display: flex;
  flex-direction: column;
}

.contact-item span {
  color: var(--text-light);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-item strong {
  color: var(--primary-dark);
  font-size: 0.9rem;
}

.contact-form {
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--off-white);
  box-shadow: var(--shadow-light);
}

.form-heading {
  margin-bottom: 28px;
}

.form-heading h3 {
  margin-bottom: 6px;
  color: var(--primary-dark);
  font-size: 1.5rem;
}

.form-heading p {
  font-size: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-group label {
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 11px;
  outline: none;
  color: var(--text-dark);
  background: var(--white);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.form-group input,
.form-group select {
  height: 52px;
  padding: 0 15px;
}

.form-group textarea {
  min-height: 135px;
  padding: 15px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a5acb8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(18, 60, 105, 0.09);
}

.form-button {
  width: 100%;
  border: none;
}

/* =========================
   14. FOOTER
========================= */

.footer {
  padding-top: 78px;
  color: rgba(255, 255, 255, 0.75);
  background: #081e35;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 45px;
  padding-bottom: 55px;
}

.footer-logo {
  margin-bottom: 18px;
}

.footer-logo .logo-text span {
  color: var(--white);
}

.footer-about > p {
  max-width: 330px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
  font-weight: 800;
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}

.social-links a:hover {
  color: var(--primary-dark);
  background: var(--secondary);
  transform: translateY(-3px);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column h3 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 1rem;
}

.footer-column a,
.footer-column p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.84rem;
  transition: color var(--transition);
}

.footer-column a:hover {
  color: var(--secondary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.78rem;
}

.footer-bottom a {
  color: var(--secondary);
  font-weight: 800;
}

/* =========================
   15. ANIMATIONS
========================= */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.hero-image-wrapper {
  animation: fadeUp 0.8s ease both;
}

.hero-image-wrapper {
  animation-delay: 0.16s;
}

/* =========================
   16. TABLET
========================= */

@media (max-width: 1024px) {
  .navbar {
    gap: 18px;
  }

  .nav-link {
    font-size: 0.84rem;
  }

  .hero-container,
  .welcome-container,
  .contact-container {
    gap: 50px;
  }

  .hero-image-card img {
    height: 510px;
  }

  .image-badge {
    right: -10px;
  }

  .program-card {
    padding: 28px;
  }

  .values-container {
    grid-template-columns: 1fr;
  }

  .values-content {
    max-width: 700px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
   17. MOBILE NAVIGATION
========================= */

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 78px;
    right: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    padding: 0 20px;
    border-radius: 0 0 18px 18px;
    background: var(--white);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
      max-height 0.4s ease,
      padding 0.4s ease,
      opacity 0.3s ease;
  }

  .navbar.active {
    max-height: 650px;
    padding: 18px 20px 24px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
  }

  .nav-link::after {
    display: none;
  }

  .nav-button {
    margin-top: 16px;
  }

  .hero {
    padding-top: 125px;
  }

  .hero-container,
  .welcome-container,
  .admissions-container,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .hero-container {
    gap: 65px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content > p {
    margin-inline: auto;
  }

  .hero-buttons,
  .hero-highlights {
    justify-content: center;
  }

  .hero-image-wrapper {
    max-width: 650px;
    margin-inline: auto;
  }

  .welcome-image {
    max-width: 650px;
    margin-inline: auto;
  }

  .welcome-image img {
    height: 510px;
  }

  .welcome-content {
    max-width: 720px;
    margin-inline: auto;
  }

  .program-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .program-card:last-child,
  .news-card:last-child {
    grid-column: 1 / -1;
    max-width: 550px;
    width: 100%;
    margin-inline: auto;
  }

  .admissions-card {
    max-width: 560px;
  }

  .contact-content {
    max-width: 650px;
  }
}

/* =========================
   18. SMALL TABLET
========================= */

@media (max-width: 700px) {
  .container {
    width: min(100% - 30px, var(--container-width));
  }

  .program-grid,
  .news-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .program-card:last-child,
  .news-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .event-item {
    grid-template-columns: 80px 1fr;
  }

  .event-link {
    grid-column: 2;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* =========================
   19. MOBILE
========================= */

@media (max-width: 560px) {
  html {
    scroll-padding-top: 76px;
  }

  .nav-container {
    min-height: 72px;
  }

  .navbar {
    top: 72px;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
  }

  .logo-text span {
    font-size: 0.9rem;
  }

  .hero {
    min-height: auto;
    padding: 115px 0 75px;
  }

  .hero-content h1 {
    font-size: 2.65rem;
  }

  .hero-content > p {
    font-size: 0.96rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons a {
    width: 100%;
  }

  .hero-highlights {
    gap: 20px;
  }

  .highlight-item {
    width: calc(50% - 10px);
  }

  .highlight-item:last-child {
    width: 100%;
  }

  .highlight-item::after {
    display: none;
  }

  .hero-image-card {
    padding: 9px;
    border-radius: 24px;
  }

  .hero-image-card img {
    height: 400px;
    border-radius: 18px;
  }

  .image-badge {
    right: 10px;
    bottom: 20px;
    left: 10px;
    max-width: none;
  }

  .welcome-section,
  .programs-section,
  .news-section,
  .events-section,
  .contact-section {
    padding: 80px 0;
  }

  .welcome-image img {
    height: 410px;
  }

  .experience-card {
    right: 15px;
    bottom: 18px;
    width: 165px;
    padding: 20px;
  }

  .program-card,
  .news-content,
  .contact-form,
  .admissions-card {
    padding: 25px;
  }

  .program-card p,
  .news-content h3,
  .news-content p {
    min-height: auto;
  }

  .values-section,
  .admissions-section {
    padding: 80px 0;
  }

  .event-item {
    grid-template-columns: 65px 1fr;
    gap: 16px;
    padding: 18px;
  }

  .event-date {
    width: 62px;
    height: 72px;
  }

  .event-date strong {
    font-size: 1.55rem;
  }

  .event-details h3 {
    font-size: 1rem;
  }

  .event-link {
    grid-column: 1 / -1;
    margin-left: 81px;
  }

  .admissions-buttons {
    flex-direction: column;
  }

  .admissions-buttons a {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form {
    border-radius: 18px;
  }
}

/* =========================
   20. VERY SMALL DEVICES
========================= */

@media (max-width: 390px) {
  .hero-content h1 {
    font-size: 2.25rem;
  }

  .section-tag {
    font-size: 0.68rem;
  }

  .hero-highlights {
    flex-direction: column;
    align-items: center;
  }

  .highlight-item,
  .highlight-item:last-child {
    width: 100%;
    align-items: center;
  }

  .hero-image-card img {
    height: 350px;
  }

  .image-badge {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: 10px;
  }

  .experience-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 12px;
  }

  .event-link {
    margin-left: 0;
  }
}

/* =========================
   JAVASCRIPT COMPONENTS
========================= */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.form-message {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.form-message.visible {
  opacity: 1;
  transform: translateY(0);
}

.form-message.success {
  color: #176c4b;
  background: #e8f7f0;
  border: 1px solid #bde6d2;
}

.form-message.error {
  color: #a33434;
  background: #fff0f0;
  border: 1px solid #f0c5c5;
}

.form-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}