/* ==========================================================================
   RUANG SEHAT PRIA - EDITORIAL DESIGN SYSTEM
   Warna & Tipografi Alami Gaya Majalah Independen
   ========================================================================== */

:root {
  /* Palet Warna Resmi */
  --bg-primary: #F5F1E8;
  --bg-secondary: #E8E6DB;
  --bg-white: #FFFFFF;
  --text-primary: #202D25;
  --text-muted: #4E5E53;
  --text-light: #6E7E73;
  --accent-green: #4C644E;
  --accent-green-dark: #384A3A;
  --accent-green-soft: #D7DEC8;
  --accent-terracotta: #B96F50;
  --accent-terracotta-dark: #98563A;
  --border-subtle: #D8D4C5;
  --border-light: #E4E0D2;
  --shadow-subtle: 0 4px 20px rgba(32, 45, 37, 0.05);
  --shadow-card: 0 8px 30px rgba(32, 45, 37, 0.07);

  /* Tipografi */
  --font-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Dimensi & Ruang */
  --container-max: 1200px;
  --article-max: 760px;
  --header-height: 72px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  
  /* Transisi */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* Reset Dasar */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.75;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

/* Aksesibilitas: Pilihan Fokus */
:focus-visible {
  outline: 2px solid var(--accent-terracotta);
  outline-offset: 3px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition-normal);
}
.skip-link:focus {
  top: 16px;
}

/* Indikator Progres Membaca */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: var(--accent-terracotta);
  z-index: 200;
  transition: width 0.1s ease-out;
}

/* Tata Letak Kontainer */
.site-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.article-container {
  width: 100%;
  max-width: var(--article-max);
  margin-left: auto;
  margin-right: auto;
}

/* Tipografi Utama */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

a {
  color: var(--accent-green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-terracotta);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   HEADER & NAVIGASI REDAKSIONAL
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(245, 241, 232, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  height: var(--header-height);
  transition: background-color var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-wrapper {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-primary);
}
.brand-wrapper:hover {
  text-decoration: none;
}

.brand-logo-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-green);
  font-weight: 600;
}

/* Navigasi Desktop */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: 8px 4px;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-terracotta);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-terracotta);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Tombol Menu Mobile */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
}
.mobile-nav-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* ==========================================================================
   HERO SECTION - GAYA SAMPUL MAJALAH
   ========================================================================== */

.hero-editorial {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  margin-bottom: 1rem;
}

.hero-title {
  margin-bottom: 1.25rem;
}

.hero-intro {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.hero-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-light);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.meta-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-green);
}

.hero-media-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background-color: var(--bg-secondary);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.6s ease;
}

.hero-media-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(32, 45, 37, 0.85), transparent);
  color: #F5F1E8;
  font-size: 0.75rem;
  padding: 24px 16px 12px;
  font-style: italic;
}

/* ==========================================================================
   TATA LETAK ARTIKEL & DAFTAR ISI (TABLE OF CONTENTS)
   ========================================================================== */

.article-main-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
  position: relative;
}

.article-sidebar {
  position: relative;
}

.toc-sticky-card {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
}

.toc-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toc-link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.toc-link:hover {
  color: var(--accent-terracotta);
  background-color: rgba(185, 111, 80, 0.08);
}

.toc-link.active {
  color: var(--accent-green);
  font-weight: 600;
  background-color: var(--bg-primary);
  border-left: 3px solid var(--accent-green);
}

.toc-number {
  font-family: var(--font-serif);
  color: var(--accent-terracotta);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ==========================================================================
   KONTEN REDAKSIONAL ARTIKEL
   ========================================================================== */

.article-content {
  max-width: 740px;
}

.editorial-section {
  padding-bottom: 3rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.editorial-section:last-of-type {
  border-bottom: none;
}

.section-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 0.4rem;
}

.editorial-lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

/* Kutipan Redaksional (Editorial Pullquote) */
.editorial-pullquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background-color: var(--bg-secondary);
  border-left: 4px solid var(--accent-terracotta);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-style: italic;
}

/* Media Gambar Dalam Artikel */
.article-media-figure {
  margin: 2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
}

.article-media-caption {
  padding: 12px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  font-style: italic;
}

/* Kartu Poin Panduan (Feature Grid) */
.feature-grid-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.feature-box {
  background-color: var(--bg-white);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.feature-box h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--accent-green);
}

