:root {
  --bg: #f7f9f4;
  --surface: #ffffff;
  --surface-soft: #eef4e8;
  --text: #182334;
  --muted: #556575;
  --line: #dbe4d2;
  --primary: #7f9a57;
  --primary-dark: #637c43;
  --accent: #c7d39a;
  --ink-dark: #6f8750;
  --ok: #2e8a4f;
  --danger: #a73f3f;
  --radius: 8px;
  --shadow-soft: 0 10px 24px rgba(36, 54, 31, 0.08);
  --shadow-strong: 0 18px 42px rgba(23, 38, 19, 0.16);
  --fs-body: clamp(0.98rem, 0.25vw + 0.92rem, 1.06rem);
  --fs-small: clamp(0.8rem, 0.14vw + 0.76rem, 0.9rem);
  --fs-h1: clamp(2rem, 2.6vw, 3rem);
  --fs-h2: clamp(1.55rem, 1.75vw, 2.2rem);
  --fs-h3: clamp(1.12rem, 1.05vw, 1.42rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9fbf6 0%, var(--bg) 100%);
}

body {
  line-height: 1.5;
  font-size: var(--fs-body);
}

body.drawer-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.65rem;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.16;
  letter-spacing: 0;
  color: var(--text);
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
}

h4 {
  font-size: clamp(1.02rem, 0.95vw, 1.2rem);
  font-weight: 700;
}

p {
  margin: 0 0 0.7rem;
  font-size: var(--fs-body);
  line-height: 1.62;
}

small {
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--muted);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid #82bbe6;
  outline-offset: 2px;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -52px;
  z-index: 120;
  border-radius: 8px;
  background: #102133;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.55rem 0.72rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.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;
}

.main-content {
  flex: 1;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.utility-bar {
  background: #5f7643;
  color: #eef5dc;
  font-size: 0.85rem;
}

.utility-inner {
  min-height: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.utility-inner-social-only {
  justify-content: flex-end;
}

.utility-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.utility-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.utility-pay-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 0.16rem 0.62rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  font-weight: 800;
}

.utility-pay-link:hover {
  background: rgba(255, 255, 255, 0.18);
}

.utility-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-left: auto;
}

.utility-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #fff;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.utility-social a:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.58);
  transform: translateY(-1px);
}

.utility-social svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.utility-social svg path {
  fill: currentColor;
  stroke: none;
}

.utility-links a,
.utility-bar a {
  color: inherit;
  text-decoration: none;
}

.utility-links a:hover,
.utility-bar a:hover {
  color: #fff;
}

.lang-switch {
  display: inline-flex;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.lang-switch a {
  padding: 0.2rem 0.6rem;
}

.lang-switch a.active {
  background: var(--accent);
  color: #2f1d00;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(99, 124, 67, 0.16);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(29, 43, 25, 0.06);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 1.55rem;
  padding: 0.18rem 0;
}

.brand {
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  max-width: min(60vw, 420px);
}

.brand img {
  width: 138px;
  height: 54px;
  object-fit: contain;
  border-radius: 0;
}

.brand strong {
  display: block;
  font-size: 0.88rem;
}

.brand span {
  display: block;
  font-size: 0.64rem;
  color: var(--muted);
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem;
  border: 1px solid rgba(99, 124, 67, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}

.main-menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  border-radius: 999px;
  padding: 0.54rem 0.78rem;
  font-size: 0.86rem;
}

.main-menu > a:hover,
.main-menu > a.active,
.menu-dropdown > a:hover,
.menu-dropdown > a.active {
  background: #eef4e8;
  color: var(--primary-dark);
}

.menu-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: none;
  min-width: 220px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-strong);
  padding: 0.3rem;
}

.dropdown-panel a {
  display: block;
}

.menu-dropdown.open .dropdown-panel {
  display: block;
}

.dropdown-panel a.active {
  background: #edf2f8;
  color: var(--primary-dark);
}

.btn-nav {
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(99, 124, 67, 0.22);
}

