/* ============================================
   INTELIUM — Insights & Whitepapers
   Extends main.css; reuses the theme's :root tokens.
   ============================================ */

/* ---------- Shared dark hero ---------- */
.insight-hero,
.insight-single-hero {
    position: relative;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, #1a4a7a 100%);
    color: #fff;
    padding: 10rem 0 3.5rem;
    overflow: hidden;
}
.insight-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 78% 30%, rgba(43,140,255,.18), transparent 60%),
        radial-gradient(ellipse 50% 50% at 12% 90%, rgba(212,162,74,.10), transparent 60%);
    pointer-events: none;
}
.insight-hero .container,
.insight-single-hero .container { position: relative; z-index: 1; }

.insight-kicker {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--gold);
    margin-bottom: 1rem;
}
.insight-kicker a { color: var(--gold); }
.insight-kicker a:hover { color: #f0c986; }

.insight-hero h1,
.insight-single-hero h1 { color: #fff; margin-bottom: .75rem; max-width: 22ch; }

.insight-hero-sub,
.insight-single-dek {
    font-size: 1.12rem;
    line-height: 1.7;
    color: rgba(255,255,255,.72);
    max-width: 620px;
}

/* ---------- Filter tabs ---------- */
.insight-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 2.25rem;
}
.insight-filters a {
    padding: .5em 1.35em;
    border-radius: 100px;
    font-size: .9rem;
    font-weight: 600;
    color: rgba(255,255,255,.82);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    transition: all var(--transition);
}
.insight-filters a:hover { background: rgba(255,255,255,.16); color: #fff; }
.insight-filters a.is-active {
    background: #fff;
    color: var(--navy);
    border-color: #fff;
}

/* ---------- Listing ---------- */
.insight-list-section { padding: 4.5rem 0 6rem; background: var(--gray-50); }

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

.insight-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.insight-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.insight-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    overflow: hidden;
}
.insight-card-media img { width: 100%; height: 100%; object-fit: cover; }
.insight-card-media.is-wp {
    background:
        radial-gradient(ellipse 60% 60% at 75% 30%, rgba(43,140,255,.25), transparent 60%),
        linear-gradient(135deg, var(--navy) 0%, #163561 100%);
}
.insight-card-mark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: rgba(255,255,255,.22);
}
.insight-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: .3em .85em;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 100px;
    color: #fff;
}
.badge-wp { background: var(--gold); color: #3a2a08; }
.badge-article { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); }

.insight-card-body { padding: 1.6rem 1.6rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.insight-card-meta { font-size: .8rem; color: var(--gray-400); margin-bottom: .5rem; }
.insight-card-title { font-size: 1.2rem; line-height: 1.3; margin-bottom: .5rem; }
.insight-card-title a { color: var(--navy); }
.insight-card-title a:hover { color: var(--blue); }
.insight-card-dek { color: var(--gray-600); font-size: .93rem; line-height: 1.65; margin-bottom: 1rem; }
.insight-card-authors { font-size: .82rem; color: var(--gray-600); font-weight: 500; margin-bottom: 1rem; }
.insight-card-cta {
    margin-top: auto;
    font-weight: 600;
    font-size: .9rem;
    color: var(--blue);
    display: inline-flex;
    gap: .4rem;
    align-items: center;
}
.insight-card-cta:hover { color: var(--accent); }

/* ---------- Pagination ---------- */
.insight-pagination { margin-top: 3rem; }
.insight-pagination .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .4rem;
}
.insight-pagination .page-numbers {
    display: inline-flex;
    min-width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 .75rem;
    border-radius: var(--radius);
    background: #fff;
    color: var(--gray-600);
    font-weight: 600;
    font-size: .9rem;
    box-shadow: var(--shadow);
}
.insight-pagination .page-numbers.current { background: var(--blue); color: #fff; }
.insight-pagination .page-numbers:hover:not(.current) { color: var(--navy); }

.insight-empty { text-align: center; padding: 3rem 0; }
.insight-empty h3 { color: var(--navy); margin-bottom: .5rem; }
.insight-empty p { color: var(--gray-600); }

/* ---------- Single ---------- */
.insight-single-byline {
    margin-top: 1.5rem;
    font-size: .9rem;
    color: rgba(255,255,255,.75);
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
}
.insight-single-byline .by { font-weight: 600; color: #fff; }
.insight-single-byline .dot { color: rgba(255,255,255,.4); }
.insight-hero-actions { margin-top: 2rem; }

.insight-single-body { padding: 4rem 0 5rem; background: #fff; }
.insight-single-grid { max-width: 820px; margin: 0 auto; }
.insight-single-grid.has-aside {
    max-width: 1120px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 3.5rem;
    align-items: start;
}

/* Readable content column */
.insight-content { font-size: 1.06rem; line-height: 1.8; color: var(--gray-800); }
.insight-content > p { margin-bottom: 1.25rem; }
.insight-content h2 {
    font-size: 1.7rem;
    margin: 2.25rem 0 .75rem;
    color: var(--navy);
}
.insight-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy);
    margin: 1.75rem 0 .5rem;
}
.insight-content ul, .insight-content ol { margin: 0 0 1.25rem 1.25rem; }
.insight-content li { margin-bottom: .5rem; color: var(--gray-800); }
.insight-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--blue-light);
    border-left: 3px solid var(--blue);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--navy);
    font-size: 1.02rem;
}
.insight-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.insight-content a:hover { color: var(--accent); }
.insight-feature { margin: 0 0 2rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }

/* Whitepaper download aside */
.insight-aside { position: sticky; top: 100px; }
.download-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.download-cover { margin-bottom: 1.25rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.download-cover img { width: 100%; height: auto; }
.download-type {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .5rem;
}
.download-title { font-size: 1.15rem; line-height: 1.3; margin-bottom: .5rem; }
.download-meta { font-size: .85rem; color: var(--gray-600); margin-bottom: 1.25rem; }

.insight-back { max-width: 820px; margin: 3rem auto 0; }
.insight-single-grid.has-aside + .insight-back { max-width: 1120px; }
.insight-back a { font-weight: 600; color: var(--blue); }
.insight-back a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .insight-grid { grid-template-columns: repeat(2, 1fr); }
    .insight-single-grid.has-aside { grid-template-columns: 1fr; gap: 2.5rem; }
    .insight-aside { position: static; max-width: 360px; }
}
@media (max-width: 680px) {
    .insight-grid { grid-template-columns: 1fr; }
    .insight-hero, .insight-single-hero { padding-top: 8rem; }
}
