/* ============================================
   ASURA GROUP — Ghost Blog Theme v2.0
   Source: asuragroup.com production brand kit
   Design Philosophy: Elliott 247 Premium Aesthetic
   ============================================ */

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Primary */
    --primary: #0075FF;
    --primary-hover: #1E90FF;
    --cyan: #00D4FF;

    /* Backgrounds */
    --bg-base: #000000;
    --bg-surface-1: #111111;
    --bg-surface-2: #1a1a1a;
    --bg-surface-3: #0a0a0a;

    /* Borders */
    --border: #333333;
    --border-dark: #222222;

    /* Text */
    --text-primary: #ffffff;
    --text-90: rgba(255,255,255,0.9);
    --text-80: rgba(255,255,255,0.8);
    --text-70: rgba(255,255,255,0.7);
    --text-60: rgba(255,255,255,0.6);
    --text-50: rgba(255,255,255,0.5);
    --text-footer: #EBEBEB;

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows */
    --glow-hero: 0 0 40px rgba(0,117,255,0.8), 0 0 80px rgba(0,117,255,0.4), 0 4px 20px rgba(0,0,0,0.9);
    --glow-section: 0 0 30px rgba(0,117,255,0.6), 0 4px 15px rgba(0,0,0,0.8);
    --glow-subtle: 0 0 20px rgba(0,117,255,0.4);
    --shadow-card-hover: 0 0 30px rgba(0,117,255,0.3);
    --shadow-cta-hover: 0 0 40px rgba(0,117,255,0.6);
    --shadow-featured: 0 0 60px rgba(0,117,255,0.3);

    /* Layout */
    --content-width: 720px;
    --max-width: 1200px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #000000; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0075FF 0%, #1E90FF 100%);
    border-radius: 6px;
    border: 2px solid #000000;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1E90FF 0%, #00D4FF 100%);
}

/* === Selection === */
::selection {
    background-color: rgba(0,117,255,0.3);
    color: #ffffff;
}

/* === Links === */
a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary-hover); }

img { max-width: 100%; height: auto; display: block; }

/* === Border Gradient Utility === */
.border-gradient {
    border: 2px solid transparent;
    background-image:
        linear-gradient(#000000, #000000),
        linear-gradient(135deg, #0075FF, #1E90FF, #00D4FF);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: linear-gradient(135deg, #0075FF 0%, #1E90FF 50%, #00D4FF 100%);
    padding: 0.6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 2px 20px rgba(0,117,255,0.5);
}

.announcement-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    justify-content: center;
}

.announcement-badge {
    background: rgba(255,255,255,0.2);
    color: white;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.announcement-text {
    color: white;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
}

.announcement-link {
    color: white;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s;
}

.announcement-link:hover { opacity: 0.85; color: white; }

.announcement-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.25rem;
    flex-shrink: 0;
    transition: color 0.2s;
}

.announcement-close:hover { color: white; }

.announcement-bar.hidden { display: none; }

/* Adjust header + main when bar is visible */
.announcement-bar ~ .site-header { top: 42px; }
.announcement-bar.hidden ~ .site-header { top: 0; }
.announcement-bar ~ .site-header ~ .site-main { padding-top: 122px; }
.announcement-bar.hidden ~ .site-header ~ .site-main { padding-top: 80px; }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
    position: fixed;
    top: 42px;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: 80px;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo img { height: 40px; width: auto; }

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.logo-accent { color: var(--primary); }

.site-nav { display: flex; gap: 2rem; align-items: center; }

.site-nav a {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.3s;
}

.site-nav a:hover { color: var(--primary); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* Mobile nav slide-in */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .site-nav {
        display: none;
        position: fixed;
        top: 80px;
        right: 0;
        width: 280px;
        height: 100vh;
        background: rgba(0,0,0,0.98);
        border-left: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    .site-nav.is-open {
        display: flex;
        transform: translateX(0);
    }
    .site-nav a { font-size: 1.2rem; }
}

/* ============================================
   READING PROGRESS
   ============================================ */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(135deg, #0075FF 0%, #1E90FF 50%, #00D4FF 100%);
    z-index: 200;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(0,117,255,0.8);
}

/* ============================================
   MAIN
   ============================================ */
.site-main { padding-top: 122px; }

/* ============================================
   BLOG HERO
   ============================================ */
.blog-hero {
    padding: 5rem 2rem 3.5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-surface-3) 0%, var(--bg-base) 100%);
    border-bottom: 1px solid var(--border);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-shadow: var(--glow-hero);
}

