/* ============================================================
   RSU Jeumpa Hospital – Main Stylesheet
   File: hospital-web/public/assets/css/style.css
   ============================================================ */

/* ── CSS Variables ────────────────────────────────────────── */
:root {
    --primary:      #006838; 
    --primary-dark: #feee02;
    --secondary:    #77cc4c;
    --accent:       #e74c3c;
    --text-dark:    #2c3e50;
    --text-muted:   #6c757d;
    --bg-light:     #f8fafc;
    --border:       #e9ecef;
    --shadow:       0 4px 24px rgba(0,0,0,.08);
    --shadow-hover: 0 8px 32px rgba(26,111,196,.18);
    --radius:       12px;
    --font-main:    'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
    --transition:   all .25s ease;
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background: #fff;
    line-height: 1.7;
}

a { color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }

/* ── Top Bar ──────────────────────────────────────────────── */
.topbar { background: var(--primary); font-size: .85rem; }
.topbar a { color: rgba(255,255,255,.85); text-decoration: none; }
.topbar a:hover { color: #fff; }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar { border-bottom: 1px solid var(--border); }
.navbar-brand { font-weight: 700; }
.brand-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.brand-rsu {
    font-size: .7rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 3px;
}
.brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}
.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: .5rem .75rem !important;
    border-radius: 6px;
    font-size: .92rem;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    background: rgba(26,111,196,.06);
}
.dropdown-menu { border-radius: var(--radius); min-width: 220px; }
.dropdown-item:hover { background: rgba(26,111,196,.07); color: var(--primary); }

/* ── Section Utilities ────────────────────────────────────── */
.section-badge {
    display: inline-block;
    background: rgba(26,111,196,.1);
    color: var(--primary);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: .3rem .9rem;
    border-radius: 50px;
}
.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}
@media (max-width: 768px) { .section-title { font-size: 1.5rem; } }

/* ── Hero / Slider ────────────────────────────────────────── */
.hero-img {
    height: 580px;
    object-fit: cover;
}
@media (max-width: 768px) { .hero-img { height: 280px; } }

.carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 100%);
}
.carousel-caption {
    left: 8%;
    right: 20%;
    bottom: 20%;
    text-align: left;
    z-index: 10;
}
.hero-title {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero-subtitle {
    font-size: 1.1rem;
    opacity: .9;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
@media (max-width: 768px) {
    .hero-title { font-size: 1.4rem; }
    .hero-subtitle { font-size: .9rem; }
    .carousel-caption { left: 5%; right: 5%; bottom: 10%; }
}

/* Default hero (tanpa slider) */
.hero-default {
    min-height: 500px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* ── Quick Access ─────────────────────────────────────────── */
.quick-card {
    border: 1px solid var(--border);
    transition: var(--transition);
}
.quick-card:hover {
    border-color: var(--primary);
    background: rgba(26,111,196,.04) !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* ── About Section ────────────────────────────────────────── */
.about-img-wrapper { position: relative; }
.stats-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: #fff;
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius);
    display: flex;
    gap: 1.5rem;
    box-shadow: var(--shadow);
}
@media (max-width: 768px) {
    .stats-badge { position: static; margin-top: 1rem; border-radius: var(--radius); }
}
.stat-number { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1; }
.stat-label  { font-size: .75rem; opacity: .85; }
.info-card {
    border: 1px solid var(--border);
    transition: var(--transition);
}
.info-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

/* ── Service Cards ────────────────────────────────────────── */
.service-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    background: #fff;
}
.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.service-card--featured { background: #fff; }
.service-card__img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ── Emergency Section ────────────────────────────────────── */
.section-emergency { background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%); }
.emergency-card {
    background: rgba(255,255,255,.08);
    transition: var(--transition);
}
.emergency-card:hover { background: rgba(255,255,255,.15); }
.emergency-icon { font-size: 1.5rem; opacity: .9; }

/* ── Penunjang Medik ──────────────────────────────────────── */
.penunjang-card {
    border: 1px solid var(--border);
    transition: var(--transition);
}
.penunjang-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.penunjang-icon i {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: rgba(26,111,196,.08);
    border-radius: 50%;
    display: inline-block;
    text-align: center;
}

/* ── Schedule Table ───────────────────────────────────────── */
.schedule-table th { font-size: .85rem; font-weight: 600; letter-spacing: .5px; }
.doctor-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(26,111,196,.12);
    flex-shrink: 0;
}

/* ── Doctor Cards ─────────────────────────────────────────── */
.doctor-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.doctor-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.doctor-photo-wrapper {
    background: linear-gradient(135deg, #e8f0fe, #c3dafe);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.doctor-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top;
}
.doctor-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ── Post Cards ───────────────────────────────────────────── */
.post-card {
    background: #fff;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.post-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.post-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.post-title a:hover { color: var(--primary) !important; }

/* ── CTA Section ──────────────────────────────────────────── */
.section-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer { background: #1a2332; color: #adb5bd; }
.footer-logo-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}
.footer-heading {
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.footer-links { margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    font-size: .9rem;
    transition: var(--transition);
}
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contact { margin: 0; }
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin-bottom: .6rem;
    font-size: .88rem;
}
.footer-contact a { color: #adb5bd; text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.2);
}
.social-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: var(--transition);
}
.social-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── WhatsApp Float ───────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 16px rgba(37,211,102,.5);
    z-index: 999;
    text-decoration: none;
    transition: var(--transition);
}
.whatsapp-float:hover {
    background: #128c7e;
    color: #fff;
    transform: scale(1.1);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }

/* ── Page Banner (halaman dalam) ──────────────────────────── */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 4rem 0 3rem;
    color: #fff;
}
.page-banner h1 { font-family: var(--font-display); font-size: 2.2rem; }
.breadcrumb-item a { color: rgba(255,255,255,.75); text-decoration: none; }
.breadcrumb-item.active { color: rgba(255,255,255,.95); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ── Utility ──────────────────────────────────────────────── */
.bg-primary-subtle { background: rgba(26,111,196,.1) !important; }
.text-primary { color: var(--primary) !important; }

/* ── Jadwal Dokter Page ───────────────────────────────────── */
.day-tab-btn.active { background: var(--primary); color: #fff !important; border-color: var(--primary) !important; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