.btn-nav:hover {
  background: var(--primary-dark);
}

.menu-toggle {
  display: none;
  justify-self: end;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.44rem 0.68rem;
}

.hero-slider {
  position: relative;
  min-height: clamp(470px, 62vh, 650px);
  overflow: hidden;
  background: #152315;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  background-size: cover;
  background-position: center;
  transition: opacity 0.55s ease, transform 1.2s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(18, 30, 20, 0.84) 0%, rgba(36, 60, 43, 0.58) 46%, rgba(16, 31, 42, 0.34) 100%);
}

.slide-content {
  position: relative;
  min-height: clamp(470px, 62vh, 650px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  padding-top: 4.4rem;
  padding-bottom: 4.4rem;
  animation: revealUp 0.7s ease both;
}

.slide-content h1 {
  max-width: 820px;
  color: #f4f8ff !important;
  font-size: clamp(2.6rem, 5.7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 2px 4px rgba(7, 19, 33, 0.5);
}

.slide-content p {
  max-width: 620px;
  color: #f2f7ff !important;
  margin-bottom: 1.1rem;
  font-size: clamp(1.05rem, 1vw + 0.85rem, 1.35rem);
  text-shadow: 0 1px 2px rgba(8, 22, 38, 0.45);
}

.hero-slider .slide-content h1,
.hero-slider .slide-content p {
  color: #f2f7ff !important;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 1.45rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
}

.dot {
  width: 34px;
  height: 4px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.dot.active {
  background: #fff;
}

.section {
  padding: 4rem 0;
}

.section-soft {
  background: linear-gradient(180deg, #f1f6eb 0%, #edf4e7 100%);
  border-top: 1px solid rgba(99, 124, 67, 0.14);
  border-bottom: 1px solid rgba(99, 124, 67, 0.14);
}

.section-kpis {
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
}

.pill-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.academics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.72rem;
}

.academics-grid .card {
  padding: 0.82rem;
  border-radius: 8px;
  min-height: 0;
}

.academics-grid .card h3 {
  font-size: 0.9rem;
  margin-bottom: 0.38rem;
}

.academics-grid .card p {
  font-size: 0.74rem;
  line-height: 1.35;
  margin-bottom: 0;
}

.pill-card,
.card,
.cta-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.18rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.pill-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.pill-card:hover,
.card:hover,
.cta-box:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 124, 67, 0.32);
  box-shadow: var(--shadow-strong);
}

.pill-card p,
.card p,
.card li,
.card-html p,
.card-html li {
  color: var(--muted);
}

.pill-card a,
.card a,
.section-head a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  margin-bottom: 0;
  font-size: var(--fs-h2);
  font-weight: 780;
}

