/* Tech Affiliate Site Styles */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

/* Site Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background.jpg');
    background-size: cover; background-position: center; background-repeat: no-repeat;
    opacity: 1.0;
    z-index: -2;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, #000000, #0084ff);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 90px;
    width: auto;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    margin-left: 24px;
}

.main-nav a:hover {
    color: #ffef3d;
}

/* Dropdown Menu */
.main-nav .nav-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 24px;
}

.main-nav .nav-dropdown-trigger {
    margin-left: 0;
    cursor: pointer;
    padding-bottom: 15px;
    margin-bottom: -15px;
}

.main-nav .nav-dropdown-trigger::after {
    content: '';
    font-size: 0.75em;
}

.main-nav .nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: -10px;
    background: #2a2a2a;
    min-width: 220px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 10px;
    z-index: 1000;
    padding-top: 15px;
}

.main-nav .nav-dropdown-content a {
    display: block;
    padding: 12px 16px;
    margin: 0 0 6px 0;
    color: #ffffff;
    font-size: 0.95rem;
    background: #3a3a3a;
    border-radius: 6px;
    text-align: left;
}

.main-nav .nav-dropdown-content a:last-child {
    margin-bottom: 0;
}

.main-nav .nav-dropdown-content a:hover {
    background: #4a4a4a;
    color: #ffffff;
}

.main-nav .nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

/* Hero */
.hero {
    padding: 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #1e3a5f 100%);
    color: var(--white);
    border-radius: var(--radius);
    margin: 24px 0;
    min-height: 280px;
    display: flex;
    align-items: center;
}

.hero-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
    position: relative;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius);
}

.hero-banner .hero-content {
    position: relative;
    z-index: 1;
}

/* Editorial hero - full-bleed latest-article image with a strong left-side
   gradient so the headline always reads cleanly regardless of the photo. */
.hero-editorial {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 480px;
    position: relative;
    overflow: hidden;
}

.hero-editorial::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(95deg,
        rgba(8, 12, 24, 0.92) 0%,
        rgba(8, 12, 24, 0.78) 38%,
        rgba(8, 12, 24, 0.35) 70%,
        rgba(8, 12, 24, 0.05) 100%);
    border-radius: var(--radius);
}

.hero-editorial .hero-content {
    position: relative;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    max-width: 640px;
    padding: 56px 56px 48px;
    gap: 18px;
}

.hero-editorial .hero-eyebrow,
.hero-editorial .hero-eyebrow-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    backdrop-filter: blur(6px);
    max-width: 100%;
}

.hero-editorial .hero-eyebrow-link:hover {
    background: rgba(255, 255, 255, 0.14);
}

.hero-editorial .eyebrow-pill {
    background: var(--primary, #2563eb);
    color: #fff;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-editorial .eyebrow-text {
    white-space: normal;
    line-height: 1.35;
}

.hero-editorial .hero-title span {
    font-size: 3.5rem;
    line-height: 1.05;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 18px rgba(0,0,0,0.45);
}

.hero-editorial .tagline {
    font-size: 1.1rem;
    max-width: 520px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
    margin: 0;
}

.hero-editorial .hero-actions {
    margin-top: 8px;
}

.hero-editorial .hero-btn.primary {
    background: var(--primary, #2563eb);
    color: #fff;
    padding: 14px 26px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-editorial .hero-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
}

@media (max-width: 768px) {
    .hero-editorial {
        min-height: 380px;
    }
    .hero-editorial .hero-content {
        padding: 36px 24px;
        max-width: 100%;
    }
    .hero-editorial .hero-title span {
        font-size: 2.4rem;
        letter-spacing: -1px;
    }
    .hero-editorial .hero-eyebrow-link {
        align-items: flex-start;
    }
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 32px 48px;
    width: 100%;
}

.hero-title {
    display: flex;
    flex-direction: column;
    line-height: 0.9;
    margin: 0;
}

.hero-title span {
    font-size: 4.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -2px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.tagline {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 400px;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 32px 24px;
    }

    .hero-title span {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1.1rem;
    }
}

/* Categories */
.categories {
    margin: 48px 0;
}

.categories h2 {
    margin-bottom: 24px;
}

/* Default Grid - explicit column counts at each breakpoint to avoid
   orphan rows (e.g. 5+1) for any item count divisible by 1, 2, 3 or 6. */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (min-width: 560px) {
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 1100px) {
    .category-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
    }
}

/* Default Card Style */
.category-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 14px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s;
    min-width: 0;
}