.feature-box p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
  color: var(--text-muted);
}

/* ==========================================================================
   BAGIAN 5: KARTU KEBIASAAN KECIL (INTERACTIVE CHECKLIST)
   ========================================================================== */

.habits-checklist-wrapper {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.habit-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background-color: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.habit-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent-green);
}

.habit-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  color: var(--accent-green);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
}

.habit-body h4 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.habit-body p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   FORMULIR BULETIN EMAIL (NEWSLETTER CARD)
   ========================================================================== */

.newsletter-section {
  margin: 3rem 0;
}

.newsletter-card {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  padding: 2.25rem 2.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.newsletter-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: #202D25;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.newsletter-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.newsletter-input {
  flex: 1;
  min-height: 48px;
  padding: 0 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background-color: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.newsletter-input:focus {
  border-color: var(--accent-green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 100, 78, 0.15);
}

.btn-primary {
  min-height: 48px;
  min-width: 130px;
  padding: 0 24px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  background-color: #4C644E;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-primary:hover {
  background-color: #384A3A;
}

.btn-primary:active {
  transform: translateY(1px);
}

/* Honeypot field (anti-spam, disembunyikan dari pengguna nyata) */
.honeypot-wrap {
  display: none !important;
  visibility: hidden;
}

.consent-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.consent-checkbox-wrap input[type="checkbox"] {
  min-width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--accent-green);
  cursor: pointer;
}

.newsletter-subtext {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 1rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.newsletter-status {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-top: 1rem;
  display: none;
}

.newsletter-status.info {
  display: block;
  background-color: #E6EEF5;
  color: #1E4663;
  border: 1px solid #C4D9E8;
}

.newsletter-status.success {
  display: block;
  background-color: #E8F2EA;
  color: #245229;
  border: 1px solid #C2DEC7;
}

.newsletter-status.error {
  display: block;
  background-color: #F8EBEA;
  color: #7D2824;
  border: 1px solid #E9C6C4;
}

/* ==========================================================================
   BLOK INFORMASI PENTING (DISCLAIMER PENDIDIKAN)
   ========================================================================== */

.info-notice-box {
  background-color: var(--bg-white);
  border-left: 4px solid var(--accent-green);
  border-radius: var(--radius-sm) var(--radius-md) var(--radius-md) var(--radius-sm);
  padding: 1.5rem 1.75rem;
  margin: 3rem 0;
  box-shadow: var(--shadow-subtle);
}

.info-notice-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}

.info-notice-header svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-green);
}

.info-notice-header h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin: 0;
}

.info-notice-box p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   REKOMENDASI BACAAN / ARTIKEL TERKAIT
   ========================================================================== */

.recommended-section {
  margin: 3.5rem 0;
}

.recommended-header {
  margin-bottom: 1.5rem;
}

.recommended-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.recommended-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.recommended-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent-terracotta);
  text-decoration: none;
}

.recommended-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-green);
  margin-bottom: 0.5rem;
}

.recommended-card h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.recommended-snippet {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.recommended-action {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-terracotta);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   TENTANG PANDUAN INI (TRANSPARANSI REDAKSI)
   ========================================================================== */

.transparency-box {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin: 3rem 0;
  border: 1px solid var(--border-subtle);
}

.transparency-box h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.transparency-box p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.transparency-box p:last-child {
  margin-bottom: 0;
}

.editorial-signature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.editorial-avatar-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--accent-green);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
}

.editorial-sig-meta strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.editorial-sig-meta span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ==========================================================================
   FOOTER REDAKSIONAL LENGKAP
   ========================================================================== */

.site-footer {
  background-color: var(--text-primary);
  color: #D3CFBE;
  padding-top: 4rem;
  padding-bottom: 3rem;
  margin-top: auto;
  border-top: 1px solid #36483C;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #36483C;
}

.footer-brand .brand-logo-text {
  color: #F5F1E8;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.footer-brand .brand-tagline {
  color: #9CB29E;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #AAB7AC;
  max-width: 400px;
}

.footer-col-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #F5F1E8;
  margin-bottom: 1.25rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  font-size: 0.88rem;
  color: #C5D0C7;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: #F5F1E8;
  text-decoration: underline;
}

