:root {
  --brand: #1a3a52;
  --brand-dark: #0f2438;
  --accent: #d4a860;
  --brand-light: #d5e3f0;
  --bg: #ffffff;
  --text-dark: #1a2b2a;
  --text-light: #4a5d5b;
  --border: #e7edeb;
}

.cf-page .container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.cf-page .btn {
  display: inline-block;
  background: var(--brand);
  color: #ffffff !important;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition:
    transform 0.15s,
    background 0.2s;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.cf-page .btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ========== HERO SECTION ========== */
.cf-page .hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background: #0d2824;
  overflow: hidden;
}

.cf-page .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 36, 56, 0.9) 0%,
    rgba(15, 36, 56, 0.7) 50%,
    rgba(15, 36, 56, 0.5) 100%
  );
  z-index: 1;
}

.cf-page .carousel-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  z-index: 0;
}

.cf-page .carousel-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.cf-page .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.cf-page .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 1;
}

.cf-page .hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 640px;
}

.cf-page .hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.14;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  opacity: 0;
  animation: cfHeroTitleIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

@keyframes cfHeroTitleIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  60% {
    opacity: 1;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.cf-page .hero-highlight-mark {
  position: relative;
  padding: 0 6px;
  border-radius: 5px;
  background-image: linear-gradient(
    120deg,
    rgba(255, 214, 10, 0.45),
    rgba(255, 214, 10, 0.45)
  );
  background-repeat: no-repeat;
  background-position: left 79%;
  background-size: 0% 86%;
  animation: cfHeroHighlightSweep 0.7s ease-out 0.85s forwards;
}

@keyframes cfHeroHighlightSweep {
  to {
    background-size: 100% 86%;
  }
}

/* ---- Interactive dot-grid spotlight behind the hero text ---- */
.cf-page .hero-dotgrid {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 62%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 55%, transparent 100%);
}

.cf-page .hero-dotgrid-base,
.cf-page .hero-dotgrid-colored {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.16) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
}

.cf-page .hero-dotgrid-base {
  opacity: 0.55;
}

.cf-page .hero-dotgrid-colored {
  background-image: radial-gradient(
    rgba(212, 168, 96, 0.95) 1px,
    transparent 1px
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  -webkit-mask-image: radial-gradient(
    circle 200px at var(--mx, 50%) var(--my, 50%),
    #000 0%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle 200px at var(--mx, 50%) var(--my, 50%),
    #000 0%,
    transparent 100%
  );
}

.cf-page .hero-dotgrid.active .hero-dotgrid-colored {
  opacity: 1;
}

.cf-page .hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
}

/* ========== SCROLL ANIMATION ========== */
.cf-page .scroll-fade-in {
  opacity: 0;
  transform: translateY(30px);
}

.cf-page .scroll-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

/* ========== PROGRAMS GRID ========== */
.cf-page .programs-showcase {
  padding: 120px 0 90px;
  background: #f8fafc;
}

.cf-page .programs-intro {
  max-width: 980px;
  margin: 0 auto 44px;
  text-align: center;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1.35;
  letter-spacing: -0.4px;
}

.cf-page .wobble-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  perspective: 1200px;
}

.cf-page .wobble-card {
  position: relative;
  grid-column: span 1;
  min-height: 260px;
  border-radius: 24px;
  overflow: hidden;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--wobble-bg, var(--brand));
  color: #ffffff;
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    transform 0.12s ease-out,
    box-shadow 0.3s ease;
  box-shadow: 0 20px 45px rgba(15, 36, 56, 0.2);
  cursor: pointer;
}

.cf-page .wobble-card.is-large {
  grid-column: span 2;
  min-height: 300px;
}

.cf-page .wobble-card.is-full {
  grid-column: span 3;
  min-height: 220px;
}

.cf-page .wobble-card-text {
  position: relative;
  z-index: 2;
  max-width: 62%;
}

.cf-page .wobble-card h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.cf-page .wobble-card p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.cf-page .wobble-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

.cf-page .wobble-card:has(.wobble-card-photo)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(15, 36, 56, 0.55) 0%,
    rgba(15, 36, 56, 0.45) 45%,
    rgba(15, 36, 56, 0.8) 100%
  );
  pointer-events: none;
}

.cf-page .wobble-card.is-cta {
  justify-content: center;
  align-items: flex-start;
}

