/* ============================================================
   Blog / Insights Page — Premium Design System
   ============================================================ */

/* ── Hero Enhancements ─────────────────────────────────────── */
.blog-hero {
    padding-top: 9rem;
    padding-bottom: 6rem;
    text-align: center;
    background: linear-gradient(135deg, #0A1F3F 0%, #0D2B52 60%, #0a2540 100%);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 50%, rgba(0,229,255,0.07) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 80% 30%, rgba(0,229,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.blog-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #f9fafb;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.blog-hero .hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1.25rem;
    display: block;
}

.blog-hero-sub {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.blog-hero-sub--orange {
    color: #f59e0b;
}

.blog-hero-pills {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.blog-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    font-size: 0.85rem;
    color: #cbd5e1;
    transition: all 0.2s;
    text-decoration: none;
}

.blog-hero-pill:hover {
    background: rgba(0,229,255,0.1);
    border-color: var(--cyan);
    color: var(--cyan);
}

/* ── Sticky Topic Navigation ───────────────────────────────── */
.blog-topic-nav {
    background: rgba(10, 15, 30, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: 0;
    position: sticky;
    top: 72px;
    z-index: 200;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.blog-topic-list {
    display: flex;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
}

.blog-topic-link {
    display: inline-block;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 1rem 1.5rem;
    border-bottom: 3px solid transparent;
    transition: all 0.25s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.blog-topic-link:hover {
    color: #f9fafb;
    border-bottom-color: var(--cyan);
    background: rgba(255,255,255,0.03);
}

/* ── Section Layout ────────────────────────────────────────── */
.blog-topic-section {
    padding: 6rem 0;
    position: relative;
}

.blog-topic-section:not(.bg-light) {
    background: #ffffff;
}

.blog-topic-section.bg-light {
    background: #f8fafc;
}

/* Decorative top rule per section */
.blog-topic-section::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--cyan) 40%, transparent 100%);
    opacity: 0.3;
    margin-bottom: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

/* ── Section Header ────────────────────────────────────────── */
.blog-topic-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    padding-top: 1rem;
}

.blog-topic-header h2 {
    font-size: clamp(1.9rem, 3vw, 2.75rem);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.blog-topic-intro {
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.75;
    max-width: 620px;
    margin: 0 auto;
}

/* ── Topic Tags ────────────────────────────────────────────── */
.blog-topic-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.tag-teal {
    background: rgba(0,229,255,0.1);
    color: var(--cyan-dim);
    border: 1px solid rgba(0,229,255,0.25);
}

.tag-gold {
    background: rgba(245,158,11,0.1);
    color: var(--accent-gold);
    border: 1px solid rgba(245,158,11,0.3);
}

.tag-navy {
    background: rgba(26,35,50,0.07);
    color: var(--primary-main);
    border: 1px solid rgba(26,35,50,0.25);
}

.tag-green {
    background: rgba(0,229,255,0.1);
    color: var(--cyan-dim);
    border: 1px solid rgba(0,229,255,0.25);
}

/* ── Article Cards ─────────────────────────────────────────── */
.blog-article {
    background: #ffffff;
    border: 1px solid #e8edf2;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.02);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-article:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,229,255,0.15);
    transform: translateY(-4px);
}

/* Tinted top stripe per article type */
.blog-article[data-type="what"]    { border-top: 4px solid var(--cyan); }
.blog-article[data-type="how"]     { border-top: 4px solid var(--gold); }
.blog-article[data-type="roi"]     { border-top: 4px solid var(--navy-mid); }
.blog-article[data-type="faq"]     { border-top: 4px solid #818cf8; }

/* Fallback for glass-panel articles without data-type */
.blog-article.glass-panel {
    border-top: 4px solid var(--cyan);
}

.blog-article-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem 2.5rem;
    background: #f9fafb;
    border-bottom: 1px solid #e8edf2;
}

.blog-article-header h3 {
    font-size: 1.35rem;
    margin: 0;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    font-weight: 700;
}

.blog-article-body {
    padding: 2rem 2.5rem 2.5rem;
}

/* ── Article Icon ──────────────────────────────────────────── */
.blog-article-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 900;
    color: white;
    flex-shrink: 0;
    line-height: 1;
}

.blog-article-icon.icon-teal  { background: linear-gradient(135deg, #0A1F3F, #0D2B52); box-shadow: 0 4px 12px rgba(0,229,255,0.2); }
.blog-article-icon.icon-gold  { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 4px 12px rgba(245,158,11,0.35); }
.blog-article-icon.icon-navy  { background: linear-gradient(135deg, #0D2B52, #0A1F3F); box-shadow: 0 4px 12px rgba(10,31,63,0.3); }

/* ── Body Text ─────────────────────────────────────────────── */
.blog-article-body p {
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.blog-article-body p:last-child { margin-bottom: 0; }

/* ── Key Points Block ──────────────────────────────────────── */
.blog-key-points {
    background: linear-gradient(135deg, rgba(0,229,255,0.04), #f8fafc);
    border: 1px solid rgba(0,229,255,0.15);
    border-left: 4px solid var(--cyan);
    padding: 1.5rem 1.75rem;
    border-radius: 0 10px 10px 0;
    margin: 1.5rem 0;
}

.blog-key-points h4 {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--navy-mid);
    margin-bottom: 1rem;
}

.blog-key-points ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.blog-key-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-body);
    font-size: 0.97rem;
    line-height: 1.55;
}

.blog-key-points li .text-teal {
    flex-shrink: 0;
    margin-top: 0.1rem;
    font-size: 0.85rem;
}

/* ── Help Cards Grid ───────────────────────────────────────── */
.blog-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.blog-help-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.blog-help-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--cyan-dim));
    opacity: 0;
    transition: opacity 0.25s;
}

.blog-help-card:hover {
    border-color: rgba(0,229,255,0.3);
    box-shadow: 0 6px 24px rgba(0,229,255,0.08);
    transform: translateY(-4px);
}

.blog-help-card:hover::before { opacity: 1; }

.blog-help-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.blog-help-card h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-help-card h4 a:hover {
    color: var(--cyan-dim);
}

.blog-help-card p {
    font-size: 0.9rem;
    color: var(--text-body);
    margin: 0;
    line-height: 1.65;
}

/* ── ROI Table ─────────────────────────────────────────────── */
.blog-roi-table {
    margin-top: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.roi-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.15s;
}

.roi-row:last-child { border-bottom: none; }

.roi-row:hover .roi-detail {
    background: #f8fafc;
}

.roi-metric {
    background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy-deep) 100%);
    color: var(--cyan);
    padding: 1.1rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(0,229,255,0.15);
}