.btn-cookie-manage {
  background: transparent;
  border: 1px solid #576A5C;
  color: #C5D0C7;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  margin-top: 0.5rem;
  display: inline-block;
  transition: all var(--transition-fast);
  text-align: left;
}

.btn-cookie-manage:hover {
  background-color: #2D3E32;
  color: #FFFFFF;
  border-color: #7D9382;
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.8rem;
  color: #8C9C8F;
}

.footer-bottom-copy {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   HALAMAN INFORMASI & HUKUM UMUM (LEGAL / ABOUT / CONTACT / 404)
   ========================================================================== */

.page-hero {
  padding: 3rem 0 2.5rem;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 3rem;
}

.page-hero-title {
  margin-bottom: 0.75rem;
}

.page-hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 0;
}

.page-body {
  padding-bottom: 5rem;
}

.page-body h2 {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}
.page-body h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.page-body ul, .page-body ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.page-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.contact-item-box {
  background-color: var(--bg-white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.contact-item-box h4 {
  font-size: 1.1rem;
  color: var(--accent-green);
  margin-bottom: 0.5rem;
}

.official-badge {
  display: inline-block;
  background-color: #E2ECE4;
  color: #2D4C32;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 1px solid #C4D9C9;
}

.placeholder-tag {
  display: inline-block;
  background-color: #E2ECE4;
  color: #2D4C32;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}

/* ==========================================================================
   BANNER & MODAL PERSETUJUAN COOKIE
   ========================================================================== */

.cookie-banner-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(32, 45, 37, 0.97);
  backdrop-filter: blur(10px);
  color: #F5F1E8;
  padding: 1.5rem 0;
  z-index: 999;
  border-top: 2px solid var(--accent-terracotta);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}

.cookie-banner-wrap.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-banner-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #E2DDD0;
}

.cookie-banner-text p {
  margin: 0;
  color: #E2DDD0;
}

.cookie-banner-text a {
  color: #E8A88A;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-cookie-primary {
  min-height: 44px;
  padding: 0 18px;
  background-color: var(--accent-terracotta);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  white-space: nowrap;
}

.btn-cookie-primary:hover {
  background-color: var(--accent-terracotta-dark);
}

.btn-cookie-secondary {
  min-height: 44px;
  padding: 0 16px;
  background-color: transparent;
  color: #F5F1E8;
  border: 1px solid #647B6A;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-cookie-secondary:hover {
  background-color: #2D3E32;
  border-color: #8EA494;
}

.btn-cookie-settings {
  min-height: 44px;
  padding: 0 12px;
  background: transparent;
  border: none;
  color: #BAC7BE;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}
.btn-cookie-settings:hover {
  color: #FFFFFF;
}

/* Modal Pengaturan Cookie */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(18, 25, 20, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal-backdrop.show {
  display: flex;
}

.cookie-modal-card {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.cookie-modal-header h3 {
  margin: 0;
  font-size: 1.4rem;
}

.cookie-modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.cookie-category-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.cookie-category-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.cookie-category-title {
  font-weight: 600;
  font-size: 1rem;
}

.cookie-badge-required {
  font-size: 0.75rem;
  background-color: var(--bg-secondary);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-toggle {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #CBC6B7;
  transition: 0.25s;
  border-radius: 26px;
}

.slider-toggle:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
}

input:checked + .slider-toggle {
  background-color: var(--accent-green);
}

input:checked + .slider-toggle:before {
  transform: translateX(20px);
}

input:disabled + .slider-toggle {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-category-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.cookie-modal-footer {
  padding-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ==========================================================================
   RESPONSIVITAS & MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .article-main-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .toc-sticky-card {
    position: static;
    margin-bottom: 2rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 2;
  }

  .recommended-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-primary);
    padding: 2rem;
    flex-direction: column;
    align-items: flex-start;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    border-top: 1px solid var(--border-subtle);
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 1.2rem;
    display: block;
    width: 100%;
    padding: 8px 0;
  }

  .feature-grid-two,
  .contact-card-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
  }

  .btn-primary {
    width: 100%;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: span 1;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .cookie-banner-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-cookie-primary,
  .btn-cookie-secondary {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .site-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .newsletter-card {
    padding: 1.5rem;
  }

  .habit-card {
    padding: 1rem;
    gap: 0.85rem;
  }
}

/* Dukungan Preferensi Gerak Berkurang */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
