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

:root {
    --bg-light: #faf8f5;
    --bg-surface: #ffffff;
    --border-color: #e2dcd5;
    --text-dark: #2c3e35;
    --text-muted: #64746f;
    --accent-teal: #0d9488;
    --accent-coral: #f43f5e;
    --font-sans: 'Nunito', -apple-system, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 4px 15px rgba(44, 62, 53, 0.04);
    --shadow-md: 0 8px 25px rgba(44, 62, 53, 0.08);
}

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

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

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

/* Header & Navigation */
.site-header {
    background: var(--bg-surface);
    border-bottom: 4px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-soft);
}

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

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--accent-teal);
    text-decoration: none;
}

.site-logo span {
    color: var(--accent-coral);
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-teal);
    background-color: rgba(13, 148, 136, 0.06);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Dashboard Hero */
.hero-section {
    padding: 7rem 0;
    background: linear-gradient(rgba(250, 248, 245, 0.85), rgba(250, 248, 245, 0.95)), url('images/caregiver_hands.jpg') no-repeat center center;
    background-size: cover;
    text-align: center;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--accent-teal);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto;
    font-weight: 400;
}

/* Category Cards Grid (Support Center style) */
.support-section {
    padding: 2rem 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2.5rem;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin-bottom: 4rem;
}

.support-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.support-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-teal);
}

.support-icon {
    font-size: 2.2rem;
    color: var(--accent-teal);
    margin-bottom: 1.2rem;
    display: inline-block;
}

.support-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.support-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Tabs */
.cat-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 3rem;
}

.cat-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.cat-btn:hover, .cat-btn.active {
    color: #ffffff;
    background-color: var(--accent-teal);
    border-color: var(--accent-teal);
}

/* Compassionate Articles Grid */
.articles-section {
    padding: 2rem 0 6rem 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
}

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

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(13, 148, 136, 0.3);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-teal);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
}

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

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

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

.article-card:hover .card-title {
    color: var(--accent-teal);
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    margin-top: auto;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-teal);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Article Layout & Senior-Friendly Typography */
.article-layout {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 3rem;
    padding: 4rem 0;
}

.article-main {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3.5rem;
    box-shadow: var(--shadow-soft);
}

.article-category {
    color: var(--accent-teal);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: block;
}

.article-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.2rem;
    margin-bottom: 2.5rem;
}

.article-cover-img {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto 2.5rem auto;
    display: block;
}

.article-body {
    font-size: 1.15rem; /* Larger, readable size for elderly care */
    line-height: 1.8;
}

.article-body h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 2.8rem 0 1.2rem 0;
    color: var(--text-dark);
}

.article-body h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
}

.article-body p {
    margin-bottom: 1.8rem;
    color: #334155;
}

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

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

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

.widget-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    color: var(--text-dark);
}

.widget-list {
    list-style: none;
}

.widget-item {
    margin-bottom: 1rem;
}

.widget-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
}

.widget-link:hover {
    color: var(--accent-teal);
}

