* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", sans-serif;
  background: #f5f3ef;
  color: #1a1a1a;
}

/* NAV */
nav {
  background: #0f2d4a;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  /* WAJIB */
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* ini kunci */
}

.logo-text {
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.logo-sub {
  color: #a0bcd4;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2px;
}

.nav-links a {
  color: #ccdce8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  padding: 22px 16px;
  display: block;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  border-bottom-color: #c9a84c;
}

.nav-cta {
  background: #c9a84c;
  color: #0f2d4a !important;
  border-radius: 6px;
  padding: 10px 18px !important;
  font-weight: 500 !important;
  border-bottom: 3px solid transparent !important;
  margin-left: 8px;
}

.nav-cta:hover {
  background: #e8c96a !important;
  border-bottom-color: transparent !important;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #0f2d4a 0%, #1a4a6e 50%, #0f2d4a 100%);
  min-height: 500px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* GRID */
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  position: relative;
  padding: 30px;
  border-radius: 12px;
  overflow: hidden;
}

.bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* tidak terpotong */
  z-index: 0;
}

.hero-text .content {
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: #c9a84c;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 span {
  color: #c9a84c;
}

.hero p {
  color: #a0bcd4;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  background: #c9a84c;
  color: #0f2d4a;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #e8c96a;
  transform: translateY(-1px);
}

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 400;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.stat-card {
  margin: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.stat-num {
  font-family: "Playfair Display", serif;
  font-size: 30px;
  font-weight: 700;
  color: #c9a84c;
}

.stat-lbl {
  font-size: 11px;
  color: #8aafc8;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* SECTIONS */
section {
  padding: 52px 24px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c9a84c;
  font-weight: 500;
  margin-bottom: 10px;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  font-weight: 700;
  color: #0f2d4a;
  margin-bottom: 12px;
}

.section-sub {
  color: #6b7280;
  font-size: 15px;
  max-width: 520px;
  line-height: 1.6;
}

/* PROGRAMS */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.prog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e0d8;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.prog-img {
  height: 140px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* masing-masing gambar */
.prog-img.blue {
  background-image: url("img/blue.jpeg");
}

.prog-img.gold {
  background-image: url("img/gold.jpeg");
}

.prog-img.green {
  background-image: url("img/green.jpeg");
}

.prog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 45, 74, 0.12);
}


.prog-body {
  padding: 22px;
}

.prog-title {
  font-family: "Playfair Display", serif;
  font-size: 17px;
  font-weight: 600;
  color: #0f2d4a;
  margin-bottom: 8px;
}

.prog-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 14px;
}

.prog-badge {
  display: inline-block;
  background: #f0eee8;
  color: #8a6418;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

/* NEWS */
.news {
  background: #0f2d4a;
}

.news .section-title {
  color: #fff;
}

.news .section-sub {
  color: #8aafc8;
}

.news .section-tag {
  color: #c9a84c;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.news-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  transition: background 0.2s;
}

.news-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.news-date {
  font-size: 11px;
  color: #8aafc8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.news-title {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 10px;
}

.news-excerpt {
  font-size: 13px;
  color: #8aafc8;
  line-height: 1.6;
}

.news-link {
  display: inline-block;
  margin-top: 14px;
  color: #c9a84c;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.news-link:hover {
  text-decoration: underline;
}

/* EVENTS */
.events-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-row {
  display: flex;
  gap: 20px;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  border: 1px solid #e5e0d8;
  transition: box-shadow 0.2s;
}

.event-row:hover {
  box-shadow: 0 8px 24px rgba(15, 45, 74, 0.08);
}

.event-date-box {
  background: #0f2d4a;
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  text-align: center;
  min-width: 60px;
}

.event-day {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 700;
  color: #c9a84c;
  line-height: 1;
}

.event-mon {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8aafc8;
  margin-top: 2px;
}

.event-info {
  flex: 1;
}

.event-title {
  font-weight: 500;
  font-size: 15px;
  color: #0f2d4a;
  margin-bottom: 4px;
}

.event-meta {
  font-size: 12px;
  color: #9ca3af;
}

.event-tag {
  background: #f0eee8;
  color: #8a6418;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
  white-space: nowrap;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, #c9a84c, #e8c96a);
  padding: 72px 24px;
  text-align: center;
}

.cta-section h2 {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  color: #0f2d4a;
  margin-bottom: 12px;
}

.cta-section p {
  color: #5a4010;
  font-size: 16px;
  margin-bottom: 28px;
}

.btn-dark {
  background: #0f2d4a;
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  display: inline-block;
  transition: all 0.2s;
}

.btn-dark:hover {
  background: #1a4a6e;
}

/* FOOTER */
footer {
  background: #080f18;
  color: #8aafc8;
  padding: 48px 24px 24px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .logo-text {
  color: #fff;
  font-size: 18px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 12px;
  color: #6b7280;
}

.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 8px;
  text-decoration: none;
}

.footer-col a:hover {
  color: #c9a84c;
}

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #4b5563;
}

