/*
 * Template 2098 Health — RS Karitas Waitabula
 * Cleaned & Optimized CSS
 * 
 * Perubahan dari versi asli:
 *  - Duplikasi selector dihapus (ada 12+ selector ganda)
 *  - @keyframes darkFade dihapus (tidak pernah dipakai)
 *  - @keyframes spinner -webkit- dihapus (digabung dengan yang standar)
 *  - Selector .btn[style*="..."] dihapus (inline-style override tidak reliable)
 *  - Konflik gaya tombol appointment (#cf-submit) dikonsolidasi
 *  - Responsive media query yang tumpang tindih dirapikan
 *  - Komentar section dibuat konsisten
 */

@import url(tooplate.css);


/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --primary:          #0b3d91;
    --accent:           #42b2a6;
    --soft-bg:          #e0f7ff;
    --text-dark:        #1a1a1a;
    --text-muted:       #555;
    --white:            #ffffff;
    --dark-bg:          #181a1b;
    --dark-card:        #1f1f1f;
    --radius-sm:        8px;
    --radius-md:        12px;
    --radius-pill:      50px;
    --shadow-sm:        0 4px 12px rgba(0,0,0,0.08);
    --shadow-md:        0 8px 25px rgba(0,0,0,0.12);
    --shadow-lg:        0 12px 35px rgba(0,0,0,0.15);
    --transition:       0.3s ease;
    --bounce:           0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


/* ============================================================
   BASE
   ============================================================ */
html { -webkit-font-smoothing: antialiased; }

body {
    background: var(--soft-bg);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    color: var(--text-dark);
}

/* Transisi global untuk dark mode */
body,
.navbar, .navbar a,
.dark-toggle,
section, header, footer {
    transition:
        background-color 0.4s ease,
        color            0.4s ease,
        border-color     0.4s ease;
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; }

h1 { font-size: 4.5em; color: var(--primary); }
h2 { font-size: 3em;   color: var(--primary); }
h3 { font-size: 1.8em; color: var(--text-dark); }
h4 { font-size: 1.6em; color: var(--text-dark); }
p  { font-size: 15px;  line-height: 1.8; color: #000; }


/* ============================================================
   GENERAL / UTILITIES
   ============================================================ */
a:hover { color: var(--accent); text-decoration: underline; }

::-webkit-scrollbar       { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 6px; }

.text-align-right  { text-align: right; }
.text-align-center { text-align: center; }

.section-title    { padding-bottom: 20px; }
.section-title h2 { margin-top: 0; }

.border-top {
    border-top: 1px solid #f2f2f2;
    margin-top: 4em;
    padding-top: 2.5em;
}

#google-map {
    margin: 30px 0;
    padding: 0;
    line-height: 0;
    background: #eaf4ff;
    border-top: 3px solid #1e90ff;
    border-bottom: 3px solid #1e90ff;
}


/* ============================================================
   BUTTONS
   ============================================================ */

/* --- Base --- */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform var(--bounce), box-shadow var(--bounce), filter var(--transition);
}

/* Shine effect — satu deklarasi untuk semua tombol yang butuh shine */
.btn::after,
.section-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}
.btn:hover::after,
.section-btn:hover::after { left: 100%; }

/* --- Primary / Section / Submit --- */
.btn-primary,
.section-btn,
#appointment button#cf-submit {
    background: linear-gradient(135deg, var(--accent), var(--primary)) !important;
    color: var(--white) !important;
    border: none !important;
    box-shadow: 0 5px 15px rgba(11,61,145,0.2) !important;
}

.btn-primary:hover,
.section-btn:hover,
#appointment button#cf-submit:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 25px rgba(66,178,166,0.3), 0 8px 15px rgba(11,61,145,0.2) !important;
    filter: brightness(1.05);
    cursor: pointer;
}

.btn-primary:active,
.section-btn:active,
#appointment button#cf-submit:active {
    transform: translateY(-1px) scale(0.97);
    box-shadow: 0 4px 10px rgba(11,61,145,0.3) !important;
}