.category-card .cat-name {
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

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

.cat-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.cat-count {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Style 1: Gradient Background */
.category-card.cat-gradient {
    background: linear-gradient(135deg, var(--cat-color) 0%, color-mix(in srgb, var(--cat-color) 70%, #000) 100%);
    border: none;
    color: white;
}

.category-card.cat-gradient .cat-name,
.category-card.cat-gradient .cat-count {
    color: white;
}

.category-card.cat-gradient .cat-count {
    opacity: 0.85;
}

.category-card.cat-gradient:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Style 2: Horizontal Pills */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--white);
    border: 2px solid var(--cat-color);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s;
}

.category-pill .cat-icon {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.category-pill .cat-name {
    font-weight: 600;
    color: var(--cat-color);
    margin-bottom: 0;
}

.category-pill .cat-count {
    background: var(--cat-color);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.category-pill:hover {
    background: var(--cat-color);
    transform: scale(1.05);
}

.category-pill:hover .cat-name {
    color: white;
}

/* Style 3: Image Thumbnails */
.category-card.cat-image {
    position: relative;
    min-height: 140px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: none;
    justify-content: center;
    overflow: hidden;
}

.category-card.cat-image .cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.category-card.cat-image .cat-icon,
.category-card.cat-image .cat-name,
.category-card.cat-image .cat-count {
    position: relative;
    z-index: 1;
    color: white;
}

.category-card.cat-image .cat-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.category-card.cat-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Style 4: Coloured Icon Cards */
.category-card.cat-colored {
    background: white;
    border: none;
    box-shadow: var(--shadow);
    padding: 24px;
}

.category-card.cat-colored .cat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--cat-color) 12%, transparent);
    border-radius: 14px;
    font-size: 1.65rem;
    margin-bottom: 14px;
    color: var(--cat-color);
}

.category-card.cat-colored .cat-icon i {
    line-height: 1;
}

.category-card.cat-colored .cat-name {
    color: var(--cat-color);
}

.category-card.cat-colored .cat-count {
    background: var(--bg);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
}

.category-card.cat-colored:hover {
    border: none;
    box-shadow: 0 8px 30px color-mix(in srgb, var(--cat-color) 30%, transparent);
}

/* Style 5: Minimal Tags */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.category-tag-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.category-tag-btn .cat-icon {
    font-size: 1rem;
    margin-bottom: 0;
}

.category-tag-btn .cat-name {
    color: var(--text);
    margin-bottom: 0;
    font-weight: 500;
}

.category-tag-btn .cat-count {
    color: var(--text-light);
    font-size: 0.8rem;
}

.category-tag-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.category-tag-btn:hover .cat-name,
.category-tag-btn:hover .cat-count,
.category-tag-btn:hover .cat-icon {
    color: white;
}

/* Style 6: Neon Glow */
.category-card.cat-neon {
    background: #0a0a0a;
    border: 1px solid var(--cat-color);
    box-shadow: 0 0 15px color-mix(in srgb, var(--cat-color) 40%, transparent),
                inset 0 0 15px color-mix(in srgb, var(--cat-color) 10%, transparent);
}

.category-card.cat-neon .cat-icon {
    font-size: 2.25rem;
    filter: drop-shadow(0 0 8px var(--cat-color));
}

.category-card.cat-neon .cat-name {
    color: var(--cat-color);
    text-shadow: 0 0 10px var(--cat-color);
    font-weight: 700;
}

.category-card.cat-neon .cat-count {
    color: rgba(255,255,255,0.7);
}

.category-card.cat-neon:hover {
    border-color: var(--cat-color);
    box-shadow: 0 0 30px var(--cat-color),
                0 0 60px color-mix(in srgb, var(--cat-color) 50%, transparent),
                inset 0 0 20px color-mix(in srgb, var(--cat-color) 20%, transparent);
    transform: translateY(-4px);
}

/* Responsive */
@media (max-width: 768px) {
    .category-pills {
        justify-content: flex-start;
    }

    .category-pill {
        padding: 10px 18px;
    }
}

/* Product Grid */
.products {
    margin: 48px 0;
}

.products h2 {
    margin-bottom: 24px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    height: 340px;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent, #8b5cf6));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-card:hover {
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.2);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card .product-image-wrap {
    position: relative;
    background: #f0f4ff;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

.product-card img {
    max-width: 100%;
    max-height: 176px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: 14px 16px 16px 16px;
    background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.9) 100%);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: auto;
}

.product-info .brand {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-info .brand::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #a5b4fc;
    border-radius: 50%;
    margin-right: 8px;
}