.cf-page .wobble-card-cta-link {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-top: 16px;
  background: #f4c430;
  color: #12261f;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}

@media (max-width: 900px) {
  .cf-page .wobble-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cf-page .wobble-card,
  .cf-page .wobble-card.is-large,
  .cf-page .wobble-card.is-full {
    grid-column: 1 / -1;
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .cf-page .programs-showcase {
    padding: 80px 0 60px;
  }

  .cf-page .wobble-grid {
    gap: 16px;
  }

  .cf-page .wobble-card,
  .cf-page .wobble-card.is-large,
  .cf-page .wobble-card.is-full {
    min-height: 220px;
  }

  .cf-page .wobble-card-text {
    max-width: 90%;
  }
}

/* ========== FLEXIBLE DELIVERY SECTION ========== */
.cf-page .programs-outcomes {
  padding: 100px 0 120px;
  background: #ffffff;
}

.cf-page .outcomes-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.4;
  letter-spacing: -0.3px;
  margin: 0 0 28px 0;
  text-align: left;
}

.cf-page .programs-layout {
  display: flex;
  gap: 80px;
  align-items: center;
  min-height: 400px;
}

.cf-page .programs-text-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.cf-page .outcomes-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.cf-page .outcomes-checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  letter-spacing: 0.2px;
}

.cf-page .outcomes-checklist li::before {
  content: "✓";
  color: var(--brand);
  font-weight: 900;
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.cf-page .programs-images-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cf-page .programs-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 900;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow:
    0 20px 60px rgba(26, 58, 82, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.6);
  display: block;
}

@media (max-width: 1024px) {
  .cf-page .programs-layout {
    flex-direction: column;
    gap: 40px;
  }

  .cf-page .programs-images-block {
    order: -1;
  }
}

@media (max-width: 640px) {
  .cf-page .programs-outcomes {
    padding: 70px 0 80px;
  }

  .cf-page .outcomes-section-title {
    text-align: center;
  }

  .cf-page .outcomes-checklist li {
    font-size: 0.95rem;
  }
}

/* ========== CTA SERVICES ========== */
.cf-page .cta-services {
  padding: 0 0 110px;
  background: #ffffff;
}

.cf-page .cta-services-card {
  position: relative;
  background: var(--brand);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 300px;
  padding: 48px 56px;
  isolation: isolate;
}

.cf-page .cta-services-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cpolyline points='8,58 38,18 68,58' fill='none' stroke='%23D4A860' stroke-width='3'/%3E%3Cpolyline points='88,140 118,100 148,140' fill='none' stroke='%23D4A860' stroke-width='3'/%3E%3Cpolyline points='18,132 44,100 70,132' fill='none' stroke='%23D4A860' stroke-width='2.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 160px 160px;
  pointer-events: none;
}

.cf-page .cta-services-text {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 240px;
}

.cf-page .cta-services-text h2 {
  color: #ffffff;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin-bottom: 28px;
}

.cf-page .cta-services-btn {
  display: inline-block;
  background: #f4c430;
  color: #12261f;
  padding: 14px 30px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cf-page .cta-services-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.cf-page .cta-services-photo {
  position: relative;
  z-index: 1;
  width: 320px;
  height: 240px;
  flex-shrink: 0;
}

.cf-page .cta-services-photo::before {
  content: "";
  position: absolute;
  inset: -14px;
  background: #ffffff;
  clip-path: polygon(
    22% 0%,
    100% 0%,
    100% 100%,
    22% 100%,
    22% 88%,
    4% 80%,
    22% 72%,
    22% 58%,
    6% 50%,
    22% 42%,
    22% 28%,
    4% 20%,
    22% 12%
  );
}

.cf-page .cta-services-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(
    22% 0%,
    100% 0%,
    100% 100%,
    22% 100%,
    22% 88%,
    4% 80%,
    22% 72%,
    22% 58%,
    6% 50%,
    22% 42%,
    22% 28%,
    4% 20%,
    22% 12%
  );
}

@media (max-width: 900px) {
  .cf-page .cta-services-card {
    flex-direction: column;
    text-align: center;
    padding: 40px 32px;
  }

  .cf-page .cta-services-text {
    min-width: 0;
  }

  .cf-page .cta-services-photo {
    width: 100%;
    max-width: 340px;
    height: 220px;
  }

  .cf-page .cta-services-photo::before,
  .cf-page .cta-services-photo img {
    clip-path: none;
    border-radius: 16px;
  }

  .cf-page .cta-services-photo::before {
    inset: -6px;
  }
}

/* ========== CONTACT (unchanged) ========== */
.cf-contact-wrap {
  display: flex;
  justify-content: center;
  background-color: #f4f7f6;
  padding: 0;
}
