/* ============================================
   BPJS Kesehatan - Main Stylesheet
   bpjs-pusat.org
   ============================================ */

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

:root {
  --bpjs-blue:      #1C4B8A;
  --bpjs-blue-dark: #0D3366;
  --bpjs-blue-mid:  #2563B0;
  --bpjs-blue-light:#E8F0FA;
  --bpjs-green:     #1E7A4A;
  --bpjs-green-mid: #28A860;
  --bpjs-green-light:#E8F6ED;
  --text-dark:      #1A1F2E;
  --text-mid:       #3A4563;
  --text-light:     #6B7280;
  --border:         #D8E2F0;
  --bg-white:       #FFFFFF;
  --bg-subtle:      #F4F8FF;
  --shadow-sm:      0 1px 3px rgba(28,75,138,.08);
  --shadow-md:      0 4px 16px rgba(28,75,138,.12);
  --radius:         8px;
  --radius-lg:      16px;
  --transition:     0.22s ease;
  --max-w:          1200px;
  --font-main:      'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--bpjs-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--bpjs-blue-mid); }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; max-width: 75ch; }
p:last-child { margin-bottom: 0; }

/* ---- Header / Navigation ---- */
.site-header {
  background: var(--bg-white);
  border-bottom: 3px solid var(--bpjs-green);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-md);
}
.header-top {
  background: var(--bpjs-blue-dark);
  padding: 6px 0;
  font-size: 12px;
  color: rgba(255,255,255,.75);
}
.header-top .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.header-top a { color: rgba(255,255,255,.85); font-size: 12px; }
.header-top a:hover { color: #fff; }

.header-main { padding: 14px 0; }
.header-main .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo img { height: 52px; width: auto; }
.logo-text { font-size: 13px; color: var(--text-mid); line-height: 1.4; }
.logo-text strong { display: block; font-size: 15px; color: var(--bpjs-blue); }

.main-nav ul { display: flex; gap: 4px; align-items: center; }
.main-nav a {
  display: block;
  padding: 8px 14px;
  color: var(--text-mid);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active { background: var(--bpjs-blue-light); color: var(--bpjs-blue); }

.nav-cta {
  background: var(--bpjs-green) !important;
  color: #fff !important;
  padding: 8px 18px !important;
}
.nav-cta:hover { background: var(--bpjs-green-mid) !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--bpjs-blue); border-radius: 2px; transition: all .3s; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--bpjs-blue-dark) 0%, var(--bpjs-blue) 50%, #1E6B3A 100%);
  color: #fff;
  padding: 72px 0 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: .5px;
}
.hero h1 { color: #fff; margin-bottom: 16px; font-size: clamp(1.8rem, 4vw, 3rem); }
.hero p { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 55ch; }

.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  font-weight: 600; font-size: 15px;
  border-radius: var(--radius);
  border: none; cursor: pointer;
  transition: all var(--transition);
  text-align: center; white-space: nowrap;
  line-height: 1;
}
.btn-primary { background: var(--bpjs-green); color: #fff; }
.btn-primary:hover { background: var(--bpjs-green-mid); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(30,122,74,.35); }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-blue { background: var(--bpjs-blue); color: #fff; }
.btn-blue:hover { background: var(--bpjs-blue-dark); color: #fff; transform: translateY(-1px); }
.btn-green { background: var(--bpjs-green); color: #fff; }
.btn-green:hover { background: var(--bpjs-green-mid); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-stat-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(4px);
}
.hero-stat-card .num { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: #fff; line-height: 1.1; }
.hero-stat-card .label { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 4px; line-height: 1.4; }

/* ---- Section ---- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-subtle); }
.section-green { background: var(--bpjs-green-light); }
.section-blue { background: var(--bpjs-blue-light); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { color: var(--bpjs-blue); margin-bottom: 12px; }
.section-header p { color: var(--text-mid); max-width: 60ch; margin: 0 auto; }
.section-tag {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .8px;
  color: var(--bpjs-green); text-transform: uppercase;
  margin-bottom: 8px;
}

/* ---- Stat Blocks ---- */
.stats-strip { padding: 40px 0; background: var(--bpjs-blue-dark); }
.stats-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-item { text-align: center; color: #fff; }
.stat-item .stat-num { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; color: #fff; }
.stat-item .stat-unit { font-size: 14px; color: rgba(255,255,255,.65); margin-top: 4px; }
.stat-item .stat-label { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 2px; line-height: 1.35; }

/* ---- Cards ---- */
.cards-grid { display: grid; gap: 24px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-body { padding: 24px; }
.card-img { width: 100%; height: 200px; object-fit: cover; background: var(--bpjs-blue-light); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 28px;
  background: var(--bpjs-blue-light);
}
.card-icon-green { background: var(--bpjs-green-light); }

.card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text-dark); }
.card p { font-size: 14px; color: var(--text-mid); margin-bottom: 0; }
.card-meta { font-size: 12px; color: var(--text-light); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--bpjs-blue); margin-top: 12px; }
.card-link:hover { gap: 10px; }

/* ---- News Card ---- */
.news-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.news-card-img { height: 200px; background: var(--bpjs-blue-light); overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-card-img img { transform: scale(1.03); }
.news-card-body { padding: 20px; }
.news-tag { display: inline-block; background: var(--bpjs-blue-light); color: var(--bpjs-blue); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; }
.news-card h3 { font-size: 15px; line-height: 1.45; margin-bottom: 8px; }
.news-card h3 a { color: var(--text-dark); }
.news-card h3 a:hover { color: var(--bpjs-blue); }

/* ---- Service List ---- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.service-item:hover { border-color: var(--bpjs-blue); box-shadow: var(--shadow-sm); }
.service-icon { font-size: 28px; flex-shrink: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--bpjs-blue-light); border-radius: 10px; }
.service-item h4 { font-size: 14px; margin-bottom: 4px; color: var(--bpjs-blue); }
.service-item p { font-size: 13px; color: var(--text-mid); margin: 0; max-width: none; }

/* ---- Info Bar ---- */
.info-bar { background: var(--bpjs-green); color: #fff; padding: 14px 0; }
.info-bar .container { display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.info-bar p { color: rgba(255,255,255,.9); font-size: 14px; margin: 0; max-width: none; }
.info-bar a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ---- Breadcrumb ---- */
.breadcrumb-bar { background: var(--bpjs-blue-light); border-bottom: 1px solid var(--border); padding: 10px 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-mid); flex-wrap: wrap; }
.breadcrumb a { color: var(--bpjs-blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-light); }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--bpjs-blue-dark) 0%, var(--bpjs-blue) 100%);
  padding: 48px 0 56px;
  color: #fff;
}
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.8); font-size: 1rem; max-width: 70ch; }
.page-hero .breadcrumb { margin-bottom: 16px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.8); }
.page-hero .breadcrumb span { color: rgba(255,255,255,.5); }
.page-hero .breadcrumb .current { color: rgba(255,255,255,.95); }

/* ---- Article Content ---- */
.article-content { max-width: 800px; }
.article-content h2 { font-size: 1.5rem; color: var(--bpjs-blue); margin: 2rem 0 1rem; border-left: 4px solid var(--bpjs-green); padding-left: 16px; }
.article-content h3 { font-size: 1.2rem; color: var(--text-dark); margin: 1.5rem 0 .75rem; }
.article-content p { color: var(--text-mid); line-height: 1.8; }
.article-content ul, .article-content ol { margin: 1rem 0 1rem 1.5rem; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { color: var(--text-mid); margin-bottom: .5rem; line-height: 1.7; }
.article-content strong { color: var(--text-dark); }
.article-content blockquote {
  border-left: 4px solid var(--bpjs-blue);
  background: var(--bpjs-blue-light);
  padding: 16px 20px;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-content blockquote p { color: var(--bpjs-blue); font-style: italic; }
.article-content .info-box {
  background: var(--bpjs-green-light);
  border: 1px solid rgba(30,122,74,.2);
  border-radius: var(--radius);
  padding: 20px;
  margin: 1.5rem 0;
}

/* ---- Table ---- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { background: var(--bpjs-blue); color: #fff; padding: 12px 16px; text-align: left; font-weight: 600; }
td { padding: 11px 16px; border-bottom: 1px solid var(--border); color: var(--text-mid); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bpjs-blue-light); }

/* ---- Sidebar ---- */
.page-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.sidebar-widget {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.widget-header {
  background: var(--bpjs-blue);
  color: #fff;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 14px;
}
.widget-body { padding: 20px; }
.widget-link-list li { border-bottom: 1px solid var(--border); }
.widget-link-list li:last-child { border-bottom: none; }
.widget-link-list a { display: flex; align-items: center; gap: 8px; padding: 10px 0; font-size: 13px; color: var(--text-mid); }
.widget-link-list a::before { content: '›'; font-weight: bold; color: var(--bpjs-blue); font-size: 16px; }
.widget-link-list a:hover { color: var(--bpjs-blue); }

/* ---- Hotline / Contact ---- */
.hotline-block { background: var(--bpjs-blue); color: #fff; border-radius: var(--radius-lg); padding: 24px; text-align: center; }
.hotline-block .num { font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -1px; }
.hotline-block p { color: rgba(255,255,255,.8); font-size: 13px; margin-top: 6px; max-width: none; }

/* ---- Accordion ---- */
.accordion { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: none; }
.accordion-trigger {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; font-size: 14px; font-weight: 600; color: var(--text-dark);
  text-align: left; transition: background var(--transition);
}
.accordion-trigger:hover { background: var(--bpjs-blue-light); }
.accordion-trigger::after { content: '+'; font-size: 20px; color: var(--bpjs-blue); transition: transform .3s; }
.accordion-trigger.open::after { transform: rotate(45deg); }
.accordion-body { display: none; padding: 0 20px 18px; font-size: 14px; color: var(--text-mid); }
.accordion-body.open { display: block; }

/* ---- Footer ---- */
.site-footer { background: var(--bpjs-blue-dark); color: rgba(255,255,255,.8); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { margin-bottom: 16px; }
.footer-logo img { height: 44px; filter: brightness(0) invert(1); }
.footer-about { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.65); max-width: 36ch; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 16px; letter-spacing: .3px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.65); font-size: 13px; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-contact p { font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 8px; max-width: none; }
.footer-contact strong { color: rgba(255,255,255,.9); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.5); max-width: none; margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.5); font-size: 12px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: rgba(255,255,255,.7);
  transition: all var(--transition);
}
.social-links a:hover { background: var(--bpjs-green); color: #fff; }

/* ---- Highlight Box ---- */
.highlight-strip { background: linear-gradient(90deg, var(--bpjs-blue) 0%, var(--bpjs-green) 100%); padding: 56px 0; color: #fff; text-align: center; }
.highlight-strip h2 { color: #fff; margin-bottom: 12px; }
.highlight-strip p { color: rgba(255,255,255,.85); max-width: 60ch; margin: 0 auto 28px; }

/* ---- Pagination ---- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-mid);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--bpjs-blue); color: var(--bpjs-blue); }
.pagination .active { background: var(--bpjs-blue); border-color: var(--bpjs-blue); color: #fff; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-blue { color: var(--bpjs-blue); }
.text-green { color: var(--bpjs-green); }
.text-muted { color: var(--text-light); }
.fw-bold { font-weight: 700; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  background: var(--bpjs-blue-light); color: var(--bpjs-blue);
}
.tag-green { background: var(--bpjs-green-light); color: var(--bpjs-green); }

/* ---- Scroll top ---- */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 42px; height: 42px;
  background: var(--bpjs-blue);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: all var(--transition);
  z-index: 99;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--bpjs-blue-dark); color: #fff; transform: translateY(-2px); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-stats { display: none; }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
}

@media (max-width: 768px) {
  .stats-strip .container { grid-template-columns: repeat(2, 1fr); }
  .cards-3, .cards-4 { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-white); border-bottom: 2px solid var(--bpjs-green); box-shadow: var(--shadow-md); padding: 16px 24px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .hamburger { display: flex; }
}

@media (max-width: 580px) {
  .section { padding: 48px 0; }
  .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .stats-strip .container { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
