/* Base Styles */
:root {
    --primary-color: #004d99;
    --secondary-color: #ffcc00;
    --accent-color: #e63946;
    --text-color: #333;
    --light-text: #666;
    --lighter-text: #999;
    --background-color: #fff;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --success-color: #2e7d32;
    --warning-color: #ff9800;
    --error-color: #d32f2f;
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5 rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.logo-icon {
    font-size: 1.5rem;
}

.main-nav .nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.nav-link.active {
    color: white;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.search-btn:hover {
    color: var(--secondary-color);
}

.nav-arrows {
    display: flex;
    gap: 0.75rem;
}

.arrow-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.arrow-link:hover {
    background-color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--light-text);
}

.breadcrumb a {
    color: var(--light-text);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb [aria-current="page"] {
    color: var(--primary-color);
    font-weight: 500;
}

/* Hero Section */
.hero {
    margin: 2rem 0 3rem;
}

.hero-content {
    margin-bottom: 2rem;
}

.category-badge {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.hero h1 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    max-width: 800px;
}

.meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    display: block;
}

.author-title {
    font-size: 0.9rem;
    color: var(--light-text);
}

.meta-details {
    display: flex;
    gap: 1.5rem;
}

.meta-date, .reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--light-text);
}

.hero-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

/* Article Layout */
.clinical-article {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.table-of-contents {
    position: sticky;
    top: 120px;
    align-self: start;
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.table-of-contents h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.table-of-contents nav ul {
    list-style: none;
}

.table-of-contents li {
    margin-bottom: 0.75rem;
}

.table-of-contents a {
    color: var(--light-text);
    display: block;
    padding: 0.5rem 0;
    transition: var(--transition);
    border-left: 3px solid transparent;
    padding-left: 0.75rem;
}

.table-of-contents a:hover {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.article-content {
    max-width: 800px;
}

.article-section {
    margin-bottom: 3rem;
    scroll-margin-top: 120px;
}

.article-section h2 {
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}

/* Article Components */
.pull-quote {
    margin: 2rem 0;
    padding: 2rem;
    background-color: var(--light-bg);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-sm);
}

.pull-quote blockquote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.pull-quote figcaption {
    font-weight: 500;
    text-align: right;
}

.dosing-card {
    background-color: var(--light-bg);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin: 2rem 0;
}

.dosing-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.dosing-steps {
    list-style: none;
    counter-reset: step-counter;
}

.dosing-steps li {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 2rem;
    counter-increment: step-counter;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.step-content h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.warning-box {
    display: flex;
    gap: 1rem;
    background-color: #fff8e1;
    border-left: 4px solid var(--warning-color);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin: 2rem 0;
}

.warning-icon {
    color: var(--warning-color);
    font-size: 1.5rem;
}

.warning-content h4 {
    color: var(--warning-color);
    margin-bottom: 0.5rem;
}

.info-box {
    display: flex;
    gap: 1rem;
    background-color: #e3f2fd;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin: 2rem 0;
}

.info-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.info-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-sm);
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.responsive-table caption {
    text-align: left;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.responsive-table th {
    background-color: var(--primary-color);
    color: white;
    text-align: left;
    padding: 1rem;
    font-weight: 500;
}

.responsive-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.responsive-table tr:nth-child(even) {
    background-color: var(--light-bg);
}

.responsive-table tr:hover {
    background-color: rgba(0, 77, 153, 0.05);
}

/* Monitoring Grid */
.monitoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.monitoring-card {
    background-color: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.monitoring-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.monitoring-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.monitoring-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* References */
.references-list {
    list-style-position: inside;
    margin: 2rem 0;
}

.references-list li {
    margin-bottom: 1rem;
    padding-left: 1rem;
    text-indent: -1rem;
}

/* Article Footer */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.article-tags {
    margin-bottom: 2rem;
}

.tags-label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.article-tags ul {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
}

.article-tags a {
    display: inline-block;
    background-color: var(--light-bg);
    color: var(--light-text);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    transition: var(--transition);
}

.article-tags a:hover {
    background-color: var(--primary-color);
    color: white;
}

.article-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.share-btn, .print-btn, .save-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.share-btn {
    background-color: var(--primary-color);
    color: white;
}

.share-btn:hover {
    background-color: #003366;
}

.print-btn {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.print-btn:hover {
    background-color: var(--light-bg);
}

.save-btn {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.save-btn:hover {
    background-color: var(--light-bg);
}

/* Related Articles */
.related-articles {
    margin: 4rem 0;
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.related-card {
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-content {
    padding: 1.5rem;
}

.related-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.related-content h3 a:hover {
    color: var(--accent-color);
}

.related-content p {
    font-size: 0.95rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--lighter-text);
}

.related-category {
    font-weight: 500;
    color: var(--primary-color);
}

/* Newsletter */
.newsletter {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    margin: 4rem 0;
    border-radius: var(--radius-md);
}

.newsletter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    justify-content: space-between;
}

.newsletter-content {
    flex: 1;
    min-width: 300px;
}

.newsletter h2 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter p {
    opacity: 0.9;
    max-width: 500px;
}

.newsletter-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    gap: 1rem;
}

.form-group {
    flex: 1;
}

.newsletter-form input {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: none;
    font-family: inherit;
}

.subscribe-btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 0 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.subscribe-btn:hover {
    background-color: white;
}

/* Footer */
.site-footer {
    background-color: #f5f5f5;
    padding: 4rem 0 2rem;
    color: var(--light-text);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about {
    max-width: 300px;
}

.footer-about h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.footer-about p {
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    color: var(--primary-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-links h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--light-text);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 0.25rem;
}

.footer-contact h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-contact p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: var(--light-text);
}

.legal-links a:hover {
    color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .clinical-article {
        grid-template-columns: 1fr;
    }
    
    .table-of-contents {
        position: static;
        margin-bottom: 3rem;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .main-nav {
        order: 3;
    }
    
    .main-nav .nav-list {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .subscribe-btn {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .dosing-steps li {
        padding-left: 3rem;
    }
    
    .step-number {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    
    .article-actions {
        flex-direction: column;
    }
    
    .share-btn, .print-btn, .save-btn {
        justify-content: center;
        width: 100%;
    }
}
.chart-container {
    max-width: 100%;       /* Never exceed parent width */
    margin: 1.5rem auto;   /* Center with vertical spacing */
    overflow: hidden;      /* Hide any overflow */
    border-radius: 8px;    /* Optional: rounded corners */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Optional: subtle shadow */
}

.chart-image {
    display: block;        /* Remove inline spacing */
    width: 100%;           /* Scale to container width */
    height: auto;          /* Maintain aspect ratio */
    max-width: 800px;      /* Optional: cap max size */
    margin: 0 auto;        /* Center horizontally */
}