.roi-detail {
    background: #ffffff;
    padding: 1.1rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.65;
    display: flex;
    align-items: center;
    transition: background 0.15s;
}

.blog-roi-link {
    color: var(--cyan-dim);
    font-weight: 500;
    text-decoration: underline;
}

.blog-article-actions {
    margin-top: 1.5rem;
}

/* ── FAQ Accordion ─────────────────────────────────────────── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.faq-item:has(.faq-question[aria-expanded="true"]) {
    border-color: rgba(0,229,255,0.25);
    box-shadow: 0 4px 16px rgba(0,229,255,0.07);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: #ffffff;
    border: none;
    padding: 1.15rem 1.5rem;
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background 0.2s;
    font-family: inherit;
    line-height: 1.45;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question[aria-expanded="true"] {
    background: linear-gradient(135deg, rgba(0,229,255,0.05), #f8fafc);
    color: var(--navy-deep);
}

.faq-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--navy-mid);
    transition: all 0.25s ease;
    line-height: 1;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
    background: var(--navy-deep);
    color: var(--cyan);
    border-color: var(--navy-deep);
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(0,229,255,0.04), #f8fafc);
    border-top: 1px solid rgba(0,229,255,0.08);
}

.faq-answer.open { display: block; }

.faq-answer p {
    color: var(--text-body);
    line-height: 1.75;
    font-size: 0.97rem;
    margin: 1rem 0 0;
}

/* ── CTA Banner ────────────────────────────────────────────── */
.blog-cta-band {
    background: linear-gradient(135deg, #07172E 0%, #0A1F3F 60%, #07172E 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.blog-cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(0,229,255,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.blog-cta-section {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.blog-cta-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #f9fafb;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.blog-cta-section p {
    font-size: 1.05rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.blog-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Large CTA buttons */
.blog-cta-actions .btn {
    padding: 0.9rem 2.25rem;
    font-size: 1rem;
}

/* ── Divider Between Sections ──────────────────────────────── */
.blog-section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e5e7eb 20%, #e5e7eb 80%, transparent 100%);
    margin: 0;
}

/* ── Footer Social — already in index.css ──────────────────── */

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .blog-topic-nav {
        top: 0;
        position: relative;
    }

    .blog-topic-list {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 1rem;
        gap: 0;
    }

    .blog-topic-link {
        padding: 0.9rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .blog-topic-section { padding: 4rem 0; }

    .blog-article-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem 1.5rem;
    }

    .blog-article-body { padding: 1.25rem 1.5rem 1.75rem; }

    .roi-row { grid-template-columns: 1fr; }
    .roi-metric { border-right: none; border-bottom: 1px solid rgba(16,185,129,0.15); }

    .blog-help-grid { grid-template-columns: 1fr; }

    .blog-cta-band { padding: 3.5rem 0; }

    .blog-hero { padding-top: 7rem; padding-bottom: 4rem; }
}
