/* ===================== BLOG — EDITORIAL DARK DESIGN ===================== */

/* BLOG HERO */
.blog-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.bh-bg {
    position: absolute; inset: 0; z-index: 0;
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&w=1600&q=80');
    background-size: cover; background-position: center;
    background-color: #050d1a;
}
.bh-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(145deg,
        rgba(5,13,26,0.88) 0%,
        rgba(10,31,61,0.82) 40%,
        rgba(13,40,71,0.78) 70%,
        rgba(5,13,26,0.90) 100%
    );
}

.bh-grid {
    position: absolute; inset: 0; z-index: 1;
    background-image:
        linear-gradient(rgba(21,88,168,0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21,88,168,0.12) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
}

.bh-glow {
    position: absolute; z-index: 1; border-radius: 50%;
    filter: blur(80px); opacity: 0.35; animation: glow-pulse 6s ease-in-out infinite;
}
.bh-glow-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #1558a8 0%, transparent 70%);
    top: -100px; left: -100px;
    animation-delay: 0s;
}
.bh-glow-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #d4820a 0%, transparent 70%);
    bottom: -80px; right: 5%;
    animation-delay: 3s;
}
@keyframes glow-pulse {
    0%, 100% { opacity: 0.25; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(1.1); }
}

/* Blog nav starts transparent like homepage */
body.blog #site-nav {
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

body.blog #site-nav.scrolled {
    background: rgba(255,255,255,0.98) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: 0 2px 16px rgba(21,88,168,0.10) !important;
}

/* Logo and links white on blog hero */
body.blog .logo { color: white !important; }
@media (min-width: 769px) {
body.blog #site-nav.scrolled .logo { color: var(--primary) !important; }
body.blog .nav-links a { color: rgba(255,255,255,0.85) !important; }
body.blog #site-nav.scrolled .nav-links a { color: var(--text-dim) !important; }
}


body.blog #nav-toggle span { background: white !important; }
body.blog #site-nav.scrolled #nav-toggle span { background: var(--text) !important; }

/* White outlined button → blue on scroll */
body.blog .nav-btn { background: white; color: var(--primary) !important; }
body.blog #site-nav.scrolled .nav-btn { background: var(--primary) !important; color: white !important; }

