/* Page-specific styles for index.html */

.hero-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 84% 18%, rgba(212, 175, 55, 0.18), transparent 24%), linear-gradient(108deg, #105130 0%, #105130 58%, #105130 100%);
  color: var(--white);
  padding: 1rem 0 2.5rem;
  overflow: hidden;
}

.hero-section::before {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.16) 0%, transparent 38%), radial-gradient(circle at 90% 80%, rgba(24, 82, 66, 0.3) 0%, transparent 52%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  position: relative;
  z-index: 2;
  transform: translateY(-1rem);
}

.hero-brand-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hero-brand-row .badge-tag {
  margin-bottom: 0;
}

.hero-cambridge-logo {
  width: 148px;
  height: 58px;
  padding: 0.35rem 0.5rem;
  border-radius: 0.55rem;
  background: var(--white);
  object-fit: contain;
  box-shadow: 0 8px 18px rgba(3, 45, 21, 0.2);
}

.hero-image-wrap {
  position: relative;
  min-height: 350px;
  display: grid;
  place-items: center end;
  margin-right: -1.5rem;
}

.hero-image-glow {
  position: absolute;
  width: 82%;
  height: 82%;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.22);
  filter: blur(18px);
}

.hero-image {
  position: relative;
  width: min(100%, 500px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 26px 30px rgba(3, 45, 21, 0.3));
  transition: transform 0.35s ease;
}

.hero-image-wrap:hover .hero-image {
  transform: scale(1.02);
}

/* ===== HIASAN HERO / ORNAMEN BUNGA & DAUN ===== */
.hero-decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-decor svg {
  position: absolute;
  display: block;
}

.hero-leaf-tl {
  top: -34px;
  left: -26px;
  width: clamp(130px, 14vw, 215px);
  color: #1e8a50;
  opacity: 0.55;
  transform-origin: 0 0;
  animation: heroSway 8s ease-in-out infinite;
}

.hero-leaf-bl {
  bottom: -28px;
  left: -30px;
  width: clamp(140px, 15vw, 250px);
  color: #0a3d21;
  opacity: 0.85;
  transform-origin: 0 100%;
  animation: heroSway 9.5s ease-in-out infinite reverse;
}

.hero-leaf-tr {
  top: -30px;
  right: -34px;
  width: clamp(120px, 12vw, 200px);
  color: #1e8a50;
  opacity: 0.6;
  transform-origin: 100% 0;
  animation: heroSway 9s ease-in-out infinite reverse;
}

.hero-leaf-br {
  bottom: -22px;
  right: -26px;
  width: clamp(110px, 11vw, 190px);
  color: #177745;
  opacity: 0.5;
  transform-origin: 100% 100%;
  animation: heroSway 11s ease-in-out infinite;
}

.hero-sparkle {
  color: #e9c46a;
  opacity: 0.9;
  animation: heroTwinkle 3.4s ease-in-out infinite;
}

.hero-sparkle-1 {
  top: 15%;
  left: 36%;
  width: 22px;
}
.hero-sparkle-2 {
  top: 7%;
  left: 52%;
  width: 15px;
  color: #f6e7b2;
  animation-delay: 0.9s;
}
.hero-sparkle-3 {
  top: 42%;
  right: 1.5%;
  width: 18px;
  animation-delay: 1.6s;
}
.hero-sparkle-4 {
  bottom: 8%;
  right: 20%;
  width: 13px;
  color: #ffffff;
  opacity: 0.75;
  animation-delay: 2.3s;
}
.hero-sparkle-5 {
  bottom: 9%;
  left: 44%;
  width: 16px;
  color: #f6e7b2;
  animation-delay: 0.4s;
}
.hero-sparkle-6 {
  top: 24%;
  left: 26%;
  width: 12px;
  color: #ffffff;
  opacity: 0.8;
  animation-delay: 1.2s;
}
.hero-sparkle-7 {
  top: 55%;
  left: 33%;
  width: 14px;
  color: #e9c46a;
  animation-delay: 2.8s;
}
.hero-sparkle-8 {
  top: 30%;
  left: 47%;
  width: 10px;
  color: #f6e7b2;
  animation-delay: 0.2s;
}
.hero-sparkle-9 {
  top: 68%;
  left: 26%;
  width: 13px;
  color: #ffffff;
  opacity: 0.7;
  animation-delay: 3.4s;
}
.hero-sparkle-10 {
  top: 12%;
  left: 44%;
  width: 11px;
  color: #e9c46a;
  animation-delay: 1.9s;
}
.hero-sparkle-11 {
  bottom: 22%;
  right: 34%;
  width: 15px;
  color: #e9c46a;
  animation-delay: 2.5s;
}
.hero-sparkle-12 {
  top: 20%;
  right: 9%;
  width: 12px;
  color: #f6e7b2;
  animation-delay: 0.7s;
}

.hero-moon {
  top: 11%;
  left: 62%;
  right: auto;
  width: 90px;
  color: rgba(233, 196, 106, 0.45);
  animation: heroFloat 7s ease-in-out infinite;
}

