/* ==========================================================================
   Website Resmi Desa Pasirmuncang - Modern CSS Design System & Layout
   Technical SEO & AI Overview Optimized
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-dark: #1e293b;
  --accent: #0284c7;
  --accent-gold: #d97706;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--surface-alt);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* --- Header & Navigation --- */
.modern-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar {
  background: var(--primary-dark);
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.top-bar a {
  color: #e2e8f0;
  text-decoration: none;
}

.top-bar a:hover {
  color: var(--primary-light);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.brand-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- AI Overview & EEAT Featured Cards --- */
.ai-overview-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.ai-overview-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.ai-overview-content p {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.ai-overview-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat-box {
  background: var(--surface);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #e0f2fe;
  text-align: center;
}

.stat-box .stat-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-box .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* --- EEAT Badges & Trust Elements --- */
.eeat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f1f5f9;
  color: var(--primary-dark);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.eeat-badge i {
  color: #059669;
}

/* --- Content & Layout --- */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0;
  position: relative;
}

.section-heading h2::after {
  content: '';
  position: absolute;
  bottom: -0.85rem;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-light);
  border-radius: 2px;
}

.card-modern {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.card-modern:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-modern img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-modern-body {
  padding: 1.25rem;
}

.card-modern-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.card-modern-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s;
}

.card-modern-title a:hover {
  color: var(--primary-light);
}

.card-modern-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

/* --- Footer Modern --- */
.modern-footer {
  background: var(--primary-dark);
  color: #94a3b8;
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
  border-top: 4px solid var(--primary-light);
}

.modern-footer h3, .modern-footer h4 {
  color: var(--surface);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-link {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-link:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid #334155;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  text-align: center;
}

/* --- Accessibility & Semantic SEO Helpers --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