/* --- Danger (Cek Booking) --- */
.btn-danger {
    background: linear-gradient(135deg, #ff7675, #d63031) !important;
    border: none !important;
    color: var(--white) !important;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(214,48,49,0.2) !important;
    transition: all var(--bounce) !important;
}

/* --- Success (Log In) --- */
.btn-success {
    background: linear-gradient(135deg, #55efc4, #00b894) !important;
    border: none !important;
    color: var(--white) !important;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,184,148,0.2) !important;
    transition: all var(--bounce) !important;
}

.btn-danger:hover,
.btn-success:hover {
    transform: translateY(-4px) scale(1.03);
    filter: brightness(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}

.btn-danger:active,
.btn-success:active { transform: translateY(-1px) scale(0.97); }

/* --- Warning (Tampilkan Semua Dokter) --- */
.btn-warning {
    background: linear-gradient(135deg, var(--accent), var(--primary)) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: var(--radius-pill) !important;
    padding: 12px 35px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(11,61,145,0.2) !important;
    transition: all var(--bounce) !important;
}

.btn-warning:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 20px rgba(11,61,145,0.3) !important;
    filter: brightness(1.1);
}

.btn-warning:active {
    transform: scale(0.95) translateY(2px) !important;
    box-shadow: 0 2px 5px rgba(11,61,145,0.3) !important;
    filter: brightness(0.9);
}

/* --- Secondary --- */
.btn-secondary { background: #e0e0e0; color: #333; }

/* --- Tombol di dalam .news-info --- */
.news-info .btn {
    margin-top: 15px;
    border-radius: 10px;
    padding: 10px 24px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.news-info .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(66,178,166,0.3);
}

/* --- Section Buttons (bawah konten) --- */
.text-align-center .section-btn {
    display: inline-block;
    margin: 0 10px 15px;
    padding: 14px 35px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.text-align-center .btn-default {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.text-align-center .btn-default:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* --- Tombol Cari Jadwal Dokter --- */
#doctor-praktek-pencarian .btn {
    background: linear-gradient(135deg, var(--primary), #082d6b) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: var(--radius-pill) !important;
    padding: 8px 30px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(11,61,145,0.2) !important;
    transition: all var(--transition) !important;
}

#doctor-praktek-pencarian .btn:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
    box-shadow: 0 6px 15px rgba(11,61,145,0.3) !important;
}

/* Input pencarian */
#doctor-praktek-pencarian input[type="text"],
#carikeyword input[type="text"] {
    border-radius: var(--radius-pill) !important;
    padding-left: 20px !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02) !important;
    transition: all var(--transition);
}

#doctor-praktek-pencarian input[type="text"]:focus,
#carikeyword input[type="text"]:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 8px rgba(66,178,166,0.2) !important;
    outline: none;
}


/* ============================================================
   PRE LOADER
   ============================================================ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
}

.spinner { border: 1px solid transparent; border-radius: 3px; position: relative; }

.spinner::before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    top: 50%; left: 50%;
    width: 45px; height: 45px;
    margin-top: -10px; margin-left: -10px;
    border-radius: 50%;
    border: 1px solid #575757;
    border-top-color: #fff;
    animation: spinner 0.9s linear infinite;
}

@keyframes spinner { to { transform: rotate(360deg); } }

/* ============================================================
   HEADER
   ============================================================ */
header {
    background: #fff;
    border-bottom: 1px solid #f2f2f2;
    display: flex;
    height: 45px;
}

header .col-md-8 { padding-right: 0; }

header p,
header span {
    font-size: 11px;
    line-height: 24px;
    padding-top: 12px;
}