/* Kelopak bunga jatuh melayang */
.hero-petal {
  position: absolute;
  top: -30px;
  display: block;
  background: #e9c46a;
  border-radius: 62% 0 62% 0;
  opacity: 0;
  animation: petalFall linear infinite;
  will-change: transform;
}

.hero-petal-1 {
  left: 8%;
  width: 13px;
  height: 13px;
  background: #e9c46a;
  animation-duration: 11s;
  animation-delay: -3s;
}
.hero-petal-2 {
  left: 19%;
  width: 10px;
  height: 10px;
  background: #f6e7b2;
  animation-duration: 14s;
  animation-delay: -8s;
}
.hero-petal-3 {
  left: 31%;
  width: 15px;
  height: 15px;
  background: #d4af37;
  animation-duration: 12s;
  animation-delay: -5s;
}
.hero-petal-4 {
  left: 43%;
  width: 11px;
  height: 11px;
  background: #f6e7b2;
  animation-duration: 16s;
  animation-delay: -2s;
}
.hero-petal-5 {
  left: 56%;
  width: 14px;
  height: 14px;
  background: #e9c46a;
  animation-duration: 10s;
  animation-delay: -6s;
}
.hero-petal-6 {
  left: 67%;
  width: 10px;
  height: 10px;
  background: #d4af37;
  animation-duration: 13s;
  animation-delay: -9s;
}
.hero-petal-7 {
  left: 79%;
  width: 12px;
  height: 12px;
  background: #e9c46a;
  animation-duration: 9.5s;
  animation-delay: -4s;
}
.hero-petal-8 {
  left: 89%;
  width: 9px;
  height: 9px;
  background: #f6e7b2;
  animation-duration: 15s;
  animation-delay: -7s;
}

@keyframes petalFall {
  0% {
    transform: translate3d(0, -30px, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.85;
  }
  25% {
    transform: translate3d(34px, 190px, 0) rotate(100deg);
  }
  50% {
    transform: translate3d(-12px, 380px, 0) rotate(210deg);
    opacity: 0.8;
  }
  75% {
    transform: translate3d(30px, 570px, 0) rotate(300deg);
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translate3d(4px, 790px, 0) rotate(380deg);
    opacity: 0;
  }
}

/* Gelembung cahaya naik perlahan */
.hero-bubble {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(246, 231, 178, 0.9), rgba(233, 196, 106, 0.35) 60%, rgba(233, 196, 106, 0.08));
  filter: blur(1px);
  opacity: 0;
  animation: bubbleRise linear infinite;
  will-change: transform;
}

.hero-bubble-1 {
  left: 47%;
  bottom: -40px;
  width: 18px;
  height: 18px;
  animation-duration: 13s;
  animation-delay: -4s;
}
.hero-bubble-2 {
  left: 60%;
  bottom: -30px;
  width: 11px;
  height: 11px;
  animation-duration: 16s;
  animation-delay: -9s;
}
.hero-bubble-3 {
  left: 36%;
  bottom: -50px;
  width: 14px;
  height: 14px;
  animation-duration: 11s;
  animation-delay: -6s;
}

@keyframes bubbleRise {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  12% {
    opacity: 0.55;
  }
  50% {
    transform: translateY(-260px) translateX(14px);
    opacity: 0.45;
  }
  88% {
    opacity: 0.25;
  }
  100% {
    transform: translateY(-540px) translateX(-10px);
    opacity: 0;
  }
}

