/* assets/css/style.css - Symmetrical Clinical Content Styling & Color Palette */
:root {
    --teal: #087d8d;
    --teal-dark: #055a66;
    --teal-light: #e6f4f6;
    --teal-border: #b2e0e6;
    --navy: #0f172a;
    --gold: #f59e0b;
    --gold-dark: #d97706;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
}

.text-teal { color: var(--teal) !important; }
.text-teal-dark { color: var(--teal-dark) !important; }
.bg-teal { background-color: var(--teal) !important; }
.bg-teal-light { background-color: var(--teal-light) !important; }
.border-teal-border { border-color: var(--teal-border) !important; }

.btn-teal {
    background-color: var(--teal);
    color: #ffffff;
    border: none;
}
.btn-teal:hover {
    background-color: var(--teal-dark);
    color: #ffffff;
}

.btn-outline-teal {
    color: var(--teal);
    border: 2px solid var(--teal);
    background: transparent;
}
.btn-outline-teal:hover {
    background-color: var(--teal);
    color: #ffffff;
}

/* Preloader Overlay & Auto-Dismiss Rules */
#sitePreloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#sitePreloader.loaded {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

.logo-pulse-ring {
    display: inline-block;
    padding: 8px;
    background: var(--teal-light);
    border: 2px solid var(--teal-border);
    border-radius: 50%;
    animation: pulseRing 2s infinite;
}
.preloader-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}
.preloader-progress-bar {
    width: 220px;
    height: 6px;
    background: var(--teal-light);
    border-radius: 10px;
    overflow: hidden;
}
.preloader-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--teal);
    animation: fillProgress 1s forwards;
}
@keyframes pulseRing {
    0% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(8, 125, 141, 0.4); }
    70% { transform: scale(1.04); box-shadow: 0 0 0 15px rgba(8, 125, 141, 0); }
    100% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(8, 125, 141, 0); }
}
@keyframes fillProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Brand Navbar */
.brand-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--teal-border);
}
.brand-title-main {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--navy);
    line-height: 1.2;
}
.brand-sub {
    font-size: 0.75rem;
    color: var(--teal-dark);
    font-weight: 700;
}

/* High-Resolution Full Aspect-Ratio Banner Styling (No Cropping or Quality Loss) */
#heroBootstrapCarousel {
    width: 100%;
    background: #0f172a;
}
.hero-bs-img {
    width: 100%;
    height: auto;
    max-height: 750px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
    color: #ffffff;
    padding: 3.5rem 0;
}
.eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    text-uppercase: uppercase;
    letter-spacing: 1px;
    color: var(--teal);
    background: var(--teal-light);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 1rem;
}
.page-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.page-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 720px;
}

/* Marrow Subject Cards Grid */
.marrow-subject-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border: 1.5px solid var(--teal-border);
    border-radius: 14px;
    padding: 1.2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.25s ease;
}
.marrow-subject-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(8, 125, 141, 0.12);
    border-color: var(--teal);
}
.marrow-subject-icon {
    font-size: 1.8rem;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--teal-light);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.marrow-subject-info h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.2rem;
}
.marrow-subject-info span {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}
.marrow-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--teal-light);
    border-radius: 4px;
    margin-top: 0.6rem;
    overflow: hidden;
}
.marrow-progress-fill {
    height: 100%;
    background: var(--teal);
}

/* Symmetrical Formatted Clinical Content Styling */
.formatted-clinical-content {
    line-height: 1.8;
    color: #1e293b;
}
.formatted-clinical-content h1,
.formatted-clinical-content h2,
.formatted-clinical-content h3,
.formatted-clinical-content h4 {
    color: var(--teal);
    font-weight: 800;
    margin-top: 1.4rem;
    margin-bottom: 0.6rem;
}
.formatted-clinical-content p {
    margin-bottom: 1rem;
}
.formatted-clinical-content ul,
.formatted-clinical-content ol {
    margin-bottom: 1.2rem;
    padding-left: 1.4rem;
}
.formatted-clinical-content li {
    margin-bottom: 0.4rem;
}
.formatted-clinical-content strong,
.formatted-clinical-content b {
    color: var(--navy);
    font-weight: 700;
}
.formatted-clinical-content table {
    width: 100%;
    margin-bottom: 1.2rem;
    border-collapse: collapse;
}
.formatted-clinical-content table th,
.formatted-clinical-content table td {
    padding: 10px 14px;
    border: 1px solid var(--teal-border);
}
.formatted-clinical-content table th {
    background-color: var(--teal-light);
    color: var(--teal);
    font-weight: 700;
}

/* Floating Actions */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 54px;
    height: 54px;
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.floating-whatsapp:hover {
    transform: scale(1.1);
    color: #ffffff;
}
.scroll-top-btn {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 42px;
    height: 42px;
    background: var(--teal);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(8, 125, 141, 0.3);
    z-index: 999;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

/* Site Footer */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding-top: 4rem;
    padding-bottom: 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-col h4 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}
.footer-col a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.6rem;
    font-weight: 500;
    transition: color 0.2s ease;
}
.footer-col a:hover {
    color: var(--teal-border);
}
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.2rem;
}