.card h3,
.news-card h3,
.pill-card h3 {
  font-size: var(--fs-h3);
  font-weight: 760;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.main-content .container > h1 + p {
  font-size: clamp(1rem, 0.45vw + 0.9rem, 1.18rem);
  color: var(--muted);
  max-width: 900px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.kpi-item {
  border: 1px solid rgba(99, 124, 67, 0.18);
  border-radius: 8px;
  padding: 1.15rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(36, 54, 31, 0.05);
}

.kpi-item strong {
  display: block;
  font-size: 1.55rem;
  color: var(--primary-dark);
}

.kpi-item span {
  font-size: 0.85rem;
  color: var(--muted);
}

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

.campus-block {
  margin-bottom: 1rem;
}

.campus-home-title {
  margin-bottom: 0;
  font-size: clamp(2rem, 3vw, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
}

.campus-home-subtitle {
  margin-bottom: 0.7rem;
  font-size: clamp(1.28rem, 2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
}

.campus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.campus-grid img,
.news-card img,
.detail-cover {
  width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  image-rendering: auto;
}

.campus-grid img {
  height: auto;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(99, 124, 67, 0.18);
}

.campus-grid-home img {
  aspect-ratio: 16 / 8;
  max-height: 170px;
  object-fit: cover;
  background: #f5f8fc;
}

.news-card img,
.detail-cover {
  height: auto;
  aspect-ratio: 16 / 10;
  margin-bottom: 0.7rem;
}

.detail-cover-banner {
  height: auto;
  aspect-ratio: 16 / 5;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.18rem;
}

.news-detail-gallery {
  margin-top: 1.2rem;
}

.news-detail-layout {
  display: grid;
  gap: 1rem;
}

.news-detail-hero {
  display: grid;
  grid-template-columns: minmax(240px, 330px) 1fr;
  gap: 1rem;
  align-items: start;
}

.news-detail-media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.news-detail-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.news-detail-media img.detail-cover-banner {
  aspect-ratio: 16 / 6;
  object-fit: contain;
  background: #fff;
}

.news-detail-meta h1 {
  margin-top: 0.25rem;
}

.news-detail-body {
  margin-top: 0.15rem;
}

.news-post-layout {
  padding: 0.75rem;
}

.news-post-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.5fr);
  gap: 1rem;
  align-items: start;
}

.news-post-media {
  min-width: 0;
}

.news-post-main-photo {
  margin: 0;
  width: 100%;
}

.news-post-main-photo img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: cover;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.news-post-info {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: 1rem;
}

.news-post-info h1 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.18;
  margin-bottom: 0.45rem;
}

.news-post-body {
  margin-top: 0.55rem;
}

.card-html img,
.news-post-body img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(78vh, 1100px);
  object-fit: contain;
  border-radius: 10px;
  margin: 0.7rem auto;
}

.card-html figure,
.news-post-body figure {
  margin: 0.7rem 0;
}

.card-html figure img,
.news-post-body figure img {
  margin: 0 auto;
}

.news-main-photo {
  margin: 0 0 0.8rem;
}

.news-main-photo img {
  width: 100%;
  height: clamp(220px, 45vw, 430px);
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.news-post-main-photo img.detail-cover-banner {
  aspect-ratio: auto;
  object-fit: contain;
  padding: 0;
  border: 0;
  background: #fff;
}

.news-post-layout .news-main-photo img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: cover;
  border: 0;
  background: transparent;
}

.excellence-block .news-main-photo img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(68vh, 620px);
  object-fit: contain;
  background: transparent;
  border: none;
}

.news-main-photo figcaption {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.news-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.news-thumb {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.15rem;
  background: #fff;
  cursor: pointer;
}

.news-thumb.active {
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 2px rgba(99, 124, 67, 0.16);
}

.news-thumb img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
}

.excellence-block .news-thumb img {
  object-fit: cover;
}

.excellence-block .news-main-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.excellence-block .news-thumbs {
  grid-template-columns: repeat(auto-fit, minmax(90px, 112px));
  justify-content: start;
}

.news-subgroup {
  margin-top: 1rem;
}

.news-subgroup h2 {
  margin-bottom: 0.75rem;
}

.parents-subgroup {
  margin-top: 1.35rem;
}

.news-instagram-detail {
  margin-top: 1.4rem;
  max-width: 380px;
}