/* Denyut lembut cahaya di belakang gambar hero */
.hero-section .hero-image-glow {
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

/* Gambar hero mengapung pelan */
.hero-section .hero-image-wrap {
  animation: heroImageFloat 7s ease-in-out infinite;
}

@keyframes heroImageFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes heroSway {
  0%,
  100% {
    transform: rotate(-2.5deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

@keyframes heroTwinkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.8) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.1) rotate(18deg);
  }
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@media (max-width: 768px) {
  .hero-leaf-tl {
    display: none;
  }
  .hero-leaf-bl {
    width: 118px;
    bottom: -16px;
    left: -18px;
    opacity: 0.75;
  }
  .hero-leaf-br {
    width: 92px;
    right: -16px;
    bottom: -14px;
  }
  .hero-sparkle-1 {
    top: 9%;
    left: 20%;
  }
  .hero-sparkle-2 {
    left: 74%;
  }
  .hero-sparkle-3 {
    display: none;
  }
  .hero-sparkle-6,
  .hero-sparkle-8,
  .hero-sparkle-10 {
    display: none;
  }
  .hero-leaf-tr {
    width: 96px;
    top: -20px;
    right: -22px;
    opacity: 0.55;
  }
  .hero-petal-4,
  .hero-petal-6,
  .hero-petal-8 {
    display: none;
  }
  .hero-petal-1 {
    left: 12%;
  }
  .hero-petal-5 {
    left: 58%;
  }
  .hero-bubble-3 {
    display: none;
  }
  .hero-moon {
    width: 60px;
    top: 12%;
    left: auto;
    right: 8%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-decor svg,
  .hero-petal,
  .hero-bubble {
    animation: none !important;
  }
  .hero-petal,
  .hero-bubble {
    display: none;
  }
  .hero-section .hero-image-glow,
  .hero-section .hero-image-wrap {
    animation: none !important;
  }
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.16);
  color: #f3e5ab;
  border: 1px solid rgba(212, 175, 55, 0.45);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 3.8vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title span.highlight {
  background: linear-gradient(120deg, #f3e5ab, #d4af37);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  max-width: 720px;
  line-height: 1.75;
}

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

.hero-card-slider {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(212, 175, 55, 0.35);
  transform-style: preserve-3d;
  animation: floatCard 6s ease-in-out infinite;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.hero-card-slider img {
  width: 100%;
  min-height: 460px;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.hero-card-slider:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.46);
}

.hero-card-slider:hover img {
  transform: scale(1.04);
  filter: saturate(1.06);
}

.hero-card-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.hero-card-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  max-width: 320px;
  background: linear-gradient(135deg, rgba(8, 34, 27, 0.95), rgba(15, 56, 44, 0.8));
  backdrop-filter: blur(10px);
  padding: 1.1rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.hero-card-badge h4 {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.hero-card-badge p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.stats-strip {
  background-color: var(--white);
  padding: 2.5rem 0;
  margin-top: -3rem;
  position: relative;
  z-index: 10;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 0 1rem;
  border-right: 1px solid var(--gray-light);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-dark);
}

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

.philosophy-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.philosophy-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 175, 55, 0.5);
}

.icon-box {
  width: 60px;
  height: 60px;
  background: var(--accent-soft);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.philosophy-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.philosophy-card p {
  color: var(--gray-dark);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Prevent legacy philosophy cards from overriding the HTML hidden attribute. */
.philosophy-grid[hidden] {
  display: none !important;
}

/* Student activities showcase */
.student-activities {
  position: relative;
  overflow: hidden;
}

.student-activities::before {
  content: "";
  position: absolute;
  width: 32rem;
  height: 32rem;
  right: -16rem;
  bottom: -17rem;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.09);
  pointer-events: none;
}

.activities-showcase {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  grid-template-rows: repeat(2, 240px);
  gap: 1.5rem;
  position: relative;
  margin-top: 0.5rem;
}

.activity-card {
  position: relative;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.9);
  border-radius: 1.7rem;
  min-height: 0;
  isolation: isolate;
  background: var(--primary);
  box-shadow: 0 18px 42px rgba(8, 34, 27, 0.15);
}

.activity-feature-carousel {
  grid-row: span 2;
  min-height: 0;
  overflow: hidden;
  position: relative;
  border-radius: 1.7rem;
  background: var(--primary-dark);
}

.activity-feature-track {
  display: flex;
  height: 100%;
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.activity-feature-carousel .activity-card-featured {
  flex: 0 0 100%;
  height: 100%;
  grid-row: auto;
  border-radius: 1.7rem;
}

.activity-feature-nav {
  position: absolute;
  z-index: 5;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(9, 36, 28, 0.74);
  backdrop-filter: blur(10px);
}

.activity-feature-button {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary-dark);
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.activity-feature-button:hover {
  background: #f3d66b;
  transform: scale(1.08);
}

.activity-feature-count {
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 0.25rem;
}

.activity-feature-count b {
  color: #fff0b7;
}

.activity-feature-count i {
  color: rgba(255, 255, 255, 0.55);
  font-style: normal;
  margin: 0 0.15rem;
}

.activity-rail {
  grid-column: 2;
  grid-row: span 2;
  min-height: 0;
  overflow: hidden;
  position: relative;
  border-radius: 1.7rem;
  background: transparent;
}

.activity-rail::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.55) 0%, transparent 12%, transparent 88%, rgba(248, 250, 252, 0.55) 100%);
}

.activity-rail-track {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: activityRail 16s linear infinite;
}

.activity-rail .activity-card {
  flex: 0 0 240px;
  height: 240px;
}

.activity-rail:hover .activity-rail-track {
  animation-play-state: paused;
}

.activity-rail .activity-rail-nav {
  display: none;
}

@keyframes activityRail {
  to {
    transform: translateY(calc(-50% - 0.75rem));
  }
}

.activity-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 0.5s ease,
    filter 0.5s ease;
}

.activity-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 28, 21, 0.04) 18%, rgba(4, 28, 21, 0.88) 100%);
}

.activity-card:hover img {
  transform: scale(1.07);
  filter: saturate(1.1);
}

.activity-card-content {
  position: absolute;
  z-index: 2;
  left: 1.8rem;
  right: 1.8rem;
  bottom: 1.7rem;
  color: var(--white);
}

.activity-level {
  display: inline-block;
  color: #fff0b7;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.activity-card h3 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}

.activity-card p {
  color: rgba(255, 255, 255, 0.87);
  font-size: 0.94rem;
  line-height: 1.55;
  max-width: 31rem;
  margin: 0.65rem 3rem 0 0;
}

.activity-arrow {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 1.35rem;
  font-weight: 800;
  transition: transform 0.25s ease;
}

.activity-card:hover .activity-arrow {
  transform: rotate(45deg);
}

.activity-card-small .activity-card-content {
  left: 1.35rem;
  right: 1.35rem;
  bottom: 1.25rem;
}

.activity-card-small h3 {
  font-size: 1.35rem;
}

.activity-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.35rem 2rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 1.4rem;
  background: linear-gradient(100deg, var(--primary-dark) 0%, #145440 55%, var(--primary) 100%);
  box-shadow: 0 16px 35px rgba(8, 34, 27, 0.14);
  color: var(--white);
}

.activity-note-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 1.2rem;
}

