/* ── BLOG STYLES ── */

section.blog-header {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%) !important;
    color: white;
    padding: 8rem 2rem 4rem;
    text-align: center;
}

.blog-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
}

.blog-header-sub {
    font-size: 1.15rem;
    color: var(--gray-light);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ── TOPIC NAV ── */
.topic-nav {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.topic-nav .section-inner {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.topic-pill {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--navy);
    border-radius: 999px;
    color: var(--navy);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.topic-pill:hover {
    background: var(--navy);
    color: white;
}

/* ── CATEGORY SECTIONS ── */
.category-section {
    max-width: 720px;
    margin: 3.5rem auto 1.5rem;
    padding-top: 1rem;
    scroll-margin-top: 5rem;
}

.category-section:first-child {
    margin-top: 0;
}

.category-heading {
    font-size: 1.6rem;
    color: var(--navy);
    font-weight: 800;
    margin-bottom: 0.35rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--gold);
}

.category-desc {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* ── POST GRID (conditions section) ── */
.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 720px;
    margin: 0 auto 2rem;
}

.post-grid .post-card {
    margin: 0;
    max-width: none;
}

.post-grid .post-card h2 {
    font-size: 1.15rem;
}

.post-grid .post-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── POST LISTING ── */
.blog-listing {
    padding: 4rem 2rem;
}

.post-card {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    padding: 2rem 2.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border-left: 4px solid var(--gold);
}

.post-card .post-date {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.post-card h2 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.post-card h2 a {
    color: var(--navy);
    text-decoration: none;
}

.post-card h2 a:hover {
    color: var(--gold-dark);
}

.post-card p {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--gold-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.read-more:hover {
    color: var(--gold);
}

/* ── INDIVIDUAL POST ── */
section.post-header {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%) !important;
    color: white;
    padding: 8rem 2rem 3.5rem;
    text-align: center;
}

.post-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    max-width: 780px;
    margin: 0 auto 1rem;
    line-height: 1.35;
}

.post-header .post-meta {
    font-size: 0.95rem;
    color: var(--gray-light);
}

.post-body {
    padding: 3.5rem 2rem 5rem;
}

.post-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text);
}

.post-content h2 {
    font-size: 1.5rem;
    color: var(--navy);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--gold);
}

.post-content h3 {
    font-size: 1.2rem;
    color: var(--navy);
    margin: 2rem 0 0.75rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul, .post-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.post-content blockquote {
    border-left: 4px solid var(--gold);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #fdf8e8;
    border-radius: 0 6px 6px 0;
    color: var(--text);
    font-style: italic;
}

.post-content strong {
    color: var(--navy);
}

.post-content .callout {
    background: var(--bg);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-left: 4px solid var(--gold);
}

.post-content .callout h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

.post-nav {
    max-width: 720px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-nav a {
    color: var(--gold-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.post-nav a:hover {
    color: var(--gold);
}

/* ── DEEP DIVE EXPAND ── */
.deep-dive {
    margin: 3rem 0 2rem;
    border: 2px solid var(--gold);
    border-radius: 8px;
    overflow: hidden;
}

.deep-dive summary {
    background: var(--navy);
    color: var(--gold);
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.deep-dive summary::-webkit-details-marker { display: none; }

.deep-dive summary::after {
    content: "\25BC";
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.deep-dive[open] summary::after {
    transform: rotate(180deg);
}

.deep-dive summary:hover {
    background: var(--navy-light);
}

.deep-dive-content {
    padding: 2rem 2rem 1rem;
    background: white;
    border-top: 1px solid var(--gray-light);
}

.deep-dive-content h2 {
    margin-top: 2rem;
}

.deep-dive-content h2:first-child {
    margin-top: 0;
}

@media (max-width: 768px) {
    .blog-header { padding: 7rem 1.5rem 3rem; }
    .blog-header h1 { font-size: 1.8rem; }
    .post-header { padding: 7rem 1.5rem 3rem; }
    .post-header h1 { font-size: 1.6rem; }
    .post-card { padding: 1.5rem; }
    .post-content { font-size: 1rem; }
    .deep-dive summary { font-size: 1rem; padding: 0.85rem 1.25rem; }
    .deep-dive-content { padding: 1.5rem; }
    .topic-nav { padding: 0.75rem 1rem; }
    .topic-nav .section-inner { gap: 0.5rem; }
    .topic-pill { font-size: 0.8rem; padding: 0.4rem 1rem; }
    .post-grid { grid-template-columns: 1fr; }
    .category-heading { font-size: 1.35rem; }
}
