/**
 * ApexPublish — High-CTR Digital Magazine & Taboola Arbitrage Stylesheet
 * Engineered for maximum user engagement, sub-second load times & authentic publisher aesthetics
 */

:root {
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --primary-color: #0f172a;
    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    --cta-orange: #ea580c;
    --cta-orange-hover: #c2410c;
    --cta-pulse: rgba(234, 88, 12, 0.35);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Merriweather', Georgia, Cambria, 'Times New Roman', Times, serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.09), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --container-width: 1200px;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--bg-alt);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* Top Reading Progress Bar */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--cta-orange));
    width: 0%;
    z-index: 99999;
    transition: width 0.1s ease-out;
}

/* Top Utility & Trending Bar */
.top-utility-bar {
    background-color: #0b1120;
    color: #94a3b8;
    font-size: 0.75rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-utility-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.top-date {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px #22c55e;
}

.divider {
    color: #475569;
}

.edition-tag {
    color: #cbd5e1;
    font-weight: 500;
}

.top-trending {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    white-space: nowrap;
}

.trending-badge {
    background-color: #dc2626;
    color: #ffffff;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.trending-ticker {
    color: #e2e8f0;
    font-weight: 500;
}

.top-social {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.top-social a:hover {
    color: #ffffff;
}

/* Main Masthead */
.main-masthead {
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.masthead-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-link {
    display: flex;
    flex-direction: column;
}

.logo-text-main {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary-color);
    line-height: 1.1;
    text-transform: uppercase;
    font-family: var(--font-sans);
}

.logo-sub {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

.btn-trending-stories {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-trending-stories:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}

.mobile-menu-toggle .bar {
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
}

/* Category Navigation Bar */
.main-navbar {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links li a {
    display: block;
    padding: 12px 16px;
    color: #e2e8f0;
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.nav-links li:hover a,
.nav-links li.active a {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
    border-bottom-color: var(--accent-blue);
}

/* Header Ad Slot */
.ad-header-slot {
    margin: 16px auto;
}

.ad-container {
    background-color: var(--bg-main);
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ad-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 6px;
    font-weight: 600;
}

.ad-leaderboard {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ad-placeholder-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 728px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    gap: 16px;
}

.ad-badge {
    background-color: var(--cta-orange);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.ad-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.ad-cta {
    background-color: var(--accent-blue);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Hero Magazine Section */
.hero-magazine-section {
    margin-bottom: 32px;
    background-color: var(--bg-main);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
}

.hero-lead-card {
    display: flex;
    flex-direction: column;
}

.hero-lead-img-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-bottom: 16px;
}

.hero-lead-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-lead-img-wrap:hover img {
    transform: scale(1.03);
}

.cat-pill {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: var(--accent-blue);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-lead-title {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.hero-lead-title:hover a {
    color: var(--accent-blue);
}

.hero-lead-summary {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 14px;
    line-height: 1.55;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.meta-row .dot {
    color: #cbd5e1;
}

.hero-sub-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-sub-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.hero-sub-img-wrap {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.hero-sub-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.small-pill {
    bottom: 4px;
    left: 4px;
    font-size: 0.6rem;
    padding: 2px 6px;
}

.hero-sub-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
}

.hero-sub-title:hover a {
    color: var(--accent-blue);
}

.hero-trending-box {
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
    border: 1px solid #cbd5e1;
    border-left: 4px solid var(--cta-orange);
    padding: 16px;
    border-radius: var(--radius-sm);
}

.box-tag {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--cta-orange);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.hero-trending-box h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.hero-trending-box p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.btn-read-picks {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-blue);
}

/* 2-Column Layout (Main + Sidebar) */
.layout-2col {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    margin-top: 24px;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.section-line {
    height: 2px;
    background-color: var(--border-color);
    width: 100%;
}

/* Feed Articles Grid */
.articles-list-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.story-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    background-color: var(--bg-main);
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.story-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.story-thumb-wrap {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.story-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.story-title:hover a {
    color: var(--accent-blue);
}

.story-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.badge-read-time {
    background-color: #f1f5f9;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* Native Sponsored In-Feed Card */
.sponsored-feed-card {
    background-color: #fffbeb;
    border-color: #fde68a;
}

.sponsored-thumb-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.sponsor-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #b45309;
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* Sidebar Widgets */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.widget-header {
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.widget-title {
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.2px;
    color: var(--text-primary);
    line-height: 1.2;
}

.popular-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.popular-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    transition: transform 0.15s ease;
}

.popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-item:hover {
    transform: translateX(3px);
}

.rank-number {
    font-size: 1.35rem;
    font-weight: 800;
    color: #94a3b8;
    line-height: 1;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
    padding-top: 2px;
    transition: color 0.15s ease;
}

.popular-item:hover .rank-number {
    color: var(--cta-orange);
}

.popular-content {
    flex: 1 1 auto;
    min-width: 0; /* Prevents overflow and word-by-word wrapping */
}

.pop-cat {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent-blue);
    display: block;
    margin-bottom: 3px;
    letter-spacing: 0.3px;
}

.pop-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.38;
    margin-bottom: 4px;
    color: var(--text-primary);
    word-break: normal;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-item:hover .pop-title {
    color: var(--accent-blue);
}

.pop-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
    border: none;
    text-align: center;
}

.newsletter-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.newsletter-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.newsletter-desc {
    font-size: 0.82rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.newsletter-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid #334155;
    background-color: #0b1120;
    color: #ffffff;
    font-size: 0.88rem;
}

.newsletter-btn {
    background-color: var(--cta-orange);
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.88rem;
    transition: background-color 0.2s;
}

.newsletter-btn:hover {
    background-color: var(--cta-orange-hover);
}

.newsletter-note {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 8px;
    display: block;
}

/* Category Pill Cloud */
.cat-pill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-cloud-pill {
    background-color: #f1f5f9;
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cat-cloud-pill:hover {
    background-color: var(--accent-blue);
    color: #ffffff;
}

.pill-count {
    background-color: rgba(0,0,0,0.08);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
}

/* Article Page & Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs a:hover {
    color: var(--accent-blue);
}

.current-crumb {
    color: var(--text-primary);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-main-body {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.article-header .cat-pill {
    position: static;
    display: inline-block;
    margin-bottom: 12px;
}

.article-title {
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.article-deck {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.author-byline-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.author-info-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-by-name {
    font-size: 0.92rem;
    color: var(--text-primary);
}

.author-by-role {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.trust-verification-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.social-share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.share-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    color: #ffffff;
}

.share-fb { background-color: #1877f2; }
.share-tw { background-color: #000000; }
.share-wa { background-color: #25d366; }
.share-copy { background-color: #475569; }

.article-featured-img-wrap {
    margin-bottom: 28px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.article-featured-img-wrap img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.img-caption {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 6px 0;
    font-style: italic;
}

/* Article Content Body Typography */
.article-content-body {
    font-family: var(--font-serif);
    font-size: 1.12rem;
    line-height: 1.85;
    color: #1e293b;
}

.article-content-body p {
    margin-bottom: 24px;
}

.article-content-body h2,
.article-content-body h3 {
    font-family: var(--font-sans);
    font-weight: 800;
    color: var(--primary-color);
    margin: 32px 0 16px 0;
    line-height: 1.3;
}

.article-content-body ul,
.article-content-body ol {
    margin: 0 0 24px 24px;
}

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

/* In-Content Native Ad Placeholder */
.in-content-ad {
    margin: 32px 0;
    font-family: var(--font-sans);
}

.ad-placeholder-native-inarticle {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: left;
}

.ad-native-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-sm);
    background-size: cover;
    background-position: center;
}

.ad-sponsor-by {
    font-size: 0.7rem;
    font-weight: 700;
    color: #f59e0b;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.ad-native-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.ad-native-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.ad-native-button {
    display: inline-block;
    background-color: var(--accent-blue);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 3px;
}

/* Author Bio Card */
.author-bio-card {
    display: flex;
    gap: 18px;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--radius-md);
    margin: 40px 0;
}

.bio-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.bio-details h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.bio-role {
    font-size: 0.8rem;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 6px;
}

.bio-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Multi-Slide Listicle Layout (Arbitrage Engine) */
.slide-pagination-top-bar {
    background: #f1f5f9;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.slide-badge-count {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse-icon {
    color: var(--cta-orange);
    font-size: 0.8rem;
}

.slide-progress-track {
    width: 100%;
    height: 8px;
    background-color: #cbd5e1;
    border-radius: 4px;
    overflow: hidden;
}

.slide-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--cta-orange));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.active-slide-card {
    margin: 24px 0;
}

.slide-headline {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
}

.slide-num-prefix {
    color: var(--cta-orange);
    margin-right: 6px;
}

.slide-media-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-bottom: 20px;
}

.slide-media-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-text-body {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.8;
    color: #1e293b;
    margin-bottom: 28px;
}

/* High-Converting Pulsing Next Page CTA */
.slide-navigation-cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 32px 0 20px 0;
}

.btn-slide-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    font-size: 1.15rem;
    font-weight: 800;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-align: center;
}

.btn-slide-prev {
    background-color: #e2e8f0;
    color: #475569;
}

.btn-slide-prev:hover {
    background-color: #cbd5e1;
}

.btn-slide-next {
    background-color: var(--cta-orange);
    color: #ffffff;
    flex: 1;
    box-shadow: 0 4px 14px var(--cta-pulse);
    transition: transform 0.2s, background-color 0.2s;
}

.btn-slide-next:hover {
    background-color: var(--cta-orange-hover);
    transform: translateY(-2px);
}

/* Pulsing CTA Keyframe */
@keyframes ctaPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(234, 88, 12, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(234, 88, 12, 0);
    }
}

.pulse-button {
    animation: ctaPulse 2s infinite;
}

/* Slide Quick Pills */
.slide-quick-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.jump-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.pills-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.slide-pill {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.slide-pill.active-pill {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* Related Stories Grid */
.related-stories-wrap {
    margin: 40px 0 20px 0;
}

.related-title {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 16px;
}

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

.related-card {
    display: flex;
    gap: 12px;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: var(--radius-md);
}

.related-card img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.related-body h4 {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
}

.rel-cat {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

/* Taboola Promoted Stories Native Feed */
.native-sponsored-feed {
    margin: 40px 0 20px 0;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.feed-title {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
}

.feed-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.native-feed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.native-feed-card {
    cursor: pointer;
    transition: transform 0.2s;
}

.native-feed-card:hover {
    transform: translateY(-3px);
}

.feed-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.feed-sponsor {
    font-size: 0.68rem;
    font-weight: 700;
    color: #f59e0b;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.native-feed-card h4 {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
}

/* Category Archive Page */
.archive-header {
    background-color: var(--bg-main);
    padding: 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    border-left: 6px solid var(--accent-blue);
    margin-bottom: 28px;
}

.archive-tag {
    display: inline-block;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.archive-title {
    font-size: 2.2rem;
    font-weight: 800;
}

.archive-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 6px;
}

.archive-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.page-link {
    padding: 8px 14px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.page-link.active-page {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Legal / Compliance Pages */
.legal-page-body {
    padding: 40px;
}

.page-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.legal-doc-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.legal-badge {
    display: inline-block;
    background-color: var(--accent-blue);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.legal-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 6px;
    font-weight: 500;
}

.legal-callout {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-blue);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin: 18px 0;
    font-size: 0.92rem;
    line-height: 1.6;
}

.legal-warning-box {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid var(--cta-orange);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin: 18px 0;
    font-size: 0.92rem;
    color: #92400e;
    line-height: 1.6;
}

.page-content-text {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #334155;
}

.page-content-text h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 32px 0 14px 0;
    letter-spacing: -0.3px;
}

.page-content-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 24px 0 10px 0;
}

.page-content-text p {
    margin-bottom: 16px;
}

.page-content-text ul,
.page-content-text ol {
    margin: 14px 0 20px 24px;
}

.page-content-text li {
    margin-bottom: 8px;
    line-height: 1.65;
}

.page-content-text code {
    background-color: #f1f5f9;
    color: #0f172a;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88rem;
    font-family: monospace;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
}

.data-table th {
    background-color: #f8fafc;
    font-weight: 700;
    color: var(--text-primary);
}

.legal-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-nav-list a {
    display: block;
    padding: 10px 14px;
    background-color: #f8fafc;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.legal-nav-list a:hover {
    background-color: var(--accent-blue);
    color: #ffffff;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 28px;
    margin-top: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group .req {
    color: #dc2626;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

.btn-submit-contact {
    background-color: var(--accent-blue);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.contact-info-card {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-md);
}

.contact-info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.contact-hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 16px 0;
}

.alert-box {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #dcfce7;
    border: 1px solid #86efac;
    color: #15803d;
}

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

/* 404 Box */
.not-found-box {
    text-align: center;
    background-color: var(--bg-main);
    padding: 60px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    max-width: 600px;
    margin: 40px auto;
}

.error-code {
    font-size: 5rem;
    font-weight: 900;
    color: #cbd5e1;
    line-height: 1;
}

.btn-return-home {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    margin-top: 20px;
}

/* Footer */
.main-footer {
    background-color: #0b1120;
    color: #94a3b8;
    padding: 48px 0 24px 0;
    margin-top: 60px;
    border-top: 3px solid var(--accent-blue);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    display: block;
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 14px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #1e293b;
    color: #38bdf8;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
}

.footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-disclosure {
    background-color: #0f172a;
    border: 1px solid #1e293b;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 24px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
    font-size: 0.8rem;
}

.footer-bottom-links a {
    color: #94a3b8;
    margin: 0 4px;
}

/* Floating Bottom Sticky Bar */
.bottom-floating-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #0f172a, #1e293b);
    color: #ffffff;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.25);
    padding: 10px 16px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-bar-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-badge {
    background-color: #dc2626;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
}

.floating-text {
    font-size: 0.88rem;
    font-weight: 600;
}

.floating-cta {
    background-color: var(--cta-orange);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
}

.floating-close {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #0f172a;
    color: #ffffff;
    padding: 16px 20px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
    z-index: 10000;
    display: none;
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.82rem;
}

.cookie-content a {
    color: var(--accent-blue);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    white-space: nowrap;
}

.cookie-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
}

.accept-btn {
    background-color: var(--accent-blue);
    color: #ffffff;
}

.close-btn {
    background-color: #334155;
    color: #ffffff;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background-color: #0f172a;
    color: #ffffff;
    z-index: 100000;
    transition: left 0.3s ease;
    padding: 24px 20px;
    overflow-y: auto;
}

.mobile-drawer.open {
    left: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1e293b;
}

.drawer-title {
    font-size: 1.2rem;
    font-weight: 800;
}

.drawer-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-links a {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
}

.drawer-divider {
    height: 1px;
    background-color: #1e293b;
    margin: 8px 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    display: none;
}

.drawer-overlay.active {
    display: block;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .layout-2col {
        grid-template-columns: 1fr;
    }

    .native-feed-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-utility-bar {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .logo-text-main {
        font-size: 1.6rem;
    }

    .story-card {
        grid-template-columns: 1fr;
    }

    .hero-lead-title {
        font-size: 1.4rem;
    }

    .article-title {
        font-size: 1.7rem;
    }

    .slide-headline {
        font-size: 1.35rem;
    }

    .btn-slide-nav {
        font-size: 0.95rem;
        padding: 12px 18px;
    }

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

    .ad-placeholder-native-inarticle {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}
