/* ==========================================================================
   RS Aisyiyah Bojonegoro - Custom Theme
   Built on top of Bootstrap 5
   ========================================================================== */

:root {
    --rsab-primary: #0b5b9e; /* deep medical blue */
    --rsab-primary-dark: #073a66; /* navbar/footer navy */
    --rsab-secondary: #16895a; /* islamic green (Aisyiyah) */
    --rsab-accent: #29b6f6; /* sky blue accent */
    --rsab-accent-light: #e8f5fe; /* very light blue bg */
    --rsab-dark: #0a2440; /* footer dark navy */
    --rsab-light: #f4f9fc; /* section background */
    --rsab-text: #2c3e50; /* body text */
    --rsab-text-muted: #6b7e8f; /* muted text */
    --rsab-radius: 14px;
    --rsab-radius-sm: 8px;
    --rsab-shadow: 0 10px 30px rgba(11, 91, 158, 0.1);
    --rsab-shadow-sm: 0 4px 14px rgba(11, 91, 158, 0.08);
}

body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--rsab-text);
    background-color: #ffffff;
}

/* Cegah overflow horizontal di mobile (yang bikin harus zoom-out & tombol
   melayang bergeser). Pakai clip, bukan hidden, agar sticky-top navbar tetap jalan. */
html,
body {
    overflow-x: hidden; /* fallback browser lama */
    overflow-x: clip;   /* utama: tidak membuat scroll container, sticky tetap aman */
    max-width: 100%;
}

/* Layar sangat sempit: kecilkan brand sedikit agar navbar tetap rapi (tanpa zoom). */
@media (max-width: 380px) {
    .rsab-navbar .navbar-brand { gap: 0.45rem; }
    .rsab-navbar .navbar-brand img { width: 38px !important; height: 38px !important; }
    .rsab-navbar .navbar-brand .brand-text-main { font-size: 0.95rem; }
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    font-family: "Poppins", "Inter", sans-serif;
    font-weight: 700;
    color: var(--rsab-primary-dark);
}

a {
    text-decoration: none;
}

.text-primary-rsab {
    color: var(--rsab-primary) !important;
}
.text-secondary-rsab {
    color: var(--rsab-secondary) !important;
}
.text-accent-rsab {
    color: var(--rsab-accent) !important;
}
.text-muted-rsab {
    color: var(--rsab-text-muted) !important;
}

.bg-primary-rsab {
    background-color: var(--rsab-primary) !important;
}
.bg-primary-dark-rsab {
    background-color: var(--rsab-primary-dark) !important;
}
.bg-secondary-rsab {
    background-color: var(--rsab-secondary) !important;
}
.bg-light-rsab {
    background-color: var(--rsab-light) !important;
}
.bg-dark-rsab {
    background-color: var(--rsab-dark) !important;
}
.bg-accent-light-rsab {
    background-color: var(--rsab-accent-light) !important;
}

.btn-primary-rsab {
    background-color: var(--rsab-primary);
    border-color: var(--rsab-primary);
    color: #fff;
    font-weight: 600;
    border-radius: var(--rsab-radius-sm);
    padding: 0.65rem 1.5rem;
    transition: all 0.2s ease;
}
.btn-primary-rsab:hover {
    background-color: var(--rsab-primary-dark);
    border-color: var(--rsab-primary-dark);
    color: #fff;
}

.btn-secondary-rsab {
    background-color: var(--rsab-secondary);
    border-color: var(--rsab-secondary);
    color: #fff;
    font-weight: 600;
    border-radius: var(--rsab-radius-sm);
    padding: 0.65rem 1.5rem;
    transition: all 0.2s ease;
}
.btn-secondary-rsab:hover {
    background-color: #11703f;
    border-color: #11703f;
    color: #fff;
}

.btn-outline-rsab {
    background-color: transparent;
    border: 1.5px solid var(--rsab-primary);
    color: var(--rsab-primary);
    font-weight: 600;
    border-radius: var(--rsab-radius-sm);
    padding: 0.6rem 1.4rem;
    transition: all 0.2s ease;
}
.btn-outline-rsab:hover {
    background-color: var(--rsab-primary);
    color: #fff;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rsab-secondary);
    margin-bottom: 0.5rem;
}
.section-eyebrow::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background-color: var(--rsab-secondary);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}
.section-subtitle {
    color: var(--rsab-text-muted);
    max-width: 640px;
}

/* ==========================================================================
     Topbar
     ========================================================================== */
.rsab-topbar {
    background-color: var(--rsab-primary-dark);
    color: #cfe6f7;
    font-size: 0.85rem;
}
.rsab-topbar a {
    color: #cfe6f7;
}
.rsab-topbar a:hover {
    color: #ffffff;
}
.rsab-topbar .badge-accred {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.92);
    transition: background 0.18s;
}
.rsab-topbar .badge-accred:hover {
    background-color: rgba(255, 255, 255, 0.18);
}
.rsab-topbar a {
    transition: opacity 0.18s;
}
.rsab-topbar a:hover {
    opacity: 0.85;
}

/* ==========================================================================
     Navbar
     ========================================================================== */
.rsab-navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 16px rgba(11, 36, 64, 0.06);
}
.rsab-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.rsab-navbar .navbar-brand .brand-text-main {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    color: var(--rsab-primary-dark);
    line-height: 1.1;
    font-size: 1.05rem;
}
.rsab-navbar .navbar-brand .brand-text-sub {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    color: var(--rsab-secondary);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
}
.rsab-navbar .nav-link {
    font-weight: 600;
    color: var(--rsab-text);
    padding: 0.5rem 1rem !important;
    border-radius: var(--rsab-radius-sm);
}
.rsab-navbar .nav-link.active,
.rsab-navbar .nav-link:hover {
    color: var(--rsab-primary);
    background-color: var(--rsab-accent-light);
}

/* ==========================================================================
     Hero
     ========================================================================== */
.rsab-hero {
    position: relative;
    background: linear-gradient(
        120deg,
        var(--rsab-primary-dark) 0%,
        var(--rsab-primary) 60%,
        var(--rsab-secondary) 130%
    );
    overflow: hidden;
    color: #fff;
}
.rsab-hero .hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    pointer-events: none;
}
.rsab-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 4.5rem;
    padding-bottom: 7rem;
}
.rsab-hero h1 {
    color: #ffffff;
    font-size: 2.75rem;
    line-height: 1.15;
}
.rsab-hero p.lead {
    color: #d9ecfb;
    max-width: 540px;
}

/* Floating finder card (MAHSA "How can we serve you" pattern) */
.rsab-finder {
    position: relative;
    z-index: 3;
    margin-top: -4.5rem;
    background: #ffffff;
    border-radius: var(--rsab-radius);
    box-shadow: var(--rsab-shadow);
    padding: 1.75rem;
}
.rsab-finder .finder-title {
    font-size: 1.05rem;
    margin-bottom: 0;
}
.rsab-finder-actions a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: var(--rsab-radius-sm);
    font-weight: 700;
    color: var(--rsab-primary-dark);
    background-color: var(--rsab-light);
    transition: all 0.2s ease;
    height: 100%;
}
.rsab-finder-actions a:hover {
    background-color: var(--rsab-accent-light);
    transform: translateY(-2px);
}
.rsab-finder-actions a.is-primary {
    background-color: var(--rsab-primary);
    color: #fff;
}
.rsab-finder-actions a.is-primary:hover {
    background-color: var(--rsab-primary-dark);
}
.rsab-finder-actions .finder-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(11, 91, 158, 0.08);
    font-size: 1.25rem;
    flex-shrink: 0;
}
.rsab-finder-actions a.is-primary .finder-icon {
    background-color: rgba(255, 255, 255, 0.18);
}

