/* Blog styles — loaded after ../index.css */
.blog-page .nav-container {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
}

.blog-hero {
    padding: 170px 0 70px;
    background: radial-gradient(ellipse at 20% 0%, rgba(255, 205, 0, 0.08), transparent 60%), var(--dark);
}

.blog-hero .container,
.blog-list-section .container {
    padding: 0 5%;
}

.blog-hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    line-height: 1.05;
    margin-bottom: 20px;
}

.blog-hero h1 span {
    color: var(--accent);
}

.blog-hero p {
    color: var(--light-gray);
    font-size: 1.15rem;
    max-width: 720px;
}

.blog-list-section {
    padding: 70px 0 110px;
    background: var(--darker);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.post-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--white);
    background: var(--mid);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.post-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 205, 0, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.post-cover {
    aspect-ratio: 16/8;
    background-size: cover;
    background-position: center;
    position: relative;
}

.post-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--mid), rgba(0, 0, 0, 0.25));
}

.post-body {
    padding: 34px 38px 40px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-meta {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.post-meta span {
    color: var(--light-gray);
    margin-left: 10px;
    letter-spacing: 0.05em;
}

.post-card h2 {
    font-size: 1.7rem;
    line-height: 1.12;
    margin-bottom: 16px;
}

.post-card p {
    color: var(--light-gray);
    line-height: 1.7;
    margin-bottom: 26px;
}

.post-more {
    margin-top: auto;
    font-weight: 800;
    color: var(--accent);
}

/* ====== ARTICLE ====== */
.article-hero {
    padding: 160px 0 50px;
    background: radial-gradient(ellipse at 15% 0%, rgba(255, 205, 0, 0.08), transparent 60%), var(--dark);
}

.article-hero .container,
.article-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--light-gray);
    margin-bottom: 26px;
}

.breadcrumbs a {
    color: var(--light-gray);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.article-hero h1 {
    font-size: clamp(2rem, 4.6vw, 3.3rem);
    line-height: 1.08;
    text-transform: none;
    margin-bottom: 22px;
}

.article-lead {
    font-size: 1.2rem;
    color: var(--light-gray);
    line-height: 1.7;
}

.article-info {
    margin-top: 26px;
    font-size: 0.85rem;
    color: var(--light-gray);
    letter-spacing: 0.04em;
}

.article-body {
    background: var(--darker);
    padding: 40px 0 90px;
}

.article-wrap {
    font-size: 1.08rem;
    line-height: 1.85;
    color: #dcdcdc;
}

.article-wrap h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.15;
    text-transform: none;
    color: var(--white);
    margin: 56px 0 18px;
}

.article-wrap h3 {
    font-size: 1.2rem;
    text-transform: none;
    color: var(--accent);
    margin: 30px 0 10px;
}

.article-wrap p {
    margin-bottom: 20px;
}

.article-wrap ul,
.article-wrap ol {
    margin: 0 0 24px 1.3em;
}

.article-wrap li {
    margin-bottom: 10px;
}

.article-wrap li::marker {
    color: var(--accent);
}

.article-wrap a {
    color: var(--accent);
}

.article-wrap strong {
    color: var(--white);
}

.callout {
    background: rgba(255, 205, 0, 0.06);
    border-left: 4px solid var(--accent);
    border-radius: 0 14px 14px 0;
    padding: 22px 28px;
    margin: 30px 0;
}

.callout p:last-child {
    margin-bottom: 0;
}

.table-scroll {
    overflow-x: auto;
    margin: 28px 0 34px;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.cmp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    line-height: 1.5;
    min-width: 560px;
}

.cmp-table th,
.cmp-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: top;
}

.cmp-table th {
    background: var(--mid);
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cmp-table tr:last-child td {
    border-bottom: none;
}

.cmp-table td:first-child {
    color: var(--white);
    font-weight: 700;
}

.article-cta {
    margin: 60px 0 0;
    padding: 40px;
    text-align: center;
    border-radius: 20px;
    border: 1px solid rgba(255, 205, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 205, 0, 0.1), var(--mid));
}

.article-cta h2 {
    margin: 0 0 12px;
    font-size: 1.8rem;
}

.article-cta p {
    color: var(--light-gray);
    margin-bottom: 26px;
}

.article-cta .btn-primary {
    display: inline-block;
    color: var(--dark);
    text-decoration: none;
}

.more-reading {
    margin-top: 44px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 130px 0 50px;
    }

    .article-hero {
        padding: 120px 0 36px;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .post-body {
        padding: 26px 24px 30px;
    }

    .article-cta {
        padding: 30px 22px;
    }

    .article-wrap {
        font-size: 1.02rem;
    }
}