.news-instagram-detail h2 {
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.instagram-embed-grid {
  grid-template-columns: repeat(auto-fit, minmax(326px, 1fr));
  align-items: start;
}

.instagram-embed-card {
  padding: 0.6rem;
  overflow: visible;
  min-height: 240px;
}

.instagram-embed-card .instagram-media {
  min-width: 326px !important;
  width: 100% !important;
  max-width: 540px !important;
  margin: 0 auto !important;
}

.instagram-embed-placeholder {
  min-height: 180px;
  border: 1px dashed rgba(126, 158, 83, 0.45);
  border-radius: 8px;
  background: #f8fbf4;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.35rem;
  padding: 1rem;
}

.instagram-embed-placeholder span {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.instagram-embed-placeholder strong {
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.instagram-embed-placeholder small {
  color: var(--muted);
}

@media (max-width: 560px) {
  .instagram-embed-grid {
    grid-template-columns: 1fr;
  }

  .instagram-embed-card .instagram-media {
    min-width: 0 !important;
  }
}

.news-carousel-wrap {
  position: relative;
}

.news-carousel-viewport {
  overflow: hidden;
}

.news-carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.35s ease;
  will-change: transform;
}

.news-carousel-item {
  flex: 0 0 calc((100% - (1rem * (var(--news-per-view, 3) - 1))) / var(--news-per-view, 3));
  min-width: 0;
  padding: 0.9rem;
}

.news-carousel-item img {
  aspect-ratio: 16 / 9;
  margin-bottom: 0.55rem;
}

.news-carousel-item h3 {
  font-size: clamp(1rem, 0.95vw, 1.2rem);
  margin-bottom: 0.4rem;
}

.news-carousel-item p {
  font-size: 0.92rem;
  line-height: 1.45;
  margin-bottom: 0.45rem;
}

.news-carousel-item small {
  font-size: 0.84rem;
}

.news-carousel-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 4;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(99, 124, 67, 0.24);
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary-dark);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.news-carousel-btn.prev {
  left: -18px;
}

.news-carousel-btn.next {
  right: -18px;
}

.news-carousel-dots {
  display: none;
  justify-content: center;
  gap: 0.42rem;
  margin-top: 0.7rem;
}

.news-carousel-dot {
  width: 24px;
  height: 4px;
  border: none;
  border-radius: 999px;
  background: #c8d6ba;
  cursor: pointer;
}

.news-carousel-dot.active {
  background: var(--primary-dark);
}

.news-carousel-wrap:not(.enabled) .news-carousel-btn,
.news-carousel-wrap:not(.enabled) .news-carousel-dots {
  display: none !important;
}

.news-category-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(99, 124, 67, 0.25);
  background: #eef4e8;
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.narrow {
  width: min(860px, 92vw);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.6rem 0.92rem;
  font-weight: 730;
}

.btn-sm {
  padding: 0.45rem 0.7rem;
  font-size: 0.86rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--primary-dark);
}

.btn-disabled {
  background: #e8edf4;
  border-color: #d2dce8;
  color: #6d7d91;
  cursor: not-allowed;
  pointer-events: none;
}

.action-row {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.admission-page {
  padding-top: 3rem;
}

.admission-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(99, 124, 67, 0.18);
}

.admission-hero h1 {
  margin-bottom: 0.4rem;
  font-size: clamp(2.6rem, 4.5vw, 4.4rem);
}

.admission-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 0.6vw + 0.92rem, 1.18rem);
}

.section-kicker,
.admission-card-label {
  display: inline-flex;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admission-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1rem;
  align-items: stretch;
}

.admission-process {
  position: relative;
  min-height: 100%;
  padding: 1.45rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    linear-gradient(135deg, rgba(127, 154, 87, 0.16), transparent 55%);
}

.admission-process h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
}

.admission-process p {
  margin-top: 0.7rem;
  font-size: clamp(1.02rem, 0.45vw + 0.95rem, 1.18rem);
  line-height: 1.85;
}

.admission-side {
  display: grid;
  gap: 1rem;
}

.admission-side-card {
  padding: 1.25rem;
  box-shadow: none;
}

.admission-side-card h3 {
  font-size: clamp(1.25rem, 1.3vw, 1.55rem);
}

.admission-side-card ul {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
}

.admission-side-card li {
  margin-bottom: 0.35rem;
}

.admission-date-card {
  background: #f3f8ed;
  border-color: rgba(99, 124, 67, 0.22);
}

.admission-faq {
  margin-top: 1.5rem;
  max-width: 760px;
}

.admission-faq h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.data-protection-page h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.data-protection-card {
  margin-top: 1rem;
  padding: 1.45rem;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8f1 100%);
}

.data-protection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.data-protection-grid {
  margin-top: 1rem;
}

.excellence-block {
  margin-top: 1rem;
}