.activity-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.96rem;
  line-height: 1.55;
  max-width: 52rem;
}

.activity-note strong {
  color: #fff0b7;
}

.activity-videos {
  max-width: 1080px;
  margin: 2.5rem auto 0;
  position: relative;
}

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

.video-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) 1fr;
  align-items: stretch;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(15, 56, 44, 0.1);
  border-radius: 1.25rem;
  box-shadow: 0 12px 28px rgba(8, 34, 27, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(8, 34, 27, 0.14);
}

.video-frame {
  position: relative;
  align-self: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
  margin: 0.75rem;
  border-radius: 0.9rem;
  background: var(--primary-dark);
}

.video-frame::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 3px solid rgba(212, 175, 55, 0.78);
  border-radius: 0.9rem;
  pointer-events: none;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 0.45s ease,
    filter 0.45s ease;
}

.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 36, 28, 0.05), rgba(9, 36, 28, 0.45));
  transition: background 0.3s ease;
}

.video-channel-badge {
  position: absolute;
  z-index: 2;
  top: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.65);
}

.video-channel-badge img {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.2rem;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
}

.video-channel-badge > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.video-channel-badge strong {
  overflow: hidden;
  font-size: clamp(0.72rem, 1.05vw, 0.92rem);
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-channel-badge small {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(0.58rem, 0.8vw, 0.72rem);
  font-weight: 700;
  margin-top: 0.12rem;
}

.video-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 3.15rem;
  padding-left: 0.2rem;
  border-radius: 0.8rem;
  background: #ff0033;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  color: var(--white);
  font-size: 1.35rem;
  transform: translate(-50%, -50%);
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.video-youtube-mark {
  position: absolute;
  z-index: 2;
  right: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(9, 36, 28, 0.68);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(0.68rem, 0.95vw, 0.82rem);
  font-weight: 800;
}

.video-youtube-mark i {
  display: grid;
  place-items: center;
  width: 1.05rem;
  height: 0.75rem;
  padding-left: 0.08rem;
  border-radius: 0.22rem;
  background: #ff0033;
  color: var(--white);
  font-size: 0.42rem;
  font-style: normal;
}

.video-frame:hover .video-thumbnail {
  transform: scale(1.06);
  filter: saturate(1.12);
}

.video-frame:hover::after {
  background: linear-gradient(180deg, rgba(9, 36, 28, 0), rgba(9, 36, 28, 0.28));
}

.video-frame:hover .video-play {
  background: #e5002d;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-card-details {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 1.35rem 1.65rem 1.35rem 0.8rem;
}

.video-card-details > span {
  color: var(--accent-hover);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.video-card-details h4 {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.65vw, 1.3rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0.45rem 0 0.6rem;
}

.video-card-details p {
  color: var(--gray-dark);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.video-text-link {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  color: var(--accent-hover);
  font-size: 0.85rem;
  font-weight: 800;
  margin-top: 0.9rem;
  text-decoration: none;
}

.video-text-link:hover {
  color: var(--primary);
}

@media (prefers-reduced-motion: reduce) {
  .activity-feature-track {
    transition: none;
  }

  .activity-rail-track {
    animation: none;
  }
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}

.program-card {
  min-width: 0;
  max-width: none;
  background: linear-gradient(145deg, #ffffff 0%, #f8fbf8 100%);
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(8, 34, 27, 0.08);
  border: 1px solid rgba(8, 34, 27, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.program-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-hover), var(--primary));
  transform: scaleX(0.2);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(8, 34, 27, 0.14);
  border-color: rgba(15, 56, 44, 0.22);
}

.program-card:hover::before {
  transform: scaleX(1);
}

.program-card-main {
  text-decoration: none;
}

.program-card-main button {
  border: none;
  background: transparent;
  width: 100%;
}

.program-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(15, 56, 44, 0.08));
}

.program-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.program-card:hover .program-img-wrap img {
  transform: scale(1.06);
}

.program-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(8, 34, 27, 0.86);
  color: var(--white);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.program-content {
  padding: 1.4rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.7rem;
}

.program-title {
  font-family: var(--font-heading);
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.program-desc {
  color: var(--gray-dark);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
  flex-grow: 1;
}

.program-card .btn {
  align-self: flex-start;
  margin-top: 0.25rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 56, 44, 0.15);
  background: rgba(15, 56, 44, 0.04);
  color: var(--primary);
  font-weight: 600;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.program-card .btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.program-submenu {
  position: fixed;
  inset: 0;
  background: rgba(8, 34, 27, 0.66);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1200;
}

.program-submenu.active {
  display: flex;
}

.program-submenu-card {
  background: linear-gradient(145deg, #ffffff 0%, #f7fbf7 100%);
  border-radius: 1.5rem;
  width: min(860px, 100%);
  padding: 1.6rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  position: relative;
  border: 1px solid rgba(15, 56, 44, 0.1);
  transform: translateY(10px);
  opacity: 0;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.program-submenu.active .program-submenu-card {
  transform: translateY(0);
  opacity: 1;
}

.program-submenu-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  border: none;
  background: rgba(15, 56, 44, 0.08);
  color: var(--primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2;
}

.program-submenu-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 0.25rem;
}

.program-submenu-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.8rem;
  padding: 0.85rem;
  border-radius: 1.1rem;
  background: linear-gradient(145deg, #ffffff 0%, #f8fcf8 100%);
  color: var(--primary);
  text-decoration: none;
  border: 1px solid rgba(15, 56, 44, 0.12);
  overflow: hidden;
  min-height: 330px;
  box-shadow: 0 6px 18px rgba(8, 34, 27, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.program-submenu-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(8, 34, 27, 0.14);
  border-color: rgba(15, 56, 44, 0.22);
}

.program-submenu-item img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-radius: 0.9rem;
  display: block;
}

.program-submenu-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.2rem 0.1rem 0.1rem;
  flex: 1;
}

.program-submenu-item-content span {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.04rem;
  letter-spacing: -0.01em;
}

.program-submenu-item-content small {
  color: var(--gray-dark);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.program-submenu-item-content p {
  color: var(--gray-dark);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0.25rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .program-grid {
    grid-template-columns: 1fr;
  }

  .program-submenu-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .program-content {
    padding: 1.2rem 1rem 1.3rem;
  }

  .program-submenu-list {
    grid-template-columns: 1fr;
  }
}

.program-features li svg {
  color: var(--accent-hover);
  flex-shrink: 0;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.facility-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 260px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.facility-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.facility-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 56, 44, 0.9) 0%, rgba(15, 56, 44, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: var(--white);
  transition: var(--transition);
}

.facility-card:hover img {
  transform: scale(1.1);
}

.facility-card:hover .facility-overlay {
  background: linear-gradient(to top, rgba(15, 56, 44, 0.95) 0%, rgba(15, 56, 44, 0.4) 100%);
}

.facility-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.facility-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  transform: translateY(10px);
  opacity: 0;
  transition: var(--transition);
}

.facility-card:hover .facility-desc {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    transform: none;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

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

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 1rem;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-brand-row {
    justify-content: center;
  }

  .hero-image-wrap {
    min-height: 330px;
    order: -1;
    margin-right: 0;
  }

  .hero-image {
    width: min(100%, 430px);
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

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

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 0;
    padding: 4rem 0 5.5rem;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .hero-image-wrap {
    min-height: 270px;
  }

  .hero-image {
    width: min(100%, 450px);
  }

  .hero-cambridge-logo {
    width: 132px;
    height: 52px;
  }
}

@media (max-width: 1024px) {
  .philosophy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .activities-showcase {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px 220px 220px auto;
  }

  .activity-feature-carousel {
    grid-column: span 2;
    grid-row: auto;
  }

  .activity-rail {
    grid-column: span 2;
    grid-row: span 2;
  }

  .activity-rail .activity-card {
    flex-basis: 220px;
    height: 220px;
  }

  .activity-note {
    grid-column: span 2;
  }

  .program-card {
    flex: 0 0 300px;
    max-width: 300px;
  }

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.3rem;
  }

  .philosophy-grid,
  .facilities-grid {
    grid-template-columns: 1fr;
  }

  .activities-showcase {
    grid-template-columns: 1fr;
    grid-template-rows: 360px 220px 220px auto;
    gap: 1rem;
  }

  .activity-feature-carousel,
  .activity-note {
    grid-column: auto;
  }

  .activity-rail {
    grid-column: auto;
    grid-row: span 2;
  }

  .activity-card-content {
    left: 1.3rem;
    right: 1.3rem;
    bottom: 1.25rem;
  }

  .activity-note {
    padding: 1.35rem;
  }

  .activity-videos {
    margin-top: 3rem;
  }

  .video-card {
    grid-template-columns: 1fr;
  }

  .video-card-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .video-frame {
    margin: 0.75rem 0.75rem 0;
  }

  .video-card-details {
    padding: 1.1rem 1.25rem 1.3rem;
  }

  .program-carousel-wrapper {
    gap: 0.75rem;
  }

  .program-nav {
    width: 38px;
    height: 38px;
  }

  .program-card {
    flex: 0 0 85vw;
    max-width: 85vw;
  }
}

/* Video testimonials */
.testimonials-section {
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  width: 28rem;
  height: 28rem;
  left: -15rem;
  top: 4rem;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  pointer-events: none;
}

.testimonials-section .container {
  position: relative;
}

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

.testimonial-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(15, 56, 44, 0.1);
  border-radius: 1.25rem;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(8, 34, 27, 0.08);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.testimonial-card:hover {
  transform: translateY(-7px);
  border-color: rgba(212, 175, 55, 0.62);
  box-shadow: 0 20px 38px rgba(8, 34, 27, 0.16);
}

.testimonial-video {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--primary-dark);
  isolation: isolate;
}

.testimonial-video::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 29, 22, 0.05) 18%, rgba(5, 29, 22, 0.62) 100%);
  transition: background 0.28s ease;
}