.view-product-btn {
    font-size: 0.7rem;
    font-weight: 600;
    color: #a5b4fc;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.view-product-btn::after {
    content: '>';
    transition: transform 0.2s ease;
}

.product-card:hover .view-product-btn {
    opacity: 1;
    transform: translateX(0);
}

.product-card:hover .view-product-btn::after {
    transform: translateX(3px);
}

.product-info-body {
    margin-top: auto;
}

.product-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.product-card:hover .product-info h3 {
    color: #a5b4fc;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    width: fit-content;
}

.excerpt {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product Page */
.product-page {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    margin: 24px 0;
}

.breadcrumb {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
    }
}

.product-image img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.product-details h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.product-details .brand {
    color: var(--text-light);
    margin-bottom: 16px;
}

.description {
    margin: 24px 0;
    line-height: 1.8;
}

.features h3 {
    margin-bottom: 12px;
}

.features ul {
    list-style: none;
    padding: 0;
}

.features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.features li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
}

@media (max-width: 600px) {
    .pros-cons {
        grid-template-columns: 1fr;
    }
}

.pros, .cons {
    padding: 16px;
    border-radius: 8px;
}

.pros {
    background: #ecfdf5;
}

.cons {
    background: #fef3c7;
}

.pros h4, .cons h4 {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.pros ul, .cons ul {
    list-style: none;
    padding: 0;
    font-size: 0.9rem;
}

.pros li, .cons li {
    padding: 4px 0;
}

.cta {
    margin: 32px 0 16px;
}

.buy-button {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.buy-button:hover {
    background: var(--primary-dark);
}

.disclosure-small {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Category Page */
.category-page {
    margin: 24px 0;
}

.category-page h1 {
    margin-bottom: 8px;
}

.category-page .cat-count {
    color: var(--text-light);
    margin-bottom: 32px;
}

/* Disclosure */
.disclosure {
    background: #fefce8;
    border: 1px solid #fef08a;
    border-radius: var(--radius);
    padding: 16px;
    margin: 48px 0;
    font-size: 0.875rem;
    color: var(--text);
}

/* Footer */
.site-footer {
    background: var(--secondary);
    color: var(--white);
    padding: 40px 0;
    margin-top: 60px;
}

.site-footer p {
    opacity: 0.8;
    font-size: 0.875rem;
}

.disclosure-footer {
    margin-top: 16px;
    font-size: 0.75rem !important;
    opacity: 0.6 !important;
}

/* About Page */
/* About Banner */
.about-banner {
    position: relative;
    min-height: 280px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    margin: 24px 0 0 0;
    color: var(--white);
}

.about-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius);
}

.about-banner .hero-content {
    position: relative;
    z-index: 1;
}

.about-banner .tagline {
    color: rgba(255,255,255,0.95);
}

.about-page {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    margin: 24px 0;
    box-shadow: var(--shadow);
}

.about-banner + .about-page {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.about-page h1 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--secondary);
}

.about-content {
    line-height: 1.8;
    color: var(--text);
}

.about-content h2 {
    font-size: 1.5rem;
    margin: 32px 0 16px;
    color: var(--secondary);
}

.about-content h3 {
    font-size: 1.25rem;
    margin: 24px 0 12px;
    color: var(--secondary);
}

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

.about-content ul, .about-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

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

.about-content strong {
    color: var(--secondary);
}

@media (max-width: 768px) {
    .about-page {
        padding: 24px;
    }
    .about-page h1 {
        font-size: 1.5rem;
    }
}

/* Latest Article Section (Homepage) */
.latest-article {
    margin: 32px 0;
}

.latest-article h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