.excellence-intro {
  margin-top: 0.8rem;
  border-left: 5px solid var(--primary);
  background: linear-gradient(180deg, #f9fcf1 0%, #ffffff 100%);
}

.excellence-copy {
  margin-bottom: 0.8rem;
  color: var(--muted);
}

.hint-empty {
  margin: 0.45rem 0 0;
  border: 1px dashed #c8d7a9;
  border-radius: 10px;
  background: #f8fbef;
  padding: 0.68rem 0.75rem;
  color: #506239;
}

.excellence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.excellence-grid img {
  width: 100%;
  height: 188px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.subnav {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.subnav a {
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
}

.subnav a.active {
  background: #0e3250;
  color: #fff;
  border-color: #0e3250;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.badge-item {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem;
}

.badge-item img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.2rem;
}

.testimonials-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.65rem;
  border: 1px solid var(--line);
}

.testimonials-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.campus-clean-block {
  margin-top: 1.25rem;
}

.campus-page-title {
  font-size: clamp(2rem, 3vw, 2.9rem);
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.campus-page-lead {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--muted);
  max-width: 900px;
  line-height: 1.6;
}

.campus-section-title {
  font-size: clamp(1.35rem, 1.8vw, 1.85rem);
  font-weight: 750;
  margin-bottom: 0.5rem;
}

.campus-reviews-intro {
  margin-top: 0.35rem;
  color: var(--muted);
  max-width: 780px;
}

.testimonial-card {
  position: relative;
  border: 1px solid rgba(99, 124, 67, 0.18);
  border-radius: 8px;
  background: #f5f8f1;
  box-shadow: 0 10px 24px rgba(36, 54, 31, 0.08);
  padding: 1rem;
}

.testimonial-card.featured {
  grid-column: span 2;
}

.testimonial-quote-mark {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #cfd8e3;
  background: #f6f9fc;
  color: #8ea0b3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
}

.testimonial-head {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.testimonial-head img,
.testimonial-avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid #c8d5e3;
  object-fit: cover;
  background: #fff;
}

.testimonial-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3c5774;
  font-weight: 800;
}

.testimonial-name {
  margin: 0;
  color: #1f2f43;
  font-weight: 800;
}

.testimonial-role {
  margin: 0.12rem 0 0;
  color: #4e6378;
}

.testimonial-text {
  margin: 0;
  color: #2e4258;
  font-size: 1.04rem;
  line-height: 1.6;
}

.faq-list {
  display: grid;
  gap: 0.6rem;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0.72rem 0.82rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.site-footer {
  background: #6f8750;
  color: #f4f8ea;
}

.footer-stripe {
  height: 4px;
  background: #c7d39a;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 2.1rem;
}

.footer-grid h4 {
  margin-bottom: 0.5rem;
  color: #f3f8e6;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.42rem;
}

.footer-grid a,
.footer-bottom a {
  text-decoration: none;
  color: #eff5de;
}

.partners {
  padding-top: 1.1rem;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.6rem;
}

.partner-grid a {
  display: block;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.35rem;
}

.partner-grid img {
  width: 100%;
  height: 56px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  padding: 0.18rem;
}

.footer-bottom {
  margin-top: 1.2rem;
  padding: 1rem 0 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.75rem;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0;
  font-size: 0.83rem;
  line-height: 1;
  color: #fff;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.social-row a:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.social-row svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social-row svg path {
  fill: currentColor;
  stroke: none;
}

.flash {
  position: fixed;
  right: 12px;
  top: 112px;
  z-index: 60;
  color: #fff;
  font-size: 0.9rem;
  border-radius: 8px;
  padding: 0.64rem 0.8rem;
  transition: opacity 0.3s ease;
}

.flash-success {
  background: var(--ok);
}

.flash-error {
  background: var(--danger);
}

.contact-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(390px, 96vw);
  height: 100vh;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 45px rgba(11, 27, 43, 0.16);
  z-index: 80;
  transition: right 0.28s ease;
}

.contact-drawer.open,
.contact-drawer:target {
  right: 0;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 39, 0.36);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.contact-drawer.open ~ .drawer-backdrop,
