/* --- MODAL SYSTEM --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 16, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    background: #0b1121; /* var(--bg-container) */
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    overflow: hidden;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.05);
    border: none;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    transform: rotate(90deg);
}

.modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
    padding-right: 50px;
}

.modal-header h2 {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    margin: 0 0 8px 0;
    font-size: 24px;
}

.modal-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    color: #cbd5e1;
}

/* Custom Scrollbar for Modal Body */
.modal-body::-webkit-scrollbar {
    width: 8px;
}
.modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

.modal-section h3 {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-section h3 i {
    color: #818cf8;
}

.modal-section h4 {
    color: #e2e8f0;
    font-size: 14px;
    margin: 0 0 10px 0;
}

.modal-section p {
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
}

.small-note {
    font-size: 13px !important;
    color: #94a3b8;
}

.highlight-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px;
}

/* Lists inside modals */
.modal-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.modal-list li {
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
}
.modal-list li:last-child {
    border-bottom: none;
}

.modal-list.highlight-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.modal-list.highlight-list li strong {
    color: #fff;
    font-weight: 600;
}

.modal-list.custom-bullets li {
    padding-left: 20px;
    position: relative;
    border-bottom: none;
}
.modal-list.custom-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
}

/* Grids */
.modal-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.clinic-schedule-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 20px;
    font-size: 13px;
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 8px;
}
.clinic-schedule-grid .day {
    font-weight: 600;
    color: #fff;
}

/* Tables */
.modal-table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}
.modal-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
    min-width: 400px; /* ensure scroll on very small screens */
}
.modal-table th {
    background: rgba(255,255,255,0.05);
    padding: 12px 16px;
    color: #fff;
    font-weight: 600;
}
.modal-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.modal-table tr:last-child td {
    border-bottom: none;
}

.free-badge {
    display: inline-block;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}

/* --- MOBILE RESPONSIVENESS (for "that design not better in phones fix tht") --- */
@media (max-width: 768px) {
    .modal-grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .modal-header {
        padding: 20px;
    }
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
        gap: 20px;
    }
    
    .clinic-schedule-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .clinic-schedule-grid .day {
        margin-top: 8px;
        color: #38bdf8;
    }
    
    .deck-section {
        padding: 16px;
    }

    .clinical-units-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 10px;
    }
    .modal-content {
        max-height: 95vh;
    }
    .floor-switch-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}
body {
    background: radial-gradient(circle at center, #111827 0%, #050810 100%);
    color: #cbd5e1;
}

/* =========================================
   HOME PAGE (index.php) STYLES
   ========================================= */

:root {
    --navy-blue: #0f172a;
    --navy-dark: #050810;
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --text-dark: #f8fafc;
    --text-light: #94a3b8;
    --bg-light: rgba(255, 255, 255, 0.03);
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Colors & Typography */
.text-navy { color: #cbd5e1 !important; }
.text-gold { color: var(--gold) !important; }
.bg-navy { background-color: var(--navy-dark) !important; }
.text-muted { color: #94a3b8 !important; }

/* Navbar */
.site-navbar {
    background: var(--navy-blue);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.brand-text {
    line-height: 1.2;
}
.brand-title {
    font-family: 'Source Serif 4', serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}
.brand-subtitle {
    font-size: 11px;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.site-navbar .nav-link {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    transition: color 0.3s ease;
}
.site-navbar .nav-link:hover {
    color: var(--gold);
}

/* Hero Section */
.hero-slider {
    position: relative;
    height: 80vh;
    min-height: 600px;
    background: var(--navy-dark);
}
.hero-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 44, 74, 0.6) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
}
.hero-title {
    font-family: 'Source Serif 4', serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-subtitle {
    display: block;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--gold-light);
    margin-top: 10px;
}
.hero-tagline {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    max-width: 600px;
}
.hero-actions {
    display: flex;
    gap: 15px;
}
.scroll-cue {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 24px;
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* Buttons */
.btn-gold {
    background-color: var(--gold);
    color: var(--navy-dark);
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-gold:hover {
    background-color: #e6c855;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}
.btn-outline-navy {
    border: 2px solid var(--navy-blue);
    color: var(--navy-blue);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-outline-navy:hover {
    background-color: var(--navy-blue);
    color: #fff;
}

/* Quick Facts Strip */
.stats-strip {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    z-index: 10;
    margin-top: -30px;
    border-radius: 12px;
}
.stats-strip i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 15px;
    display: block;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}
.stat-value {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* About Aside */
.about-aside {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 40px;
    border-radius: 16px;
    border-bottom: 4px solid var(--gold);
    border-top: 1px solid var(--glass-border);
    border-left: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}
.about-aside p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}
.about-aside span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold-light);
    font-weight: 600;
}

/* Contact Section */
.contact-wrapper {
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}
.contact-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}
.contact-detail-row:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.15);
}
.contact-detail-row i {
    font-size: 24px;
    color: var(--gold);
    margin-top: 5px;
}

/* =========================================
   QUICK ACCESS RIBBON
   ========================================= */
.rib-carousel-container {
    width: 100%;
    display: flex;
    justify-content: center;
}
.ribbon-carousel {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
}

/* Hide scrollbar for a cleaner look */
.ribbon-carousel::-webkit-scrollbar {
    display: none;
}
.ribbon-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.pos-1 { order: 1; }
.pos-2 { order: 2; }
.pos-3 { order: 3; }
.pos-4 { order: 4; }
.pos-5 { order: 5; }
.pos-6 { order: 6; }
.rib-btn {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: #cbd5e1;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.rib-btn i {
    color: var(--gold);
    font-size: 18px;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}
.rib-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #fff;
    border-color: #38bdf8;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.2);
}
.rib-btn:hover i {
    color: var(--gold-light);
}



@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .stats-strip { margin-top: 0; border-radius: 0; }
    .rib-btn { padding: 12px 24px; font-size: 14px; width: 100%; justify-content: center; }
    .ribbon-carousel { flex-direction: column; gap: 12px; }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, #ffc107 100%);
    color: var(--navy);
    border: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    cursor: pointer;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    background: linear-gradient(135deg, #ffc107 0%, var(--gold) 100%);
    color: var(--navy);
}