/* ==========================================================================
     Page header (for sub-pages)
     ========================================================================== */
.rsab-page-header {
    background: linear-gradient(
        120deg,
        var(--rsab-primary-dark) 0%,
        var(--rsab-primary) 100%
    );
    color: #fff;
    padding: 3.25rem 0 2.25rem;
}
.rsab-page-header h1 {
    color: #fff;
    margin-bottom: 0.4rem;
}
.rsab-page-header .breadcrumb a {
    color: #cfe6f7;
}
.rsab-page-header .breadcrumb-item.active {
    color: #fff;
}
.rsab-page-header .breadcrumb-item + .breadcrumb-item::before {
    color: #9fc6e4;
}

/* ==========================================================================
     Icon boxes / feature cards
     ========================================================================== */
.icon-box {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background-color: var(--rsab-accent-light);
    color: var(--rsab-primary);
    flex-shrink: 0;
}
.icon-box.is-green {
    background-color: rgba(22, 137, 90, 0.1);
    color: var(--rsab-secondary);
}

.service-card {
    border: 1px solid #e7eef5;
    border-radius: var(--rsab-radius);
    padding: 1.75rem;
    height: 100%;
    transition: all 0.25s ease;
    background: #fff;
}
.service-card:hover {
    box-shadow: var(--rsab-shadow);
    border-color: transparent;
    transform: translateY(-4px);
}
.service-card .service-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--rsab-primary);
}
.service-card .service-link i {
    transition: transform 0.2s ease;
}
.service-card:hover .service-link i {
    transform: translateX(4px);
}

/* ==========================================================================
     News cards
     ========================================================================== */
.news-card {
    border: none;
    border-radius: var(--rsab-radius);
    overflow: hidden;
    box-shadow: var(--rsab-shadow-sm);
    transition: all 0.25s ease;
    height: 100%;
}
.news-card:hover {
    box-shadow: var(--rsab-shadow);
    transform: translateY(-4px);
}
.news-card .news-thumb {
    height: 170px;
    background: linear-gradient(
        135deg,
        var(--rsab-primary) 0%,
        var(--rsab-secondary) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 2.25rem;
}
.news-card .news-date {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--rsab-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* News list item (MAHSA-style date badge) */
.news-list-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eaf1f7;
}
.news-list-item:last-child {
    border-bottom: none;
}
.news-date-badge {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background-color: var(--rsab-accent-light);
    color: var(--rsab-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "Poppins", sans-serif;
    line-height: 1.1;
}
.news-date-badge .day {
    font-size: 1.15rem;
    font-weight: 800;
}
.news-date-badge .month {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ==========================================================================
     Doctor cards
     ========================================================================== */
.doctor-card {
    border: 1px solid #e7eef5;
    border-radius: var(--rsab-radius);
    overflow: hidden;
    text-align: center;
    background: #fff;
    transition: all 0.25s ease;
    height: 100%;
}
.doctor-card:hover {
    box-shadow: var(--rsab-shadow);
    transform: translateY(-4px);
}
.doctor-card .doctor-photo-wrap {
    background-color: var(--rsab-accent-light);
    padding: 1.5rem 1.5rem 0.75rem;
}
.doctor-card .doctor-photo {
    width: 96px;
    height: 96px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: var(--rsab-shadow-sm);
}
.doctor-card .doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.doctor-card .doctor-body {
    padding: 1rem 1.25rem 1.5rem;
}
.doctor-card .doctor-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--rsab-primary-dark);
    margin-bottom: 0.15rem;
}
.doctor-card .doctor-spec {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rsab-secondary);
}
.doctor-card .doctor-schedule {
    font-size: 0.82rem;
    color: var(--rsab-text-muted);
    margin-top: 0.5rem;
}

/* ==========================================================================
     Accreditation strip
     ========================================================================== */
.accred-strip {
    background-color: var(--rsab-light);
    border-radius: var(--rsab-radius);
    padding: 2.25rem;
}
.accred-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.accred-item .icon-box {
    background-color: #fff;
    box-shadow: var(--rsab-shadow-sm);
}
.accred-item h6 {
    margin-bottom: 0.1rem;
}
.accred-item small {
    color: var(--rsab-text-muted);
}

/* ==========================================================================
     CTA band
     ========================================================================== */
.cta-band {
    background: linear-gradient(
        120deg,
        var(--rsab-secondary) 0%,
        var(--rsab-primary) 100%
    );
    border-radius: var(--rsab-radius);
    color: #fff;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}
.cta-band h3 {
    color: #fff;
}
.cta-band .btn-light-rsab {
    background-color: #fff;
    color: var(--rsab-primary-dark);
    font-weight: 700;
    border-radius: var(--rsab-radius-sm);
    padding: 0.7rem 1.6rem;
}
.cta-band .btn-light-rsab:hover {
    background-color: var(--rsab-light);
}

/* ==========================================================================
     Stats counter
     ========================================================================== */
.stat-box {
    text-align: center;
    padding: 1.5rem 1rem;
}
.stat-box .stat-number {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 2.25rem;
    color: var(--rsab-primary);
    line-height: 1;
}
.stat-box .stat-label {
    color: var(--rsab-text-muted);
    font-size: 0.9rem;
    margin-top: 0.35rem;
}

/* ==========================================================================
     Footer
     ========================================================================== */
.rsab-footer {
    background-color: var(--rsab-dark);
    color: #aac4dc;
}
.rsab-footer h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.1rem;
}
.rsab-footer a {
    color: #aac4dc;
}
.rsab-footer a:hover {
    color: #fff;
}
.rsab-footer .footer-newsletter {
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: var(--rsab-radius);
    padding: 1.75rem;
}
.rsab-footer .footer-newsletter input.form-control {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}
.rsab-footer .footer-newsletter input.form-control::placeholder {
    color: #9bb6cf;
}
.rsab-footer .social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    transition: all 0.2s ease;
}
.rsab-footer .social-icons a:hover {
    background-color: var(--rsab-secondary);
    color: #fff;
}
.rsab-footer .footer-bottom {
    background-color: #061a30;
    padding: 1rem 0;
    font-size: 0.85rem;
}
.rsab-footer .footer-links li {
    margin-bottom: 0.6rem;
}
.rsab-footer .footer-contact-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 0.92rem;
}
.rsab-footer .footer-contact-item i {
    color: var(--rsab-accent);
    margin-top: 0.2rem;
}

/* ==========================================================================
     Misc / responsive
     ========================================================================== */
.rounded-img {
    border-radius: var(--rsab-radius);
}
.shadow-soft {
    box-shadow: var(--rsab-shadow);
}