.testimonial-video img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.45s ease,
    filter 0.45s ease;
}

.testimonial-card:hover .testimonial-video img {
  transform: scale(1.08);
  filter: saturate(1.08);
}

.testimonial-card:hover .testimonial-video::after {
  background: linear-gradient(180deg, rgba(5, 29, 22, 0) 18%, rgba(5, 29, 22, 0.4) 100%);
}

.testimonial-tag {
  position: absolute;
  z-index: 2;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(8, 34, 27, 0.75);
  backdrop-filter: blur(8px);
  color: #fff7d3;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.testimonial-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 3.45rem;
  height: 2.45rem;
  place-items: center;
  padding-left: 0.12rem;
  border-radius: 0.7rem;
  background: #ff0033;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  color: var(--white);
  font-size: 1rem;
  transform: translate(-50%, -50%);
  transition:
    transform 0.28s ease,
    background 0.28s ease;
}

.testimonial-card:hover .testimonial-play {
  background: #e5002d;
  transform: translate(-50%, -50%) scale(1.1);
}

.testimonial-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem 1.15rem 1.3rem;
}

.testimonial-level {
  color: var(--accent-hover);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.testimonial-content h3 {
  margin: 0.45rem 0 0.58rem;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.13rem;
  font-weight: 800;
  line-height: 1.27;
}

.testimonial-content p {
  margin: 0;
  color: var(--gray-dark);
  font-size: 0.88rem;
  line-height: 1.62;
}

.testimonial-action {
  display: flex;
  justify-content: center;
  margin-top: 2.4rem;
}

@media (max-width: 1024px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .testimonial-video {
    aspect-ratio: 16 / 9;
  }

  .testimonial-content {
    padding: 1.1rem 1.15rem 1.25rem;
  }
}

/* Campus introduction banner below YouTube videos */
.about-campus-banner {
  position: relative;
  min-height: 27rem;
  margin-top: 3.25rem;
  overflow: hidden;
  border-radius: 1.75rem;
  background: var(--primary-dark);
  box-shadow: 0 20px 44px rgba(8, 34, 27, 0.16);
  isolation: isolate;
}

.about-campus-banner > img {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s ease;
}

.about-campus-banner::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 32, 24, 0.36) 0%, rgba(5, 32, 24, 0.04) 72%);
}

