@import url('https://fonts.googleapis.com/css2?family=Cantata+One&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Premium Health Colors (white, slate blue, vivid blue, and accent red) */
    --bg-light: #f8fafc;          /* Slate-tinted off-white background */
    --bg-surface: #ffffff;        /* Pure white for cards & header */
    --border-color: #e2e8f0;      /* Soft border gray */
    
    --text-dark: #0f172a;         /* Deep navy/slate black */
    --text-muted: #475569;        /* Slate gray for body read */
    --text-light: #ffffff;
    
    --accent-blue: #0f4c81;       /* Deep slate blue / primary */
    --accent-blue-rgb: 15, 76, 129;
    --accent-blue-light: #1d4ed8; /* Vivid blue */
    --accent-red: #dc2626;        /* Subtle red accent details */
    --accent-slate: #64748b;      /* Slate border details */
    --accent-slate-light: #94a3b8;
    
    --accent-color: var(--accent-blue);
    
    /* Typography */
    --font-headings: 'Cantata One', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* UI tokens */
    --transition: all 0.25s ease-in-out;
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-soft: 0 4px 20px rgba(15, 76, 129, 0.04);
    --shadow-md: 0 10px 30px rgba(15, 76, 129, 0.06);
    --shadow-lg: 0 20px 40px rgba(15, 76, 129, 0.08);
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 18px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 1.02rem;
    line-height: 1.75;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navigation */
.site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-headings);
    font-size: 1.5rem;
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition);
}

.site-logo i {
    color: var(--accent-red);
    font-size: 1.6rem;
    transition: var(--transition);
}

.site-logo:hover i {
    transform: scale(1.1);
}

.site-logo span {
    color: var(--text-dark);
}

.site-nav {
    display: flex;
    gap: 0.6rem;
}

.nav-link {
    font-family: var(--font-body);
    white-space: nowrap;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link i {
    font-size: 0.85rem;
}

.nav-link:hover {
    color: var(--accent-blue-light);
    background-color: rgba(15, 76, 129, 0.04);
}

.nav-link.active {
    color: #ffffff;
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 4px 10px rgba(15, 76, 129, 0.15);
}

.nav-toggle {
    display: none;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.nav-toggle:hover {
    background: var(--border-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.98)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: var(--text-dark);
    padding: 6rem 0;
    text-align: center;
    border-bottom: 3px solid var(--accent-blue);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-family: var(--font-headings);
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
    line-height: 1.25;
}

.hero-title span {
    color: var(--accent-red);
    display: block;
    font-size: 1.8rem;
    font-family: var(--font-body);
    font-weight: 300;
    margin-top: 0.3rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.7;
}

/* Support Dashboard Section */
.support-section {
    padding: 4rem 0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.support-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(15, 76, 129, 0.2);
}

.support-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--accent-blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.support-card:hover .support-icon {
    background: var(--accent-blue);
    color: #ffffff;
    border-color: var(--accent-blue);
}

.support-title {
    font-family: var(--font-headings);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--accent-blue);
}

.support-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Articles Feed Section */
.articles-section {
    padding: 5rem 0;
}

.cat-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.cat-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.cat-btn:hover {
    border-color: var(--accent-blue-light);
    color: var(--accent-blue-light);
}

.cat-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 76, 129, 0.15);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: var(--text-dark);
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 76, 129, 0.15);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: var(--bg-light);
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.article-card:hover .card-img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-blue);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-title {
    font-family: var(--font-headings);
    font-size: 1.25rem;
    color: var(--accent-blue);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-blue-light);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.card-link i {
    transition: var(--transition);
}

.article-card:hover .card-link i {
    transform: translateX(4px);
}

/* Article Page Layout */
.article-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 0 3rem;
    text-align: center;
}

.article-category {
    display: inline-block;
    background: rgba(15, 76, 129, 0.08);
    color: var(--accent-blue);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

.article-title {
    font-family: var(--font-headings);
    font-size: 2.8rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Sidebar & Article Layout Grid */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    padding: 4rem 0;
}

.article-body-content {
    min-width: 0; /* Prevents flex/grid blowouts */
}

.article-cover-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
}