@media (max-width: 767.98px) {
    .rsab-hero h1 {
        font-size: 2rem;
    }
    .rsab-finder {
        margin-top: -3rem;
        padding: 1.25rem;
    }
    .rsab-finder-actions a {
        padding: 0.75rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
}

/* ==========================================================================
     HERO VIDEO BACKGROUND
     ========================================================================== */
.rsab-hero-video {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.rsab-hero-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    min-width: 177.78vh; /* maintain 16:9 ratio: width = height * 16/9 */
    min-height: 56.25vw; /* maintain 16:9 ratio: height = width * 9/16 */
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: 0;
}
.rsab-hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(7, 58, 102, 0.88) 0%,
        rgba(11, 91, 158, 0.78) 60%,
        rgba(22, 137, 90, 0.75) 130%
    );
}

/* ==========================================================================
     ADMIN PANEL
     ========================================================================== */
.admin-body {
    background-color: var(--rsab-light);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--rsab-text);
}
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    background-color: var(--rsab-dark);
    color: #aac4dc;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}
.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1.25rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-brand:hover {
    color: #fff;
}
.admin-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
}
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    border-radius: var(--rsab-radius-sm);
    color: #aac4dc;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.15s ease;
}
.admin-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: #fff;
}
.admin-nav-link.active {
    background-color: var(--rsab-primary);
    color: #fff;
}
.admin-sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Main content */
.admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.admin-topbar {
    background-color: #fff;
    border-bottom: 1px solid #e7eef5;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}
.admin-content {
    padding: 1.5rem;
    flex: 1;
}
.admin-content .stat-number {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 2.25rem;
    color: var(--rsab-primary);
    line-height: 1;
}

/* Login page */
.admin-login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        120deg,
        var(--rsab-primary-dark) 0%,
        var(--rsab-primary) 60%,
        var(--rsab-secondary) 130%
    );
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    padding: 1.5rem;
}
.admin-login-card {
    background-color: #fff;
    border-radius: var(--rsab-radius);
    box-shadow: var(--rsab-shadow);
    padding: 2.25rem;
    width: 100%;
    max-width: 400px;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        width: 220px;
    }
}
@media (max-width: 767.98px) {
    .admin-wrapper {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .admin-nav {
        flex-direction: row;
        flex-wrap: wrap;
        overflow-y: visible;
    }
    .admin-sidebar-footer {
        flex-direction: row;
    }
}

/* ==========================================================================
   Accreditation Redesign — section gelap berbeda dari stats counter
   ========================================================================== */

/* Background section — navy gradient, kontras dari bg-light stats di atasnya */
.accred-section-bg {
    background: linear-gradient(
        135deg,
        var(--rsab-primary-dark) 0%,
        #0d4a82 60%,
        var(--rsab-secondary) 130%
    );
    position: relative;
    overflow: hidden;
}
.accred-section-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
            circle at 80% 20%,
            rgba(255, 255, 255, 0.05) 0%,
            transparent 60%
        ),
        radial-gradient(
            circle at 10% 80%,
            rgba(22, 137, 90, 0.15) 0%,
            transparent 50%
        );
    pointer-events: none;
}

/* Header teks di atas section gelap */
.accred-eyebrow {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.accred-title {
    font-family: var(--rsab-ff-heading, "Poppins", sans-serif);
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
}
.accred-subtitle {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.97rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Kartu per item akreditasi */
.accred-card {
    background: #ffffff;
    border-radius: var(--rsab-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.accred-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

/* Logo/gambar area */
.accred-card-logo {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}
.accred-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--rsab-primary) 0%,
        var(--rsab-secondary) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
}

/* Divider tipis */
.accred-card-divider {
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(
        90deg,
        var(--rsab-primary),
        var(--rsab-secondary)
    );
    margin: 0 auto 1.1rem;
}

/* Nama & penerbit */
.accred-card-body {
    flex: 1;
}
.accred-card-name {
    font-family: var(--rsab-ff-heading, "Poppins", sans-serif);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--rsab-primary-dark);
    margin-bottom: 0.4rem;
}
.accred-card-issuer {
    color: var(--rsab-text-muted, #6c757d);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Footer tombol sertifikat */
.accred-card-footer {
    margin-top: 1.25rem;
    width: 100%;
}
.accred-cert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: var(--rsab-radius-sm);
    background: linear-gradient(
        90deg,
        var(--rsab-primary) 0%,
        var(--rsab-secondary) 100%
    );
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.accred-cert-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    color: #fff !important;
}

/* ==========================================================================
   Mitra Kerjasama — auto-slide carousel & halaman grid
   ========================================================================== */

/* --- Carousel (widget home) --- */
.partners-track-wrapper {
    overflow: hidden;
    position: relative;
    /* fade kiri-kanan */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
}
.partners-track {
    display: flex;
    gap: 32px;
    width: max-content;
    will-change: transform;
}
.partner-slide {
    width: 180px;
    height: 90px;
    background: #fff;
    border: 1px solid #e7eef5;
    border-radius: var(--rsab-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    flex-shrink: 0;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.partner-slide:hover {
    box-shadow: var(--rsab-shadow-sm);
    border-color: var(--rsab-primary);
}
.partner-slide-img {
    width: 100%;
    height: 100%;
    max-width: 140px;
    max-height: 58px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.2s;
    display: block;
}
.partner-slide:hover .partner-slide-img {
    filter: grayscale(0%);
}
.partner-slide-text {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--rsab-primary-dark);
    text-align: center;
}

/* --- Grid (halaman kerjasama) --- */
.partner-card {
    background: #fff;
    border: 1px solid #e7eef5;
    border-radius: var(--rsab-radius);
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: box-shadow 0.22s, border-color 0.22s, transform 0.22s;
}
.partner-card:hover {
    box-shadow: var(--rsab-shadow);
    border-color: transparent;
    transform: translateY(-4px);
}
.partner-card-logo {
    max-width: 140px;
    max-height: 70px;
    object-fit: contain;
}
.partner-card-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--rsab-primary-dark);
}
.partner-card-label {
    font-size: 0.82rem;
    color: var(--rsab-text-muted);
    margin: 0;
}
.partner-card-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--rsab-primary);
    text-decoration: none;
}
.partner-card-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   HIS — Antrian & Bed Ready
   ========================================================================== */

/* Status bar */
.his-statusbar {
    background: #fff;
    border: 1px solid #e7eef5;
    border-radius: var(--rsab-radius);
    padding: 0.85rem 1.25rem;
    box-shadow: var(--rsab-shadow-sm);
}

/* Live dot animasi */
.his-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #16a34a;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
    animation: his-pulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes his-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(22, 163, 74, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

/* Loading state */
.his-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

/* Info box bawah */
.his-info-box {
    background: #f0f7ff;
    border-left: 4px solid var(--rsab-primary);
    border-radius: 0 var(--rsab-radius-sm) var(--rsab-radius-sm) 0;
    padding: 1.1rem 1.5rem;
}

/* Badge kecil */
.his-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
}
.his-badge-active {
    background: #dbeafe;
    color: #1d4ed8;
}
.his-badge-siang {
    background: #fef3c7;
    color: #92400e;
}
.his-badge-done {
    background: #dcfce7;
    color: #166534;
}
.his-badge-wait {
    background: #fee2e2;
    color: #991b1b;
}

