@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

/* Variabel global untuk identitas visual PPID Kemenag Kota Depok. */
:root {
  --color-primary: #1a6b3c;
  --color-primary-dark: #12512c;
  --color-accent: #f5a623;
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-text: #2c2c2a;
  --color-muted: #66635d;
  --color-border: #e0ddd6;
  --color-blue: #2c6ecb;
  --color-yellow: #c48a12;
  --color-green: #1f8f50;
  --color-red: #c44747;
  --container-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(44, 44, 42, 0.07), 0 1px 2px rgba(44, 44, 42, 0.05);
  --shadow-md: 0 4px 14px rgba(44, 44, 42, 0.09), 0 1px 4px rgba(44, 44, 42, 0.05);
  --shadow-lg: 0 8px 28px rgba(44, 44, 42, 0.12), 0 2px 8px rgba(44, 44, 42, 0.06);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --transition-fast: 0.2s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: 'Google Sans', 'Product Sans', 'DM Sans', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin: 0;
}

.detail-rich-content {
  display: grid;
  gap: 1.25rem;
  line-height: 1.85;
  font-size: 1.1rem;
}

.detail-rich-content h1,
.detail-rich-content h2,
.detail-rich-content h3 {
  margin-top: 1rem;
}

.detail-rich-content > :first-child {
  margin-top: 0;
}

.detail-rich-content ul,
.detail-rich-content ol {
  padding-left: 1.5rem;
  display: grid;
  gap: 0.5rem;
}

main {
  display: block;
  flex: 1 0 auto;
}

.container {
  width: min(calc(100% - 32px), var(--container-width));
  margin: 0 auto;
}

.section {
  padding: var(--space-5) 0;
}

.page-header + .section {
  padding-top: var(--space-3);
}

.section-heading {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
}

.lead {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 62ch;
}

.grid {
  display: grid;
  gap: var(--space-3);
}

.two-column {
  grid-template-columns: 1fr;
}

.three-column {
  grid-template-columns: 1fr;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  justify-self: start;
  width: max-content;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
}

.badge--home-equal {
  width: auto;
  height: auto;
  padding: 0;
  line-height: inherit;
  justify-content: flex-start;
}

.muted {
  color: var(--color-muted);
}

.page-header {
  padding: var(--space-3) 0;
}

.page-header__content {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid rgba(224, 221, 214, 0.55);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #ffffff 0%, rgba(26, 107, 60, 0.04) 74%, rgba(245, 166, 35, 0.07) 100%);
  box-shadow: var(--shadow-md);
}

.hero {
  padding: var(--space-3) 0 var(--space-3);
}

.hero__wrap {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

.hero__content,
.hero__panel {
  padding: var(--space-4);
  border: 1px solid rgba(224, 221, 214, 0.5);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #ffffff 0%, rgba(26, 107, 60, 0.035) 72%, rgba(245, 166, 35, 0.06) 100%);
  box-shadow: var(--shadow-md);
}

.hero__content {
  display: grid;
  gap: var(--space-3);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero__highlights {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.hero__feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2);
  align-items: start;
}

.hero__icon,
.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(224, 221, 214, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background: rgba(26, 107, 60, 0.09);
  box-shadow: var(--shadow-sm);
}

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stack {
  display: grid;
  gap: var(--space-2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-6) 0;
  }

  .hero__wrap,
  .two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .three-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-header__content {
    padding: var(--space-5);
  }
}

@media (min-width: 1024px) {
  .page-header {
    padding: var(--space-4) 0;
  }

  .hero {
    padding: var(--space-4) 0;
  }

  .hero__content,
  .hero__panel {
    padding: var(--space-5);
  }
}
