/*
Theme Name: RSIA PKU Muhammadiyah Cipondoh
Theme URI: https://example.com/rsia-pku-cipondoh
Author: Lovable
Author URI: https://lovable.dev
Description: Tema WordPress profesional untuk RSIA PKU Muhammadiyah Cipondoh. Dilengkapi slider, filter dokter & spesialis, jadwal dokter, artikel, fasilitas, galeri, kontak, dan booking via WhatsApp.
Version: 1.10.0
License: GNU General Public License v2 or later
Text Domain: medicare
Tags: hospital, medical, clinic, healthcare, doctors
*/

:root {
  --primary: #0a7d3b;            /* Muhammadiyah green */
  --primary-dark: #06542a;
  --primary-light: #e6f5ec;
  --accent: #c9a14a;              /* refined gold */
  --accent-dark: #a98330;
  --dark: #14241c;
  --gray: #5b6b66;
  --light: #f5f8f6;
  --white: #ffffff;
  --border: #e3ebe6;
  --radius: 12px;
  --shadow: 0 12px 32px rgba(10, 125, 59, 0.10);
  --shadow-lg: 0 24px 48px rgba(10, 84, 42, 0.16);
  --whatsapp: #25d366;
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--dark); background: var(--white); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-light { background: var(--light); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; }
.section-head h2 { font-size: 36px; margin: 10px 0 12px; color: var(--dark); }
.section-head p { color: var(--gray); font-size: 16px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font-weight: 600; border: none; cursor: pointer; transition: .2s; font-size: 15px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-wa:hover { filter: brightness(0.95); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.topbar { background: var(--primary-dark); color: #fff; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; flex-wrap: wrap; gap: 10px; }
.topbar a { color: #fff; }
.topbar .topbar-info { display: flex; gap: 20px; flex-wrap: wrap; }
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.site-logo { font-size: 18px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 12px; line-height: 1.1; }
.site-logo .logo-mark { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:50%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color:#fff; font-size:22px; box-shadow: var(--shadow); }
.site-logo .logo-text { display:flex; flex-direction:column; font-size:13px; color:var(--gray); text-transform:uppercase; letter-spacing:1px; font-weight:600; }
.site-logo .logo-text strong { color: var(--primary-dark); font-size:18px; letter-spacing:0; text-transform:none; font-weight:800; }
.site-logo img { max-height: var(--logo-height, 60px); width:auto; }
.slide::before { background: linear-gradient(90deg, rgba(6,84,42,.88), rgba(6,84,42,.30)) !important; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.main-nav ul { list-style: none; display: flex; gap: 6px; align-items: center; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--dark);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s ease;
}
.main-nav a:hover { color: var(--primary); background: var(--primary-light); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 6px 18px -8px var(--primary);
}
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after { display: none; }
/* Submenu */
.main-nav .sub-menu, .main-nav .children {
  list-style: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.15);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 50;
}
.main-nav li:hover > .sub-menu,
.main-nav li:hover > .children { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu a { border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.menu-toggle { display: none; background: var(--primary-light); border: none; width: 42px; height: 42px; border-radius: 12px; font-size: 22px; cursor: pointer; color: var(--primary); transition: background .2s ease, transform .2s ease; }
.menu-toggle:hover { background: var(--primary); color: #fff; transform: scale(1.05); }

/* Slider */
.hero-slider { position: relative; overflow: hidden; }
.slides { position: relative; height: var(--slider-height, 560px); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; background-size: cover; background-position: center; display: flex; align-items: center; }
.slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,91,103,.85), rgba(10,91,103,.35)); }
.slide.active { opacity: 1; }
.slide-content { position: relative; color: #fff; max-width: 600px; }
.slide-content .eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.slide-content h1 { font-size: 48px; margin: 12px 0 16px; line-height: 1.15; }
.slide-content p { font-size: 18px; margin-bottom: 24px; opacity: .95; }
.slide-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.slider-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.slider-dots button { width: 12px; height: 12px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; }
.slider-dots button.active { background: var(--accent); width: 30px; border-radius: 6px; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.2); color: #fff; border: none; width: 48px; height: 48px; border-radius: 50%; font-size: 22px; cursor: pointer; z-index: 5; }
.slider-arrow.prev { left: 20px; } .slider-arrow.next { right: 20px; }

/* Filter */
.doctor-filter { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-top: -50px; position: relative; z-index: 10; display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: end; }
.doctor-filter .field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--gray); }
.doctor-filter input, .doctor-filter select { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; }

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

/* Doctor card */
.doctor-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: .25s; }
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.doctor-card .photo { display: block; height: var(--dokter-img-height, 200px); background: var(--primary-light); overflow: hidden; }
.doctor-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-card .info h3 a:hover { color: var(--primary); }
.doctor-card .info { padding: 18px; text-align: center; }
.doctor-card .info h3 { font-size: 18px; margin-bottom: 4px; }
.doctor-card .spec { color: var(--primary); font-weight: 600; font-size: 14px; }
.doctor-card .sched { color: var(--gray); font-size: 13px; margin: 8px 0 14px; }

/* Schedule table */
.schedule-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.schedule-table th, .schedule-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.schedule-table th { background: var(--primary); color: #fff; font-weight: 600; }
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:hover td { background: var(--primary-light); }

/* Article */
.article-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: .25s; }
.article-card:hover { box-shadow: var(--shadow); }
.article-card .thumb { aspect-ratio: 16/9; overflow: hidden; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card .body { padding: 20px; }
.article-card .meta { font-size: 13px; color: var(--gray); margin-bottom: 8px; }
.article-card h3 { font-size: 18px; margin-bottom: 8px; }
.article-card h3 a { color: var(--dark); }
.article-card h3 a:hover { color: var(--primary); }

/* Facilities */
.facility-card { text-align: center; padding: 30px 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); transition: .25s; text-decoration: none; color: inherit; display: block; }
.facility-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.facility-card .icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--primary-light); display: grid; place-items: center; font-size: 28px; }
.facility-card .photo { width: 100%; height: var(--fasilitas-img-height, 160px); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.facility-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.facility-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--dark); }
.facility-card p { color: var(--gray); font-size: 14px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid a { border-radius: 12px; overflow: hidden; height: var(--galeri-img-height, 220px); display: block; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.gallery-grid a:hover img { transform: scale(1.08); }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info .item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info .item .ico { width: 46px; height: 46px; border-radius: 50%; background: var(--primary-light); display: grid; place-items: center; flex: none; font-size: 20px; }
.contact-info .item h4 { font-size: 16px; }
.contact-info .item p { color: var(--gray); }
a.item { color: inherit; text-decoration: none; transition: transform .15s ease, color .15s ease; }
a.item:hover { color: var(--primary); transform: translateX(2px); }
a.item:hover p { color: var(--primary); }
.contact-info a { color: inherit; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.contact-form input, .contact-form textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 14px; font-size: 15px; font-family: inherit; }

/* CTA banner */
.cta-banner { background: linear-gradient(120deg, var(--primary), var(--primary-dark)); color: #fff; border-radius: var(--radius); padding: 48px; text-align: center; }
.cta-banner h2 { font-size: 32px; margin-bottom: 12px; }
.cta-banner p { opacity: .9; margin-bottom: 24px; }

/* Footer */
.site-footer { background: var(--dark); color: #c4d1d7; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; }
.footer-grid-right { justify-content: end; max-width: 720px; margin-left: auto; }
.footer-social { display: flex; gap: 14px; margin-top: 4px; }
.footer-social .social-btn { width: 48px; height: 48px; box-shadow: 0 8px 18px -6px rgba(0,0,0,.5); }
.site-footer h4 { color: #fff; margin-bottom: 16px; font-size: 17px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #c4d1d7; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; text-align: center; font-size: 14px; }

/* Floating WA */
.wa-float { position: fixed; bottom: 24px; right: 24px; background: var(--whatsapp); color: #fff; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; z-index: 200; box-shadow: 0 6px 20px rgba(37,211,102,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(37,211,102,.5);} 70%{box-shadow:0 0 0 16px rgba(37,211,102,0);} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0);} }

/* Page content */
.page-hero { background: var(--primary-dark); color: #fff; padding: 60px 0; text-align: center; }
.page-hero h1 { font-size: 40px; }
.entry-content { max-width: 800px; margin: 0 auto; }
.entry-content p { margin-bottom: 18px; }
.entry-content h2, .entry-content h3 { margin: 26px 0 12px; }

.hidden { display: none !important; }
.filtered { display: none !important; }

/* Pagination */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 32px auto 0; padding: 10px 18px; background: #fff; border-radius: 14px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); width: fit-content; max-width: 100%; }
.pager:empty { display: none; }
.pager-btn { min-width: 40px; height: 40px; padding: 0 12px; border: none; background: transparent; color: #9ca3af; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: .15s; display: inline-flex; align-items: center; justify-content: center; }
.pager-btn:hover:not(:disabled):not(.active) { background: #f3f4f6; color: var(--primary); }
.pager-btn.active { background: var(--primary); color: #fff; }
.pager-btn:disabled { opacity: .5; cursor: not-allowed; background: #f3f4f6; color: #d1d5db; }
.pager-dots { padding: 0 8px; color: #9ca3af; font-weight: 700; letter-spacing: 2px; }

/* Responsive */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid-right { max-width: 100%; }
  .contact-wrap { grid-template-columns: 1fr; }
  .doctor-filter { grid-template-columns: 1fr; margin-top: 24px; }
  .slide-content h1 { font-size: 34px; }
}
@media (max-width: 680px) {
  .main-nav { position: absolute; top: calc(100% + 6px); left: 12px; right: 12px; background: #fff; box-shadow: 0 18px 40px -10px rgba(0,0,0,.18); border: 1px solid var(--border); border-radius: 16px; display: none; overflow: hidden; }
  .main-nav.open { display: block; animation: navSlide .25s ease; }
  @keyframes navSlide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px; }
  .main-nav li { padding: 0; border-bottom: 1px solid var(--border); }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav a { display: block; padding: 14px 16px; border-radius: 10px; }
  .main-nav a::after { display: none; }
  .main-nav .sub-menu, .main-nav .children { position: static; box-shadow: none; border: none; opacity: 1; visibility: visible; transform: none; padding: 0 0 0 14px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .slides { height: 480px; }
  .section { padding: 48px 0; }

  /* Responsive schedule table -> cards */
  .schedule-table { box-shadow: none; background: transparent; }
  .schedule-table thead { display: none; }
  .schedule-table tr { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; padding: 6px 4px; }
  .schedule-table td { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--border); text-align: right; white-space: normal !important; }
  .schedule-table tr td:last-child { border-bottom: none; }
  .schedule-table td::before { content: attr(data-label); font-weight: 600; color: var(--primary); text-align: left; flex: 0 0 auto; }
  .schedule-table tr:hover td { background: transparent; }
  .schedule-table td .btn { width: 100%; justify-content: center; }
}

/* ============ Quick Actions ============ */
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.quick-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); text-align: center; color: var(--dark); text-decoration: none; transition: .25s; min-height: 130px; }
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-light); }
.quick-card .quick-ico { width: 56px; height: 56px; border-radius: 14px; background: var(--primary-light); display: grid; place-items: center; font-size: 26px; color: var(--primary); }
.quick-card .quick-label { font-size: 14px; font-weight: 600; color: var(--dark); }

/* ============ Section head (left) ============ */
.section-head-left { max-width: none; text-align: left; margin: 0 0 36px; padding-left: 14px; border-left: 4px solid var(--accent); }
.section-head-left .eyebrow { color: var(--primary); font-weight: 700; text-transform: none; letter-spacing: 0; font-size: 14px; }
.section-head-left .head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 6px 0 12px; }
.section-head-left h2 { font-size: 32px; color: var(--primary-dark); margin: 0; }
.section-head-left h2 { position: relative; padding-bottom: 12px; display: inline-block; }
.section-head-left h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}
.section-head-left .see-all { color: var(--primary); font-weight: 600; font-size: 14px; white-space: nowrap; }
.section-head-left p { color: var(--gray); font-size: 15px; max-width: 760px; }

/* ============ Spesialisasi grid ============ */
.spec-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.spec-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 26px 12px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); text-align: center; color: var(--gray); text-decoration: none; transition: .25s; min-height: 150px; }
.spec-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); color: var(--primary-dark); }
.spec-card .spec-ico { font-size: 40px; line-height: 1; }
.spec-card .spec-label { font-size: 14px; font-weight: 600; }

/* ============ Rekanan grid ============ */
.rekanan-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.rekanan-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); height: 100px; display: grid; place-items: center; padding: 16px; transition: .25s; text-align: center; }
.rekanan-card:hover { box-shadow: var(--shadow); border-color: var(--primary-light); transform: translateY(-3px); }
.rekanan-card img { max-height: 60px; width: auto; object-fit: contain; filter: grayscale(0.2); transition: .25s; }
.rekanan-card:hover img { filter: grayscale(0); }
.rekanan-card span { font-size: 13px; font-weight: 600; color: var(--gray); }