/* ---- ANTRIAN ---- */
.his-poli-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--rsab-primary);
    color: #fff;
    border-radius: var(--rsab-radius-sm) var(--rsab-radius-sm) 0 0;
    padding: 0.6rem 1rem;
    font-weight: 700;
    font-size: 0.95rem;
}
.his-poli-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    padding: 3px;
}
.his-poli-group {
    border-radius: var(--rsab-radius);
    overflow: hidden;
}
.his-queue-card {
    background: #fff;
    border: 1px solid #e7eef5;
    border-radius: var(--rsab-radius-sm);
    padding: 1rem 1.25rem;
    height: 100%;
    transition: box-shadow 0.2s;
}
.his-queue-card:hover {
    box-shadow: var(--rsab-shadow-sm);
}
.his-queue-empty {
    background: #fafafa;
    border-color: #e5e7eb;
}
.his-queue-doctor {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--rsab-primary-dark);
    margin-bottom: 0.3rem;
}
.his-queue-number {
    font-family: "Poppins", sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--rsab-primary);
    line-height: 1;
}
.his-queue-number-label {
    font-size: 0.7rem;
    color: var(--rsab-text-muted);
}
.his-queue-status-empty {
    color: var(--rsab-text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}
.his-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.his-stat-num {
    font-family: "Poppins", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
}
.his-stat-label {
    font-size: 0.7rem;
    color: var(--rsab-text-muted);
}
.his-progress {
    height: 6px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}
.his-progress-bar {
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--rsab-primary),
        var(--rsab-secondary)
    );
    border-radius: 999px;
    transition: width 0.5s ease;
}

/* ---- BED READY ---- */
.his-sum-card {
    background: #fff;
    border: 1px solid #e7eef5;
    border-radius: var(--rsab-radius);
    padding: 1.25rem;
    text-align: center;
}
.his-sum-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 0.75rem;
}
.his-sum-num {
    font-family: "Poppins", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}
.his-sum-label {
    font-size: 0.8rem;
    color: var(--rsab-text-muted);
    margin-top: 0.25rem;
}

.his-bed-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: var(--rsab-radius);
    overflow: hidden;
    box-shadow: var(--rsab-shadow-sm);
    font-size: 0.9rem;
}
.his-bed-table thead tr {
    background: var(--rsab-primary);
}
.his-bed-table thead th {
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 1rem;
    text-align: center;
    white-space: nowrap;
    border: none;
}
.his-bed-table thead th:first-child {
    text-align: left;
    min-width: 160px;
}
.his-bed-table tbody tr:nth-child(even) {
    background: #f8fbff;
}
.his-bed-table tbody tr:hover {
    background: #eef5ff;
}
.his-bed-table tbody td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #e7eef5;
    text-align: center;
}
.his-bed-table tbody td:last-child,
.his-bed-table thead th:last-child {
    border-right: none;
}
.his-bed-pavname {
    text-align: left !important;
    font-weight: 600;
    color: var(--rsab-primary-dark);
}
.his-bed-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.95rem;
}
.his-bed-avail {
    background: #dcfce7;
    color: #166534;
}
.his-bed-full {
    background: #fee2e2;
    color: #991b1b;
}
.his-bed-na {
    background: transparent;
    color: #d1d5db;
    font-size: 0.8rem;
}
.his-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.his-dot-avail {
    background: #16a34a;
}
.his-dot-full {
    background: #dc2626;
}

/* ==========================================================================
   ANTRIAN REDESIGN
   ========================================================================== */

/* Hero */
.aq-hero {
    background: linear-gradient(
        135deg,
        var(--rsab-primary-dark) 0%,
        #0d5a9e 60%,
        var(--rsab-secondary) 130%
    );
    padding: 2.5rem 0 2rem;
    position: relative;
    overflow: hidden;
}
.aq-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 90% 50%,
        rgba(255, 255, 255, 0.06) 0%,
        transparent 60%
    );
    pointer-events: none;
}
.aq-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.aq-hero-title {
    font-family: "Poppins", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.25rem;
}
.aq-hero-sub {
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    font-size: 0.95rem;
}
.aq-hero-clock {
    font-family: "Poppins", sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--rsab-radius);
    padding: 0.5rem 1.25rem;
    letter-spacing: 0.05em;
}
.aq-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(22, 163, 74, 0.9);
    color: #fff;
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.aq-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: his-pulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

/* Toolbar */
.aq-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e7eef5;
    border-radius: var(--rsab-radius);
    padding: 0.85rem 1.25rem;
    box-shadow: var(--rsab-shadow-sm);
}
.aq-toolbar-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    flex: 1;
}
.aq-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.aq-filter-btn {
    border: 1.5px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.2rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 600;
    background: #fff;
    cursor: pointer;
    color: var(--rsab-text-muted);
    transition: all 0.15s;
    white-space: nowrap;
}
.aq-filter-btn:hover {
    border-color: var(--rsab-primary);
    color: var(--rsab-primary);
}
.aq-filter-btn.active {
    background: var(--rsab-primary);
    border-color: var(--rsab-primary);
    color: #fff;
}
.aq-refresh-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--rsab-primary);
    font-size: 1rem;
    transition: background 0.15s, transform 0.15s;
}
.aq-refresh-btn:hover {
    background: var(--rsab-primary);
    color: #fff;
}
.aq-refresh-btn.spinning i {
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Summary cards */
.aq-sum-card {
    background: #fff;
    border: 1px solid #e7eef5;
    border-radius: var(--rsab-radius);
    padding: 1.1rem;
    text-align: center;
}
.aq-sum-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 0.6rem;
}
.aq-sum-num {
    font-family: "Poppins", sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--rsab-primary-dark);
}
.aq-sum-label {
    font-size: 0.75rem;
    color: var(--rsab-text-muted);
    margin-top: 0.2rem;
}

/* Poli group */
.aq-poli-group {
    border: 1px solid #dce8f5;
    border-radius: var(--rsab-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(11, 91, 158, 0.07);
}
.aq-poli-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(
        90deg,
        var(--rsab-primary-dark),
        var(--rsab-primary)
    );
    color: #fff;
    padding: 0.85rem 1.25rem;
    margin-bottom: 0;
}
.aq-poli-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    padding: 5px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.aq-poli-name {
    font-weight: 700;
    font-size: 1rem;
    flex: 1;
}
.aq-poli-count {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.15rem 0.65rem;
    white-space: nowrap;
}
.aq-poli-group > .row {
    background: #f4f8fd;
    padding: 1rem;
    margin: 0;
    border-top: none;
}

/* Queue card */
.aq-card {
    background: #fff;
    border: 1px solid #e7eef5;
    border-radius: var(--rsab-radius-sm);
    padding: 1.1rem 1.25rem;
    height: 100%;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
    overflow: hidden;
}
.aq-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--rsab-primary);
    border-radius: 2px 0 0 2px;
}
.aq-card-siang::before {
    background: #f59e0b;
}
.aq-card-empty::before {
    background: #e5e7eb;
}
.aq-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}
.aq-card-empty {
    background: #fafafa;
}

