/*
Theme Name: Puskesmas Regional
Theme URI: https://example.com/puskesmas-regional
Author: OpenAI
Author URI: https://openai.com
Description: Tema WordPress ringan untuk portal edukasi kesehatan regional. Cocok untuk puskesmas-sumsel.org, puskesmas-babel.org, puskesmas-kepri.org, puskesmas-jambi.org, puskesmas-sumbar.org, dan domain regional lainnya. Bukan tema situs resmi pemerintah.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: puskesmas-regional
Tags: blog, news, health, custom-logo, custom-menu, featured-images, responsive-layout, accessibility-ready
*/

:root {
  --pr-primary: #0b7a75;
  --pr-secondary: #0e5e8a;
  --pr-accent: #f3a712;
  --pr-dark: #14323a;
  --pr-muted: #64748b;
  --pr-soft: #f2f8f7;
  --pr-white: #ffffff;
  --pr-border: #dbe7e5;
  --pr-radius: 16px;
  --pr-shadow: 0 10px 30px rgba(13, 63, 67, .10);
  --pr-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--pr-dark);
  background: #f7fbfa;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; }
a { color: var(--pr-secondary); text-decoration: none; }
a:hover { color: var(--pr-primary); }
button, input, textarea, select { font: inherit; }
.container { width: min(100% - 32px, var(--pr-container)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pr-border);
}
.admin-bar .site-header { top: 32px; }
.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-logo img { max-height: 54px; width: auto; }
.site-title { margin: 0; font-size: 1.22rem; font-weight: 800; line-height: 1.2; }
.site-description { margin: 3px 0 0; color: var(--pr-muted); font-size: .84rem; }
.main-navigation ul { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.main-navigation a { color: var(--pr-dark); font-weight: 700; font-size: .95rem; }
.menu-toggle { display: none; padding: 9px 12px; border: 0; border-radius: 10px; color: #fff; background: var(--pr-primary); }

.notice-bar {
  padding: 8px 0;
  color: #fff;
  background: linear-gradient(90deg, var(--pr-primary), var(--pr-secondary));
  font-size: .88rem;
  text-align: center;
}
.notice-bar a { color: #fff; text-decoration: underline; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 62px;
  background:
    radial-gradient(circle at 85% 20%, rgba(243,167,18,.20), transparent 28%),
    linear-gradient(135deg, #e8f7f4, #eff7fb);
}
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 40px; }
.hero-kicker { display: inline-block; margin-bottom: 12px; color: var(--pr-primary); font-size: .9rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { margin: 0 0 16px; font-size: clamp(2.1rem, 5vw, 4.3rem); line-height: 1.07; }
.hero p { margin: 0 0 26px; color: #40545b; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
}
.btn-primary { color: #fff; background: var(--pr-primary); }
.btn-primary:hover { color: #fff; filter: brightness(.94); }
.btn-light { color: var(--pr-dark); background: #fff; border: 1px solid var(--pr-border); }
.hero-card { padding: 24px; border: 1px solid rgba(255,255,255,.8); border-radius: 24px; background: rgba(255,255,255,.78); box-shadow: var(--pr-shadow); }
.hero-card h3 { margin-top: 0; }
.quick-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quick-link { padding: 14px; border-radius: 13px; color: var(--pr-dark); background: var(--pr-soft); font-weight: 750; }

.section { padding: 58px 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-title h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.35rem); }
.section-title p { margin: 0; color: var(--pr-muted); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.card {
  overflow: hidden;
  border: 1px solid var(--pr-border);
  border-radius: var(--pr-radius);
  background: #fff;
  box-shadow: 0 6px 22px rgba(15, 61, 64, .06);
}
.card-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; background: #dceceb; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-thumb img { transform: scale(1.035); }
.card-body { padding: 18px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--pr-muted); font-size: .82rem; }
.card h2, .card h3 { margin: 8px 0 10px; line-height: 1.35; }
.card p { margin: 0; color: #53666c; font-size: .94rem; }

.article-wrap {
  padding: 28px;
  border: 1px solid var(--pr-border);
  border-radius: var(--pr-radius);
  background: #fff;
  box-shadow: var(--pr-shadow);
}
.entry-title { margin-top: 0; font-size: clamp(2rem, 4.8vw, 3.4rem); line-height: 1.16; }
.entry-meta { margin-bottom: 22px; color: var(--pr-muted); font-size: .9rem; }
.entry-content h2 { margin-top: 1.7em; }
.entry-content h3 { margin-top: 1.5em; }
.entry-content blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 5px solid var(--pr-accent);
  background: #fff8e7;
}
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px; border: 1px solid var(--pr-border); }
.entry-content iframe { max-width: 100%; }

.sidebar .widget {
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid var(--pr-border);
  border-radius: var(--pr-radius);
  background: #fff;
}
.widget-title { margin-top: 0; font-size: 1.1rem; }
.widget ul { margin: 0; padding-left: 18px; }

.health-disclaimer {
  margin-top: 30px;
  padding: 16px 18px;
  border-left: 4px solid var(--pr-accent);
  border-radius: 10px;
  background: #fff8e7;
  color: #564a2a;
  font-size: .92rem;
}

.pagination { margin-top: 32px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { padding: 8px 13px; border: 1px solid var(--pr-border); border-radius: 9px; background: #fff; }
.page-numbers.current { color: #fff; background: var(--pr-primary); border-color: var(--pr-primary); }

.site-footer { margin-top: 60px; color: #dbe9e7; background: #102f36; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; padding: 48px 0; }
.site-footer h3 { color: #fff; }
.site-footer a { color: #e5f2f0; }
.site-info { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }

.search-form { display: flex; gap: 8px; }
.search-field { width: 100%; padding: 11px 12px; border: 1px solid var(--pr-border); border-radius: 9px; }
.search-submit { padding: 10px 14px; border: 0; border-radius: 9px; color: #fff; background: var(--pr-primary); }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  top: 5px; left: 5px; z-index: 100000; display: block; width: auto; height: auto;
  padding: 12px; clip: auto; color: #000; background: #fff;
}

@media (max-width: 960px) {
  .hero-grid, .content-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: inline-block; }
  .main-navigation { position: absolute; top: 76px; left: 0; right: 0; display: none; padding: 18px 24px; background: #fff; border-bottom: 1px solid var(--pr-border); }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .admin-bar .site-header { top: 46px; }
  .posts-grid, .footer-grid, .quick-links { grid-template-columns: 1fr; }
  .hero { padding: 50px 0 42px; }
  .section { padding: 42px 0; }
  .section-title { align-items: flex-start; flex-direction: column; }
  .article-wrap { padding: 20px; }
}
