/*
Theme Name: APB Batam Astra Child
Theme URI: https://apotekbpjsbatam.com/
Description: Canonical Batam presentation layer for Astra. No third-party assets.
Author: Site Maintainer
Template: astra
Version: 1.0.10-batam.20261016
Text Domain: apb-batam-astra-child
*/

:root {
  --apb-batam-ink: #12312d;
  --apb-batam-forest: #1e4b42;
  --apb-batam-teal: #237d78;
  --apb-batam-sand: #f4efe5;
  --apb-batam-paper: #fbfcfa;
  --apb-batam-line: #d9e4de;
  --apb-batam-muted: #5d706c;
  --apb-batam-focus: #b36d22;
  --apb-batam-radius: 18px;
  --apb-batam-container: 1180px;
  --apb-batam-gutter: clamp(1.1rem, 3vw, 2rem);
}

html { scroll-behavior: smooth; }
body {
  background: var(--apb-batam-paper);
  color: var(--apb-batam-ink);
  overflow-x: hidden;
}

a { color: var(--apb-batam-teal); }
a:hover, a:focus { color: var(--apb-batam-forest); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--apb-batam-focus);
  outline-offset: 3px;
}

.site-header,
.ast-primary-header-bar,
.ast-primary-header {
  background: #fff;
  border-bottom: 1px solid var(--apb-batam-line);
}
.site-title a { color: var(--apb-batam-ink); font-weight: 800; }
.main-header-menu > .menu-item > .menu-link,
.ast-builder-menu-1 .menu-link {
  color: var(--apb-batam-ink);
  font-size: .83rem;
  font-weight: 700;
  white-space: nowrap;
  padding-inline: .5rem !important;
}
.ast-builder-menu-1,
.ast-builder-menu-1 .main-header-menu {
  flex-wrap: nowrap !important;
}
.ast-builder-menu-1 .main-header-menu {
  align-items: center;
}
.main-header-menu > .menu-item > .menu-link:hover,
.main-header-menu > .menu-item > .menu-link:focus {
  color: var(--apb-batam-teal);
}
.ast-mobile-popup-drawer .ast-mobile-popup-inner { background: #fff; }

.site-content > .ast-container,
.ast-container { max-width: var(--apb-batam-container); }
.entry-title, .page-title, .ast-archive-title {
  color: var(--apb-batam-ink);
  letter-spacing: -.035em;
}
.entry-content, .entry-content p, .entry-content li {
  color: #30443f;
  line-height: 1.78;
}
.entry-content h2, .entry-content h3, .entry-content h4 {
  color: var(--apb-batam-ink);
  letter-spacing: -.025em;
}
.entry-content h2 { margin-top: 2.5rem; }
.entry-content h3 { margin-top: 1.8rem; }
.entry-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-inline-start: 4px solid var(--apb-batam-teal);
  background: var(--apb-batam-sand);
  color: var(--apb-batam-ink);
}
.entry-content table { border-color: var(--apb-batam-line); }
.entry-content th { background: #edf4ef; color: var(--apb-batam-ink); }
.entry-content img { height: auto; max-width: 100%; }

.wp-block-button__link,
.ast-button,
button,
input[type="submit"] {
  border-radius: 12px;
  background: var(--apb-batam-forest);
  color: #fff;
  font-weight: 800;
  transition: background .18s ease, transform .18s ease;
}
.wp-block-button__link:hover,
.ast-button:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--apb-batam-teal);
  color: #fff;
  transform: translateY(-1px);
}

.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-article-single {
  border: 1px solid var(--apb-batam-line);
  border-radius: var(--apb-batam-radius);
  background: #fff;
  box-shadow: 0 12px 36px rgba(18, 49, 45, .06);
}
.ast-separate-container .ast-article-single { padding: clamp(1.25rem, 4vw, 3.4rem); }
.ast-article-post { overflow: hidden; }
.ast-article-post .entry-title a { color: var(--apb-batam-ink); }

.site-footer, #colophon {
  background: var(--apb-batam-forest);
  color: #eaf3ee;
}
#colophon a { color: #eaf3ee; }
#colophon a:hover, #colophon a:focus { color: #f2c982; }
#colophon .widget-title { color: #fff; }