/* ====== BLOG LIST v2: featured + grid ====== */
.featured-post {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    text-decoration: none;
    color: var(--white);
    background: var(--mid);
    border: 1px solid rgba(255, 205, 0, 0.25);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 40px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.featured-post:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 205, 0, 0.5);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.featured-cover {
    background-size: cover;
    background-position: center;
    min-height: 380px;
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 22px;
    left: 22px;
    background: var(--accent);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 8px;
}

.featured-body {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-body h2 {
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    line-height: 1.1;
    text-transform: none;
    margin-bottom: 18px;
}

.featured-body p {
    color: var(--light-gray);
    line-height: 1.75;
    margin-bottom: 28px;
}

.post-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.post-grid-3 .post-cover {
    aspect-ratio: 16/9;
}

.post-grid-3 .post-body {
    padding: 26px 28px 30px;
}

.post-grid-3 .post-card h2,
.post-grid-3 h2 {
    font-size: 1.25rem;
    line-height: 1.18;
    text-transform: none;
}

.post-grid-3 .post-card p,
.post-grid-3 p {
    font-size: 0.93rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

.post-card.soon {
    cursor: default;
}

.post-card.soon:hover {
    transform: none;
    border-color: var(--glass-border);
    box-shadow: none;
}

.post-card.soon .post-cover {
    filter: saturate(0.6) brightness(0.8);
}

.post-card.soon .post-more {
    color: var(--light-gray);
    font-weight: 700;
}

.post-card-wide {
    grid-column: 1 / -1;
    flex-direction: row;
}

.post-card-wide .post-cover {
    flex: 0 0 38%;
    aspect-ratio: auto;
    min-height: 220px;
}

.post-card-wide .post-cover::after {
    background: linear-gradient(to right, transparent, var(--mid));
}

.post-card-wide .post-body {
    justify-content: center;
}

@media (max-width: 1000px) {
    .post-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-cover {
        min-height: 260px;
    }
}

@media (max-width: 680px) {
    .post-grid-3 {
        grid-template-columns: 1fr;
    }

    .featured-body {
        padding: 28px 24px 32px;
    }

    .post-card-wide {
        flex-direction: column;
    }

    .post-card-wide .post-cover {
        flex-basis: auto;
        aspect-ratio: 16/9;
        min-height: 0;
    }
}

.table-hint {
    display: none;
}

@media (max-width: 768px) {
    .table-hint {
        display: block;
        font-size: 0.85rem;
        color: var(--light-gray);
        margin: 0 0 -16px;
    }
}

/* article header aligns with article text (both 860px incl. padding) */
.article-hero .container {
    box-sizing: border-box;
}

/* ====== TYPOGRAPHY SYSTEM (blog / articles) ====== */
.article-wrap {
    font-size: 1.0625rem;
    line-height: 1.7;
}

.article-lead {
    font-size: 1.15rem;
    line-height: 1.6;
}

.article-wrap h2 {
    line-height: 1.2;
}

.article-cta p {
    font-size: 1rem;
    line-height: 1.55;
}

.post-grid-3 .post-card h2 {
    font-size: 1.2rem;
    line-height: 1.25;
}

.featured-body h2 {
    line-height: 1.12;
}

@media (max-width: 768px) {
    .article-wrap {
        font-size: 1rem;
        line-height: 1.65;
    }

    .article-lead {
        font-size: 1.05rem;
    }
}

/* blog.css loads after index.css — restate the shared scale here */
.blog-hero h1 {
    font-size: var(--fs-title);
    line-height: 1.04;
}

.blog-hero p {
    font-size: var(--fs-lead);
    line-height: var(--lh-text);
}

.post-card p,
.post-grid-3 .post-card p,
.featured-body p {
    font-size: var(--fs-card);
    line-height: var(--lh-text);
}

/* compact post cards */
.post-body,
.post-grid-3 .post-body {
    padding: 24px 26px 26px;
}

.post-card h2 {
    margin-bottom: 10px;
}

.post-card p {
    margin-bottom: 16px;
}

.featured-body {
    padding: 40px 40px;
}

@media (max-width: 680px) {
    .post-body,
    .post-grid-3 .post-body {
        padding: 20px 20px 22px;
    }

    .featured-body {
        padding: 24px 20px 26px;
    }
}

@media (max-width: 768px) {
    .article-wrap {
        font-size: 0.95rem;
    }

    .article-hero h1 {
        font-size: clamp(1.6rem, 7vw, 2rem);
    }

    .article-wrap h2 {
        font-size: 1.3rem;
    }

    .article-lead {
        font-size: 1rem;
    }

    .post-grid-3 .post-card h2,
    .featured-body h2 {
        font-size: 1.1rem;
    }

    .featured-body h2 {
        font-size: 1.35rem;
    }
}

/* header background is drawn by .nav-container::before (see index.css) */
.blog-page .nav-container {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
}
