/* ==========================================================================
   SERVICE CARDS GRID, DOCTOR SCHEDULE TABLE & QUICK ACTION BAR
   ========================================================================== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.8rem;
    color: var(--rs-navy);
    font-weight: 700;
    margin: 0;
}

.link-see-all {
    color: var(--rs-teal);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

/* 1. Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

/* Responsif untuk layar HP/Tablet */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-item-card {
    background: #ffffff;
    border: 1px solid var(--rs-border, #e2e8f0);
    border-radius: var(--rs-radius, 16px);
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.service-item-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--rs-shadow, 0 10px 25px rgba(0,0,0,0.08));
    border-color: var(--rs-teal, #00a896);
}

/* 2. Standardisasi Ukuran & Presisi Ring Icon (Center Perfect) */
.service-icon-wrapper,
.icon-circle {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: var(--rs-teal-light, rgba(0, 168, 150, 0.1));
    margin: 0 auto 12px auto;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    padding: 0 !important;
    box-sizing: border-box;
}

/* Ukuran Font Icon (Bootstrap Icons / FontAwesome) */
.service-icon-wrapper i,
.icon-circle i {
    font-size: 1.6rem !important; /* ~25px */
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

/* Ukuran File SVG Gambar (Ambulance, Lab, dll) Supaya Tengah Presisi */
.service-icon-wrapper img,
.icon-circle img {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain;
    display: block !important;
    margin: auto !important;
    vertical-align: middle !important;
    align-self: center !important;
}

/* Variasi Warna Latar Lingkaran Soft per Layanan */
.bg-teal-light    { background-color: rgba(0, 168, 150, 0.12) !important; color: #00a896 !important; }
.bg-navy-light    { background-color: rgba(9, 60, 113, 0.12) !important; color: #093c71 !important; }
.bg-danger-light  { background-color: rgba(220, 53, 69, 0.12) !important; color: #dc3545 !important; }
.bg-purple-light  { background-color: rgba(111, 66, 193, 0.12) !important; color: #6f42c1 !important; }
.bg-indigo-light  { background-color: rgba(102, 16, 242, 0.12) !important; color: #6610f2 !important; }
.bg-warning-light { background-color: rgba(255, 193, 7, 0.18) !important; color: #d97706 !important; }

/* 3. Quick Emergency & Menu Bar (Mencegah Teks Tertekuk/Turun Baris) */
.quick-card-emergency {
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.icon-emergency-box {
    width: 60px;
    height: 60px;
}

.icon-emergency-box .svg-icon-white {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.quick-menu-bar {
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    width: 100%;
}

.quick-menu-item {
    flex: 1;
    border-right: 1px solid #e2e8f0; /* Garis pemisah vertikal */
}

.quick-menu-item.no-border {
    border-right: none;
}

.quick-menu-item h6 {
    font-size: 0.95rem;
    color: var(--rs-navy, #093c71);
}

.quick-menu-item small {
    font-size: 0.78rem;
}

.text-nowrap {
    white-space: nowrap !important; /* Memaksa teks tetap 1 baris lurus */
}

/* 4. Doctors Schedule Modern Table */
.schedule-table-container {
    background: #ffffff;
    border-radius: var(--rs-radius, 16px);
    border: 1px solid var(--rs-border, #e2e8f0);
    overflow: hidden;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th {
    background: #f1f5f9;
    color: var(--rs-navy, #093c71);
    text-align: left;
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.schedule-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--rs-border, #e2e8f0);
    font-size: 0.9rem;
}

/* Adjustments Responsif Layar Kecil */
@media (max-width: 991px) {
    .quick-menu-bar {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
    .quick-menu-item {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        width: 100%;
        padding-bottom: 10px;
    }
    .quick-menu-item.no-border {
        border-bottom: none;
        padding-bottom: 0;
    }
}