/* Responsive */
@media (max-width: 1024px) {
    .quick-grid, .spec-grid, .rekanan-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
    .quick-grid, .spec-grid, .rekanan-grid { grid-template-columns: repeat(3, 1fr); }
    .section-head-left h2 { font-size: 26px; }
    .section-head-left .head-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
    .quick-grid, .spec-grid, .rekanan-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ Tentang / About ============ */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-media img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-body h2 { font-size: 34px; color: var(--primary-dark); margin: 8px 0 16px; line-height: 1.2; }
.about-body p { color: var(--gray); margin-bottom: 14px; font-size: 15px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 24px 0; }
.about-stats .stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 14px; text-align: center; }
.about-stats .stat strong { display: block; font-size: 26px; color: var(--primary); font-weight: 800; }
.about-stats .stat span { font-size: 13px; color: var(--gray); }
@media (max-width: 768px) {
    .about-wrap { grid-template-columns: 1fr; gap: 28px; }
    .about-body h2 { font-size: 26px; }
}

/* ============ Jadwal Dokter (page-jadwal) ============ */
.jadwal-list { display: flex; flex-direction: column; gap: 24px; }
.jadwal-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.jadwal-doctor { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.jadwal-photo { position: relative; }
.jadwal-photo img {
  width: 110px; height: 110px; border-radius: 50%; object-fit: cover;
  border: 4px solid #fff; box-shadow: 0 0 0 2px var(--primary, #14b8a6);
}
.jadwal-badge {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  background: var(--primary, #14b8a6); color: #fff;
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  white-space: nowrap;
}
.jadwal-info h3 { margin: 6px 0 2px; font-size: 16px; font-weight: 700; color: #111827; }
.jadwal-spec { margin: 0 0 6px; color: #6b7280; font-size: 14px; }
.jadwal-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--primary, #14b8a6); font-weight: 600; font-size: 14px; text-decoration: none;
}
.jadwal-link:hover { text-decoration: underline; }

.jadwal-table-wrap { min-width: 0; }
.jadwal-table-title {
  font-size: 18px; font-weight: 700; color: #111827; margin-bottom: 10px;
}
.jadwal-scroll { overflow-x: auto; border-radius: 10px; }
.jadwal-week { width: 100%; border-collapse: collapse; min-width: 640px; }
.jadwal-week thead th {
  background: var(--primary, #14b8a6); color: #fff;
  font-weight: 700; font-size: 14px; text-align: left;
  padding: 12px 14px; border-right: 1px solid rgba(255,255,255,0.2);
}
.jadwal-week thead th:last-child { border-right: none; }
.jadwal-week tbody td {
  padding: 14px; vertical-align: top; font-size: 13px; color: #374151;
  background: #f9fafb; border-right: 1px solid #e5e7eb;
}
.jadwal-week tbody td:last-child { border-right: none; }
.jadwal-jam { white-space: nowrap; line-height: 1.6; }
.jadwal-libur { color: #cbd5e1; }

@media (max-width: 768px) {
  .jadwal-card { grid-template-columns: 1fr; }
}

/* Hide topbar on mobile */
@media (max-width: 680px) {
  .topbar { display: none !important; }
}


/* Social media buttons (kontak) */
.social-links{flex-wrap:wrap}
.social-btn{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;color:#fff;text-decoration:none;transition:transform .25s ease, box-shadow .25s ease, filter .25s ease;box-shadow:0 6px 16px -8px rgba(0,0,0,.35)}
.social-btn:hover{transform:translateY(-3px);filter:brightness(1.05);box-shadow:0 10px 22px -8px rgba(0,0,0,.45)}
.social-fb{background:#1877f2}
.social-ig{background:linear-gradient(45deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%)}
.social-tt{background:#000;position:relative}
.social-btn svg{display:block}

/* ============ Spesialis icon image ============ */
.spec-card .spec-ico img { width: 56px; height: 56px; object-fit: contain; display: block; }

/* ============ Doctor Detail Page ============ */
.doc-detail { padding: 40px 0 72px; background: linear-gradient(180deg, var(--primary-light) 0%, #fff 260px); }
.doc-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--gray); margin-bottom: 24px; }
.doc-breadcrumb a { color: var(--primary-dark); font-weight: 600; }
.doc-breadcrumb .current { color: var(--gray); }
.doc-grid { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; }

.doc-sidebar { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); position: sticky; top: 100px; text-align: center; }
.doc-photo { width: 100%; aspect-ratio: 1/1; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, var(--primary-light), #fff); margin-bottom: 18px; display: grid; place-items: center; }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; }
.doc-photo-fallback { font-size: 72px; }
.doc-spec-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 10px; }
.doc-chip { background: var(--primary-light); color: var(--primary-dark); padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
.doc-name { font-size: 22px; color: var(--dark); margin-bottom: 16px; line-height: 1.25; }
.doc-wa { width: 100%; justify-content: center; padding: 14px 20px; font-size: 16px; box-shadow: 0 8px 20px rgba(37,211,102,.35); }
.doc-wa:hover { transform: translateY(-2px); }
.doc-meta { list-style: none; padding: 18px 0 0; margin: 18px 0 0; border-top: 1px dashed var(--border); display: grid; gap: 12px; text-align: left; }
.doc-meta li { display: flex; align-items: center; gap: 12px; }
.doc-meta-ico { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; background: var(--primary-light); display: grid; place-items: center; font-size: 18px; }
.doc-meta small { display: block; color: var(--gray); font-size: 12px; }
.doc-meta strong { display: block; color: var(--dark); font-size: 14px; }

.doc-main { display: grid; gap: 24px; }
.doc-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.doc-card-head { margin-bottom: 18px; }
.doc-card-head h2 { font-size: 22px; color: var(--dark); }
.doc-card-sub { display: block; color: var(--gray); font-size: 13px; margin-top: 4px; }
.doc-schedule { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.doc-day { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; background: #fff; transition: .2s; position: relative; }
.doc-day.is-open { border-color: var(--primary-light); }
.doc-day.is-open:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(10,125,59,.10); border-color: var(--primary); }
.doc-day.is-off { background: #fafafa; }
.doc-day.is-today { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,125,59,.10); }
.doc-day-name { font-weight: 700; color: var(--dark); font-size: 15px; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.doc-today-pill { background: var(--primary); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px; }
.doc-time { color: var(--primary-dark); font-weight: 600; font-size: 14px; }
.doc-off { color: #b8b8b8; font-size: 13px; font-style: italic; }
.doc-bio { max-width: none; }
.doc-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.doc-nav .btn { flex: 1 1 200px; justify-content: center; }

@media (max-width: 900px) {
  .doc-grid { grid-template-columns: 1fr; }
  .doc-sidebar { position: static; }
  .doc-photo { max-width: 240px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
  .doc-detail { padding: 24px 0 56px; }
  .doc-sidebar, .doc-card { padding: 20px; border-radius: 16px; }
  .doc-card-head h2 { font-size: 19px; }
  .doc-name { font-size: 20px; }
  .doc-schedule { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .doc-schedule { grid-template-columns: 1fr; }
}
