:root {
  --forest: #123c2b;
  --green: #176b4a;
  --green-light: #dff3e8;
  --mint: #f3fbf6;
  --ink: #15241d;
  --muted: #64736b;
  --line: #dce9e1;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(18, 60, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--mint);
  font-family: Georgia, "Times New Roman", serif;
}

.welcome-page {
  min-height: 100vh;
  background: var(--forest);
}

.welcome-hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.welcome-image,
.welcome-overlay {
  position: absolute;
  inset: 0;
}

.welcome-image {
  z-index: -2;
  background: url("../IMAGE/Screenshot 2026-01-21 164458.png") center / contain no-repeat;
  background-color: var(--white);
  animation: welcome-image-in 1.2s ease both;
}

.welcome-overlay {
  z-index: -1;
  background: linear-gradient(90deg, rgba(9, 34, 24, 0.86) 0%, rgba(9, 34, 24, 0.45) 46%, rgba(9, 34, 24, 0.12) 100%), linear-gradient(0deg, rgba(9, 34, 24, 0.36), transparent 42%);
}

.welcome-header,
.welcome-content,
.welcome-footer {
  width: min(100%, 1280px);
  margin: 0 auto;
}

.welcome-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 2.5rem;
}

.welcome-home-link,
.welcome-secondary {
  color: #e6f5eb;
  font-family: Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.welcome-home-link:hover,
.welcome-home-link:focus-visible,
.welcome-secondary:hover,
.welcome-secondary:focus-visible {
  color: var(--white);
  outline: 2px solid #bde6ce;
  outline-offset: 5px;
}

.welcome-content {
  margin: auto;
  padding: 5rem 2.5rem 6rem;
}

.welcome-content h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6.6rem);
  font-weight: 500;
  line-height: 0.98;
}

.welcome-content > p:not(.eyebrow) {
  max-width: 570px;
  margin: 1.5rem 0 0;
  color: #e4f2e8;
  font-size: 1.12rem;
  line-height: 1.65;
}

.welcome-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.welcome-actions .form-submit {
  display: inline-block;
  margin-top: 0;
  text-decoration: none;
}

.welcome-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 2.5rem 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  color: #d4e8da;
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.registration-alert {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(10, 35, 25, 0.62);
  animation: alert-fade-in 220ms ease both;
}

.welcome-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.welcome-actions .form-submit {
  display: inline-block;
  margin-top: 0;
  text-decoration: none;
}

.welcome-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 1.2rem 2.5rem 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  color: #d4e8da;
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes welcome-image-in {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1.03); }
}

@keyframes welcome-rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.registration-alert.dismissed {
  display: none;
}

.registration-alert-card {
  position: relative;
  width: min(100%, 470px);
  padding: 2.5rem;
  border-top: 5px solid var(--green);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(10, 35, 25, 0.28);
  animation: alert-rise-in 300ms ease both;
}

.registration-alert-card h2 {
  margin: 0 0 0.7rem;
  color: var(--forest);
  font-size: 2rem;
  font-weight: 500;
}

.registration-alert-card > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.alert-close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  width: 34px;
  height: 34px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.alert-close:hover,
.alert-close:focus-visible {
  color: var(--forest);
  outline: 2px solid var(--green-light);
}

.alert-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.alert-actions .form-submit {
  display: inline-block;
  margin-top: 0;
  text-decoration: none;
}

.alert-secondary {
  padding: 0.75rem 0;
  border: 0;
  color: var(--green);
  background: transparent;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

@keyframes alert-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes alert-rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--forest);
  box-shadow: 0 8px 24px rgba(18, 60, 43, 0.16);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1180px;
  min-height: 76px;
  margin: 0 auto;
  padding: 0 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  object-fit: cover;
  background: #bde6ce;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: 2px solid #bde6ce;
  outline-offset: 2px;
}

.registration-menu {
  position: relative;
}

