/* Dashboard-Style Landing Page CSS */
:root {
    --fed-blue: #002868;
    --fed-accent: #bf0a30;
    --fed-bg: #f1f5f9;
    --fed-card: #ffffff;
    --fed-text: #1e293b;
    --fed-muted: #64748b;
    --fed-border: #e2e8f0;
}

body {
    font-family: 'Lato', sans-serif;
    background: var(--fed-bg);
    color: var(--fed-text);
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, .sidebar-title, .logo-group h2, .btn-action {
    font-family: 'Lato', sans-serif;
}

/* Base Layout */
.app-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Main Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 16.25rem 1fr 18.75rem;
    gap: 1.5rem;
    padding: 1.5rem;
    max-width: 100rem;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

@media (max-width: 30rem) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

.view-all-link {
    color: var(--fed-accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}

.view-all-link:hover {
    transform: translateX(4px);
}

@media (max-width: 48rem) {
    .dashboard-grid {
        padding: 0.75rem;
        gap: 1rem;
    }
}

/* Sidebar Left */
.sidebar {
    background: white;
    border-radius: 0.5rem;
    padding: 1.25rem;
    border: 1px solid var(--fed-border);
    height: fit-content;
    position: sticky;
    top: 5rem;
}

@media (max-width: 56.25rem) {
    .sidebar {
        position: static;
        order: 2;
    }
}

.sidebar-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--fed-muted);
    letter-spacing: 0.05em;
    margin: 1.5rem 0 0.75rem;
    display: block;
}
.sidebar-title:first-child { margin-top: 0; }

.sidebar-link {
    display: block;
    padding: 0.6rem 0.8rem;
    text-decoration: none;
    color: var(--fed-text);
    font-size: 0.95rem;
    border-radius: 0.35rem;
    transition: background 0.2s;
    font-weight: 500;
}
.sidebar-link:hover { background: #f8fafc; color: var(--fed-accent); }
.sidebar-link.active { background: #eff6ff; color: var(--fed-blue); font-weight: 700; }

/* Main Area */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.alert-banner {
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    color: #065f46;
    padding: 1rem 1.5rem;
    border-radius: 0.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
}

.card {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    border: 1px solid var(--fed-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

@media (max-width: 48rem) {
    .card {
        padding: 1rem;
    }
}

.hero-box {
    background: linear-gradient(135deg, white 0%, #f8fafc 100%);
}

.feature-tag {
    background: #eff6ff;
    color: #2563eb;
    padding: 0.4rem 1rem;
    border-radius: 0.4rem;
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 1.5rem;
}

/* Right Sidebar (Quick Stats/Facts) */
.sidebar-right {
    height: fit-content;
    position: sticky;
    top: 5rem;
}

@media (max-width: 80rem) {
    .sidebar-right {
        position: static;
        order: 3;
    }
}

/* Hero and Blog Grids */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 48rem) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.blog-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 64rem) {
    .blog-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 40rem) {
    .blog-grid-home {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.fact-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--fed-border);
    margin-bottom: 1.5rem;
}

.fact-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--fed-border);
    font-size: 0.9rem;
}
.fact-item:last-child { border: none; }
.fact-label { color: var(--fed-muted); }
.fact-value { font-weight: 700; color: var(--fed-blue); }

/* Responsive Dashboard */
@media (max-width: 80rem) {
    .dashboard-grid { 
        grid-template-columns: 15rem 1fr; 
    }
    .sidebar-right { display: block; grid-column: 1 / -1; margin-top: 1rem; }
}

@media (max-width: 56.25rem) {
    .dashboard-grid { 
        grid-template-columns: 1fr; 
        display: flex;
        flex-direction: column;
    }
    .main-content { order: 1; }
    global-sidebar { order: 2; margin-top: 1rem; }
    .sidebar-right { order: 3; margin-top: 1rem; }
    .top-nav { padding: 0.75rem 1rem; }

    /* Typography Reductions */
    h1 { font-size: 1.75rem !important; line-height: 1.2; }
    h2 { font-size: 1.45rem !important; margin-bottom: 1rem !important; }
    h3 { font-size: 1.2rem !important; }
    p { font-size: 0.95rem !important; line-height: 1.5; }
    .section-header h2 { font-size: 1.4rem !important; }
}

.btn-action {
    background: var(--fed-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.4rem;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin-top: 1rem;
    border: none;
}
.btn-action:hover { opacity: 0.9; transform: translateY(-1px); }