.text-accent { color: var(--primary); }

.hero-description {
    color: var(--text-70);
    font-size: 1.125rem;
    max-width: 500px;
    margin: 0 auto;
    font-family: var(--font-body);
}

/* ============================================
   FEATURED POST
   ============================================ */
.featured-post {
    max-width: var(--max-width);
    margin: 2.5rem auto;
    padding: 0 2rem;
}

.featured-link { text-decoration: none; color: inherit; display: block; }

.featured-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: linear-gradient(135deg, var(--bg-surface-1), var(--bg-surface-2));
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.featured-inner:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-featured);
    transform: translateY(-3px);
}

.featured-image img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.featured-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,117,255,0.2), rgba(30,144,255,0.1));
    font-size: 4rem;
}

.featured-content {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0075FF, #1E90FF);
    color: white;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.3rem 0.85rem;
    border-radius: 4px;
    margin-bottom: 0.85rem;
    width: fit-content;
}

.post-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.featured-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 0.85rem;
    color: var(--text-primary);
}

.featured-excerpt {
    color: var(--text-70);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.featured-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-50);
    font-size: 0.82rem;
    font-family: var(--font-body);
}

/* ============================================
   POST GRID
   ============================================ */
.post-grid-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
}

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

.post-card {
    background: linear-gradient(135deg, var(--bg-surface-1), var(--bg-surface-2));
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.post-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px) scale(1.01);
}

.post-card-link { text-decoration: none; color: inherit; display: block; }

.post-card-image { aspect-ratio: 16/9; overflow: hidden; }

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-card-image img { transform: scale(1.05); }

.post-card-no-image {
    background: linear-gradient(135deg, rgba(0,117,255,0.15), rgba(30,144,255,0.05));
}

.post-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.post-card-content { padding: 1.35rem; }

.post-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.post-card-excerpt {
    color: var(--text-70);
    font-size: 0.85rem;
    line-height: 1.55;
    margin-bottom: 0.85rem;
}

.post-card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-50);
    font-size: 0.78rem;
}

.post-date, .post-reading-time { font-family: var(--font-body); }

/* ============================================
   SINGLE POST — HEADER
   ============================================ */
.post-header {
    padding: 5rem 2rem 2.5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-surface-3) 0%, var(--bg-base) 100%);
    border-bottom: 1px solid var(--border);
}

.post-header-inner {
    max-width: var(--content-width);
    margin: 0 auto;
}

.post-tag-link {
    display: inline-block;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.post-tag-link:hover { color: var(--primary-hover); }

.post-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-shadow: var(--glow-section);
}

.post-excerpt {
    color: var(--text-80);
    font-size: 1.1rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.post-author-info { display: flex; align-items: center; gap: 0.85rem; }

.author-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0075FF, #1E90FF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: white;
}

.author-details { text-align: left; }

.author-name {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.author-title {
    display: block;
    color: var(--text-50);
    font-size: 0.78rem;
    font-family: var(--font-body);
}

.post-stats {
    color: var(--text-50);
    font-size: 0.85rem;
    font-family: var(--font-body);
}

.post-separator { margin: 0 0.35rem; }

/* ============================================
   FEATURE IMAGE
   ============================================ */
.post-feature-image {
    max-width: 860px;
    margin: 2.5rem auto;
    padding: 0 2rem;
}

.post-feature-image img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
}

/* ============================================
   POST CONTENT
   ============================================ */
.post-content-wrapper {
    position: relative;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.post-content {
    padding: 2rem 0;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-90);
}

/* Blog markdown styling — exact brand kit values */
.post-content h2 {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
    text-shadow: var(--glow-subtle);
}

.post-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    color: var(--text-primary);
}

.post-content h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
    color: var(--text-primary);
}

.post-content p {
    margin-bottom: 1.25rem;
    color: var(--text-90);
    line-height: 1.85;
}

.post-content strong { color: var(--text-primary); font-weight: 700; }

.post-content em { color: var(--text-80); font-style: italic; }