.registration-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  display: grid;
  min-width: 150px;
  padding: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: var(--forest);
  box-shadow: 0 12px 25px rgba(10, 35, 25, 0.24);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.registration-menu:hover .registration-dropdown,
.registration-menu:focus-within .registration-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.registration-dropdown a {
  padding: 0.65rem 0.75rem;
  border-radius: 4px;
  color: #e6f5eb;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.registration-dropdown a:hover,
.registration-dropdown a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.nav-link {
  display: inline-block;
  margin: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #e6f5eb;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  line-height: normal;
  appearance: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.gallery-button {
  cursor: pointer;
}

.nav-link:hover,
.nav-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.hero {
  position: relative;
  display: flex;
  height: 500px;
  min-height: 500px;
  align-items: center;
  overflow: hidden;
  background: var(--forest);
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-slideshow::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background: linear-gradient(110deg, rgba(18, 60, 43, 0.5) 0%, rgba(18, 60, 43, 0.28) 55%, rgba(18, 60, 43, 0.08) 100%);
}

.hero-slideshow .slide-control,
.hero-slideshow .slide-dots {
  z-index: 3;
}

.hero-slideshow .slide img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slideshow .slide {
  z-index: 0;
}

.hero-slideshow .slide.active {
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 5rem 2rem;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 1rem;
  color: #bde6ce;
  font-family: Arial, sans-serif;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.5rem);
  line-height: 0.98;
  font-weight: 500;
}

.hero p {
  max-width: 520px;
  margin: 1.5rem 0 0;
  color: #e4f2e8;
  font-size: 1.12rem;
  line-height: 1.65;
}

.stats-band {
  color: var(--white);
  background: var(--green);
}

.stats-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1180px;
  margin: 0 auto;
}

.stat-item {
  display: grid;
  min-height: 150px;
  place-content: center;
  gap: 0.4rem;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  text-align: center;
}

.stat-item:last-child {
  border-right: 0;
}

.stat-number {
  color: #dff3e8;
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
}

.stat-item span {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5rem 2rem;
  scroll-margin-top: 76px;
}

.section h2 {
  margin: 0 0 0.8rem;
  color: var(--forest);
  font-size: 2.3rem;
  font-weight: 500;
}

