/* ============================================================
   BLOG PAGE STYLES
   ============================================================ */

.blog-hero {
    min-height: 56vh;
    padding: 130px 24px 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #071020 0%, #0f2d5a 48%, #1a56db 100%);
}

.blog-hero-inner {
    width: min(760px, 100%);
    text-align: center;
    position: relative;
    z-index: 1;
}

.blog-hero h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(48px, 8vw, 86px);
    line-height: 0.95;
    color: #fff;
    margin: 14px 0 18px;
}

.blog-hero p {
    max-width: 620px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.64);
    font-size: 15px;
    line-height: 1.75;
}

.blog-hero .hero-divider {
    margin: 28px auto 0;
}

.blog-section {
    background: var(--surface);
    padding: 70px 24px 80px;
}

.blog-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-head {
    text-align: center;
    margin-bottom: 28px;
}

.blog-head .sec-desc {
    margin-bottom: 26px;
}

.blog-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 7px 16px;
    border: 0;
    border-radius: 4px;
    background: var(--blue2);
    color: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: default;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
}

.blog-card {
    min-width: 0;
}

.blog-img {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: var(--surface);
    aspect-ratio: 1.5 / 1;
    margin-bottom: 14px;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.blog-card:hover .blog-img img {
    transform: scale(1.04);
}

.blog-meta {
    margin-bottom: 5px;
    color: #9aa5b8;
    font-size: 12px;
    line-height: 1.4;
}

.blog-meta span {
    margin: 0 6px;
}

.blog-card h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 25px;
    line-height: 1.12;
    color: var(--ink);
    margin-bottom: 8px;
}

.blog-card h3 a {
    transition: color var(--transition);
}

.blog-card h3 a:hover {
    color: var(--blue);
}

.blog-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 8px;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    color: var(--blue2);
    font-size: 13px;
    font-weight: 600;
    transition: color var(--transition), transform var(--transition);
}

.blog-link:hover {
    color: var(--blue);
    transform: translateX(3px);
}

/* ============================================================
   BLOG POST (ARTICLE) STYLES
   ============================================================ */

.post-hero {
    padding: 130px 24px 60px;
    background: linear-gradient(135deg, #071020 0%, #0f2d5a 48%, #1a56db 100%);
    position: relative;
    overflow: hidden;
}

.post-hero-inner {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.post-hero .hero-tag {
    margin-bottom: 14px;
}

.post-hero h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.0;
    color: #fff;
    margin-bottom: 18px;
}

.post-hero .post-meta {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    margin-bottom: 0;
}

.post-hero .post-meta span {
    margin: 0 8px;
}

.post-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.post-featured-img {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 40px;
    display: block;
}

.post-body {
    font-size: 15px;
    line-height: 1.78;
    color: var(--muted);
}

.post-body h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 700;
    color: var(--ink);
    margin: 44px 0 14px;
    line-height: 1.1;
}

.post-body h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 600;
    color: var(--ink);
    margin: 32px 0 10px;
}

.post-body p {
    margin-bottom: 18px;
}

.post-body ul,
.post-body ol {
    padding-left: 22px;
    margin-bottom: 18px;
}

.post-body li {
    margin-bottom: 8px;
}

.post-body a:not(.btn) {
    color: var(--blue2);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition);
}

.post-body a:not(.btn):hover {
    color: var(--blue);
}

.post-callout {
    background: var(--surface);
    border-left: 4px solid var(--blue2);
    border-radius: 0 8px 8px 0;
    padding: 18px 22px;
    margin: 32px 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink);
    font-style: italic;
}

.post-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.post-stat {
    background: var(--surface);
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
}

.post-stat-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--blue2);
    line-height: 1;
    display: block;
    margin-bottom: 6px;
}

.post-stat-label {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

.post-cta-inline {
    background: linear-gradient(120deg, #0f2d5a 0%, #1a56db 100%);
    border-radius: 10px;
    padding: 30px 28px;
    margin: 40px 0;
    text-align: center;
    color: #fff;
}

.post-cta-inline h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 26px;
    color: #fff;
    margin-bottom: 8px;
}

.post-cta-inline p {
    color: rgba(255,255,255,0.72);
    font-size: 14px;
    margin-bottom: 18px;
}

.post-cta-inline .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.post-related {
    padding: 60px 24px 80px;
    background: var(--surface);
}

.post-related-wrap {
    max-width: 820px;
    margin: 0 auto;
}

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

.post-related-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.post-related-card .related-img {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-related-card .related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.post-related-card:hover .related-img img {
    transform: scale(1.04);
}

.post-related-card .blog-meta {
    padding: 16px 16px 0;
}

.post-related-card h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    line-height: 1.15;
    color: var(--ink);
    padding: 6px 16px 0;
    margin-bottom: 8px;
}

.post-related-card p {
    font-size: 13px;
    color: var(--muted);
    padding: 0 16px;
    line-height: 1.55;
    margin-bottom: 12px;
}

.post-related-card .blog-link {
    display: block;
    padding: 0 16px 16px;
}

@media(max-width:640px) {
    .post-stat-row {
        grid-template-columns: 1fr 1fr;
    }

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

/* ============================================================
   RESPONSIVE — BLOG LISTING
   ============================================================ */

@media(max-width:900px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:640px) {
    .blog-hero {
        min-height: auto;
        padding: 112px 24px 58px;
    }

    .blog-section {
        padding: 54px 20px 64px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .blog-card h3 {
        font-size: 23px;
    }
}