.post-content ul, .post-content ol {
    margin: 1rem 0 1.25rem 1.5rem;
    color: var(--text-90);
}

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

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.75rem 0;
    background: rgba(0,117,255,0.05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-80);
    font-style: italic;
}

.post-content code {
    background: var(--bg-surface-2);
    color: var(--primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.post-content pre {
    background: var(--bg-surface-1);
    color: var(--text-90);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 1.75rem 0;
    border: 1px solid var(--border);
}

.post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.post-content img {
    border-radius: var(--radius-sm);
    margin: 1.75rem 0;
    border: 1px solid var(--border);
}

.post-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s;
}

.post-content a:hover { color: var(--primary-hover); }

.post-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.75rem 0;
    border: 1px solid var(--border);
}

.post-content th, .post-content td {
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    text-align: left;
}

.post-content th {
    background: var(--bg-surface-2);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

.post-content td { color: var(--text-80); }

/* ============================================
   VIDEO EMBED
   ============================================ */
.video-wrapper {
    position: relative !important;
    padding-bottom: 56.25% !important;
    height: 0 !important;
    overflow: hidden;
    max-width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 2.5rem;
    border: 1px solid var(--border);
}

.video-wrapper iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.kg-embed-card { margin: 0 0 2rem 0; }

/* ============================================
   TABLE OF CONTENTS
   ============================================ */
.toc-sidebar {
    display: none;
    position: fixed;
    top: 100px;
    width: 200px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

@media (min-width: 1350px) {
    .toc-sidebar {
        display: block;
        left: calc(50% + var(--content-width) / 2 + 3rem);
    }
}

.toc-nav {
    border-left: 2px solid var(--border);
    padding-left: 1rem;
}

.toc-title {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-50);
    margin-bottom: 0.75rem;
}

.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin-bottom: 0.5rem; }

.toc-link {
    color: var(--text-50);
    font-size: 0.78rem;
    line-height: 1.4;
    transition: color 0.2s;
    display: block;
    text-decoration: none;
}

.toc-link:hover, .toc-link.active { color: var(--primary); }

/* ============================================
   POST TAGS
   ============================================ */
.post-tags {
    max-width: var(--content-width);
    margin: 2rem auto;
    padding: 0 2rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag-pill {
    background: linear-gradient(135deg, var(--bg-surface-1), var(--bg-surface-2));
    color: var(--text-70);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-heading);
    border: 1px solid var(--border);
    transition: all 0.3s;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(0,117,255,0.2);
}

/* ============================================
   AUTHOR BOX
   ============================================ */
.author-box {
    max-width: var(--content-width);
    margin: 3rem auto;
    padding: 0 2rem;
}

.author-box-inner {
    display: flex;
    gap: 1.5rem;
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, rgba(0,117,255,0.1), rgba(30,144,255,0.05));
    border-radius: var(--radius-lg);
    border: 1px solid var(--primary);
}

.author-box-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.avatar-placeholder-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0075FF, #1E90FF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.author-box-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.author-box-bio {
    color: var(--text-70);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ============================================
   POST CTA
   ============================================ */
.post-cta {
    max-width: var(--content-width);
    margin: 2.5rem auto 4rem;
    padding: 0 2rem;
}

.post-cta-inner {
    text-align: center;
    padding: 3.5rem 2rem;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255,255,255,0.02) 0px,
            rgba(255,255,255,0.02) 1px,
            transparent 1px,
            transparent 20px
        ),
        radial-gradient(ellipse at center, rgba(0,117,255,0.15) 0%, transparent 70%),
        linear-gradient(135deg, var(--bg-surface-1), #0d1f3c);
    border-radius: var(--radius-xl);
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-featured);
}

.post-cta-inner h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    text-shadow: var(--glow-subtle);
}

.post-cta-inner p {
    color: var(--text-70);
    margin-bottom: 2rem;
    font-family: var(--font-body);
}

/* ============================================
   RELATED POSTS
   ============================================ */
.related-posts {
    max-width: var(--max-width);
    margin: 4rem auto;
    padding: 0 2rem;
    border-top: 1px solid var(--border);
    padding-top: 3rem;
}

.related-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 1.75rem;
    color: var(--text-primary);
    text-shadow: var(--glow-subtle);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-card a { text-decoration: none; color: inherit; }