.section p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.registration-form {
  max-width: 850px;
  margin-top: 2rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.registration-options {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.registration-option {
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--green);
  border-radius: 5px;
  color: var(--green);
  background: transparent;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
}

.registration-option.active,
.registration-option:hover,
.registration-option:focus-visible {
  color: var(--white);
  background: var(--green);
  outline: none;
}

.form-step[hidden] {
  display: none;
}

.form-step h2 {
  margin: 0 0 1.25rem;
  color: var(--forest);
  font-size: 1.5rem;
  font-weight: 500;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.registration-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--forest);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.upload-field {
  display: grid;
  gap: 0.45rem;
  color: var(--forest);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.registration-form input,
.registration-form select,
.registration-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #bfd4c6;
  border-radius: 4px;
  color: var(--ink);
  background: #fbfefc;
  font: inherit;
  font-weight: 400;
}

.registration-form textarea {
  resize: vertical;
}

.upload-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.upload-controls input[type="file"] {
  flex: 1;
  min-width: 0;
}

.camera-button {
  appearance: none;
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  padding: 0.8rem 1rem;
  border: 1px solid var(--green);
  border-radius: 4px;
  color: var(--white);
  background: var(--green);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.camera-button:hover,
.camera-button:focus-visible {
  background: var(--forest);
  outline: 2px solid var(--green-light);
}

.camera-dialog {
  width: min(92vw, 560px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1rem 3rem rgba(18, 48, 32, 0.3);
}

.camera-dialog::backdrop {
  background: rgba(9, 25, 17, 0.72);
}

.camera-dialog-content {
  padding: 1.5rem;
}

.camera-dialog h2 {
  margin: 0 0 1rem;
  color: var(--forest);
  font-size: 1.4rem;
}

.camera-dialog video {
  display: block;
  width: 100%;
  max-height: 60vh;
  border-radius: 4px;
  background: #101713;
  object-fit: cover;
}

.camera-status {
  min-height: 1.5rem;
  margin: 0.75rem 0 0;
  color: #a93226;
  font-size: 0.9rem;
}

.camera-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.camera-cancel {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--forest);
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.registration-form input:focus,
.registration-form select:focus,
.registration-form textarea:focus {
  border-color: var(--green);
  outline: 2px solid var(--green-light);
}

.registration-form input.invalid,
.registration-form select.invalid,
.registration-form textarea.invalid,
.registration-form input:invalid,
.registration-form select:invalid,
.registration-form textarea:invalid {
  border-color: #c0392b;
  background: #fff7f6;
}

.registration-form input.invalid:focus,
.registration-form select.invalid:focus,
.registration-form textarea.invalid:focus {
  outline-color: #f2c5c0;
}

.full-width {
  grid-column: 1 / -1;
}

.account-details {
  margin-top: 1.75rem;
  padding: 1.25rem;
  border-left: 4px solid var(--green);
  background: var(--green-light);
}

.account-details h3 {
  margin: 0 0 0.45rem;
  color: var(--forest);
  font-size: 1.1rem;
}

.account-details p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
}

.account-details dl {
  display: grid;
  gap: 0.6rem;
  margin: 0;
}

.account-details dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
}

.account-details dt {
  color: var(--muted);
}

.account-details dd {
  margin: 0;
  color: var(--forest);
  font-weight: 700;
  text-align: right;
}

.form-submit {
  margin-top: 1.5rem;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 5px;
  color: var(--white);
  background: var(--green);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
}

.form-submit:hover,
.form-submit:focus-visible {
  background: var(--forest);
  outline: 2px solid #bde6ce;
  outline-offset: 2px;
}

.form-status {
  min-height: 1.5rem;
  margin-top: 1rem !important;
  color: var(--green) !important;
  font-family: Arial, sans-serif;
  font-size: 0.9rem !important;
  font-weight: 700;
}

blockquote {
  max-width: 800px;
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid #79b793;
  color: var(--green);
  background: var(--green-light);
  font-size: 1.1rem;
  line-height: 1.7;
}

.values-grid {
  grid-template-columns: repeat(2, 1fr);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-heading p:last-child {
  margin-bottom: 0.3rem;
}

.dark-eyebrow {
  margin-bottom: 0.55rem;
  color: var(--green);
}

.slideshow {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  border-radius: 8px;
  background: var(--forest);
  box-shadow: var(--shadow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.gallery-image {
  cursor: zoom-in;
}

.gallery-image:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: -3px;
}

.gallery-grid figcaption {
  padding: 1rem;
  color: var(--green);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.gallery-section[hidden] {
  display: none;
}

.gallery-close {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--green);
  border-radius: 5px;
  color: var(--green);
  background: transparent;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.gallery-close:hover,
.gallery-close:focus-visible {
  color: var(--white);
  background: var(--green);
  outline: none;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(10, 35, 25, 0.88);
}

.image-lightbox img {
  display: block;
  max-width: min(100%, 1000px);
  max-height: 85vh;
  border: 3px solid var(--white);
  border-radius: 6px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: #23885d;
  outline: 2px solid #bde6ce;
  outline-offset: 2px;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
  opacity: 0;
  transition: opacity 400ms ease, visibility 400ms ease;
}

.slide.active {
  z-index: 1;
  visibility: visible;
  opacity: 1;
}

.slide img {
  display: block;
  width: 100%;
  height: 470px;
  object-fit: cover;
}

.slide p {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  margin: 0;
  padding: 0.6rem 0.8rem;
  color: var(--white);
  background: rgba(18, 60, 43, 0.86);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.slide-control {
  position: absolute;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: var(--white);
  background: rgba(18, 60, 43, 0.78);
  cursor: pointer;
  font-size: 1.25rem;
  transform: translateY(-50%);
}

.slide-control:hover,
.slide-control:focus-visible {
  background: var(--green);
  outline: 2px solid #bde6ce;
  outline-offset: 2px;
}

.previous { left: 1.25rem; }
.next { right: 1.25rem; }

.slide-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  display: flex;
  gap: 0.45rem;
  transform: translateX(-50%);
}

.dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid var(--white);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.dot.active,
.dot:hover,
.dot:focus-visible {
  background: #bde6ce;
  outline: none;
}

.motto-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.motto-row blockquote {
  margin: 0;
  font-size: 1rem;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.info-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.info-card strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--green);
  font-family: Arial, sans-serif;
}

.info-card p {
  font-size: 0.95rem;
}

.teacher-grid {
  grid-template-columns: repeat(3, 1fr);
}

.teacher-card {
  position: relative;
  display: flex;
  min-height: 230px;
  align-items: center;
  padding: 2rem;
  overflow: hidden;
  border-top: 4px solid var(--green);
  background: linear-gradient(145deg, var(--white) 0%, #eef8f1 100%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.teacher-card::before {
  position: absolute;
  top: -1.2rem;
  right: 1.2rem;
  color: rgba(23, 107, 74, 0.12);
  content: "//";
  font-family: Arial, sans-serif;
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: -0.2em;
  line-height: 1;
}

.teacher-card:nth-child(2n) {
  border-top-color: #c48a35;
}

.teacher-card:nth-child(3n) {
  border-top-color: #397b8b;
}

.teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(18, 60, 43, 0.18);
}

.teacher-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.75;
}

.teacher-card:nth-child(4),
.teacher-card:nth-child(5) {
  min-height: 210px;
}

.social-link {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
}

.social-link.facebook { background: #1877f2; font-size: 1rem; }
.social-link.whatsapp { background: #25d366; }
.social-link.instagram { background: #c13584; font-size: 1.1rem; }

.social-link:hover,
.social-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.document-grid {
  grid-template-columns: repeat(4, 1fr);
}

.document-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  color: var(--green);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.document-link:hover,
.document-link:focus-visible {
  color: var(--forest);
  text-decoration: underline;
  outline: none;
}

.site-footer {
  padding: 3rem 2rem 1.25rem;
  color: #d8eee0;
  background: var(--forest);
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 3rem;
  max-width: 1180px;
  margin: 0 auto;
}

.footer-content strong {
  display: block;
  margin-bottom: 0.85rem;
  color: #bde6ce;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-content p {
  margin: 0 0 0.55rem;
  color: var(--white);
}

.phone-list {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  column-gap: 1.25rem;
}

.footer-content a {
  display: block;
  width: fit-content;
  margin-bottom: 0.55rem;
  color: #d8eee0;
  text-decoration: none;
}

.footer-content a:hover,
.footer-content a:focus-visible {
  color: var(--white);
  text-decoration: underline;
  outline: none;
}

.footer-bottom {
  max-width: 1180px;
  margin: 2.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #b7d4c1;
  text-align: center;
}

@media (max-width: 760px) {
  .navbar {
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    flex-basis: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .nav-links.menu-open {
    display: flex;
  }

  .nav-link {
    padding: 0.55rem 0.65rem;
    font-size: 0.78rem;
  }

  .hero-content,
  .section {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .hero {
    height: 430px;
    min-height: 430px;
  }

  .stats-content {
    grid-template-columns: 1fr;
  }

  .stat-item {
    min-height: 110px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .stat-item:last-child {
    border-bottom: 0;
  }

  .section-grid,
  .values-grid,
  .motto-row,
  .document-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: auto;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .slideshow,
  .slide img {
    min-height: 340px;
    height: 340px;
  }

  .hero-slideshow,
  .hero-slideshow .slide img {
    min-height: 0;
    height: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
