/* ==========================================================================
   insights_page.css - Nderi Law Insights Directory
   ========================================================================== */

:root {
    --bg-dark-banner: #0d233a;
    --card-glass-bg: rgba(13, 27, 42, 0.75);
    --card-hover-bg: rgba(16, 37, 60, 0.9);
    --accent-blue: #0A66C2;
    --accent-cyan: #38bdf8;
    --text-light: #ffffff;
    --text-muted: #94a3b8;
    --border-glass: rgba(255, 255, 255, 0.12);
}

body {
    background-color: #08121e;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-light);
    margin: 0;
    padding-top: 80px;
    padding-bottom: 0px; /* Prevents overlap with mobile bottom bar */
}

/* ==========================================================================
   Hero Banner with Abstract Deep Blue Legal/Tech Pattern
   ========================================================================== */
.insights-hero-banner {
    position: relative;
    padding: 90px 20px 100px 20px;
    text-align: center;
    background-color: #0b1e33;
    /* Clean abstract geometrical lines & radial lighting */
    background-image: 
        radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(10, 102, 194, 0.2) 0%, transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    background-position: center center;
    border-bottom: 1px solid var(--border-glass);
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, #08121e 100%);
    pointer-events: none;
}

.hero-banner-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
}

.banner-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    margin-bottom: 14px;
    background: rgba(56, 189, 248, 0.1);
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.insights-hero-banner h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.25;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.insights-hero-banner p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto;
}

/* ==========================================================================
   Category Directory & Glassmorphism Cards Layout
   ========================================================================== */
.insights-directory-container {
    max-width: 1240px;
    margin: -50px auto 60px auto;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Glassmorphism Category Card */
.category-glass-card {
    background: var(--card-glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.category-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-cyan);
    opacity: 0.4;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.category-glass-card:hover {
    transform: translateY(-6px);
    background: var(--card-hover-bg);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.15);
}

.category-glass-card:hover::before {
    opacity: 1;
    width: 6px;
}

.category-glass-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.category-glass-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 24px 0;
}

/* Learn More Link Pill */
.btn-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
    align-self: flex-start;
}

.category-glass-card:hover .btn-learn-more {
    background: var(--accent-cyan);
    color: #08121e;
    border-color: var(--accent-cyan);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 992px) {
    .category-cards-grid {
        grid-template-columns: 1fr;
    }

    .insights-hero-banner h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 70px;
    }

    .insights-hero-banner {
        padding: 60px 15px 80px 15px;
    }

    .insights-hero-banner h1 {
        font-size: 1.75rem;
    }

    .insights-directory-container {
        margin-top: -35px;
        padding: 0 12px;
    }

    .category-glass-card {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .category-glass-content h3 {
        font-size: 1.25rem;
    }
}