.aq-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}
.aq-card-sesi {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
}
.aq-card-sesi.pagi {
    background: #e0f2fe;
    color: #0369a1;
}
.aq-card-sesi.siang {
    background: #fef3c7;
    color: #92400e;
}
.aq-card-total {
    text-align: right;
}
.aq-card-total-num {
    font-family: "Poppins", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--rsab-primary-dark);
    line-height: 1;
    display: block;
}
.aq-card-total-label {
    font-size: 0.68rem;
    color: var(--rsab-text-muted);
}
.aq-card-siang .aq-card-total-num {
    color: #92400e;
}

.aq-card-doctor {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--rsab-primary-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.aq-card-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}
.aq-card-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.aq-card-stat-item .num {
    font-family: "Poppins", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}
.aq-card-stat-item .lbl {
    font-size: 0.68rem;
    color: var(--rsab-text-muted);
}
.aq-card-stat-divider {
    width: 1px;
    height: 36px;
    background: #e5e7eb;
}

.aq-card-empty-state {
    color: #9ca3af;
    font-size: 0.82rem;
    margin-top: 0.5rem;
}

.aq-progress-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.aq-progress {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}
.aq-progress-fill {
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--rsab-primary),
        var(--rsab-secondary)
    );
    border-radius: 999px;
    transition: width 0.6s ease;
}
.aq-card-siang .aq-progress-fill {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}
.aq-progress-label {
    font-size: 0.68rem;
    color: var(--rsab-text-muted);
    white-space: nowrap;
}

/* Loading & empty states */
.aq-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 0;
}
.aq-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--rsab-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.aq-empty,
.aq-error {
    text-align: center;
    padding: 4rem 0;
    color: var(--rsab-text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Legend */
.aq-legend {
    background: #f8fbff;
    border: 1px solid #e7eef5;
    border-radius: var(--rsab-radius);
    padding: 1.1rem 1.5rem;
}
.aq-legend-title {
    font-weight: 700;
    color: var(--rsab-primary-dark);
    margin-bottom: 0.25rem;
}
.aq-leg-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--rsab-text-muted);
}
.aq-leg-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 576px) {
    .aq-hero-clock {
        font-size: 1.5rem;
        padding: 0.4rem 0.85rem;
    }
    .aq-hero-title {
        font-size: 1.4rem;
    }
}

/* Doctor avatar in queue card */
.aq-card-doctor-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}
.aq-doc-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e7eef5;
    background: #f0f7ff;
}
.aq-doc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.aq-doc-initials {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--rsab-primary);
    background: #dbeafe;
}
.aq-card-doctor {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--rsab-primary-dark);
    line-height: 1.4;
    margin-bottom: 0;
}

/* ==========================================================================
   Halaman Dokter
   ========================================================================== */
.doc-card {
    background: #fff;
    border: 1px solid #e7eef5;
    border-radius: var(--rsab-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.22s, transform 0.22s;
}
.doc-card:hover {
    box-shadow: 0 8px 28px rgba(11, 91, 158, 0.13);
    transform: translateY(-4px);
}
.doc-card-photo {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
}
.doc-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}
.doc-card-initials {
    font-family: "Poppins", sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--rsab-primary);
    user-select: none;
}
.doc-card-body {
    padding: 1rem 1rem 0.5rem;
    flex: 1;
}
.doc-card-spesialis {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--rsab-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}
.doc-card-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--rsab-primary-dark);
    margin-bottom: 0.4rem;
    line-height: 1.4;
}
.doc-card-bio {
    font-size: 0.78rem;
    color: var(--rsab-text-muted);
    line-height: 1.5;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.doc-card-footer {
    padding: 0.6rem 1rem;
    border-top: 1px solid #f0f5fb;
}
.doc-card-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--rsab-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.15s;
}
.doc-card-link:hover {
    gap: 7px;
    color: var(--rsab-primary-dark);
}

@media (max-width: 576px) {
    .doc-card-initials {
        font-size: 1.8rem;
    }
    .doc-card-name {
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   Admin Sidebar Fix — sticky + hide scrollbar
   ========================================================================== */
.admin-sidebar {
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    overflow: hidden !important; /* sembunyikan scrollbar sidebar */
}
.admin-nav {
    overflow-y: auto !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
}
.admin-nav::-webkit-scrollbar {
    display: none !important; /* Chrome/Safari */
}
.admin-wrapper {
    align-items: flex-start !important;
}

/* ==========================================================================
   Service Card dengan Foto (svc-card) — seperti program studi STIKES
   ========================================================================== */
.svc-card {
    border-radius: var(--rsab-radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid #e7eef5;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.22s, transform 0.22s;
}
.svc-card:hover {
    box-shadow: 0 12px 32px rgba(11, 91, 158, 0.14);
    transform: translateY(-4px);
}

/* Area foto */
.svc-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--rsab-primary-dark),
        var(--rsab-primary)
    );
}
.svc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}
.svc-card:hover .svc-card-img img {
    transform: scale(1.05);
}
.svc-card-img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        var(--rsab-primary-dark) 0%,
        var(--rsab-primary) 60%,
        var(--rsab-secondary) 130%
    );
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Overlay gelap tipis di atas foto */
.svc-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(7, 58, 102, 0.55) 0%,
        rgba(0, 0, 0, 0.1) 60%,
        transparent 100%
    );
    pointer-events: none;
}

/* Badge ikon di atas foto pojok kiri bawah */
.svc-card-badge {
    position: absolute;
    bottom: 0.85rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

/* Konten bawah */
.svc-card-body {
    padding: 1.1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-top: 3px solid var(--rsab-primary);
}
.svc-card-title {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--rsab-primary-dark);
    margin-bottom: 0.4rem;
}
.svc-card-desc {
    font-size: 0.83rem;
    color: var(--rsab-text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Service Detail Page
   ========================================================================== */
.svc-detail-hero {
    background: linear-gradient(
        135deg,
        var(--rsab-primary-dark),
        var(--rsab-primary)
    );
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 4rem 0 3rem;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
}
.svc-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(7, 58, 102, 0.92) 0%,
        rgba(7, 58, 102, 0.6) 60%,
        rgba(0, 0, 0, 0.3) 100%
    );
}
.svc-detail-hero-inner {
    position: relative;
    z-index: 1;
}
.svc-detail-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.svc-detail-hero-title {
    font-family: "Poppins", sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}
.svc-detail-hero-sub {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    max-width: 600px;
    margin-bottom: 0;
}

/* Konten detail */
.svc-detail-content {
    color: var(--rsab-primary-dark);
    line-height: 1.8;
    font-size: 0.95rem;
}
.svc-detail-content h2,
.svc-detail-content h3,
.svc-detail-content h4,
.svc-detail-content h5 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    color: var(--rsab-primary-dark);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}
.svc-detail-content p {
    margin-bottom: 1rem;
    color: #374151;
}
.svc-detail-content ul,
.svc-detail-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.svc-detail-content li {
    margin-bottom: 0.4rem;
    color: #374151;
}
.svc-detail-content strong {
    color: var(--rsab-primary-dark);
}
.svc-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.88rem;
}
.svc-detail-content table th,
.svc-detail-content table td {
    padding: 0.6rem 0.85rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}