.about-campus-banner:hover > img {
  transform: scale(1.035);
}

.about-campus-overlay {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 2.25rem;
  display: flex;
  width: min(25rem, calc(100% - 4.5rem));
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2.1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.1rem;
  background: linear-gradient(145deg, rgba(7, 53, 41, 0.86), rgba(15, 80, 61, 0.78));
  box-shadow: 0 16px 32px rgba(3, 25, 18, 0.25);
  backdrop-filter: blur(7px);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-50%);
}

.about-campus-kicker {
  margin-bottom: 0.75rem;
  color: #f7d96a;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.about-campus-overlay h3 {
  max-width: 28rem;
  margin: 0;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.13;
}

.about-campus-overlay p {
  max-width: 27rem;
  margin: 1rem 0 1.35rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  line-height: 1.75;
}

.about-campus-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0.42rem;
  border-bottom: 2px solid var(--accent);
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    color 0.2s ease,
    gap 0.2s ease,
    border-color 0.2s ease;
}

.about-campus-link span {
  font-size: 1.45rem;
  line-height: 0.8;
}

.about-campus-link:hover,
.about-campus-banner:hover .about-campus-link {
  gap: 1rem;
  border-color: #fff0ad;
  color: #fff0ad;
}

@media (max-width: 640px) {
  .about-campus-banner {
    min-height: 30rem;
    margin-top: 2.5rem;
    border-radius: 1.25rem;
  }

  .about-campus-banner::after {
    background: linear-gradient(180deg, rgba(5, 32, 24, 0.1) 0%, rgba(5, 32, 24, 0.65) 100%);
  }

  .about-campus-overlay {
    top: auto;
    bottom: 1rem;
    left: 1rem;
    width: calc(100% - 2rem);
    min-height: 0;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(7, 53, 41, 0.88), rgba(15, 80, 61, 0.8));
    transform: none;
  }

  .about-campus-overlay h3 {
    font-size: 1.7rem;
  }

  .about-campus-overlay p {
    margin: 1rem 0 1.35rem;
    font-size: 0.94rem;
  }
}

/* =============================================================
   PPDB (Penerimaan Peserta Didik Baru) STYLES
   ============================================================= */

/* ----- PPDB ANNOUNCEMENT BAR ----- */

@keyframes ppdbShimmer {
  0%,
  100% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(100%);
  }
}

.ppdb-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.65rem 0;
  position: relative;
  flex-wrap: wrap;
}

.ppdb-bar-badge {
  background: var(--accent);
  color: var(--primary-dark);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: ppdbBadgePulse 2s ease-in-out infinite;
}