/* Thumbnail Style - Image on left */
.article-card-featured {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.article-card-featured.has-image {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.article-card-featured .article-thumb {
    flex-shrink: 0;
    width: 280px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
}

.article-card-featured .article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-featured .article-card-content {
    flex: 1;
}

.article-card-featured .article-date {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.article-card-featured h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.article-card-featured h3 a {
    color: var(--secondary);
    text-decoration: none;
}

.article-card-featured h3 a:hover {
    color: var(--primary);
}

.article-card-featured p {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 16px;
}

.article-card-featured .read-more {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.article-card-featured .read-more:hover {
    text-decoration: underline;
}

/* Hero Style - images right, text overlay left */
.article-hero-card {
    display: block;
    position: relative;
    text-decoration: none;
    background: #1a1a1a;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 280px;
}

.article-hero-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.article-hero-images {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 0;
    height: 100%;
    width: 75%;
}

.article-hero-img {
    flex: 1;
    height: 100%;
    overflow: hidden;
}

.article-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.article-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 60%;
    background: linear-gradient(to right, #1a1a1a 0%, #1a1a1a 40%, transparent 100%);
    z-index: 1;
}

.article-hero-card .article-hero-content {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
    z-index: 2;
}

.article-hero-card .article-date {
    display: inline-block;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
}

.article-hero-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
    line-height: 1.3;
}

.article-hero-card p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin-bottom: 16px;
}

.article-hero-card .read-more {
    display: inline-block;
    color: #ffffff;
    font-weight: 600;
    padding: 10px 20px;
    background: var(--primary);
    border-radius: 6px;
    transition: background 0.2s;
    width: fit-content;
}

.article-hero-card:hover .read-more {
    background: #c9302c;
}

/* Responsive */
@media (max-width: 768px) {
    .article-card-featured.has-image {
        flex-direction: column;
    }

    .article-card-featured .article-thumb {
        width: 100%;
        height: 200px;
    }

    .article-hero-card {
        height: 400px;
    }

    .article-hero-images {
        width: 100%;
        height: 50%;
        top: auto;
        bottom: 0;
    }

    .article-hero-overlay {
        width: 100%;
        height: 60%;
        top: 0;
        bottom: auto;
        background: linear-gradient(to bottom, #1a1a1a 0%, #1a1a1a 50%, transparent 100%);
    }

    .article-hero-card .article-hero-content {
        width: 100%;
        height: auto;
        bottom: auto;
        padding: 24px;
    }

    .article-hero-card h3 {
        font-size: 1.25rem;
    }

    .article-hero-card p {
        font-size: 0.9rem;
    }
}

/* Article Page */
.article-page {
    background: var(--white);
    border-radius: var(--radius);
    padding: 48px;
    margin: 24px 0;
    box-shadow: var(--shadow);
}

.article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.article-header h1 {
    font-size: 2.25rem;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--secondary);
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-author {
    font-weight: 500;
}

.article-content {
    line-height: 1.9;
    font-size: 1.05rem;
    color: var(--text);
}

.article-content h2 {
    font-size: 1.5rem;
    margin: 36px 0 16px;
    color: var(--secondary);
}

.article-content h3 {
    font-size: 1.25rem;
    margin: 28px 0 12px;
    color: var(--secondary);
}

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

.article-content ul, .article-content ol {
    margin: 20px 0;
    padding-left: 28px;
}

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

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--bg);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

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

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 24px 0;
}

.article-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.btn-back {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.btn-back:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .article-page {
        padding: 24px;
    }
    .article-header h1 {
        font-size: 1.75rem;
    }
    .article-content {
        font-size: 1rem;
    }
}

/* Articles Listing Page */
.articles-page {

}

.articles-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--secondary) 0%, #1e3a5f 100%);
    color: var(--white);
    border-radius: var(--radius);
}

.articles-header h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.articles-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.article-list-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, transform 0.2s;
}

.article-list-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.article-list-date {
    font-size: 0.875rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 8px;
}

.article-list-author {
    font-weight: 500;
}

.article-list-item h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-list-item h2 a {
    color: var(--secondary);
    text-decoration: none;
}

.article-list-item h2 a:hover {
    color: var(--primary);
}

.article-list-item p {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 16px;
}

.article-list-item .read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.article-list-item .read-more:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .articles-header {
        padding: 30px 16px;
    }
    .articles-header h1 {
        font-size: 1.75rem;
    }
    .article-list-item {
        padding: 20px;
    }
    .article-list-item h2 {
        font-size: 1.2rem;
    }
}

/* Modern editorial refresh */
:root {
    --page-max: 1180px;
    --surface: #ffffff;
    --surface-soft: #f6f8fb;
    --ink: #121826;
    --muted: #667085;
    --line: #e6eaf0;
    --brand: #2563eb;
    --brand-2: #00a6a6;
    --accent: #ff7a1a;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 22px 55px rgba(15, 23, 42, 0.16);
}

body {
    background: #f4f7fb;
    color: var(--ink);
    letter-spacing: 0;
}

.container {
    max-width: var(--page-max);
    padding-left: 22px;
    padding-right: 22px;
}

/* Editorial glass header - dark, sticky, semi-transparent.
   Designed for a light/white logo. If you switch to a dark logo,
   either bump --header-text or revert to the previous light scheme. */
