/* =====================
   RESET & BASE STYLE
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0f2a44;      /* biru tua utama */
  --secondary: #173b63;    /* biru pendamping */
  --nav-dark: #0b1f33;     /* navbar lebih gelap */
  --nav-dark-2: #102e4a;
  --accent: #c9a227;
  --bg: #f4f6fb;
  --text: #333;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* =====================
   NAVBAR
===================== */
nav {
  background: linear-gradient(135deg, var(--nav-dark), var(--nav-dark-2));
  color: white;
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}

nav::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.12);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand img {
  height: 40px;
}

nav h1 {
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.menu a {
  color: white;
  margin-left: 18px;
  text-decoration: none;
  font-size: 14px;
  padding-bottom: 3px;
  opacity: 0.9;
}

.menu a:hover {
  opacity: 1;
  border-bottom: 2px solid var(--accent);
}

/* =====================
   HERO (PROFESSIONAL)
===================== */
.hero {
  position: relative;
  background:
    linear-gradient(
      160deg,
      #1e3a5f 0%,
      #27496d 50%,
      #2f5f8f 100%
    );

  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px;
  text-align: center;
  color: #fff;
}





.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.08), transparent 60%);
}

.hero-content {
  position: relative;
   color: rgba(255, 255, 255, 0.92);
  max-width: 900px;
}

/* badge */
.badge-resmi {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 18px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  letter-spacing: 0.6px;
  opacity: 0.9;
}

/* subtitle */
.hero-content h2 {
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.9;
}

/* title */
.hero-content h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
}

.hero-content h1::after {
  content: "";
  display: block;
  width: 60%;
  max-width: 740px;
  height: 4px;
  background: var(--accent);
  margin: 18px auto 0;
  border-radius: 2px;
}





/* desc */
.hero-content p {
  font-size: 15px;
  margin-top: 18px;
  opacity: 0.95;
}

/* icons */
.hero-icons {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 14px;
}

.hero-icons i {
  color: var(--accent);
}

/* =====================
   CONTENT
===================== */
.container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; /* card di tengah container */
}

.card-row .card {
  flex: 1 1 220px;  /* card minimal 220px, otomatis melebar kalau ada ruang */
  max-width: 280px; /* maksimal lebar card */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}


@media (max-width: 768px) {
  .card-row .card {
    flex: 1 1 100%;  /* full width di HP */
    max-width: 100%;
  }
}

.center-row {
  justify-content: center;  /* Membuat 2 card ini di tengah container */
}

/* Card styling sama seperti sebelumnya */
.card {
  background: white;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #e2e5ec;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card img {
  width: 100%;
  max-width: 200px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 18px;
  color: var(--primary);
}


.card p {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}


/* =====================
   ORGANISASI
===================== */
.org-vertical {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
}

.org-item {
  text-align: center;
}

.org-item img {
  width: 180px;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid #e0e0e0;
}

.full-width {
  grid-column: 1 / -1;
}
/* =====================
   CONTACT & SOSMED - PROFESIONAL
===================== */
.contact-bottom {
  width: 100%;
  margin: 50px 0;
  padding: 30px 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  background: #f9fafc;       /* sedikit warna latar agar kotak terasa jelas */
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-bottom:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 900px;
  padding: 0 20px;
}

/* Judul kontak & sosmed */
.contact-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  text-align: center;
  letter-spacing: 0.5px;
  position: relative;
}

/* Garis dekoratif di bawah judul */
.contact-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 8px auto 0;
  border-radius: 2px;
}

/* Kontak */
.contact-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.25s ease;
}

.contact-item:hover {
  color: var(--accent);
}

.contact-item i {
  font-size: 20px;
  color: #0f2a44;
  margin-top: 2px;
}

/* Sosial Media */
.social-media {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 10px;
}

.social-media a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.social-media a:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  background: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-icons {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .social-media {
    gap: 14px;
  }

  .contact-title {
    font-size: 20px;
  }

  .contact-item {
    font-size: 14px;
  }
}


/* =====================
   FOOTER
===================== */
footer {
  background: #0b1f33;
  color: #e5e7eb;
  text-align: center;
  padding: 16px;
  font-size: 13px;

  position: fixed;   /* nempel di layar */
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}



/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero {
    min-height: calc(100svh - 70px);
    padding-top: 120px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .hero-content h2 {
    font-size: 12px;
    letter-spacing: 1.4px;
  }

  .hero-content p {
    font-size: 13.5px;
  }

  .hero-icons {
    gap: 16px;
    font-size: 12.5px;
  }
}
.hero-ornament {
  width: 150px;              /* ⬅️ LEBIH BESAR */
  margin-bottom: 20px;       /* jarak ke tulisan */
  margin-top: -80px;         /* ⬅️ NAIK KE ATAS */
  opacity: 0.85;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
}