.svc-detail-content table th {
    background: var(--rsab-primary);
    color: #fff;
    font-weight: 600;
}
.svc-detail-content table tr:nth-child(even) {
    background: #f8fbff;
}

@media (max-width: 576px) {
    .svc-detail-hero-title {
        font-size: 1.5rem;
    }
    .svc-detail-hero {
        min-height: 240px;
    }
}

/* ==========================================================================
   Service Detail — Sidebar Fix
   ========================================================================== */
.svc-sidebar {
    position: sticky;
    top: 115px;
}
.svc-sidebar-card {
    background: #fff;
    border: 1px solid #e7eef5;
    border-radius: var(--rsab-radius);
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(11, 91, 158, 0.06);
}
.svc-sidebar-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--rsab-primary-dark);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e7eef5;
}

/* Kontak item */
.svc-contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    padding: 0.4rem 0;
    border-radius: var(--rsab-radius-sm);
    transition: background 0.15s;
}
.svc-contact-link:hover {
    background: #f8fbff;
}
.svc-contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.svc-contact-label {
    font-size: 0.72rem;
    color: var(--rsab-text-muted);
}
.svc-contact-val {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rsab-primary-dark);
}

/* Action links (antrian, kamar) */
.svc-sidebar-action {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #fff;
    border: 1px solid #e7eef5;
    border-left: 4px solid var(--rsab-primary);
    border-radius: var(--rsab-radius);
    padding: 0.85rem 1rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(11, 91, 158, 0.06);
    transition: box-shadow 0.18s, transform 0.18s;
}
.svc-sidebar-action:hover {
    box-shadow: 0 4px 16px rgba(11, 91, 158, 0.12);
    transform: translateX(2px);
}
.svc-sidebar-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.svc-sidebar-action-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--rsab-primary-dark);
}
.svc-sidebar-action-sub {
    font-size: 0.72rem;
    color: var(--rsab-text-muted);
}

/* Layanan lainnya list */
.svc-other-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.25rem;
    text-decoration: none;
    color: var(--rsab-primary-dark);
    font-size: 0.83rem;
    font-weight: 500;
    border-bottom: 1px solid #f0f5fb;
    transition: color 0.15s, padding-left 0.15s;
}
.svc-other-link:last-child {
    border-bottom: none;
}
.svc-other-link:hover {
    color: var(--rsab-primary);
    padding-left: 4px;
}
.svc-other-icon {
    font-size: 1rem;
    color: var(--rsab-secondary);
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

/* ==========================================================================
   Doctor Home Card — foto background seperti card layanan
   ========================================================================== */
.doc-home-card {
    border-radius: var(--rsab-radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid #e7eef5;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.22s, transform 0.22s;
}
.doc-home-card:hover {
    box-shadow: 0 12px 32px rgba(11, 91, 158, 0.14);
    transform: translateY(-4px);
}

/* Foto area — rasio 3:4 agar cocok untuk foto portrait dokter */
.doc-home-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--rsab-primary-dark),
        var(--rsab-primary)
    );
}
.doc-home-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s ease;
}
.doc-home-card:hover .doc-home-img img {
    transform: scale(1.05);
}
.doc-home-img-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.25);
}

/* Overlay gradient bawah */
.doc-home-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(7, 58, 102, 0.75) 0%,
        rgba(7, 58, 102, 0.2) 45%,
        transparent 70%
    );
    pointer-events: none;
}

/* Badge spesialis di atas foto (pojok bawah) */
.doc-home-spesialis {
    position: absolute;
    bottom: 0.75rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0 0.75rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Nama & bio di bawah foto */
.doc-home-body {
    padding: 0.85rem 1rem;
    border-top: 3px solid var(--rsab-primary);
    flex: 1;
}
.doc-home-name {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--rsab-primary-dark);
    line-height: 1.4;
    margin-bottom: 0.2rem;
}
.doc-home-bio {
    font-size: 0.75rem;
    color: var(--rsab-text-muted);
    line-height: 1.5;
}

@media (max-width: 576px) {
    .doc-home-img {
        aspect-ratio: 1/1;
    }
    .doc-home-name {
        font-size: 0.82rem;
    }
}

/* ==========================================================================
   News Card — thumbnail foto fix
   ========================================================================== */
.news-card .news-thumb {
    overflow: hidden !important;
    position: relative;
}
.news-card .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}
.news-card:hover .news-thumb img {
    transform: scale(1.05);
}

/* ==========================================================================
   Share Buttons — Berita Detail
   ========================================================================== */
.share-box {
    background: #f8fbff;
    border: 1px solid #e7eef5;
    border-radius: var(--rsab-radius);
    padding: 1.1rem 1.25rem;
}
.share-label {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--rsab-primary-dark);
    margin-bottom: 0.85rem;
}
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.18s, transform 0.18s;
}
.share-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}
.share-btn i {
    font-size: 1rem;
}

.share-wa {
    background: #25d366;
    color: #fff;
}
.share-fb {
    background: #1877f2;
    color: #fff;
}
.share-x {
    background: #000;
    color: #fff;
}
.share-tg {
    background: #2aabee;
    color: #fff;
}
.share-copy {
    background: #e7eef5;
    color: var(--rsab-primary-dark);
}
.share-copy-success {
    background: #dcfce7 !important;
    color: #16a34a !important;
}

/* ==========================================================================
   Doctor Detail Page
   ========================================================================== */
.dr-header-card {
    background: #fff;
    border: 1px solid #e7eef5;
    border-radius: var(--rsab-radius);
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    box-shadow: 0 2px 12px rgba(11, 91, 158, 0.07);
}
.dr-header-photo {
    flex-shrink: 0;
}
.dr-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 3px solid var(--rsab-primary);
    box-shadow: 0 4px 16px rgba(11, 91, 158, 0.15);
}
.dr-photo-initials {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--rsab-primary-dark),
        var(--rsab-primary)
    );
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Poppins", sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
}
.dr-spesialis-badge {
    display: inline-block;
    background: var(--rsab-secondary);
    color: #fff;
    border-radius: 999px;
    padding: 0.2rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}
.dr-name {
    font-family: "Poppins", sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--rsab-primary-dark);
    margin-bottom: 0.4rem;
    line-height: 1.2;
}
.dr-bio {
    color: var(--rsab-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Detail grid */
.dr-detail-card {
    background: #fff;
    border: 1px solid #e7eef5;
    border-radius: var(--rsab-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(11, 91, 158, 0.07);
}
.dr-detail-cell {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid #f0f5fb;
    border-right: 1px solid #f0f5fb;
}
.dr-detail-cell:nth-child(even) {
    border-right: none;
}
.dr-detail-cell:last-child,
.dr-detail-cell:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
}
.dr-detail-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--rsab-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}
.dr-detail-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--rsab-primary-dark);
}

