/* css/style.css */

:root {
    --primary-blue: #0d6efd;
    --dark-blue: #084298;
    --light-blue: #cfe2ff;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-blue);
}

/* Navigation & Header */
.navbar {
    background-color: var(--primary-blue);
}

.navbar-brand, .nav-link {
    color: white !important;
}

.nav-link:hover {
    color: var(--light-blue) !important;
}

.header-banner {
    background: linear-gradient(135deg, var(--light-blue) 0%, #ffffff 100%);
    padding: 4rem 0;
    border-bottom: 1px solid #dee2e6;
}

/* Disclaimer Alert */
.medical-disclaimer {
    background-color: #fff3cd;
    color: #856404;
    border-right: 5px solid #ffeeba;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Table of Contents */
.toc-card {
    background-color: var(--bg-light);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    position: sticky;
    top: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.toc-card a {
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.toc-card a:last-child {
    border-bottom: none;
}

.toc-card a:hover {
    color: var(--primary-blue);
    padding-right: 8px; /* Slight indent on hover for RTL */
}

/* Content Sections */
.content-section {
    padding: 3rem 0;
    border-bottom: 1px solid #e9ecef;
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h2 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    right: 0; /* RTL alignment */
    bottom: 0;
    height: 4px;
    width: 60px;
    background-color: var(--primary-blue);
    border-radius: 2px;
}

/* Accordion Customization */
.accordion-button:not(.collapsed) {
    background-color: var(--light-blue);
    color: var(--dark-blue);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

/* Footer */
.footer {
    background-color: var(--dark-blue);
    color: white;
    padding: 4rem 0 1.5rem;
}

.footer a {
    color: var(--light-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Utility */
.skip-link {
    position: absolute;
    top: -40px;
    right: 0; /* RTL */
    background: #000;
    color: white;
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}