/* INDEX.HTML: 5 card sejajar */
/* INDEX.HTML: SLIDER CARD */
.slider-container {
  position: relative;
  overflow: hidden;   /* ✅ GANTI INI */
}

.index-card-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 12px;   /* ✅ kecilkan padding */
}

/* Hilangkan scrollbar biar clean */

.index-card-row::-webkit-scrollbar {
  display: none;
}
.index-card-row {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.index-card-row .card {
  flex: 0 0 calc(25% - 15px);   /* ⬅️ tampil 4 card */
  scroll-snap-align: start;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #0d0631;
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  z-index: 20;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.slide-btn.right {
  right: 10px;
}

.slide-btn.left {
  left: 10px;
}
@media (max-width: 768px) {
  .slide-btn {
    display: none;
  }
}


.slide-btn:hover {
  background: #cfc4c4;
}
.profile-title {
  font-size: 28px;               /* lebih besar dari normal */
  font-weight: 700;              /* tebal */
  text-align: center;            /* di tengah */
  color: var(--primary);         /* pakai warna utama */
  margin-bottom: 20px;           /* jarak ke konten bawah */
  position: relative;
  letter-spacing: 1px;
}

/* garis dekoratif bawah */
.profile-title::after {
  content: "";
  display: block;
  width: 80px;                   /* panjang garis */
  height: 4px;                   /* tebal garis */
  background: var(--accent);     /* warna aksen */
  margin: 8px auto 0;            /* posisi di bawah teks */
  border-radius: 2px;            /* sudut halus */
}

.hero-content {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInHero 1s ease-out forwards; /* langsung muncul */
}

@keyframes fadeInHero {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}
.card-img {
  transition: transform 0.3s ease;
}

.card:hover .card-img {
  transform: scale(1.05);
}
.visi-misi {
  background: #f4f6fb;
  border-radius: 14px;
}
.org-vertical {
  padding: 20px;
  background: #fafbff;
  border-radius: 16px;
}
.org-item {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.org-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}
.visi-misi i {
  color: #1f3c88;
  margin-right: 6px;
}
.news-meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 10px;
}
/* .contact-card {
  max-width: 900px;     
  margin: 0 auto;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
} */


/* =====================
   STATISTIK RUTAN
===================== */
/* =====================
   STATISTIK RUTAN
===================== */
.stats {
  background: transparent;       /* biar card per item yang dominan */
  padding: 32px 20px;
  margin: 32px auto;
  max-width: 1100px;
  width: 100%;
}

/* JUDUL */
.stats-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f3c88;
  margin-bottom: 24px;
  text-align: center;
}

/* ROW */
.stats-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

/* CARD ITEM */
.stat-item {
  background: #ffffff;
  padding: 26px 22px;
  border-radius: 14px;
  border: 1px solid #e2e5ec;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);

  text-align: center;
  width: 100%;
  max-width: 260px;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}

/* ICON */
.stat-item i {
  font-size: 30px;
  color: #1f3c88;
  margin-bottom: 10px;
}

/* ANGKA */
.stat-item strong {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: #111827;
}

/* LABEL */
.stat-item span {
  font-size: 14px;
  color: #6b7280;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
}

.news-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.news-content p {
  margin-bottom: 16px;
}

.news-content h3 {
  margin: 26px 0 12px;
  color: var(--primary);
  font-size: 20px;
}

.news-content ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.news-content ol li {
  margin-bottom: 14px;
}

.note-box {
  margin-top: 24px;
  padding: 16px;
  background: #f1f5f9;
  border-left: 5px solid var(--primary);
  border-radius: 8px;
  font-size: 15px;
}

/* SAMAKAN UKURAN CONTACT INDEX DENGAN HALAMAN LAIN */
/* .contact-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.contact-bottom p,
.contact-bottom div {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
} */
.section-title {
  text-align: center;
  margin: 40px 0 24px;
  font-size: 22px;
   font-weight: 700; /* BOLD */
  color: var(--primary);
  position: relative;
}

.section-title::after {
  content: "";
  width: 70px;
  height: 3px;
   background: #f4c430; 
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* =====================
   BUTTON KEMBALI
===================== */
.btn-kembali {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-kembali:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}
/* =========================
   FIX SLIDER KHUSUS HP
========================= */


@media (max-width: 768px) {
  .index-card-row .card {
    flex: 0 0 80%;   /* 1 card besar di HP */
  }
}