/* ─── TOKENS ─── */
:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #eff6ff;
  --blue-pale: #dbeafe;
  --gray: #a3a3a3;
  --gray-dark: #525252;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --surface: #ffffff;
  --bg: #f1f5f9;
  --border: #e2e8f0;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg:
    0 12px 40px rgba(37, 99, 235, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ─── RESET & BASE ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
main {
  flex: 1;
}

/* ─── NAVBAR ─── */
.site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: var(--shadow-sm);
}
.site-nav .container {
  max-width: 960px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.nav-logo-icon {
  width: 30px;
  height: 30px;
  background: var(--gray);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.navbar-nav .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 6px 4px;
}
.navbar-nav .nav-link:hover {
  color: var(--text-muted);
}
.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 6px;
}
.dropdown-item {
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--text);
  padding: 7px 12px;
}
.dropdown-item:hover {
  background: var(--blue-light);
  color: var(--gray);
}

/* ─── BREADCRUMB ─── */
.breadcrumb-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 16px 0;
}
.breadcrumb {
  margin: 0;
  font-size: 0.8rem;
}
.breadcrumb-item a {
  color: var(--gray);
  text-decoration: none;
}
.breadcrumb-item a:hover {
  text-decoration: underline;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-light);
}

/* ─── LAYOUT ─── */
.page-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 16px 30px;
}

/* ─── CARD ─── */
.card-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
}
@media (max-width: 575px) {
  .card-panel {
    padding: 20px 16px;
  }
}

/* ─── HERO PILLS (shared) ─── */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.hero-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ─── BTN-HERO ─── */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #1e2330;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  text-decoration: none;
}
.btn-hero:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  color: #1e2330;
}

/* ─── FORM CONTROLS (modal) ─── */
.form-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.form-select,
.form-control {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text);
  background: var(--bg);
  padding: 9px 12px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.form-select:focus,
.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
  background: #fff;
}
.form-select:disabled {
  background: var(--border);
  opacity: 0.7;
  color: var(--text-muted);
  cursor: not-allowed;
}

/* ─── DAY TOGGLES ─── */
.day-selector {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.day-selector .btn-check + label {
  width: 44px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  margin: 0;
  padding: 0;
}
.day-selector .btn-check:checked + label {
  background: var(--gray);
  border-color: var(--gray);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.day-selector .btn-check + label:hover {
  border-color: var(--gray);
}

/* ─── SUBMIT BUTTON ─── */
.btn-submit {
  width: 100%;
  background: var(--gray-dark);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background 0.15s,
    transform 0.1s,
    box-shadow 0.15s;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}
.btn-submit:hover:not(:disabled) {
  background: var(--gray-dark);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}
.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
.btn-hint {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 8px;
}

/* ─── LANDING BLOCK (hero + article unified) ─── */
.landing-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  width: 100%;
}

.landing-hero {
  background: linear-gradient(
    180deg,
    #1e2330 0%,
    #2d3448 45%,
    #e8eaf0 85%,
    #ffffff 100%
  );
  padding: 44px 40px 48px;
  position: relative;
  overflow: hidden;
}
.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 70% 30%,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 60%
    ),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='20' cy='20' r='1'/%3E%3C/g%3E%3C/svg%3E")
      repeat;
  pointer-events: none;
}
.landing-hero-inner {
  position: relative;
  z-index: 1;
}

.landing-hero h1 {
  font-family: 'Roboto Condensed', system-ui, sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 14px;
  color: #fff;
  letter-spacing: -0.02em;
}
.landing-hero .hero-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 24px;
  max-width: 520px;
}
.landing-hero .hero-pills {
  margin-bottom: 28px;
}
.landing-hero .hero-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}
.landing-hero .btn-hero {
  background: #fff;
  color: #1e2330;
  font-weight: 700;
}
.landing-hero .btn-hero:hover {
  color: #1e2330;
}

/* divider between hero and article */
.landing-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #cbd5e1 20%,
    #cbd5e1 80%,
    transparent 100%
  );
  margin: 0 32px;
}

.landing-article {
  padding: 36px 40px 40px;
}
@media (max-width: 575px) {
  .landing-hero {
    padding: 28px 20px 36px;
  }
  .landing-article {
    padding: 24px 20px 28px;
  }
  .landing-divider {
    margin: 0 20px;
  }
}

/* article styles */
article h2 {
  font-family: 'Roboto Condensed', system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1.5px solid var(--border);
}
article h2:first-child {
  margin-top: 0;
}
article p {
  color: #334155;
  margin-bottom: 0.85rem;
}
article ol,
article ul {
  padding-left: 1.25rem;
  margin-bottom: 0.85rem;
}
article li {
  margin-bottom: 0.35rem;
  color: #334155;
}
article a {
  color: var(--gray);
}
article a:hover {
  text-decoration: none;
}
article strong {
  color: var(--text);
}

/* ─── FAQ styling ─── */
.accordion-body p strong:first-child {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.1rem;
}

/* ─── "INNER" PAGE: before the article ─── */
.inner-page-header {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.inner-page-header h1 {
  font-family: 'Roboto Condensed', system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 00;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.3;
}
.inner-page-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* ─── RELATED KTPS (inner page bottom) ─── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.related-card {
  background: var(--blue-light);
  border: 1px solid var(--blue-pale);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.825rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.related-card:hover {
  background: var(--blue-pale);
  transform: translateY(-1px);
  color: var(--blue-dark);
}
.related-card-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ─── COMMENTS ─── */
.comments-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.comments-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

/* ─── HOME: main wrapper ─── */
.home-hero-wrap {
  background: linear-gradient(180deg, #1e2330 0%, #2d3448 60%, #e8eaf0 100%);
  border-radius: var(--radius-lg);
  padding: 52px 48px 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}
.home-hero-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 70% 30%,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 60%
  );
  pointer-events: none;
}
.home-hero-inner {
  position: relative;
  z-index: 1;
}
.home-hero-wrap h1 {
  font-family: 'Roboto Condensed', system-ui, sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 14px;
  color: #fff;
  letter-spacing: -0.02em;
}
.home-hero-wrap .lead {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 28px;
  max-width: 580px;
}
.home-hero-wrap .hero-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}
@media (max-width: 575px) {
  .home-hero-wrap {
    padding: 32px 20px 28px;
  }
}

/* ─── HOME content card below hero ─── */
.home-body-grid {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px 56px;
}

/* ─── FOOTER ─── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 36px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}
footer a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}
footer a:hover {
  text-decoration: underline;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}

/* ─── MODAL overrides ─── */
.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 16px;
}
.modal-title {
  font-weight: 700;
  font-size: 1rem;
}
.modal-body {
  padding: 20px 24px 24px;
}

/* ─── UTILITY ─── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}
.text-blue {
  color: var(--blue);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.anim-in {
  animation: fadeUp 0.4s ease both;
}
.anim-in-d1 {
  animation-delay: 0.07s;
}
.anim-in-d2 {
  animation-delay: 0.14s;
}
.anim-in-d3 {
  animation-delay: 0.21s;
}

/* ─── FAQ ACCORDION ─── */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.accordion-item:has(.accordion-collapse.show) {
  box-shadow: var(--shadow);
  border-color: var(--blue-pale);
}

.accordion-button {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  padding: 14px 20px;
  border: none;
  transition:
    background 0.2s ease,
    font-weight 0.1s ease,
    color 0.2s ease;
}

.accordion-button:not(.collapsed) {
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  outline: none;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-size: 16px 16px;
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.accordion-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 12px 20px 12px;
  border-top: 1px solid var(--border);
}