header a,
header span { color: #000; }

header span {
    font-weight: 500;
    display: inline-block;
    padding: 11px 15px;
}

header span.date-icon {
    border-left: 1px solid #f2f2f2;
    border-right: 1px solid #f2f2f2;
    padding-right: 19px;
    padding-left: 19px;
}

header span i { color: #000; margin-right: 5px; }


/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-default {
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: none;
    min-height: 80px;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.navbar-default .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-default .navbar-header {
    display: flex;
    align-items: center;
}

.navbar-default .navbar-brand {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.6em;
    padding: 0;
    line-height: 1.1;
}

.navbar-default .navbar-brand .fa { color: var(--accent); margin-right: 10px; }

.navbar-default .navbar-nav li a {
    color: var(--primary);
    font-weight: 500;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
}

.navbar-default .navbar-nav li a:hover {
    background: rgba(11,61,145,0.15);
    color: var(--primary);
}

.navbar-default .navbar-toggle .icon-bar { background: var(--primary); }

.navbar { padding-top: 8px; padding-bottom: 8px; }

/* Underline animasi pada link navbar */
.navbar .nav > li > a {
    position: relative;
    transition: background-color var(--transition), color var(--transition);
}

.navbar .nav > li > a::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 6px;
    width: 0; height: 2px;
    background: #0d6efd;
    transition: all var(--transition);
}

.navbar .nav > li > a:hover::after { width: 60%; left: 20%; }

/* Rapikan li navbar */
.navbar-nav > li { display: inline-flex; align-items: center; }


/* ============================================================
   DARK MODE TOGGLE
   ============================================================ */
.dark-toggle {
    border: none;
    background-color: #eaf6ff;
    color: #0d6efd;
    font-size: 16px;
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 8px;
    transition: background-color var(--transition), color var(--transition), transform 0.25s ease;
}

.dark-toggle:hover { background-color: #0d6efd; color: #fff; transform: scale(1.1); }


/* ============================================================
   SLIDER / HOME
   ============================================================ */
#home h1 { color: var(--white); padding-bottom: 10px; margin-top: 0; }

#home h3 {
    color: var(--white);
    font-size: 14px;
    font-weight: normal;
    line-height: inherit;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}

.slider .container { width: 100%; }

.slider .item {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 650px;
}

.slider .item-first  { background-image: url(../images/slider1.jpg); }
.slider .item-second { background-image: url(../images/slider2.jpg); }
.slider .item-third  { background-image: url(../images/slider3.jpg); }

.slider .caption {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    background-color: rgba(20,20,20,0.2);
    height: 100%;
    color: #fff;
    cursor: e-resize;
}

.slider .owl-dots {
    position: absolute;
    top: 575px;
    width: 100%;
    justify-content: center;
}

.owl-theme .owl-dots .owl-dot span {
    width: 8px; height: 8px;
    margin: 5px 7px;
    border: 2px solid #d9d9d9;
    background: transparent;
    border-radius: 30px;
    display: block;
    transition: opacity 200ms ease;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background-color: #fff;
    border-color: transparent;
}


/* ============================================================
   ABOUT
   ============================================================ */
#about {
    background: url('../images/about-bg.jpg') no-repeat top center / cover;
    padding-top: 150px;
    padding-bottom: 150px;
}

.profile img,
.profile figcaption { display: inline-block; vertical-align: top; margin-top: 1em; }

.profile img { border-radius: 100%; width: 65px; height: 65px; margin-right: 1em; }

.profile figcaption h3 { margin-top: 0; }

#about h6 { color: #858585; margin: 0; }


/* ============================================================
   GENERAL SECTIONS
   ============================================================ */
#about, #team, #news, #news-detail {
    position: relative;
    padding-top: 100px;
    padding-bottom: 100px;
}

#news, #service { text-align: center; }


/* ============================================================
   CARDS — News / Team / Ads
   CATATAN: .news-thumb didefinisikan lebih detail di section Edukasi,
   rule dasar di sini sebagai fallback untuk halaman lain.
   ============================================================ */
.team-thumb, .news-ads {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}

.team-thumb:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }


/* ============================================================
   AUTHOR
   ============================================================ */
.author {
    display: flex;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 1.5em;
    margin-top: 2em;
}

.author img {
    border-radius: 100%;
    width: 50px; height: 50px;
    margin-right: 10px;
}

.author .author-info { flex: 1; }
.author-info h5 { margin-bottom: 0; }


/* ============================================================
   SERVICE
   ============================================================ */
#service { background: linear-gradient(135deg, #e0f7ff, #c0f0ff); }
#service h2, #service h4 { color: var(--primary); }
#service p  { color: var(--text-muted); }

#service .fa {
    background: rgba(255,255,255,0.3);
    color: var(--accent);
    width: 100px; height: 100px;
    line-height: 100px;
    border-radius: 50%;
    font-size: 48px;
    margin-bottom: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}


/* ============================================================
   NEWS
   ============================================================ */
#news, #news-detail { background: #f9f9f9; }

#news-detail blockquote { margin: 30px 0; }

.news-detail-thumb .news-image img { border-radius: 10px; }
.news-detail-thumb h3 { margin-bottom: 8px; }