.contact-drawer:target ~ .drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.drawer-inner {
  padding: 1rem;
}

.drawer-close {
  float: right;
  border: none;
  background: transparent;
  font-size: 1.45rem;
  cursor: pointer;
}

.stack-form {
  display: grid;
  gap: 0.6rem;
}

.stack-form label {
  display: grid;
  gap: 0.2rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.stack-form input,
.stack-form textarea,
.stack-form select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.52rem;
  font: inherit;
}

.stack-form .privacy-consent {
  grid-template-columns: 18px 1fr;
  align-items: flex-start;
  gap: 0.55rem;
  border: 1px solid rgba(126, 158, 83, 0.28);
  border-radius: 8px;
  background: #f7faf2;
  padding: 0.7rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.stack-form .privacy-consent input {
  width: 16px;
  height: 16px;
  margin-top: 0.1rem;
  padding: 0;
  accent-color: var(--green);
}

.stack-form .privacy-consent a {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-note {
  margin: -0.15rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.contact-ok {
  border: 1px solid #bde0c8;
  border-radius: 8px;
  background: #eaf7ef;
  color: #215934;
  padding: 0.5rem;
  margin-bottom: 0.7rem;
}

.floating-cta {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 65;
  border-radius: 999px;
  text-decoration: none;
  color: #2a1a00;
  font-weight: 800;
  background: var(--accent);
  padding: 0.62rem 0.85rem;
  box-shadow: 0 12px 26px rgba(22, 39, 60, 0.18);
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .slide {
    transform: none;
  }
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .main-menu {
    position: absolute;
    top: 74px;
    right: 4vw;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: min(340px, 90vw);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-strong);
    padding: 0.6rem;
  }

  .main-menu.open {
    display: flex;
  }

  .dropdown-panel {
    position: static;
    display: block;
    border: none;
    box-shadow: none;
    padding: 0.1rem 0 0.1rem 0.55rem;
  }

  .pill-grid,
  .card-grid,
  .academics-grid,
  .card-grid.two-col,
  .admission-hero,
  .admission-layout,
  .kpi-grid,
  .split,
  .badge-grid,
  .excellence-grid,
  .campus-grid,
  .footer-grid,
  .footer-bottom {
    display: grid;
    grid-template-columns: 1fr;
  }

  .action-row {
    flex-wrap: wrap;
  }

  .slide-content {
    padding-top: 4.4rem;
    padding-bottom: 4.1rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-detail-hero {
    grid-template-columns: 1fr;
  }

  .news-detail-media {
    max-width: 420px;
  }

  .news-post-grid {
    grid-template-columns: 1fr;
  }

  .news-post-info {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 0.85rem;
  }

  .news-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .news-carousel-btn.prev {
    left: -8px;
  }

  .news-carousel-btn.next {
    right: -8px;
  }

  .floating-cta {
    right: 10px;
    bottom: 10px;
    font-size: 0.84rem;
  }

  .testimonials-showcase {
    grid-template-columns: 1fr;
  }

  .testimonial-card.featured {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 116px;
    height: 46px;
  }

  .brand span {
    display: none;
  }

  .hero-slider {
    min-height: 500px;
  }

  .container {
    width: min(1180px, 94vw);
  }

  .news-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-carousel-btn {
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
  }
}

/* Footer estable: evita que se "pierdan" colores por reglas previas */
.site-footer {
  background: #6f8750 !important;
  color: #f4f8ea !important;
}

.site-footer .footer-grid h4 {
  color: #f3f8e6 !important;
}

.site-footer .footer-grid a,
.site-footer .footer-bottom a,
.site-footer .footer-bottom p,
.site-footer .social-row a {
  color: #f2f7e8 !important;
}

.site-footer .partner-grid a {
  background: rgba(255, 255, 255, 0.14) !important;
}

.site-footer .partner-grid img {
  width: 100%;
  height: 56px;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 0.18rem;
}