/* =========================
   RESPONSIVE (MOBILE)
========================= */
@media (max-width: 768px) {

  /* NAV */
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 16px;
  }

  .nav-links {
    flex-wrap: wrap;
    width: 100%;
  }

  .nav-links a {
    padding: 10px;
    font-size: 12px;
  }

  /* HERO */
  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 16px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 14px;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    text-align: center;
  }

  /* STAT */
  .hero-stats {
    grid-template-columns: 1fr;
  }

  /* PROGRAMS */
  .programs-grid {
    grid-template-columns: 1fr;
  }

  /* NEWS */
  .news-grid {
    grid-template-columns: 1fr;
  }

  /* FOOTER */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* EVENTS */
  .event-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .event-date-box {
    margin-bottom: 10px;
  }
}

/* ============================================================
   ANIMASI TAMBAHAN — tempel di bagian BAWAH styles.css
   ============================================================ */


/* ── NAV SHRINK ── */
nav {
  transition: padding 0.75s ease, box-shadow 0.75s ease, background 0.75s ease;
}

nav.nav--scrolled {
  padding-top: 8px;
  padding-bottom: 8px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  background: rgba(40, 38, 67, 0.97);
  backdrop-filter: blur(8px);
}


/* ── HERO STAGGER ── */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-hero {
  opacity: 0;
  animation: heroFadeUp 1.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}


/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 1.0s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.0s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Variasi: slide dari kiri untuk event-row */
.event-row.reveal {
  transform: translateX(-24px);
}

.event-row.reveal.revealed {
  transform: translateX(0);
}

/* Variasi: scale up untuk prog-card */
.prog-card.reveal {
  transform: translateY(24px) scale(0.97);
}

.prog-card.reveal.revealed {
  transform: translateY(0) scale(1);
}


/* ── PROG-CARD HOVER ── */
.prog-card {
  transition: transform 0.70s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.70s ease;
}

.prog-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}


/* ── NEWS-CARD HOVER ── */
.news-card {
  transition: transform 0.65s ease, box-shadow 0.65s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}


/* ── CTA BUTTON PULSE ── */
@keyframes ctaPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.25);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
}

.btn-dark {
  animation: ctaPulse 3.0s ease infinite;
  transition: transform 0.8s ease, background 0.8s ease;
}

.btn-dark:hover {
  transform: scale(1.04);
}


/* ── NAV LINK HOVER UNDERLINE ── */
.nav-links a {
  position: relative;
  transition: color 0.6s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}


/* ── STAT CARD HOVER ── */
.stat-card {
  transition: transform 0.65s ease, box-shadow 0.65s ease;
}

.stat-card:hover {
  transform: translateX(4px);
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.06);
}


/* ── REDUCE MOTION (aksesibilitas) ── */
@media (prefers-reduced-motion: reduce) {

  .anim-hero,
  .reveal,
  .prog-card,
  .news-card,
  .stat-card,
  .btn-dark,
  nav {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}



/* ── MOBILE: kurangi jarak translateY ── */
@media (max-width: 768px) {
  .reveal {
    transform: translateY(18px);
  }

  .prog-card.reveal {
    transform: translateY(14px) scale(0.98);
  }

  .event-row.reveal {
    transform: translateX(-14px);
  }

  .anim-hero {
    animation-duration: 0.85s;
  }
}


/* ── REDUCE MOTION (aksesibilitas) ── */
@media (prefers-reduced-motion: reduce) {

  .anim-hero,
  .reveal,
  .prog-card,
  .news-card,
  .stat-card,
  .btn-dark,
  nav {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}