.related-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--radius-sm);
    margin-bottom: 0.85rem;
    border: 1px solid var(--border);
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.related-card:hover .related-image img { transform: scale(1.05); }

.related-card-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
    transition: color 0.3s;
}

.related-card:hover .related-card-title { color: var(--primary); }

/* ============================================
   CTA SECTION (INDEX)
   ============================================ */
.cta-section {
    padding: 5rem 2rem;
    margin-top: 2rem;
    background: linear-gradient(135deg, var(--bg-surface-3) 0%, rgba(0,117,255,0.08) 50%, var(--bg-surface-3) 100%);
    border-top: 1px solid var(--border);
}

.cta-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-primary);
    text-shadow: var(--glow-section);
}

.cta-text {
    color: var(--text-70);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    line-height: 1.65;
}

.cta-buttons { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: all 0.3s;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #0075FF, #1E90FF);
    color: white;
    box-shadow: 0 4px 20px rgba(0,117,255,0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1E90FF, #00D4FF);
    color: white;
    transform: translateY(-2px) scale(1.03);
    box-shadow: var(--shadow-cta-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0,117,255,0.2);
}

/* ============================================
   TAG PAGE
   ============================================ */
.tag-page { max-width: var(--max-width); margin: 0 auto; padding: 2rem; }

.tag-header {
    padding: 4rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.5rem;
}

.tag-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-shadow: var(--glow-section);
}

.tag-description { color: var(--text-70); font-size: 1.05rem; margin-bottom: 0.5rem; }
.tag-count { color: var(--text-50); font-size: 0.9rem; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.pagination a {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: color 0.3s;
}

.pagination a:hover { color: var(--primary-hover); }
.pagination-info { color: var(--text-50); font-size: 0.85rem; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-base);
    border-top: 1px solid var(--border);
    padding: 3.5rem 2rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-tagline {
    color: rgba(235,235,235,0.5);
    font-size: 0.85rem;
    margin-top: 0.3rem;
    font-family: var(--font-body);
}

.footer-links { display: flex; gap: 2rem; }

.footer-links a {
    color: rgba(235,235,235,0.7);
    font-size: 0.875rem;
    font-family: var(--font-body);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--primary); }

.footer-copy p {
    color: rgba(235,235,235,0.4);
    font-size: 0.78rem;
    font-family: var(--font-body);
}

/* ============================================
   GHOST OVERRIDES
   ============================================ */
.gh-portal-triggerbtn-container { display: none !important; }

/* Ghost accent color */
:root { --ghost-accent-color: #0075FF !important; }

/* === Subscribe Form === */
.subscribe-section {
    max-width: var(--content-width);
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.subscribe-box {
    background: linear-gradient(135deg, var(--bg-surface-1), var(--bg-surface-2));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
}

.subscribe-box h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-shadow: var(--glow-subtle);
}

.subscribe-box p {
    color: var(--text-70);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.subscribe-form {
    display: flex;
    gap: 0.75rem;
    max-width: 480px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.subscribe-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    background: var(--bg-base);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.subscribe-form input[type="email"]:focus { border-color: var(--primary); }
.subscribe-form input[type="email"]::placeholder { color: var(--text-50); }

.subscribe-form button {
    background: linear-gradient(135deg, #0075FF, #1E90FF);
    color: white;
    border: none;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.subscribe-form button:hover {
    background: linear-gradient(135deg, #1E90FF, #00D4FF);
    box-shadow: var(--shadow-cta-hover);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .subscribe-form { flex-direction: column; }
    .subscribe-form input[type="email"] { min-width: unset; width: 100%; }
    .subscribe-form button { width: 100%; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-inner { grid-template-columns: 1fr; }
    .featured-image { aspect-ratio: 16/9; overflow: hidden; }
    .featured-image img { width: 100%; height: 100%; object-fit: cover; }
    .featured-image-placeholder { min-height: 220px; }
}

@media (max-width: 768px) {
    .post-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .post-title { font-size: 1.6rem; }
    .post-meta-bar { flex-direction: column; gap: 1rem; }
    .author-box-inner { flex-direction: column; text-align: center; align-items: center; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { flex-direction: column; gap: 0.75rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .featured-content { padding: 2rem 1.5rem; }
    .post-content-wrapper { padding: 0 1rem; }
}