/* Appointment card */
.dr-appt-card {
    background: linear-gradient(
        135deg,
        var(--rsab-primary-dark) 0%,
        var(--rsab-primary) 100%
    );
    border-radius: var(--rsab-radius);
    padding: 1.5rem;
}
.dr-appt-title {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

/* Responsive */
@media (max-width: 576px) {
    .dr-header-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    .dr-name {
        font-size: 1.3rem;
    }
    .dr-photo,
    .dr-photo-initials {
        width: 110px;
        height: 110px;
    }
}

/* ==========================================================================
   App Download Widget — Halo RSA Bojonegoro
   ========================================================================== */
.app-download-section {
    position: relative;
    background: linear-gradient(
        135deg,
        var(--rsab-primary-dark) 0%,
        #0d5a9e 50%,
        var(--rsab-secondary) 130%
    );
    background-size: cover;
    background-position: center;
    overflow: hidden;
    padding: 5rem 0;
}
.app-download-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(7, 58, 102, 0.92) 0%,
        rgba(7, 58, 102, 0.75) 50%,
        rgba(22, 137, 90, 0.6) 100%
    );
    pointer-events: none;
}
.app-download-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 4rem;
}
.app-download-content {
    flex: 1;
}
.app-download-mockup {
    flex-shrink: 0;
    width: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Eyebrow */
.app-download-eyebrow {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Title & desc */
.app-download-title {
    font-family: "Poppins", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 1rem;
}
.app-download-desc {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 0;
}
.app-download-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

/* Store button */
.app-store-btn {
    display: inline-flex;
    transition: opacity 0.18s, transform 0.18s;
}
.app-store-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* Feature pills */
.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.app-feature-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}
.app-feature-icon {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Mockup image */
.app-mockup-img {
    width: 100%;
    max-width: 260px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
    animation: float 3.5s ease-in-out infinite;
}
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Default mockup placeholder */
.app-mockup-placeholder {
    width: 200px;
}
.app-mockup-phone {
    background: #fff;
    border-radius: 28px;
    padding: 12px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
    animation: float 3.5s ease-in-out infinite;
}
.app-mockup-screen {
    background: linear-gradient(
        145deg,
        var(--rsab-primary-dark),
        var(--rsab-secondary)
    );
    border-radius: 20px;
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.app-mockup-logo {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.app-mockup-appname {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
}
.app-mockup-tagline {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 768px) {
    .app-download-inner {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }
    .app-download-desc {
        max-width: 100%;
    }
    .app-features {
        justify-content: center;
    }
    .app-download-mockup {
        width: 180px;
    }
    .app-download-title {
        font-size: 1.5rem;
    }
    .app-mockup-screen {
        height: 220px;
    }
}

/* ==========================================================================
   Smartphone Frame — App Download Widget
   ========================================================================== */
.app-download-mockup {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3.5s ease-in-out infinite;
}

.smartphone-frame {
    width: 220px;
    background: #0f0f0f;
    border-radius: 36px;
    padding: 10px;
    box-shadow: 0 0 0 1px #333, 0 0 0 3px #1a1a1a,
        0 32px 64px rgba(0, 0, 0, 0.5), inset 0 0 0 1px #2a2a2a;
    position: relative;
}

/* Notch */
.smartphone-notch {
    width: 80px;
    height: 22px;
    background: #0f0f0f;
    border-radius: 0 0 16px 16px;
    margin: 0 auto 4px;
    position: relative;
    z-index: 2;
}

/* Status bar */
.smartphone-statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 10px 4px;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* Screen area */
.smartphone-screen {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    height: 380px;
    position: relative;
}

/* Home bar */
.smartphone-homebar {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    margin: 8px auto 2px;
}

/* Side buttons (decorative) */
.smartphone-frame::before {
    content: "";
    position: absolute;
    right: -3px;
    top: 70px;
    width: 3px;
    height: 50px;
    background: #222;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 70px 0 #222;
}
.smartphone-frame::after {
    content: "";
    position: absolute;
    left: -3px;
    top: 100px;
    width: 3px;
    height: 35px;
    background: #222;
    border-radius: 2px 0 0 2px;
    box-shadow: 0 45px 0 #222, 0 90px 0 #222;
}

/* Placeholder screen content */
.smartphone-screen-placeholder {
    height: 100%;
    background: linear-gradient(160deg, #073a66 0%, #0d5a9e 40%, #16875a 100%);
    display: flex;
    flex-direction: column;
    padding: 1rem 0.75rem;
}
.sp-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
}
.sp-logo {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.sp-appname {
    font-weight: 800;
    font-size: 0.82rem;
    color: #fff;
    font-family: "Poppins", sans-serif;
}
.sp-tagline {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.65);
}
.sp-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}
.sp-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.6rem 0.25rem;
    cursor: default;
}
.sp-menu-item i {
    font-size: 1.2rem;
    color: #fff;
}
.sp-menu-item span {
    font-size: 0.45rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-weight: 600;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .smartphone-frame {
        width: 170px;
    }
    .smartphone-screen {
        height: 290px;
    }
    .sp-menu-grid {
        gap: 0.35rem;
    }
    .sp-menu-item {
        padding: 0.4rem 0.15rem;
    }
    .sp-menu-item i {
        font-size: 1rem;
    }
}

/* ==========================================================================
   Emergency Widget — Floating Button + Modal
   ========================================================================== */

/* ── Floating Action Button ── */
.ew-fab {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 1040;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--rsab-secondary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(22, 137, 90, 0.45);
    transition: transform 0.2s, box-shadow 0.2s;
    outline: none;
}
.ew-fab:hover,
.ew-fab:focus-visible {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(22, 137, 90, 0.55);
    background: #0f6e48;
}
.ew-fab-icon {
    font-size: 1.45rem;
    color: #fff;
    position: relative;
    z-index: 1;
}

/* Pulse ring */
.ew-fab-pulse {
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 2.5px solid var(--rsab-secondary);
    animation: ewPulse 2.4s ease-out infinite;
    pointer-events: none;
}
@keyframes ewPulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.55);
        opacity: 0;
    }
    100% {
        transform: scale(1.55);
        opacity: 0;
    }
}

/* ── Backdrop ── */
.ew-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(10, 36, 64, 0.55);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}
.ew-modal-backdrop.ew-modal-open {
    opacity: 1;
    pointer-events: auto;
}

/* ── Modal Box ── */
.ew-modal-box {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(10, 36, 64, 0.25);
    overflow: hidden;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0;
}
.ew-modal-backdrop.ew-modal-open .ew-modal-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* ── Modal Header ── */
.ew-modal-header {
    background: linear-gradient(135deg, var(--rsab-secondary) 0%, #0f6e48 100%);
    padding: 1.5rem 1.5rem 1.25rem;
    position: relative;
    text-align: center;
}
.ew-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.6rem;
    color: #fff;
}
.ew-modal-title {
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}
.ew-modal-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.83rem;
    margin-bottom: 0;
}
.ew-modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    line-height: 1;
}
.ew-modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* ── Contact Items ── */
.ew-modal-body {
    padding: 0.75rem 1.1rem;
    max-height: 58vh;
    overflow-y: auto;
}
.ew-contact-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.8rem 0.7rem;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    border-bottom: 1px solid #f0f4f8;
}
.ew-contact-item:last-child {
    border-bottom: none;
}
.ew-contact-item:hover {
    background: #f0faf5;
    color: inherit;
}
.ew-contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e6f4ef;
    color: var(--rsab-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.ew-contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.ew-contact-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--rsab-primary-dark);
}
.ew-contact-number {
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--rsab-primary);
    letter-spacing: 0.3px;
}
.ew-contact-call {
    color: var(--rsab-secondary);
    font-size: 1rem;
    opacity: 0.7;
    flex-shrink: 0;
    transition: opacity 0.15s, transform 0.15s;
}
.ew-contact-item:hover .ew-contact-call {
    opacity: 1;
    transform: scale(1.15);
}