@keyframes ppdbBadgePulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.ppdb-bar-content p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 500;
  margin: 0;
}

.ppdb-bar-content p strong {
  color: var(--white);
}

.ppdb-bar-cta {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #fff0b7;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.ppdb-bar-cta:hover {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
}

.ppdb-bar-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition);
}

.ppdb-bar-close:hover {
  color: var(--white);
}

/* ----- PPDB NAV HIGHLIGHT ----- */
.ppdb-nav-highlight {
  color: var(--accent) !important;
  position: relative;
}

.ppdb-nav-highlight::before {
  content: "";
  position: absolute;
  top: -2px;
  right: -8px;
  width: 7px;
  height: 7px;
  background: #ff4444;
  border-radius: 50%;
  animation: ppdbDot 1.5s ease-in-out infinite;
}

@keyframes ppdbDot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

/* ----- HERO PPDB CTA ----- */
.hero-ppdb-cta {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  margin-top: 2rem;
  align-items: center;
}

.hero-ppdb-cta .btn {
  flex: 0 1 auto;
  white-space: nowrap;
}

.hero-ppdb-btn {
  animation: heroBtnGlow 2.5s ease-in-out infinite;
}

@keyframes heroBtnGlow {
  0%,
  100% {
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
  }

  50% {
    box-shadow:
      0 4px 28px rgba(212, 175, 55, 0.55),
      0 0 40px rgba(212, 175, 55, 0.15);
  }
}

/* ----- PPDB HIGHLIGHTS SECTION ----- */
.ppdb-highlights-section {
  background: linear-gradient(145deg, #f0fdf4 0%, #fefce8 50%, #fff7ed 100%);
  position: relative;
  overflow: hidden;
}

.ppdb-highlights-section::before {
  content: "";
  position: absolute;
  top: -8rem;
  right: -8rem;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  pointer-events: none;
}

.ppdb-highlights-section::after {
  content: "";
  position: absolute;
  bottom: -6rem;
  left: -6rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: rgba(15, 56, 44, 0.06);
  pointer-events: none;
}

/* PPDB Content Grid (Countdown + Brochure) */
.ppdb-content-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.ppdb-info-card {
  background: var(--white);
  border-radius: 24px;
  padding: clamp(1.8rem, 3vw, 2.5rem);
  box-shadow: 0 20px 45px rgba(15, 56, 44, 0.08);
  border: 1px solid rgba(15, 56, 44, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ppdb-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, rgba(233, 196, 106, 0.25), rgba(212, 175, 55, 0.15));
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--primary-dark);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.ppdb-date-badge svg {
  color: var(--primary);
  flex-shrink: 0;
}

.ppdb-date-badge strong {
  color: var(--primary);
  font-weight: 800;
}

.ppdb-features-pill-list {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.ppdb-pill-item {
  background: #f0fdf4;
  border: 1px solid rgba(30, 138, 80, 0.2);
  color: #105130;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
}

.ppdb-action-buttons {
  display: flex;
  justify-content: center;
  width: 100%;
}

.ppdb-wa-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.ppdb-wa-apply-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.45);
}

/* Brochure Showcase */
.ppdb-brochure-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ppdb-brochure-frame {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 56, 44, 0.18);
  border: 4px solid var(--white);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  background: var(--white);
  max-width: 380px;
  width: 100%;
  text-decoration: none;
}

.ppdb-brochure-frame:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 30px 60px rgba(15, 56, 44, 0.28);
}

.ppdb-brochure-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.ppdb-brochure-frame:hover .ppdb-brochure-img {
  filter: brightness(0.98);
}

@media (max-width: 900px) {
  .ppdb-content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ppdb-brochure-frame {
    max-width: 340px;
  }
}

/* Countdown */
.ppdb-countdown-wrapper {
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
}

.ppdb-countdown-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ppdb-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.25rem, 0.6vw, 0.5rem);
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.ppdb-countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  padding: clamp(0.85rem, 1.4vw, 1.25rem) clamp(0.35rem, 0.75vw, 0.75rem);
  flex: 1 1 0;
  min-width: 0;
  box-shadow: 0 10px 24px rgba(15, 56, 44, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.ppdb-countdown-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 56, 44, 0.25);
}

.ppdb-countdown-number {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.3vw, 2.2rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.ppdb-countdown-unit {
  font-size: clamp(0.58rem, 0.75vw, 0.72rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.35rem;
  white-space: nowrap;
}

.ppdb-countdown-separator {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.6vw, 1.8rem);
  font-weight: 800;
  color: var(--primary);
  padding-bottom: 0.4rem;
  flex-shrink: 0;
  animation: ppdbBlink 1s step-end infinite;
}

@keyframes ppdbBlink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* Features Grid */
.ppdb-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.ppdb-feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 56, 44, 0.07);
  border: 1px solid rgba(15, 56, 44, 0.08);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.ppdb-feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.ppdb-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(15, 56, 44, 0.14);
  border-color: rgba(212, 175, 55, 0.3);
}

.ppdb-feature-card:hover::before {
  transform: scaleX(1);
}