.article-cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-dark);
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    color: var(--accent-blue);
    margin: 3rem 0 1.25rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.article-body h3 {
    font-family: var(--font-headings);
    font-size: 1.4rem;
    color: var(--accent-blue-light);
    margin: 2.25rem 0 1rem;
}

.article-body ul, .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

/* Markdown Tables styling */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    font-size: 0.95rem;
    box-shadow: var(--shadow-soft);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.article-body th {
    background-color: var(--accent-blue);
    color: #ffffff;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
}

.article-body td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-surface);
}

.article-body tr:last-child td {
    border-bottom: none;
}

.article-body td:nth-child(even) {
    background-color: var(--bg-light);
}

/* Alerts and blockquotes */
.alert-block {
    padding: 1.5rem;
    border-left: 4px solid var(--accent-blue);
    background: var(--bg-surface);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    margin: 2rem 0;
    box-shadow: var(--shadow-soft);
}

.alert-block-note {
    border-left-color: var(--accent-blue-light);
    background-color: rgba(29, 78, 216, 0.02);
}

.alert-block-important {
    border-left-color: var(--accent-red);
    background-color: rgba(220, 38, 38, 0.02);
}

.alert-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footnotes */
.footnotes {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}

.widget-title {
    font-family: var(--font-headings);
    font-size: 1.15rem;
    color: var(--accent-blue);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-widget ul {
    list-style: none;
    padding-left: 0;
}

.toc-widget li {
    margin-bottom: 0.6rem;
}

.toc-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: block;
    line-height: 1.4;
}

.toc-link:hover, .toc-link.active {
    color: var(--accent-blue-light);
    transform: translateX(3px);
}

.sidebar-link-asistel {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-link-asistel:hover {
    color: var(--accent-red);
    transform: translateX(4px);
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    margin-bottom: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.faq-item:first-of-type {
    border-top: 1px solid var(--border-color);
}

.faq-question {
    padding: 0.25rem 0;
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    user-select: none;
    position: relative;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::before {
    content: "►";
    color: var(--text-dark);
    font-size: 0.75rem;
    margin-right: 12px;
    transition: transform 0.2s ease;
    display: inline-block;
}

.faq-item[open] .faq-question::before {
    transform: rotate(90deg);
}

.faq-question span {
    flex-grow: 1;
    padding-right: 15px;
}

.faq-icon {
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 1rem 0 0.5rem 24px;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.article-body-content h2 i.fa-circle-question {
    color: var(--accent-red) !important;
}

/* Callout Section */
.support-callout-section {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0;
}

.support-callout-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.support-callout-content h3 {
    font-family: var(--font-headings);
    font-size: 1.6rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.support-callout-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.support-callout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.support-grid-link {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-soft);
}

.support-grid-link:hover {
    background: var(--accent-blue);
    color: #ffffff;
    border-color: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.support-grid-link i {
    color: var(--accent-blue-light);
}

.support-grid-link:hover i {
    color: #ffffff;
}

/* Footer styling */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 5rem 0 3rem;
    font-size: 0.95rem;
    border-top: 4px solid var(--accent-blue);
}

.footer-grid-asistel {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-family: var(--font-headings);
    font-size: 1.7rem;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-logo span {
    color: var(--accent-red);
}

.footer-mission-text {
    line-height: 1.7;
    font-size: 0.9rem;
}

.footer-heading-asistel {
    font-family: var(--font-headings);
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading-asistel::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-blue-light);
}

.footer-links-asistel {
    list-style: none;
    padding-left: 0;
}

.footer-links-asistel li {
    margin-bottom: 0.75rem;
}

.footer-links-asistel a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links-asistel a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-links-asistel a i {
    font-size: 0.8rem;
    color: var(--accent-blue-light);
}

.footer-bottom-asistel {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* Reading Progress Bar elements */
.progress-bar-container {
    position: fixed;
    top: 80px; /* Header height */
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 99;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-red));
    width: 0%;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-sidebar {
        position: static !important;
        margin-top: 2rem;
    }
    
    .footer-grid-asistel {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .footer-col-mission {
        grid-column: span 2;
    }
    
    .support-callout-box {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .site-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
        gap: 0.5rem;
        box-shadow: var(--shadow-md);
    }
    
    .site-nav.active {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-title span {
        font-size: 1.4rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
}
