/* ==========================================================================
   insightspages.css - Uniform Light Theme Practice Insights (Nderi Law)
   ========================================================================== */

:root {
    --bg-page-light: #f4f6f9;
    --card-bg-white: #ffffff;
    --text-dark-main: #111827;
    --text-muted-gray: #64748b;
    --accent-blue-pill: #e0f2fe;
    --accent-blue-text: #0284c7;
    --border-light-gray: #e2e8f0;
}

body.insights-category-page {
    background-color: var(--bg-page-light);
    color: var(--text-dark-main);
    margin: 0;
    padding-top: 50px;
    padding-bottom: 0px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

/* --- Top Hero Banner Section --- */
.insights-hero-banner {
    position: relative;
    padding: 60px 20px 50px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-light-gray);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
    width: 100%;
}

.hero-banner-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
}

.banner-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-blue-text);
    margin-bottom: 12px;
    background: var(--accent-blue-pill);
    padding: 6px 16px;
    border-radius: 30px;
}

.insights-hero-banner h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark-main);
    margin-bottom: 12px;
    line-height: 1.25;
    text-transform: uppercase;
}

.insights-hero-banner p {
    font-size: 1rem;
    color: var(--text-muted-gray);
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto;
}

/* --- Two Column Main Layout --- */
.category-content-layout {
    max-width: 1350px;
    margin: 40px auto 80px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 30px;
    align-items: start;
    box-sizing: border-box;
    width: 100%;
}

/* --- Left Column: Articles --- */
.left-articles-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.category-article-card {
    background: var(--card-bg-white);
    border: 1px solid var(--border-light-gray);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-dark-main);
    display: flex;
    gap: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-sizing: border-box;
}

.category-article-card:hover {
    border-color: var(--accent-blue-text);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.08);
}

.card-thumb {
    width: 220px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
}

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

.card-body-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    min-width: 0;
}

.card-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.card-category-badge {
    background: var(--accent-blue-pill);
    color: var(--accent-blue-text);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.card-meta-date {
    font-size: 0.78rem;
    color: var(--text-muted-gray);
    font-weight: 500;
}

.card-body-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark-main);
    margin: 0 0 8px 0;
    line-height: 1.35;
    text-transform: uppercase;
}

.card-body-content p {
    font-size: 0.85rem;
    color: var(--text-muted-gray);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Right Sidebar: Recent Insights --- */
.right-sidebar-column {
    background: var(--card-bg-white);
    border: 1px solid var(--border-light-gray);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    position: sticky;
    top: 110px;
    box-sizing: border-box;
    min-width: 0;
}

.sidebar-heading {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark-main);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-insights-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-insight-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card-bg-white);
    border: 1px solid var(--border-light-gray);
    border-radius: 14px;
    padding: 12px 14px;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.sidebar-insight-item:hover {
    transform: translateY(-2px);
    border-color: var(--accent-blue-text);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.08);
}

.sidebar-thumb {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
}

.sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-text {
    flex-grow: 1;
    min-width: 0;
}

.sidebar-text h4 {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark-main);
    margin: 0 0 4px 0;
    line-height: 1.3;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-text p {
    font-size: 0.76rem;
    color: var(--text-muted-gray);
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-arrow-circle {
    width: 24px;
    height: 24px;
    background: #e2e8f0;
    color: #475569;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-insight-item:hover .sidebar-arrow-circle {
    background: #090d16;
    color: #ffffff;
}

/* --- Pagination Controls --- */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.page-link {
    padding: 8px 16px;
    background: var(--card-bg-white);
    border: 1px solid var(--border-light-gray);
    color: var(--text-dark-main);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.page-link.active, .page-link:hover {
    background: #090d16;
    color: #ffffff;
    border-color: #090d16;
}

/* --- Responsive Layout --- */
@media (max-width: 992px) {
    .category-content-layout {
        grid-template-columns: 1fr;
    }
    .right-sidebar-column {
        position: static;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    body.insights-category-page {
        overflow-x: hidden;
    }

    .category-content-layout {
        padding: 0 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .insights-hero-banner {
        padding: 40px 15px 35px 15px;
        box-sizing: border-box;
    }

    .insights-hero-banner h1 {
        font-size: 1.5rem;
        word-wrap: break-word;
    }

    .insights-hero-banner p {
        font-size: 0.9rem;
        padding: 0 5px;
        box-sizing: border-box;
    }

    .category-article-card {
        flex-direction: column;
    }

    .card-thumb {
        width: 100%;
        height: 160px;
    }

    article {
        padding: 20px 15px !important;
        box-sizing: border-box;
    }

    article img {
        max-width: 100%;
        height: auto;
    }
}