.news-image { margin-bottom: 30px; position: relative; }
.news-image img { width: 100%; }

.news-detail-thumb ul { margin: 32px 12px 22px 0; }
.news-detail-thumb ul li { list-style: circle; font-weight: normal; padding: 6px 12px 6px 0; }

.news-sidebar { margin-top: 16px; }

.news-social-share { text-align: center; padding-top: 22px; }

.news-social-share .btn {
    border-radius: 100px;
    font-size: 10px;
    font-weight: 600;
    margin: 2px 6px;
    padding: 8px 14px;
}

/* Override gradient untuk social share — warna spesifik brand */
.news-social-share .btn-primary { background: #3b5998 !important; }
.news-social-share .btn-success { background: #1da1f2 !important; }
.news-social-share .btn-danger  { background: #dd4b39 !important; }
.news-social-share a .fa { padding-right: 4px; }

.recent-post { padding: 2px 0 18px; }

.recent-post .media img {
    border-radius: 100%;
    width: 80px; height: 80px;
    margin-right: 5px;
}

.recent-post .media-heading { font-size: 16px; font-weight: 500; line-height: inherit; margin-top: 5px; }

.news-categories { margin-top: 8px; }
.news-categories li a { color: #2b2b2b; }

.news-ads {
    background: #fff;
    border-right: 4px solid #2b2b2b;
    padding: 42px;
    text-align: center;
    margin: 26px 0;
}

.news-ads.sidebar-ads { border-left: 4px solid #2b2b2b; border-right: 0; }
.news-ads h4 { font-size: 18px; }

.news-categories li,
.news-tags li { list-style: none; display: inline-block; margin: 4px; }

.news-tags h4 { padding-bottom: 6px; }

.news-tags li a {
    background: #393939;
    border-radius: 50px;
    color: #fff;
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    float: left;
    min-width: 30px;
    padding: 6px 12px;
    transition: all ease-in-out 0.4s;
}

.news-tags li a:hover { background: #4267b2; }


/* ============================================================
   APPOINTMENT
   ============================================================ */
#appointment { padding-top: 100px; }

#appointment label { color: #393939; font-weight: 500; }

#appointment .form-control {
    background: #f9f9f9;
    border: none;
    border-radius: 3px;
    box-shadow: none;
    font-size: 14px;
    margin-bottom: 15px;
    transition: all ease-in-out 0.4s;
}

#appointment input,
#appointment select { height: 45px; }

#appointment button#cf-submit { height: 55px; }


/* ============================================================
   TEAM
   ============================================================ */
.team-thumb {
    background-color: #f9f9f9;
    border-radius: 0 0 10px 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.team-info { padding: 20px 30px 0; }

.team-contact-info { border-top: 1px solid #e9e9e9; padding-top: 1.2em; margin-top: 1.5em; }
.team-contact-info .fa { margin-right: 5px; display: inline-block; }
.team-contact-info p   { margin-bottom: 2px; }
.team-contact-info a   { color: #757575; }

.team-thumb .social-icon li { font-weight: 500; }

.team-thumb .social-icon li a {
    background: #fff;
    border-radius: 100%;
    font-size: 20px;
    width: 50px; height: 50px;
    line-height: 50px;
    margin: 0 2px;
}

.team-thumb .social-icon {
    opacity: 0;
    transform: translateY(100%);
    transition: 0.5s 0.2s;
    text-align: center;
    position: relative;
    top: 0;
}

.team-thumb:hover .social-icon {
    opacity: 1;
    transition-delay: 0.3s;
    transform: translateY(0);
    top: -22em;
}


/* ============================================================
   SOCIAL ICON
   ============================================================ */
.social-icon { position: relative; padding: 0; margin: 0; }
.social-icon li { display: inline-block; list-style: none; }

.social-icon li a {
    background: rgba(255,255,255,0.25);
    color: var(--primary);
    border-radius: 50%;
    width: 35px; height: 35px;
    line-height: 35px;
    text-align: center;
    display: inline-block;
    margin: 0 4px;
    transition: all var(--transition);
}

.social-icon li a:hover {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: #fff;
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: rgba(240,255,255,0.3);
    backdrop-filter: blur(12px);
    color: var(--text-muted);
    padding: 80px 0 40px;
    border-radius: 15px;
}

footer h4  { color: var(--primary); font-weight: 600; margin-bottom: 15px; }
footer a   { color: #000; }
footer a:hover { color: var(--accent); }

.contact-info { padding-top: 10px; }

.contact-info .fa {
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    width: 35px; height: 35px;
    line-height: 35px;
    text-align: center;
    margin-right: 5px;
}

.latest-stories { margin-bottom: 20px; }

.stories-image,
.stories-info { display: inline-block; vertical-align: top; }

.stories-image img { border-radius: 100%; width: 65px; height: 65px; }

.stories-info { margin-left: 15px; }
.stories-info h5 { margin-bottom: 2px; }
.stories-info span { color: #000; font-size: 12px; }

.opening-hours p    { line-height: 18px; }
.opening-hours span { font-weight: 500; display: inline-block; padding-left: 10px; }

.copyright-text p,
.footer-link a { color: #858585; font-size: 12px; font-weight: 500; }

.footer-link a { display: inline-block; padding: 0 10px; margin-top: 4px; }

.angle-up-btn { position: relative; bottom: 4em; display: block; }

.angle-up-btn a {
    background: #fff;
    border: 1px solid #f2f2f2;
    border-radius: 3px;
    font-size: 20px;
    color: #393939;
    display: inline-block;
    text-align: center;
    width: 40px; height: 40px;
    line-height: 38px;
    transition: transform 0.1s ease-in;
}

.angle-up-btn a:hover { background: #4267b2; color: #fff; transform: translateY(-5px); }


/* ============================================================
   ANTREAN LIVE
   ============================================================ */
.antrean-live {
    padding: 80px 0;
    background: linear-gradient(135deg, #e0f7ff, #f5fcff);
}

.antrean-card {
    background: #fff;
    border-radius: 18px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition);
}

.antrean-card:hover { transform: translateY(-5px); }
.antrean-poli   { font-size: 18px; font-weight: 600; color: var(--primary); }
.antrean-nomor  { font-size: 48px; font-weight: 700; color: var(--accent); margin: 10px 0; }
.antrean-status { font-size: 13px; color: #28a745; font-weight: 500; }


/* ============================================================
   EDUKASI SECTION
   ============================================================ */
#edukasi {
    background: linear-gradient(135deg, #e8f5ff, #f5fbff);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Dekorasi background */
#edukasi::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(66,178,166,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(11,61,145,0.05) 0%, transparent 50%);
    pointer-events: none;
}

#edukasi .section-title h2 {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 10px;
}

#edukasi .section-title p {
    font-size: 1.1em;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
}

/* Tab Navigasi */
.edukasi-tabs { margin-bottom: 40px; }

.edukasi-tabs .nav-tabs {
    border-bottom: 3px solid #e0e0e0;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0 20px;
}

.edukasi-tabs .nav-tabs > li {
    margin-bottom: -3px;
    flex: 0 1 auto;
}

.edukasi-tabs .nav-tabs > li > a {
    color: #555;
    font-weight: 600;
    font-size: 15px;
    padding: 16px 28px;
    border: 2px solid transparent;
    border-radius: 12px 12px 0 0;
    background: #f5f5f5;
    margin-right: 0;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.edukasi-tabs .nav-tabs > li > a i {
    font-size: 20px;
    transition: transform var(--transition), color var(--transition);
}

.edukasi-tabs .nav-tabs > li > a:hover {
    background: rgba(66,178,166,0.1);
    color: var(--primary);
    border-color: transparent;
    transform: translateY(-2px);
}

.edukasi-tabs .nav-tabs > li > a:hover i { transform: scale(1.15); color: var(--accent); }

.edukasi-tabs .nav-tabs > li.active > a,
.edukasi-tabs .nav-tabs > li.active > a:hover,
.edukasi-tabs .nav-tabs > li.active > a:focus {
    background: linear-gradient(135deg, var(--accent), var(--primary)) !important;
    color: var(--white) !important;
    border: none !important;
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 -3px 15px rgba(66,178,166,0.3);
    transform: translateY(-2px);
}

.edukasi-tabs .nav-tabs > li.active > a i { color: #fff; transform: scale(1.1); }

/* Tab Content */
.tab-content { padding-top: 20px; }
.tab-content .row { margin: 0 -10px; }
.tab-content [class*="col-"] { padding: 0 10px 25px; }

/* News Thumb (card edukasi) */
.news-thumb {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all var(--bounce);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
}

.news-thumb:hover { transform: translateY(-8px); box-shadow: 0 12px 35px rgba(11,61,145,0.15); }

/* Image Container */
.news-thumb > a {
    position: relative;
    display: block;
    padding-top: 60%;
    overflow: hidden;
}

.news-thumb > a img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-thumb:hover > a img { transform: scale(1.08); }

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    border: none;
}

/* News Info */
.news-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-info h3 {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary);
    margin: 10px 0 12px;
    line-height: 1.4;
    min-height: 60px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-info h3 a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
.news-info h3 a:hover { color: var(--accent); }

.news-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Badges */
.badge-kategori {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 6px 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.badge-video      { background: linear-gradient(135deg, #ff6b6b, #ee5a52); color: #fff; }
.badge-artikel    { background: linear-gradient(135deg, var(--accent), #2d9687); color: #fff; }
.badge-infografis { background: linear-gradient(135deg, #ffa502, #ff8c00); color: #fff; }

.badge-topik {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(11,61,145,0.1);
    color: var(--primary);
    border: 1px solid rgba(11,61,145,0.2);
    margin-bottom: 8px;
}

/* Infografis Overlay */
.infografis-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11,61,145,0.85), rgba(66,178,166,0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.news-thumb:hover .infografis-overlay { opacity: 1; }

.infografis-overlay i { color: #fff; font-size: 52px; animation: pulseZoom 2s infinite; }

@keyframes pulseZoom {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.1); }
}

/* Modal Lightbox */
.modal-gambar {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    padding-top: 50px;
    overflow: auto;
    background: rgba(0,0,0,0.96);
    backdrop-filter: blur(5px);
}

.modal-gambar-content {
    margin: auto;
    display: block;
    width: 85%;
    max-width: 1000px;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    animation: zoomIn 0.4s var(--bounce);
}

@keyframes zoomIn {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.close-gambar {
    position: absolute;
    top: 25px; right: 40px;
    color: #fff;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.close-gambar:hover { background: var(--accent); transform: rotate(90deg); }

#captionGambar {
    margin: auto;
    display: block;
    width: 85%;
    max-width: 800px;
    text-align: center;
    color: #fff;
    padding: 25px 0;
    font-size: 18px;
    font-weight: 500;
}

.edukasi-item          { transition: all var(--transition); }
.edukasi-item.hidden   { display: none; }


/* ============================================================
   DARK MODE
   ============================================================ */

/* Global */
body.dark-mode { background-color: #121212 !important; color: #e4e6eb; }

/* Header */
body.dark-mode header { background-color: #1a1a1a !important; border-bottom: 1px solid #333; }
body.dark-mode header span,
body.dark-mode header a,
body.dark-mode header i { color: #fff !important; }

/* Navbar */
body.dark-mode .navbar {
    background: linear-gradient(90deg, #1f2933, #111827) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

body.dark-mode .navbar-default { background: #181a1b !important; border-color: #333; }

body.dark-mode .navbar-brand,
body.dark-mode .navbar-brand small { color: #fff !important; }

body.dark-mode .navbar-default .navbar-nav > li > a { color: #fff !important; }

body.dark-mode .navbar-default .navbar-nav > li > a:hover,
body.dark-mode .navbar-default .navbar-nav > li > a:focus {
    color: var(--accent) !important;
    background-color: transparent !important;
    text-shadow: 0 0 10px rgba(66,178,166,0.5);
}

body.dark-mode .navbar-default .navbar-nav > .active > a,
body.dark-mode .navbar-default .navbar-nav > .active > a:hover,
body.dark-mode .navbar-default .navbar-nav > .active > a:focus {
    background-color: rgba(255,255,255,0.1) !important;
    color: var(--accent) !important;
    border-radius: var(--radius-sm);
}

body.dark-mode .navbar .nav > li > a:hover {
    background-color: rgba(255,255,255,0.08);
    border-radius: 6px;
}

body.dark-mode .dark-toggle { background-color: #333; color: #ffd43b; }

/* Sections */
body.dark-mode section,
body.dark-mode footer,
body.dark-mode #news,
body.dark-mode #service { background-color: #181a1b !important; }

/* Typography */
body.dark-mode h1, body.dark-mode h2,
body.dark-mode h3, body.dark-mode h4,
body.dark-mode h5, body.dark-mode h6 { color: #fff !important; }

body.dark-mode p  { color: #dcdcdc; }
body.dark-mode li { color: #e0e0e0; }
body.dark-mode a  { color: #8ab4f8 !important; }
body.dark-mode a:hover { color: #aecbfa !important; }

/* Cards */
body.dark-mode .news-thumb,
body.dark-mode .team-thumb,
body.dark-mode .news-ads {
    background: var(--dark-card) !important;
    border: 1px solid #333;
    color: #eaeaea;
}

body.dark-mode .news-thumb:hover { box-shadow: 0 12px 35px rgba(66,178,166,0.2); }

body.dark-mode .news-info h3,
body.dark-mode .news-info h3 a { color: #fff; }

body.dark-mode .news-info h3 a:hover { color: var(--accent); }
body.dark-mode .news-info p          { color: #aaa; }

/* Forms */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select,
body.dark-mode .form-control {
    background-color: #252525 !important;
    color: #fff !important;
    border: 1px solid #444 !important;
}

body.dark-mode input::placeholder,
body.dark-mode .form-control::placeholder { color: #aaa !important; }

body.dark-mode select.form-control option { background-color: #252525; color: #fff; }

body.dark-mode #appointment label { color: #e0e0e0 !important; }

/* Buttons */
body.dark-mode .btn {
    background: linear-gradient(135deg, var(--accent), var(--primary)) !important;
    color: #fff !important;
    box-shadow: 0 8px 25px rgba(11,61,145,0.4) !important;
}

body.dark-mode .btn-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5253) !important;
    box-shadow: 0 4px 15px rgba(238,82,83,0.3) !important;
}

body.dark-mode .btn-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
    box-shadow: 0 4px 15px rgba(39,174,96,0.3) !important;
}

body.dark-mode .btn-danger:hover,
body.dark-mode .btn-success:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4) !important;
}

body.dark-mode .btn-warning {
    background: linear-gradient(135deg, var(--accent), var(--primary)) !important;
    color: #fff !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5) !important;
}

body.dark-mode #appointment button#cf-submit {
    background: linear-gradient(135deg, var(--accent), var(--primary)) !important;
    border: none !important;
    box-shadow: 0 5px 15px rgba(11,61,145,0.4) !important;
}

body.dark-mode #appointment button#cf-submit:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 25px rgba(66,178,166,0.4), 0 8px 15px rgba(11,61,145,0.3) !important;
    filter: brightness(1.1);
}

body.dark-mode #appointment button#cf-submit:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 10px rgba(11,61,145,0.5) !important;
}

/* Edukasi dark */
body.dark-mode #edukasi { background: linear-gradient(135deg, #0f1419, #1a1f2e); }

body.dark-mode #edukasi .section-title h2 { color: #fff; }
body.dark-mode #edukasi .section-title p  { color: #aaa; }

body.dark-mode .edukasi-tabs .nav-tabs { border-bottom: 3px solid #333; }

body.dark-mode .edukasi-tabs .nav-tabs > li > a { background: #2a2a2a; color: #ccc; }
body.dark-mode .edukasi-tabs .nav-tabs > li > a:hover { background: rgba(66,178,166,0.15); }
body.dark-mode .edukasi-tabs .nav-tabs > li.active > a { border-bottom: 3px solid var(--accent); }

body.dark-mode .badge-topik {
    background: rgba(66,178,166,0.15);
    color: var(--accent);
    border-color: rgba(66,178,166,0.3);
}

body.dark-mode .author { border-top-color: #333; }
body.dark-mode .author-info h5 { color: var(--accent); }
body.dark-mode .author-info span { color: #777; }

/* Footer */
body.dark-mode footer h4,
body.dark-mode footer p,
body.dark-mode footer a    { color: #ccc !important; }
body.dark-mode .stories-info span { color: #fff; }
body.dark-mode .team-contact-info a,
body.dark-mode .opening-hours span { color: #ccc !important; }

/* Table */
body.dark-mode .table tr,
body.dark-mode .table td,
body.dark-mode .table th {
    background-color: rgba(32,32,32,0.05) !important;
    color: #fff !important;
    border-color: #fff !important;
}

body.dark-mode .table-striped > tbody > tr:nth-of-type(odd) { background-color: #1a1a1a !important; }
body.dark-mode .table tbody tr:hover { background-color: #3a3a3a !important; color: var(--accent) !important; }

/* Search dark */
body.dark-mode #doctor-praktek-pencarian .btn {
    background: linear-gradient(135deg, var(--primary), #082d6b) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
}

body.dark-mode #doctor-praktek-pencarian input[type="text"],
body.dark-mode #carikeyword input[type="text"] {
    background: #2a2a2a !important;
    border-color: #444 !important;
    color: #fff !important;
}

/* Antrean dark */
body.dark-mode .antrean-live { background: #111827; }
body.dark-mode .antrean-card { background: var(--dark-card); border: 1px solid #333; }
body.dark-mode .antrean-poli { color: var(--accent); }

/* btn-default dark */
body.dark-mode .text-align-center .btn-default {
    background: #2a2a2a;
    color: var(--accent);
    border-color: var(--accent);
}

body.dark-mode .text-align-center .btn-default:hover { background: var(--accent); color: #fff; }


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media only screen and (max-width: 992px) {
    h1 { font-size: 3.5em; }
    h2 { font-size: 2.5em; }

    header { height: inherit; padding-bottom: 10px; }
    header .text-align-right { text-align: left; }
    header span { padding-top: 0; padding-left: 0; padding-bottom: 0; }
    header span.date-icon { border: 0; padding: 0; }

    .slider .item { background-position: center; }

    #edukasi { padding: 60px 0; }
    #edukasi .section-title h2 { font-size: 2em; }
    .edukasi-tabs .nav-tabs > li > a { padding: 12px 20px; font-size: 14px; }
    .news-info h3 { font-size: 1.2em; min-height: auto; }
}

@media only screen and (max-width: 767px) {
    h1 { font-size: 2.8em; }
    h2 { font-size: 2em; }

    .navbar-default .navbar-collapse,
    .navbar-default .navbar-form { border-color: transparent; }
    .navbar-default .navbar-nav li.appointment-btn { margin-left: 15px; }
    .navbar-default .navbar-nav li a { display: inline-block; padding: 8px 10px; }

    .news-sidebar { margin-top: 2em; }
    #appointment-form { padding: 4em 0; }

    footer { padding-top: 60px; padding-bottom: 0; }
    .footer-thumb { padding-bottom: 10px; }
    .border-top { text-align: center; }
    .copyright-text { margin-top: 10px; }
    .angle-up-btn { bottom: 10em; }

    .edukasi-tabs .nav-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding: 0 10px;
    }

    .edukasi-tabs .nav-tabs > li { flex-shrink: 0; }
    .edukasi-tabs .nav-tabs > li > a i { font-size: 18px; }
    .edukasi-tabs .nav-tabs > li > a span { font-size: 13px; }

    .modal-gambar-content { width: 95%; }
    .close-gambar { top: 15px; right: 20px; font-size: 35px; width: 45px; height: 45px; }

    .text-align-center .section-btn { display: block; margin: 10px auto; max-width: 300px; }
}

@media only screen and (max-width: 639px) {
    h1 { font-size: 3em; line-height: 1.2em; }
    h2 { font-size: 2.1em; }
    h4 { font-size: 1.4em; }
    #home h3 { font-size: 11px; letter-spacing: 1px; }

    #edukasi .section-title h2 { font-size: 1.7em; }
    #edukasi .section-title p  { font-size: 0.95em; }
    .news-info { padding: 15px; }
    .news-info h3 { font-size: 1.1em; }
    .badge-kategori { font-size: 10px; padding: 5px 10px; }
}


/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.edukasi-tabs .nav-tabs > li > a:focus,
.news-info .btn:focus,
.section-btn:focus,
.dark-toggle:focus {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}


/* ============================================================
   PRINT
   ============================================================ */
@media print {
    #edukasi { background: white; }
    .edukasi-tabs, .news-thumb form, .text-align-center { display: none; }
    .news-thumb { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
}