.site-header {
    background: linear-gradient(180deg, rgba(11, 17, 32, 0.92), rgba(11, 17, 32, 0.78));
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 6px 22px rgba(3, 7, 18, 0.32);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header .container {
    min-height: 72px;
}

.logo {
    color: #ffffff;
    font-weight: 800;
}

.logo-img {
    max-height: 46px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.main-nav {
    gap: 4px;
}

.main-nav a,
.nav-dropdown-trigger {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.nav-dropdown:hover .nav-dropdown-trigger {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* Categories dropdown matches the dark header rather than the harsh
   #2a2a2a card from the legacy theme. */
.main-nav .nav-dropdown-content,
.nav-dropdown-content {
    background: rgba(15, 22, 38, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 50px rgba(3, 7, 18, 0.55);
    backdrop-filter: blur(12px);
    border-radius: 10px;
}

.main-nav .nav-dropdown-content a,
.nav-dropdown-content a {
    background: transparent;
    color: rgba(255, 255, 255, 0.86);
    border-radius: 6px;
}

.main-nav .nav-dropdown-content a:hover,
.nav-dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.hero {
    min-height: 430px;
    margin: 22px 0 26px;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(10,18,32,0.86), rgba(12,35,64,0.72)),
        radial-gradient(circle at 82% 22%, rgba(0,166,166,0.5), transparent 30%),
        radial-gradient(circle at 14% 82%, rgba(255,122,26,0.38), transparent 28%),
        #0b1220;
    overflow: hidden;
    align-items: flex-end;
    box-shadow: var(--shadow-lg);
}

.hero-banner::before {
    background: linear-gradient(135deg, rgba(8,15,28,0.86), rgba(8,15,28,0.42));
}

.hero-content {
    max-width: 760px;
    padding: 54px;
    text-align: left;
}

.hero-eyebrow,
.section-kicker {
    color: var(--brand-2);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-title {
    margin: 10px 0 14px;
}

.hero-title span {
    font-size: clamp(2.3rem, 6vw, 5rem);
    line-height: 0.96;
    color: #fff;
    text-shadow: none;
    max-width: 850px;
}

.tagline {
    color: rgba(255,255,255,0.88);
    font-size: 1.18rem;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
}

.hero-btn.primary {
    background: #fff;
    color: #0b1220;
}

.hero-btn.secondary {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.24);
}

.editorial-section,
.categories,
.products,
.trust-strip {
    margin: 34px 0;
}

.editorial-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
    gap: 18px;
    margin-top: 12px;
}

.lead-story,
.story-card {
    color: inherit;
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.lead-story {
    position: relative;
    min-height: 460px;
    display: block;
}

.lead-story img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lead-story-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3,7,18,0.05), rgba(3,7,18,0.82));
}

.lead-story-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px;
    color: #fff;
}

.lead-story-content h2 {
    font-size: clamp(1.85rem, 4vw, 3.25rem);
    line-height: 1.02;
    margin: 8px 0 12px;
    color: #fff;
}

.lead-story-content p {
    max-width: 700px;
    color: rgba(255,255,255,0.88);
    margin-bottom: 18px;
}

.read-more-pill {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
}

.story-stack {
    display: grid;
    gap: 14px;
}

/* DEFAULT story-card style: image-bleed with gradient overlay (option 3).
   Each card is the article's hero image with a soft gradient at the bottom
   and white text on top. Magazine feel. */
.story-card {
    position: relative;
    display: block;
    min-height: 168px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    isolation: isolate;
}

.story-card:hover,
.product-card:hover,
.article-hero-card:hover,
.article-list-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.story-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.4s ease;
}

.story-card:hover img {
    transform: scale(1.04);
}

.story-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(7, 12, 22, 0.05) 0%,
        rgba(7, 12, 22, 0.55) 55%,
        rgba(7, 12, 22, 0.92) 100%);
    z-index: 1;
}

.story-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 16px 16px;
    z-index: 2;
    color: #fff;
}