/* ── Footer ── */
.ew-modal-footer {
    padding: 0.65rem 1.25rem;
    background: #f4f9fc;
    border-top: 1px solid #e2eaf3;
    font-size: 0.78rem;
    color: var(--rsab-text-muted);
    text-align: center;
}

/* ── Mobile adjustments ── */
@media (max-width: 575px) {
    .ew-fab {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 52px;
        height: 52px;
    }
    .ew-modal-backdrop {
        align-items: flex-end;
        justify-content: center;
        padding: 0;
    }
    .ew-modal-box {
        max-width: 100%;
        border-radius: 18px 18px 0 0;
        transform: translateY(100%);
    }
    .ew-modal-backdrop.ew-modal-open .ew-modal-box {
        transform: translateY(0);
    }
}

/* ============================================================
   Widget Ulasan Google (buatan sendiri) — partials/google-reviews
   ============================================================ */
.gr-summary {
    max-width: 560px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    background: #fff;
    border: 1px solid rgba(11, 91, 158, 0.1);
    border-radius: var(--rsab-radius);
    box-shadow: var(--rsab-shadow-sm);
    padding: 1rem 1.75rem;
}
.gr-summary__score { display: flex; align-items: center; gap: 1rem; }
.gr-summary__num {
    font-family: var(--rsab-ff-heading, "Poppins", sans-serif);
    font-size: 2.5rem; font-weight: 800; line-height: 1;
    color: var(--rsab-primary);
    padding-right: 1rem;
    border-right: 1px solid rgba(11, 91, 158, 0.12);
}
.gr-summary__info { display: flex; flex-direction: column; gap: 3px; }
.gr-summary__count { color: var(--rsab-text-muted); font-size: 0.88rem; }
.gr-summary__count .gr-g { width: 14px; height: 14px; vertical-align: -2px; margin-left: 3px; }
.gr-summary__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.gr-stars { display: inline-flex; gap: 2px; color: #fbbc05; font-size: 1.1rem; line-height: 1; }
.gr-stars .bi-star { color: #d9dee3; }
.gr-stars--sm { font-size: 0.85rem; margin-bottom: 0.6rem; }

.gr-carousel { position: relative; padding: 0 3.25rem; }
.gr-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.5rem 0.25rem 1rem;
    scrollbar-width: none;
}
.gr-track::-webkit-scrollbar { display: none; }

.gr-card {
    scroll-snap-align: start;
    flex: 0 0 320px;
    max-width: 320px;
    background: #fff;
    border: 1px solid rgba(11, 91, 158, 0.08);
    border-radius: var(--rsab-radius);
    box-shadow: var(--rsab-shadow-sm);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}
.gr-card--empty { align-items: center; text-align: center; justify-content: center; min-height: 180px; }
.gr-card__head { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.6rem; }
.gr-card__avatar {
    width: 40px; height: 40px; border-radius: 50%;
    object-fit: cover; flex: 0 0 40px;
    display: flex; align-items: center; justify-content: center;
}
.gr-card__avatar--initial {
    background: var(--rsab-accent-light);
    color: var(--rsab-primary);
    font-weight: 700; font-size: 1.1rem;
}
.gr-card__meta { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.gr-card__author { font-weight: 600; color: var(--rsab-text); line-height: 1.2; }
.gr-card__time { font-size: 0.78rem; color: var(--rsab-text-muted); }
.gr-card__g { flex: 0 0 auto; }
.gr-card__text {
    color: var(--rsab-text); font-size: 0.92rem; line-height: 1.6; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical;
    overflow: hidden;
}

.gr-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 2;
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid rgba(11, 91, 158, 0.15);
    background: #fff; color: var(--rsab-primary);
    box-shadow: var(--rsab-shadow-sm);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.15s ease;
}
.gr-nav:hover { background: var(--rsab-primary); color: #fff; }
.gr-nav--prev { left: 0; }
.gr-nav--next { right: 0; }
@media (max-width: 991.98px) {
    .gr-carousel { padding: 0; }
    .gr-nav { display: none; }
    .gr-card { flex-basis: 82%; max-width: 82%; }
}

/* Ringkasan ulasan: tanggal pembaruan */
.gr-summary__updated { font-size: 0.8rem; color: var(--rsab-text-muted); }

/* Daftar hak & kewajiban pasien (penomoran huruf a, b, c ...) */
.rsab-legal-list { list-style: lower-alpha; padding-left: 1.25rem; }
.rsab-legal-list li { margin-bottom: 0.5rem; line-height: 1.6; color: var(--rsab-text); }
.rsab-legal-list li::marker { color: var(--rsab-primary); font-weight: 700; }

/* ============================================================
   Widget Media Sosial (beranda) — partials/social-media-widget
   ============================================================ */
.sm-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid rgba(11, 91, 158, 0.08);
    border-radius: var(--rsab-radius); overflow: hidden;
    box-shadow: var(--rsab-shadow-sm);
}
.sm-card__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1rem; color: #fff; font-weight: 700; font-size: 0.95rem;
}
.sm-head__link { color: rgba(255,255,255,0.9); font-size: 0.8rem; text-decoration: none; }
.sm-head__link:hover { color: #fff; text-decoration: underline; }
.sm-head--ig { background: linear-gradient(90deg, #833ab4, #c13584 40%, #e1306c 70%, #fd1d1d); }
.sm-head--yt { background: #ff0000; }
.sm-head--fb { background: #1877f2; }

.sm-card__body { flex: 1 1 auto; padding: 1.25rem; }
.sm-body__icon { font-size: 2.5rem; opacity: 0.85; }
.sm-body--ig { color: #c13584; }
.sm-body--yt { color: #ff0000; }
.sm-body--fb { color: #1877f2; }

/* Embed YouTube 16:9 */
.sm-embed { position: relative; width: 100%; padding-top: 56.25%; background: #000; }
.sm-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Facebook Page Plugin */
.sm-fb { display: flex; justify-content: center; padding: 0.5rem; min-height: 420px; }
.sm-fb iframe { width: 100%; max-width: 340px; height: 420px; }

.sm-card__btn {
    display: block; text-align: center; text-decoration: none; color: #fff;
    font-weight: 600; padding: 0.7rem 1rem; font-size: 0.9rem;
}
.sm-btn--ig { background: linear-gradient(90deg, #833ab4, #c13584 40%, #e1306c 70%, #fd1d1d); }
.sm-btn--yt { background: #ff0000; }
.sm-btn--fb { background: #1877f2; }
.sm-card__btn:hover { filter: brightness(0.94); color: #fff; }