/* Compassionate summary box */
.summary-box {
    background: rgba(13, 148, 136, 0.05);
    border: 1px solid rgba(13, 148, 136, 0.15);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.summary-box h3 {
    color: var(--accent-teal);
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Blockquotes */
blockquote {
    background: rgba(13, 148, 136, 0.03);
    border-left: 4px solid var(--accent-teal);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    border-radius: 0 12px 12px 0;
}

blockquote p {
    margin: 0 !important;
    color: var(--text-muted) !important;
    font-style: italic;
}

/* Alert blocks */
.alert-block {
    border-radius: 12px;
    padding: 1.2rem 1.8rem;
    margin: 2rem 0;
    border-left-width: 4px;
    border-left-style: solid;
}

.alert-block-note { background: #f1f5f9; border-left-color: var(--text-muted); color: #475569; }
.alert-block-important { background: rgba(13, 148, 136, 0.04); border-left-color: var(--accent-teal); color: var(--accent-teal); }
.alert-block-warning { background: #fff1f2; border-left-color: var(--accent-coral); color: #be123c; }

.alert-title {
    font-weight: 700;
    margin-bottom: 0.4rem !important;
}

/* Comparison Tables */
.table-responsive {
    margin: 2.5rem 0;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-surface);
}

.comparison-table th, .comparison-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: #f8fafc;
    font-weight: 700;
    color: var(--text-dark);
}

/* Table of contents box */
.toc-box {
    background: #fdfdfd;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.8rem;
    margin-bottom: 3rem;
}

.toc-title {
    font-weight: 800;
}

.toc-link {
    color: var(--text-muted);
}

.toc-link:hover {
    color: var(--accent-teal);
}

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

.progress-bar {
    height: 100%;
    background: var(--accent-teal);
    width: 0;
}

/* FAQ Accordion */
.faq-section {
    margin-top: 5rem;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-soft);
}

.faq-question {
    padding: 1.2rem 1.8rem;
    font-weight: 700;
    font-size: 1.15rem;
    cursor: pointer;
    color: var(--text-dark);
}

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

.faq-answer {
    padding: 0 1.8rem 1.5rem 1.8rem;
    color: var(--text-muted);
}

/* Footer Section */
.site-footer {
    background: #1f2e26;
    color: #a3b899;
    padding: 5rem 0 2rem 0;
    border-top: 4px solid var(--border-color);
}

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

.footer-logo {
    font-weight: 800;
    font-size: 1.6rem;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 1rem;
    display: inline-block;
}

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

.footer-heading {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

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

.footer-links a {
    color: #94a896;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #2d3f35;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive design */
@media (max-width: 992px) {
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .article-layout {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .support-grid {
        grid-template-columns: 1fr;
    }
    .site-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }
    .site-nav.active {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .article-main {
        padding: 2.5rem 1.5rem;
    }
    .article-title {
        font-size: 2rem;
    }
}

/* Partner Widgets & Footer Lists */
.partner-widgets-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    background: #f5f2eb;
}
.partner-widgets-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-dark);
}
.partner-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.partner-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.8rem;
    text-decoration: none;
    color: var(--text-dark) !important;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}
.partner-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-teal);
    box-shadow: var(--shadow-md);
}
.partner-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-teal);
    display: inline-block;
}
.partner-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
}
.partner-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex-grow: 1;
}
.partner-btn {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--accent-teal);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links-list li {
    margin-bottom: 0.8rem;
}
.footer-links-list a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}
.footer-links-list a:hover {
    color: var(--accent-teal);
}

/* Redesigned Care Callout Banner & Footer */
.support-callout-section {
    padding: 3rem 0;
    background: #f1ede4;
    border-top: 1px solid var(--border-color);
}
.support-callout-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    box-shadow: var(--shadow-soft);
}
.support-callout-content h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.support-callout-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}
.support-callout-action {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}
.support-callout-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--accent-teal);
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 30px;
    transition: var(--transition);
}
.support-callout-btn:hover {
    background: var(--text-dark);
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.2);
}
.support-callout-btn.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-teal);
    color: var(--accent-teal) !important;
}
.support-callout-btn.btn-secondary:hover {
    background: var(--accent-teal);
    color: #ffffff !important;
}
.footer-grid-asistel {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #2d3f35;
}
.footer-col-mission {
    max-width: 350px;
}
.footer-mission-text {
    font-size: 0.9rem;
    margin-top: 1rem;
    color: #a3b899;
    line-height: 1.6;
}
.footer-heading-asistel {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}
.footer-links-asistel {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links-asistel li {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}
.footer-links-asistel a {
    color: #94a896;
    text-decoration: none;
    transition: var(--transition);
}
.footer-links-asistel a:hover {
    color: #ffffff;
}
.footer-bottom-asistel {
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #556c5c;
}
@media (max-width: 992px) {
    .support-callout-box {
        flex-direction: column;
        text-align: center;
    }
    .support-callout-action {
        width: 100%;
        justify-content: center;
    }
    .footer-grid-asistel {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}


/* ==========================================================================
   SQUARE IMAGE AESTHETICS (1:1 Aspect Ratio) & PAGE IMPROVEMENTS
   ========================================================================== */

/* 1. Article listings (Index and Category pages) */
.card-img-wrapper, .article-card .card-img-wrapper {
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
    position: relative !important;
    display: block !important;
}

.card-img-wrapper img, .card-img, .article-card img, .card-img-placeholder {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
}

/* 2. Inner article cover image (Square Centered) */
.article-cover-img-wrapper {
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto 35px !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.article-cover-img, .article-cover-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 3. General improvements for spacing and styling */
.article-header {
    text-align: center !important;
    margin-bottom: 30px !important;
}
.article-category {
    display: inline-block !important;
    margin: 0 auto 10px !important;
}
.article-meta-large {
    display: flex !important;
    justify-content: center !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
    margin-top: 15px !important;
}