.story-card-body span {
    display: inline-block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.12);
    padding: 3px 8px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.story-card h3 {
    font-size: 1.05rem;
    line-height: 1.25;
    margin: 8px 0 6px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.story-card p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.84rem;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* Top-level styles still need to apply elsewhere too. */
.article-date,
.article-list-date {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* OPT-IN FALLBACK: Option 1 - topic-pill side image, light card.
   To switch back, change <div class="story-stack"> to
   <div class="story-stack cards-pill"> in generate_site.py. */
.story-stack.cards-pill .story-card {
    position: static;
    display: grid;
    grid-template-columns: 140px 1fr;
    min-height: 140px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    isolation: auto;
    color: inherit;
}

.story-stack.cards-pill .story-card::after {
    content: none;
}

.story-stack.cards-pill .story-card img {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
}

.story-stack.cards-pill .story-card-body {
    position: static;
    padding: 14px;
    color: inherit;
}

.story-stack.cards-pill .story-card-body span {
    display: inline-block;
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    color: var(--brand);
    padding: 3px 10px;
    border-radius: 999px;
    backdrop-filter: none;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.story-stack.cards-pill .story-card h3 {
    font-size: 1rem;
    color: var(--ink);
    text-shadow: none;
    margin: 8px 0 6px;
}

.story-stack.cards-pill .story-card p {
    color: var(--muted);
    text-shadow: none;
    -webkit-line-clamp: 2;
}

.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 18px;
}

.section-heading-row h2,
.categories h2,
.products h2 {
    margin: 4px 0 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.text-link {
    color: var(--brand);
    font-weight: 800;
    text-decoration: none;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.trust-strip div {
    background: #fff;
    padding: 18px;
}

.trust-strip strong,
.trust-strip span {
    display: block;
}

.trust-strip span {
    color: var(--muted);
    margin-top: 4px;
    font-size: 0.92rem;
}

/* Editorial-theme override: explicit column counts so 6 categories fall
   into 6/3/2 layouts cleanly with no orphan row. */
.category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 560px) {
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (min-width: 1100px) {
    .category-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 14px;
    }
}

.category-card,
.category-pill,
.category-tag-btn {
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: none;
    min-width: 0;
}

.category-card {
    padding: 18px 14px;
    align-items: center;
    text-align: center;
}

.category-card .cat-name {
    font-size: 0.98rem;
    color: var(--ink);
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    hyphens: auto;
}

.category-card .cat-count {
    color: var(--muted);
}

.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 18px;
}

.product-card {
    height: auto;
    min-height: 410px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.product-card::before {
    display: none;
}

.product-card .product-image-wrap {
    height: 210px;
    background: #eef2f7;
}

.product-info {
    background: #fff;
    padding: 16px;
    color: var(--ink);
}

.product-info-header {
    margin-bottom: 12px;
}

.product-info .brand {
    color: var(--muted);
}

.product-info .brand::before {
    background: var(--brand-2);
}

.view-product-btn {
    opacity: 1;
    transform: none;
    color: var(--brand);
}

.product-info h3 {
    color: var(--ink);
    font-size: 1rem;
    -webkit-line-clamp: 3;
}

.product-card:hover .product-info h3 {
    color: var(--brand);
}

.product-info .excerpt {
    color: var(--muted);
    font-size: 0.88rem;
    -webkit-line-clamp: 3;
}

.category-tag {
    background: #eef4ff;
    color: #1d4ed8;
    border: 1px solid #d7e5ff;
    margin-top: 8px;
}

.article-page,
.about-page,
.article-list-item,
.article-card-featured {
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.article-page {
    /* Matches the homepage --page-max so articles and homepage feel
       like the same publication. The writer's own scoped subtitle
       rules (max-width 820px) keep the readable prose blocks narrower. */
    max-width: var(--page-max);
    margin: 28px auto;
    padding: 52px;
}

.article-header {
    text-align: left;
}

.article-header h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.article-content {
    font-size: 1.08rem;
    line-height: 1.85;
}

.article-content h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    margin-top: 46px;
}

.article-content img,
.article-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(15,23,42,0.12);
}

.article-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.articles-header,
.category-page > h1,
.category-page > .cat-count {
    text-align: left;
}

.articles-header {
    background: #0b1220;
    border-radius: 14px;
}

.articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 18px;
}

.article-list-item {
    padding: 24px;
}

.disclosure {
    background: #fff8ed;
    border-color: #fed7aa;
    border-radius: 10px;
}

@media (max-width: 860px) {
    .site-header .container {
        min-height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
        align-items: flex-start;
        gap: 12px;
    }

    .main-nav {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 4px;
    }

    .hero {
        min-height: 420px;
    }

    .hero-content {
        padding: 30px;
    }

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

    .lead-story {
        min-height: 390px;
    }

    .trust-strip {
        grid-template-columns: 1fr;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .article-page {
        padding: 28px 22px;
    }
}

@media (max-width: 560px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero {
        border-radius: 10px;
        min-height: 390px;
    }

    .hero-content {
        padding: 24px 20px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-btn {
        width: 100%;
    }

    .lead-story {
        min-height: 420px;
    }

    .lead-story-content {
        padding: 22px;
    }

    .story-stack.cards-pill .story-card {
        grid-template-columns: 96px 1fr;
    }

    .product-grid,
    .category-grid,
    .articles-list {
        grid-template-columns: 1fr;
    }
}

/* Targeted fixes after editorial refresh */
.main-nav .nav-dropdown-trigger::after {
    content: "" !important;
    display: none !important;
}

/* Padded contain only applies to the pill fallback. Default bleed cards
   need cover so the image fills the whole card. */
.story-stack.cards-pill .story-card img {
    object-fit: contain;
    background: #eef2f7;
    padding: 6px;
}

.articles-page .articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.articles-page .article-hero-card {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.articles-page .article-hero-images {
    position: relative;
    inset: auto;
    width: 100%;
    height: 190px;
    display: flex;
    flex-shrink: 0;
    background: #eef2f7;
}

.articles-page .article-hero-img {
    min-width: 0;
}

.articles-page .article-hero-img img {
    object-fit: cover;
}

/* Single hero-image card style — let the wide cinematic hero breathe a
   little taller than the old 3-up strip. */
.articles-page .article-hero-card.hero-single .article-hero-images {
    height: 230px;
}

.articles-page .article-hero-overlay {
    display: none;
}

.articles-page .article-hero-card .article-hero-content {
    position: static;
    width: auto;
    height: auto;
    padding: 20px;
    display: flex;
    flex: 1;
    color: var(--ink);
    background: #fff;
}

.articles-page .article-hero-card .article-date {
    color: var(--muted);
    margin-bottom: 8px;
}

.articles-page .article-hero-card h3 {
    color: var(--ink);
    font-size: clamp(1.05rem, 2vw, 1.32rem);
    line-height: 1.22;
    margin: 0 0 10px;
    overflow-wrap: anywhere;
    word-break: normal;
}

.articles-page .article-hero-card p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.articles-page .article-hero-card .read-more {
    margin-top: auto;
    color: #fff;
    background: var(--brand);
    width: fit-content;
}

@media (max-width: 560px) {
    .articles-page .articles-list {
        grid-template-columns: 1fr;
    }

    .articles-page .article-hero-images {
        height: 210px;
    }

    .story-stack.cards-pill .story-card {
        grid-template-columns: 112px 1fr;
    }
}

/* Tasteful article commerce module */
.article-commerce-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin: 30px 0 34px;
    padding: 18px;
    border: 1px solid #fed7aa;
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    background: linear-gradient(135deg, #fffaf2 0%, #ffffff 74%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.article-commerce-card.compact {
    margin: 22px 0;
}

.article-commerce-copy {
    min-width: 0;
}

.article-commerce-copy .commerce-label {
    display: inline-flex;
    margin-bottom: 6px;
    color: #9a3412;
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.article-commerce-copy strong {
    display: block;
    color: var(--ink);
    font-size: 1.05rem;
    line-height: 1.3;
}

.article-commerce-copy p {
    margin: 6px 0 0 !important;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.article-commerce-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 8px;
    background: #ff9900;
    color: #111827 !important;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(255, 153, 0, 0.24);
}

.article-commerce-button:hover {
    background: #f59e0b;
    text-decoration: none !important;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .article-commerce-card {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .article-commerce-button {
        width: 100%;
    }
}

/* ===================== GardenScout theme overrides ===================== */
:root{
  --brand:#2e7d32; --brand-dark:#1b5e20; --accent:#e07a3f; --secondary:#1b4332;
  --ink:#1b3a2b; --muted:#5c7066;
}
body{ background:#f3f7f1; color:#1b3a2b; }
a{ color:#2e7d32; }
.hero-btn.primary,.read-more-pill,.gs-btn{ background:#2e7d32; }
.hero-btn.primary:hover,.gs-btn:hover{ background:#1b5e20; }
.section-kicker,.hero-eyebrow .eyebrow-pill{ color:#2e7d32; }
.hero{ background:linear-gradient(120deg,rgba(20,60,35,.78),rgba(30,80,45,.55)), var(--gs-hero,#214a30); background-size:cover; background-position:center; }
/* Article hero: full-bleed photo with title overlaid at the bottom. */
.article-content .hero{ position:relative; min-height:360px; display:flex; flex-direction:column; justify-content:flex-end; padding:34px 32px 28px; border-radius:16px; overflow:hidden; background:linear-gradient(180deg, rgba(6,18,11,.04) 0%, rgba(6,18,11,.28) 52%, rgba(5,14,9,.80) 100%), var(--gs-hero,#214a30); background-size:cover; background-position:center; }
.article-content .hero h1{ color:#fff; margin:0; font-size:2.15rem; line-height:1.14; letter-spacing:-.01em; text-shadow:0 2px 16px rgba(0,0,0,.55); max-width:92%; }
.article-content .hero .caption,.article-content .hero p{ color:rgba(255,255,255,.93); text-shadow:0 1px 6px rgba(0,0,0,.6); }
@media(max-width:600px){ .article-content .hero{ min-height:250px; padding:22px 18px } .article-content .hero h1{ font-size:1.5rem } }
.hero-title span{ color:#fff; }
/* feature panels */
.gs-feature{ max-width:1100px; margin:34px auto; padding:30px 32px; border-radius:18px; }
.gs-kicker{ display:inline-block; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#2e7d32; margin-bottom:6px; }
.gs-kicker.light{ color:#bfe3c4; }
.gs-feature h2{ font-size:clamp(1.4rem,3vw,2rem); margin:2px 0 8px; color:#173d27; }
.gs-thismonth{ background:#fff; border:1px solid #d9e6db; box-shadow:0 8px 28px rgba(27,60,43,.06); }
.gs-month{ color:#2e7d32; }
.gs-jobs{ list-style:none; margin:14px 0 18px; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:10px 22px; }
.gs-jobs li{ position:relative; padding:8px 8px 8px 30px; border-bottom:1px solid #eef3ee; color:#33503f; }
.gs-jobs li:before{ content:"\2713"; position:absolute; left:4px; top:8px; color:#2e7d32; font-weight:800; }
.gs-jobs.big li{ font-size:1.04rem; }
.gs-btn{ display:inline-flex; align-items:center; gap:6px; color:#fff; padding:11px 20px; border-radius:10px; text-decoration:none; font-weight:800; }
.gs-btn.light{ background:#fff; color:#1b5e20; }
.gs-diagnoser-cta{ background:linear-gradient(135deg,#1b5e20,#2e7d32); color:#eafaef; }
.gs-diagnoser-cta h2{ color:#fff; }
.gs-diagnoser-cta p{ color:#d7efdb; max-width:640px; }
.gs-chips{ display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 18px; }
.gs-chip{ background:rgba(255,255,255,.15); color:#fff; padding:6px 14px; border-radius:999px; text-decoration:none; font-size:.9rem; font-weight:600; }
.gs-chip:hover{ background:rgba(255,255,255,.28); }
/* feature pages */
.gs-page{ max-width:980px; margin:0 auto; padding:8px 18px 50px; }
.gs-page-head{ text-align:center; margin:18px 0 26px; }
.gs-page-head h1{ font-size:clamp(1.8rem,4vw,2.7rem); color:#173d27; margin:6px 0 10px; }
.gs-page-head p{ color:#5c7066; max-width:620px; margin:0 auto; }
.gs-mtabs{ display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-bottom:24px; }
.gs-mtab{ border:1px solid #cfe0d2; background:#fff; color:#33503f; padding:8px 14px; border-radius:999px; font-weight:700; cursor:pointer; }
.gs-mtab.active{ background:#2e7d32; color:#fff; border-color:#2e7d32; }
.gs-mpanel{ display:none; background:#fff; border:1px solid #d9e6db; border-radius:16px; padding:26px 30px; }
.gs-mpanel.active{ display:block; }
.gs-mpanel h2{ color:#173d27; margin:0 0 14px; }
/* diagnoser */
.gs-symptoms{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; margin-bottom:24px; }
.gs-symptom{ display:flex; align-items:center; gap:10px; background:#fff; border:2px solid #d9e6db; border-radius:14px; padding:16px; font-size:1rem; font-weight:700; color:#1b3a2b; cursor:pointer; transition:all .15s; }
.gs-symptom:hover{ border-color:#2e7d32; transform:translateY(-2px); }
.gs-symptom.active{ border-color:#2e7d32; background:#eef7ef; box-shadow:0 6px 18px rgba(46,125,50,.15); }
.gs-symptom-ic{ font-size:1.5rem; }
.gs-result{ background:#fff; border:1px solid #d9e6db; border-left:5px solid #2e7d32; border-radius:14px; padding:26px 30px; }
.gs-result h2{ color:#173d27; margin:0 0 16px; }
.gs-r-block{ margin-bottom:16px; }
.gs-r-block h3{ color:#2e7d32; font-size:1rem; text-transform:uppercase; letter-spacing:.04em; margin:0 0 6px; }
.gs-r-block ol,.gs-r-block p{ color:#33503f; }
.gs-r-need{ background:#f3f7f1; border-radius:10px; padding:14px 16px; }
@media(max-width:600px){ .gs-feature{ margin:22px 14px; padding:22px; } }