.bh-noise {
    position: absolute; inset: 0; z-index: 2; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

.bh-inner {
    position: relative; z-index: 3;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

.bh-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(213,130,10,0.15);
    border: 1px solid rgba(213,130,10,0.35);
    padding: 7px 16px; border-radius: 100px;
    margin-bottom: 28px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: #f0a832;
    animation: fade-up 0.8s ease both;
}
.bh-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #f0a832;
    box-shadow: 0 0 8px #f0a832;
    animation: dot-blink 2s ease-in-out infinite;
}
@keyframes dot-blink { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

.bh-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    color: white;
    margin-bottom: 24px;
    animation: fade-up 0.8s ease 0.1s both;
}
.bh-title em { font-style: italic; color: #7ec8f7; }
.bh-title-outline {
    -webkit-text-stroke: 2px rgba(255,255,255,0.5);
    color: transparent; display: block;
}

.bh-sub {
    font-size: 1rem; color: rgba(255,255,255,0.65);
    line-height: 1.8; max-width: 480px; margin-bottom: 36px;
    animation: fade-up 0.8s ease 0.2s both;
}

.bh-search { animation: fade-up 0.8s ease 0.3s both; }
.bh-search form {
    display: flex; gap: 0;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px; overflow: hidden;
    max-width: 440px;
    backdrop-filter: blur(10px);
}
.bh-search input[type="search"] {
    flex: 1; padding: 14px 18px;
    background: transparent; border: none; outline: none;
    color: white; font-size: 0.9rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.bh-search input[type="search"]::placeholder { color: rgba(255,255,255,0.4); }
.bh-search input[type="submit"] {
    padding: 14px 20px;
    background: linear-gradient(135deg, #1558a8, #2d78c8);
    border: none; color: white; font-weight: 700;
    font-size: 0.85rem; cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: background 0.2s;
}
.bh-search input[type="submit"]:hover { background: linear-gradient(135deg, #0e3f7a, #1558a8); }

.bh-cards {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    animation: fade-up 0.8s ease 0.2s both;
}
.bh-stat-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px; padding: 28px 24px;
    backdrop-filter: blur(12px);
    transition: all 0.3s; position: relative; overflow: hidden;
}
.bh-stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(21,88,168,0.8), transparent);
}
.bh-sc-1::before { background: linear-gradient(90deg, transparent, #f0a832, transparent); }
.bh-sc-3::before { background: linear-gradient(90deg, transparent, #7ec8f7, transparent); }
.bh-stat-card:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); transform: translateY(-3px); }
.bsc-icon { font-size: 1.5rem; margin-bottom: 12px; }
.bsc-num { font-family: 'Fraunces', serif; font-size: 2.2rem; font-weight: 900; color: white; line-height: 1; margin-bottom: 6px; }
.bsc-lbl { font-size: 0.75rem; color: rgba(255,255,255,0.55); font-weight: 500; }

.bh-scroll {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.bh-scroll-line {
    width: 1px; height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}
.bh-scroll span { font-size: 0.65rem; color: rgba(255,255,255,0.4); letter-spacing: 0.15em; text-transform: uppercase; }
@keyframes scroll-line { 0%,100%{opacity:0.3;} 50%{opacity:1;} }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* CATEGORY STRIP */
.blog-cat-strip {
    background: white; border-bottom: 1px solid var(--border);
    padding: 16px 0; position: sticky; top: 64px; z-index: 100;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.bcs-inner { display: flex; align-items: center; gap: 20px; }
.bcs-label { font-size: 0.72rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.12em; white-space: nowrap; }
.blog-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-pill {
    padding: 6px 16px; border-radius: 100px; font-size: 0.8rem; font-weight: 600;
    border: 1.5px solid var(--border); color: var(--text-dim);
    text-decoration: none; transition: all 0.2s; background: white; white-space: nowrap;
}
.cat-pill:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary-light); }
.cat-pill.active { background: var(--primary); color: white; border-color: var(--primary); }

/* BLOG MAIN */
.blog-main { padding: 64px 0 100px; background: #f8fafd; }
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }

/* FEATURED POST */
.blog-featured {
    display: grid; grid-template-columns: 1.1fr 1fr;
    border-radius: 20px; overflow: hidden;
    border: 1px solid var(--border); margin-bottom: 48px;
    box-shadow: 0 8px 40px rgba(5,13,26,0.1); background: white;
    transition: box-shadow 0.3s, transform 0.3s;
}
.blog-featured:hover { box-shadow: 0 20px 60px rgba(5,13,26,0.15); transform: translateY(-4px); }

.featured-img-wrap { display: block; overflow: hidden; position: relative; min-height: 360px; }
.featured-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-featured:hover .featured-img { transform: scale(1.05); }
.featured-img-placeholder {
    width: 100%; height: 100%; min-height: 360px;
    background: linear-gradient(145deg, #050d1a, #1558a8);
    display: flex; align-items: center; justify-content: center;
}
.featured-overlay { position: absolute; top: 16px; left: 16px; }
.featured-badge {
    background: linear-gradient(135deg, #d4820a, #f0a832); color: white;
    font-size: 0.7rem; font-weight: 800; padding: 5px 12px; border-radius: 100px;
    letter-spacing: 0.1em; text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(212,130,10,0.4);
}
.featured-body { padding: 44px 36px; display: flex; flex-direction: column; justify-content: center; background: white; gap: 16px; }
.featured-title { font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
.featured-title a { color: var(--text); text-decoration: none; transition: color 0.2s; }
.featured-title a:hover { color: var(--primary); }
.featured-excerpt { color: var(--text-dim); font-size: 0.92rem; line-height: 1.8; }
.featured-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.post-author { display: flex; align-items: center; gap: 10px; }
.author-avatar { border-radius: 50%; width: 40px; height: 40px; }
.author-name { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text); }
.author-role { display: block; font-size: 0.72rem; color: var(--text-dim); }
.read-more-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--primary); color: white;
    padding: 10px 18px; border-radius: 8px;
    font-weight: 700; font-size: 0.82rem; text-decoration: none;
    transition: all 0.2s; white-space: nowrap;
}
.read-more-btn:hover { background: var(--primary-dark); transform: translateX(2px); }

.post-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-cat {
    background: rgba(21,88,168,0.1); color: var(--primary);
    padding: 3px 10px; border-radius: 100px; font-size: 0.7rem;
    font-weight: 700; text-decoration: none; letter-spacing: 0.06em; text-transform: uppercase;
    transition: all 0.2s;
}
.post-cat:hover { background: var(--primary); color: white; }
.post-date, .post-read { font-size: 0.76rem; color: var(--text-dim); }
.post-dot { color: var(--border); }

/* CARDS */
.blog-cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 48px; }
.blog-card {
    border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
    background: white; transition: box-shadow 0.25s, transform 0.25s;
    display: flex; flex-direction: column;
}
.blog-card:hover { box-shadow: 0 12px 40px rgba(5,13,26,0.1); transform: translateY(-4px); }
.card-img-wrap { display: block; overflow: hidden; position: relative; aspect-ratio: 16/9; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .card-img { transform: scale(1.06); }
.card-img-placeholder {
    width: 100%; height: 100%; background: linear-gradient(145deg, #050d1a, #1558a8);
    display: flex; align-items: center; justify-content: center;
}
.card-cat-badge {
    position: absolute; top: 12px; left: 12px;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
    color: white; font-size: 0.68rem; font-weight: 700;
    padding: 4px 10px; border-radius: 100px;
    letter-spacing: 0.08em; text-transform: uppercase;
}
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.card-title { font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 800; line-height: 1.35; }
.card-title a { color: var(--text); text-decoration: none; transition: color 0.2s; }
.card-title a:hover { color: var(--primary); }
.card-excerpt { font-size: 0.83rem; color: var(--text-dim); line-height: 1.7; flex: 1; }
.card-link { display: inline-flex; align-items: center; gap: 5px; color: var(--primary); font-weight: 700; font-size: 0.82rem; text-decoration: none; margin-top: 4px; transition: gap 0.2s; }
.card-link:hover { gap: 8px; }

/* PAGINATION */
.blog-pagination { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding-top: 16px; }
.blog-pagination .page-numbers { padding: 9px 16px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; border: 1.5px solid var(--border); color: var(--text-dim); text-decoration: none; transition: all 0.2s; background: white; }
.blog-pagination .page-numbers:hover { background: var(--primary-light); color: var(--primary); }
.blog-pagination .page-numbers.current { background: var(--primary); color: white; border-color: var(--primary); }

/* EMPTY */
.blog-empty { text-align: center; padding: 100px 24px; background: white; border-radius: 20px; border: 1px solid var(--border); }
.blog-empty-icon { font-size: 3rem; margin-bottom: 16px; }
.blog-empty h3 { font-family: 'Fraunces', serif; font-size: 1.6rem; margin-bottom: 10px; }
.blog-empty p { color: var(--text-dim); margin-bottom: 28px; }

/* SIDEBAR */
.blog-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 130px; }
.sidebar-widget { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px; overflow: hidden; }
.widget-title { font-family: 'Fraunces', serif; font-size: 0.95rem; font-weight: 800; color: var(--text); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--primary-light); }
.widget-text { font-size: 0.84rem; color: var(--text-dim); line-height: 1.75; }
.sw-about { border-top: 4px solid var(--primary); }
.sw-about-icon { font-size: 2rem; margin-bottom: 12px; }
.sw-btn { display: block; text-align: center; margin-top: 16px; font-size: 0.85rem; padding: 11px 20px; }

.sidebar-cats { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sidebar-cats li a { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-radius: 8px; text-decoration: none; transition: all 0.2s; }
.sidebar-cats li a:hover { background: var(--primary-light); }
.sc-name { font-size: 0.84rem; color: var(--text); font-weight: 500; }
.sc-count { background: var(--border); color: var(--text-dim); padding: 2px 8px; border-radius: 100px; font-size: 0.7rem; font-weight: 700; }

.sidebar-recent { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.sidebar-recent li a { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; transition: opacity 0.2s; }
.sidebar-recent li a:hover { opacity: 0.7; }
.recent-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.recent-thumb-ph { width: 56px; height: 56px; border-radius: 10px; background: linear-gradient(135deg, #050d1a, #1558a8); flex-shrink: 0; }
.recent-info { display: flex; flex-direction: column; gap: 4px; }
.recent-title { font-size: 0.82rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.recent-date { font-size: 0.7rem; color: var(--text-dim); }

.sidebar-cta { position: relative; border: none; padding: 0; }
.scta-bg { position: absolute; inset: 0; background: linear-gradient(145deg, #050d1a 0%, #0d2847 50%, #1558a8 100%); }
.scta-content { position: relative; z-index: 1; padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.scta-tag { display: inline-block; background: rgba(240,168,50,0.2); border: 1px solid rgba(240,168,50,0.4); color: #f0a832; font-size: 0.68rem; font-weight: 700; padding: 4px 10px; border-radius: 100px; letter-spacing: 0.1em; text-transform: uppercase; width: fit-content; }
.sidebar-cta h4 { font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 800; color: white; line-height: 1.3; }
.sidebar-cta p { font-size: 0.82rem; color: rgba(255,255,255,0.7); line-height: 1.6; }
.scta-btn { display: block; text-align: center; margin-top: 6px; font-size: 0.85rem; }


/* RESPONSIVE */
@media (max-width: 1024px) { .blog-layout { grid-template-columns: 1fr; } .blog-sidebar { position: static; } }
@media (max-width: 900px) { .bh-inner { grid-template-columns: 1fr; } .bh-right { display: none; } .blog-featured { grid-template-columns: 1fr; } .featured-img-wrap { min-height: 240px; } }
@media (max-width: 768px) { .blog-hero { min-height: auto; padding: 80px 0 60px; } .bh-inner { padding-top: 0; } .bh-title { font-size: 2.2rem; } .featured-body { padding: 24px; } .blog-cards-grid { grid-template-columns: 1fr; } .blog-cat-strip { top: 56px; } }
@media (max-width: 480px) { .bh-title { font-size: 1.9rem; } .blog-main { padding: 40px 0 80px; } }
@media (max-width: 768px) {
    body.blog .nav-links a { color: var(--text-dim) !important; }
    body.blog .nav-links a:hover { color: var(--primary) !important; }
}