/* Homepage modules */
body.home .entry-content { max-width: none; margin: 0; padding: 0; }
body.home .entry-content .apb-home {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  overflow-x: hidden;
}
body.home.ast-no-sidebar .site-content .ast-single-post-featured-section {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
}
body.home.ast-no-sidebar .site-content .ast-single-post-featured-section img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
body.home .entry-content .apb-hero-support {
  max-width: var(--apb-batam-container);
  margin-inline: auto;
  padding: 0 var(--apb-batam-gutter) clamp(4rem, 9vw, 8rem);
}
body.home .entry-content .apb-hero-support > * { max-width: 640px; }
body.home .entry-content .apb-lede {
  margin: 0;
  color: var(--apb-batam-muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.8;
}
body.home .entry-content .apb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin: 1.85rem 0;
}
body.home .entry-content .apb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .8rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
}
body.home .entry-content .apb-button-primary {
  background: var(--apb-batam-forest);
  color: #fff !important;
}
body.home .entry-content .apb-button-secondary {
  border: 1px solid var(--apb-batam-line);
  background: #fff;
  color: var(--apb-batam-ink) !important;
}
body.home .entry-content .apb-keywords {
  margin: 0;
  color: var(--apb-batam-muted);
  font-size: .92rem;
}
body.home .entry-content .apb-section,
body.home .entry-content .apb-notice {
  width: min(var(--apb-batam-container), calc(100% - 2 * var(--apb-batam-gutter)));
  max-width: var(--apb-batam-container);
  margin-inline: auto;
}
body.home .entry-content .apb-section { padding-block: clamp(2.5rem, 7vw, 5.5rem); }
body.home .entry-content .apb-eyebrow {
  color: var(--apb-batam-teal);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
body.home .entry-content .apb-topic-grid,
body.home .entry-content .apb-need-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
body.home .entry-content .apb-topic-card,
body.home .entry-content .apb-need-grid a {
  border: 1px solid var(--apb-batam-line);
  border-radius: 16px;
  background: #fff;
  color: var(--apb-batam-ink) !important;
  box-shadow: 0 8px 24px rgba(18, 49, 45, .05);
}
body.home .entry-content .apb-topic-card:hover,
body.home .entry-content .apb-need-grid a:hover {
  border-color: #9bc7be;
  background: #f1f8f3;
}
body.home .entry-content .apb-safety-section {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(280px, .87fr);
  gap: clamp(2rem, 7vw, 7rem);
  padding: clamp(3rem, 7vw, 5.5rem) max(var(--apb-batam-gutter), calc((100% - var(--apb-batam-container)) / 2));
  background: var(--apb-batam-forest);
  color: #eef8f0;
}
body.home .entry-content .apb-safety-section h2,
body.home .entry-content .apb-safety-section p { color: #fff; }

/* Shared content modules on article and pillar pages */
.entry-content .apb-section,
.entry-content .apb-notice {
  width: min(var(--apb-batam-container), calc(100% - 2 * var(--apb-batam-gutter)));
  max-width: var(--apb-batam-container);
  margin-inline: auto;
}
.entry-content .apb-section { padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.entry-content .apb-eyebrow {
  color: var(--apb-batam-teal);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.entry-content .apb-topic-grid,
.entry-content .apb-need-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 1.25rem;
}
.entry-content .apb-topic-grid > br,
.entry-content .apb-need-grid > br { display: none; }
.entry-content .apb-topic-card,
.entry-content .apb-need-grid a {
  display: block;
  border: 1px solid var(--apb-batam-line);
  border-radius: 16px;
  background: #fff;
  color: var(--apb-batam-ink) !important;
  padding: 1rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(18, 49, 45, .05);
}
.entry-content .apb-topic-card strong,
.entry-content .apb-topic-card span { display: block; }
.entry-content .apb-topic-card span {
  margin-top: .35rem;
  color: var(--apb-batam-muted);
  line-height: 1.55;
}
.entry-content .apb-topic-card:hover,
.entry-content .apb-topic-card:focus-visible,
.entry-content .apb-need-grid a:hover,
.entry-content .apb-need-grid a:focus-visible {
  border-color: #9bc7be;
  background: #f1f8f3;
}

@media (max-width: 921px) {
  .site-content > .ast-container { padding-inline: var(--apb-batam-gutter); }
  body.home .entry-content .apb-topic-grid,
  body.home .entry-content .apb-need-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-content .apb-topic-grid,
  .entry-content .apb-need-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.home .entry-content .apb-safety-section { grid-template-columns: 1fr; }
  .main-header-menu .menu-link { padding-inline: .8rem; }
}
@media (min-width: 922px) and (max-width: 1200px) {
  .ast-builder-menu-1 .menu-link {
    font-size: .76rem;
    padding-inline: .32rem !important;
  }
}
@media (max-width: 600px) {
  .ast-separate-container .ast-article-single { padding: 1.15rem; }
  body.home .entry-content .apb-topic-grid,
  body.home .entry-content .apb-need-grid,
  .entry-content .apb-topic-grid,
  .entry-content .apb-need-grid { grid-template-columns: 1fr; }
  body.home .entry-content .apb-actions { flex-direction: column; align-items: stretch; }
  body.home .entry-content .apb-button { width: 100%; }
  body.home .entry-content .apb-hero-support { padding-bottom: 4rem; }
  .entry-content table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* APB Batam Astra v1.0.6: complete homepage composition layer */
body.home .entry-content .apb-section,
body.home .entry-content .apb-feature,
body.home .entry-content .apb-compare-section,
body.home .entry-content .apb-needs-section,
body.home .entry-content .apb-trust-section,
body.home .entry-content .apb-faq-section,
body.home .entry-content .apb-route-section {
  box-sizing: border-box;
  padding-inline: max(var(--apb-batam-gutter), calc((100% - var(--apb-batam-container)) / 2));
}
body.home .entry-content .apb-inline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 1.25rem 0;
}
body.home .entry-content .apb-inline-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .25rem .7rem;
  border: 1px solid #9bc7be;
  border-radius: 999px;
  background: #f1f8f3;
  color: var(--apb-batam-forest);
  font-size: .82rem;
  font-weight: 800;
}
body.home .entry-content .apb-feature {
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  background: #fff;
}
body.home .entry-content .apb-feature-reverse .apb-art-panel { order: 2; }
body.home .entry-content .apb-feature-copy { min-width: 0; }
body.home .entry-content .apb-art-panel {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--apb-batam-line);
  border-radius: var(--apb-batam-radius);
  background: radial-gradient(circle at 28% 28%, rgba(255,255,255,.72) 0 10%, transparent 11%), linear-gradient(145deg, #d9eee8 0%, #9bc7be 48%, #1e4b42 100%);
  box-shadow: 0 16px 36px rgba(18, 49, 45, .1);
}
body.home .entry-content .apb-art-panel::before,
body.home .entry-content .apb-art-panel::after {
  position: absolute;
  content: '';
  border-radius: 50%;
  background: rgba(255,255,255,.35);
}
body.home .entry-content .apb-art-panel::before { width: 210px; height: 210px; right: -45px; top: 28px; }
body.home .entry-content .apb-art-panel::after { width: 130px; height: 130px; left: 34px; bottom: -35px; }
body.home .entry-content .apb-art-panel span,
body.home .entry-content .apb-art-panel i,
body.home .entry-content .apb-art-panel b {
  position: absolute;
  display: block;
  z-index: 1;
  border-radius: 10px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 22px rgba(18,49,45,.14);
}
body.home .entry-content .apb-art-panel span { width: 54%; height: 42px; left: 12%; top: 24%; }
body.home .entry-content .apb-art-panel i { width: 38%; height: 28px; left: 22%; top: 44%; }
body.home .entry-content .apb-art-panel b { width: 44%; height: 34px; left: 16%; top: 61%; }
body.home .entry-content .apb-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 1.5rem;
}
body.home .entry-content .apb-compare-grid > div {
  padding: 1.25rem;
  border: 1px solid var(--apb-batam-line);
  border-radius: 16px;
  background: #fff;
}
body.home .entry-content .apb-compare-grid h3 { margin-top: 0; }
body.home .entry-content .apb-trust-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  background: var(--apb-batam-sand);
}
body.home .entry-content .apb-trust-section ul {
  margin: 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid #e1d6bf;
  border-radius: 16px;
  background: rgba(255,255,255,.66);
}
body.home .entry-content .apb-faq-list {
  display: grid;
  gap: .7rem;
  margin-top: 1.25rem;
}
body.home .entry-content .apb-faq-list details {
  border: 1px solid var(--apb-batam-line);
  border-radius: 14px;
  background: #fff;
  padding: .95rem 1.1rem;
}
body.home .entry-content .apb-faq-list summary {
  cursor: pointer;
  color: var(--apb-batam-ink);
  font-weight: 800;
}
body.home .entry-content .apb-faq-list details p { margin-bottom: 0; }
body.home .entry-content .apb-route-table {
  margin-top: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--apb-batam-line);
  border-radius: 16px;
  background: #fff;
}
body.home .entry-content .apb-route-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border-top: 1px solid var(--apb-batam-line);
}
body.home .entry-content .apb-route-row:first-child { border-top: 0; }
body.home .entry-content .apb-route-head { background: var(--apb-batam-forest); color: #fff; font-weight: 800; }
body.home .entry-content .apb-last-checked { margin-top: 1.25rem; color: var(--apb-batam-muted); font-size: .92rem; }
@media (max-width: 921px) {
  body.home .entry-content .apb-feature,
  body.home .entry-content .apb-trust-section { grid-template-columns: 1fr; }
  body.home .entry-content .apb-feature-reverse .apb-art-panel { order: 0; }
  body.home .entry-content .apb-compare-grid { grid-template-columns: 1fr; }
  body.home .entry-content .apb-route-row { grid-template-columns: 1fr; gap: .35rem; }
  body.home .entry-content .apb-route-head { display: none; }
}


/* APB Batam Astra v1.0.7: contain featured media on every route */
.ast-single-post-featured-section {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
}
.ast-single-post-featured-section img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}


/* Astra applies a negative wide-image margin on separate-container routes. */
.ast-separate-container .ast-single-post-featured-section,
body.ast-separate-container .ast-single-post-featured-section {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow: hidden !important;
}
.ast-separate-container .ast-single-post-featured-section img,
body.ast-separate-container .ast-single-post-featured-section img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}


body.ast-separate-container .site-main > .ast-single-post-featured-section {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.ast-separate-container .site-main > .ast-single-post-featured-section img {
  width: 100% !important;
  max-width: 100% !important;
}


body.ast-plain-container .site-main > .ast-single-post-featured-section {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow: hidden !important;
}
body.ast-plain-container .site-main > .ast-single-post-featured-section img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}