.ppdb-feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.ppdb-feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.ppdb-feature-card p {
  color: var(--gray-dark);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

.ppdb-cta-center {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ----- PPDB CTA BANNER (Bottom) ----- */
.ppdb-cta-banner {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0a3526 40%, var(--primary) 100%);
  overflow: hidden;
}

.ppdb-cta-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(212, 175, 55, 0.12) 0%, transparent 40%), radial-gradient(circle at 85% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 50% 90%, rgba(255, 255, 255, 0.03) 0%, transparent 30%);
  pointer-events: none;
}

.ppdb-cta-bg-pattern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.ppdb-cta-bg-pattern::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.ppdb-cta-container {
  text-align: center;
  position: relative;
  z-index: 1;
}

.ppdb-cta-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #f7d96a;
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.ppdb-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto 1.25rem;
  line-height: 1.15;
}

.ppdb-cta-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.ppdb-cta-mini-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-full);
  display: inline-flex;
}

.ppdb-mini-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  font-weight: 600;
}

.ppdb-mini-timer {
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
}

.ppdb-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----- FLOATING PPDB CTA BUTTON ----- */
.ppdb-floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1500;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  pointer-events: none;
}

.ppdb-floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ppdb-floating-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.4);
  transition: var(--transition);
  position: relative;
}

.ppdb-floating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(212, 175, 55, 0.55);
}

.ppdb-floating-pulse {
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  background: var(--accent);
  opacity: 0;
  animation: ppdbFloatPulse 2s ease-out infinite;
  pointer-events: none;
}

@keyframes ppdbFloatPulse {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}

/* ----- CAMBRIDGE / WELCOME MODAL ----- */
.cambridge-modal-box {
  background: var(--white);
  border-radius: 16px;
  max-width: 660px;
  width: 100%;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.cambridge-modal-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.cambridge-logo-lc {
  max-height: 58px;
  width: auto;
  object-fit: contain;
}

.cambridge-logo-cie {
  max-height: 50px;
  width: auto;
  object-fit: contain;
}

.cambridge-modal-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 1.15rem;
  line-height: 1.3;
}

.cambridge-modal-text {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.68;
  margin-bottom: 1.25rem;
  text-align: center;
}

.cambridge-modal-text p {
  margin-bottom: 0.75rem;
}

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

.cambridge-modal-subtitle {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #111827;
  margin: 1.25rem 0 1.25rem;
  line-height: 1.4;
}

.cambridge-modal-action {
  margin-top: 1.25rem;
}

.btn-cambridge-cta {
  display: inline-block;
  background-color: #000000;
  color: #ffffff !important;
  padding: 0.85rem 2.2rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.btn-cambridge-cta:hover {
  background-color: #1f2937;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

@media (max-width: 640px) {
  .cambridge-modal-box {
    padding: 1.75rem 1.25rem;
    max-width: 94%;
  }

  .cambridge-modal-logos {
    gap: 1.25rem;
  }

  .cambridge-logo-lc {
    max-height: 48px;
  }

  .cambridge-logo-cie {
    max-height: 42px;
  }

  .cambridge-modal-title {
    font-size: 1.35rem;
  }

  .cambridge-modal-text {
    font-size: 0.88rem;
  }

  .cambridge-modal-subtitle {
    font-size: 1rem;
  }

  .btn-cambridge-cta {
    padding: 0.75rem 1.8rem;
    font-size: 0.92rem;
  }
}

/* ----- RESPONSIVE PPDB ----- */
@media (max-width: 1024px) {
  .ppdb-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ppdb-bar-content {
    font-size: 0.82rem;
    gap: 0.5rem;
    padding: 0.5rem 2rem 0.5rem 0;
  }

  .ppdb-bar-content p {
    font-size: 0.78rem;
  }

  .hero-ppdb-cta {
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
  }

  .ppdb-features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ppdb-countdown {
    gap: 0.3rem;
  }

  .ppdb-countdown-item {
    padding: 0.75rem 0.35rem;
    min-width: 0;
  }

  .ppdb-countdown-number {
    font-size: 1.45rem;
  }

  .ppdb-countdown-unit {
    font-size: 0.6rem;
  }

  .ppdb-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .ppdb-floating-cta {
    bottom: 1rem;
    right: 1rem;
  }

  .ppdb-floating-btn {
    padding: 0.75rem 1.15rem;
    font-size: 0.82rem;
  }

  .ppdb-modal-benefits {
    flex-direction: column;
    align-items: center;
  }

  .ppdb-cta-center {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .ppdb-bar-badge {
    display: none;
  }

  .ppdb-countdown {
    gap: 0.2rem;
  }

  .ppdb-countdown-item {
    min-width: 0;
    padding: 0.55rem 0.2rem;
    border-radius: 8px;
  }

  .ppdb-countdown-number {
    font-size: 1.15rem;
  }

  .ppdb-countdown-unit {
    font-size: 0.5rem;
    letter-spacing: 0;
  }

  .ppdb-countdown-separator {
    font-size: 1rem;
    padding-bottom: 0.2rem;
  }
}
