/* Global Section Container Constraints */
.hero-section .container,
.trending-section .container,
.categories-section .container,
.stats-section .container,
.latest-section .container,
.comments-section .container,
.tags-section .container,
.newsletter-cta-section .container {
    max-width: 1200px !important;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Render-skip optimization for below-the-fold home sections */
.home-pulse-section,
.review-spotlight-section,
.trending-section,
.categories-section,
.stats-section,
.latest-section,
.comments-section,
.tags-section,
.newsletter-cta-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-buttons .btn {
    padding: 0.875rem 2rem;
}

.newsletter-widget {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
}

.widget-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Trending Section - Simple 2 Column */
.trending-section {
    padding: 3rem 0;
    background: transparent;
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.section-title i {
    color: #f59e0b;
    margin-right: 0.5rem;
}

.section-subtitle {
    color: #6b7280;
    font-size: 1rem;
}

/* Simple 2-Column Grid */
.trending-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.25rem;
}

/* Featured Card Container (Left) - Now holds 2 cards vertically */
.trending-main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Featured Card (Left) */
.trending-main .featured-card {
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: none;
    transition: all 0.3s ease;
}

.trending-main .featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.18);
}

.featured-image {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.72), rgba(248, 250, 252, 0.96));
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(102, 126, 234, 0.3);
}

.trending-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%);
    color: white;
    padding: 0.5rem 0.875rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    z-index: 2;
}

.featured-content {
    padding: 1.25rem;
}

.featured-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.875rem;
}

.featured-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.625rem;
    line-height: 1.3;
}

.featured-excerpt {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-meta {
    display: flex;
    gap: 1rem;
    color: #9ca3af;
    font-size: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Side Posts (Right) */
.trending-side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.side-card {
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.side-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.side-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 150px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.72), rgba(248, 250, 252, 0.96));
}

.side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    transition: transform 0.4s ease;
}

.side-card:hover .side-image img {
    transform: scale(1.05);
}

.side-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(102, 126, 234, 0.3);
}

.side-content {
    padding: 1.125rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.side-category {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    align-self: flex-start;
}

.side-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.625rem;
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.side-meta {
    font-size: 0.8rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

/* Categories Section */
.categories-section {
    padding: 4rem 0;
    background: var(--bg-page);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: transparent;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: none;
    position: relative;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--card-color, #667eea);
    margin-bottom: 1rem;
}

.category-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.category-count {
    color: #6b7280;
    font-size: 0.9rem;
}

.category-arrow {
    margin-top: 1rem;
    color: var(--card-color, #667eea);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-arrow {
    opacity: 1;
}

/* Statistics Section */
.stats-section {
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: transparent;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    line-height: 1;
}

.stat-label {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0.5rem 0 0 0;
}

/* Latest Section */
.latest-section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-all-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: #764ba2;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.latest-card {
    background: var(--bg-surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
    transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease, background 0.32s ease;
}

.latest-card:hover,
.latest-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.24);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.latest-image {
    height: 200px;
    overflow: hidden;
}

.latest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.latest-card:hover .latest-image img {
    transform: scale(1.035);
}

.latest-content {
    padding: 1.5rem;
    background: var(--bg-surface);
}

.latest-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.875rem;
}

.latest-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.latest-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.latest-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.latest-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Statistics Section */
.stats-section {
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-card {
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    line-height: 1;
}

.stat-label {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0.5rem 0 0 0;
}

/* Recent Comments Section */
.comments-section {
    padding: 4rem 0;
    background: var(--bg-surface-hover);
}

.comments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    max-width: 1000px;
    margin: 0 auto;
}

.comment-card {
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
}

.comment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.comment-avatar {
    font-size: 2.5rem;
    color: #667eea;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.comment-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

.comment-text {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.comment-post-link {
    font-size: 0.85rem;
    color: #667eea;
    text-decoration: none;
}

.comment-post-link:hover {
    text-decoration: underline;
}

/* Popular Tags Cloud */
.tags-section {
    padding: 4rem 0;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.tag-item {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--bg-surface);
    color: #667eea;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tag-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .trending-grid {
        grid-template-columns: 1fr;
    }

    .trending-side {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .featured-image {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .trending-section {
        padding: 2rem 0;
    }

    .trending-side {
        grid-template-columns: 1fr;
    }

    .featured-image {
        height: 220px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .side-card {
        flex-direction: column;
    }

    .side-image {
        width: 100%;
        height: 180px;
    }

    .latest-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   HERO CAROUSEL
======================================== */

.hero-carousel-section {
    background: transparent;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    padding: 0.85rem 1rem 1rem;
}

.hero-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    max-width: 1380px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 28px 68px rgba(8, 17, 32, 0.18);
}

.hero-signal-strip-section {
    margin-top: 1.1rem;
}

.hero-signal-strip {
    display: grid;
    grid-template-columns: auto repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
    align-items: stretch;
}

.hero-signal-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f172a, #123765);
    color: #f8fafc;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-signal-item {
    display: grid;
    gap: 0.28rem;
    text-decoration: none;
    color: inherit;
    align-content: start;
    min-height: 100%;
    padding: 0.8rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.99));
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
    transition: transform 0.42s ease, border-color 0.42s ease, box-shadow 0.42s ease, background 0.42s ease;
}

.hero-signal-title {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.42s ease;
}

.hero-signal-time {
    color: var(--text-muted);
    font-size: 0.78rem;
}

[data-theme="dark"] .hero-signal-item {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(17, 30, 50, 0.96));
    border-color: rgba(96, 165, 250, 0.12);
    box-shadow: 0 18px 32px rgba(2, 8, 23, 0.24);
}

.hero-signal-item:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 248, 255, 1));
}

.latest-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(14, 165, 233, 0.54);
    font-size: 2.2rem;
    background:
        radial-gradient(circle at 18% 20%, rgba(14, 165, 233, 0.16), transparent 30%),
        radial-gradient(circle at 82% 72%, rgba(37, 99, 235, 0.11), transparent 32%),
        linear-gradient(135deg, rgba(226, 232, 240, 0.74), rgba(248, 250, 252, 0.96));
}

[data-theme="dark"] .latest-card {
    box-shadow: none;
}

[data-theme="dark"] .latest-card:hover,
[data-theme="dark"] .latest-card:focus-within {
    box-shadow: 0 18px 34px rgba(2, 8, 23, 0.18);
}

[data-theme="dark"] .latest-placeholder {
    color: rgba(147, 197, 253, 0.74);
    background:
        radial-gradient(circle at 18% 20%, rgba(14, 165, 233, 0.16), transparent 30%),
        radial-gradient(circle at 82% 72%, rgba(37, 99, 235, 0.12), transparent 32%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(17, 30, 50, 0.98));
}

.hero-signal-item:hover .hero-signal-title {
    color: var(--primary-color);
}

[data-theme="dark"] .hero-signal-item:hover {
    border-color: rgba(125, 211, 252, 0.3);
    box-shadow: 0 16px 30px rgba(2, 8, 23, 0.28);
    background: linear-gradient(180deg, rgba(18, 29, 48, 0.94), rgba(21, 36, 58, 0.98));
}

/* Carousel Slides */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    padding: 3.2rem 2rem 3.4rem;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 15, 28, 0.76) 0%, rgba(7, 18, 33, 0.56) 28%, rgba(8, 20, 36, 0.18) 58%, rgba(8, 20, 36, 0.06) 100%),
        linear-gradient(180deg, rgba(5, 12, 24, 0.18) 0%, rgba(5, 12, 24, 0.08) 100%);
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Hero Content Layout */
.hero-content {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Hard guard: hide legacy hero right-rail blocks even if stale markup appears */
.hero-content .hero-rail,
.hero-content .hero-spotlight-card,
.hero-content .hero-story-card,
.hero-content .hero-spotlight-copy,
.hero-content .hero-spotlight-icon {
    display: none !important;
}

.hero-text {
    color: white;
    max-width: 38rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.2rem 0;
    text-shadow: 0 12px 30px rgba(2, 8, 23, 0.52);
}

.hero-kicker-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hero-kicker,
.hero-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-kicker {
    background: rgba(14, 165, 233, 0.16);
    border: 1px solid rgba(125, 211, 252, 0.2);
    color: #dbeafe;
}

.hero-live-pill {
    background: rgba(15, 23, 42, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.88);
}

.hero-text .hero-title {
    max-width: 11ch;
    margin-bottom: 0.95rem;
    line-height: 1.08;
    text-wrap: balance;
    color: #ffffff;
}

.hero-text .hero-subtitle {
    max-width: 32rem;
    margin-bottom: 1.1rem;
    line-height: 1.58;
    color: rgba(255, 255, 255, 0.95);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideInLeft 0.8s ease 0.4s both;
}

.hero-buttons .btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #0066ff, #00bcd4);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
}

/* Carousel Navigation Dots */
.carousel-dots {
    position: absolute;
    bottom: 2.35rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.dot.active {
    background: var(--bg-surface);
    width: 40px;
    border-radius: 6px;
}

[data-theme="dark"] .dot {
    background: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .dot:hover {
    background: rgba(255, 255, 255, 0.78);
}

[data-theme="dark"] .dot.active {
    background: #ffffff;
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
    left: 2rem;
}

.carousel-arrow.next {
    right: 2rem;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .hero-carousel-section,
    .hero-carousel-container {
        min-height: 420px;
    }

    .hero-carousel-section {
        padding: 0.7rem 0.75rem 0.8rem;
    }

    .hero-slide {
        padding: 2.15rem 1.25rem 2.45rem;
    }

    .hero-content {
        display: flex;
        align-items: center;
    }

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

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-spotlight-card {
        padding: 1.2rem;
    }

    .hero-story-card {
        padding: 1rem;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-arrow.prev {
        left: 1rem;
    }

    .carousel-arrow.next {
        right: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-carousel-section,
    .hero-carousel-container {
        min-height: 360px;
    }

    .hero-carousel-section {
        padding: 0.45rem 0.45rem 0.6rem;
    }

    .hero-slide {
        padding: 1.15rem 1rem 1.55rem;
    }

    .hero-signal-label,
    .hero-signal-item {
        padding: 0.72rem 0.8rem;
    }

    .hero-signal-strip-section {
        margin-top: 0.85rem;
    }

    .hero-kicker-row {
        gap: 0.55rem;
        margin-bottom: 0.8rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .carousel-dots {
        bottom: 1.2rem;
    }
}

/* Mobile hero stability patch for public homepage. */
@media (max-width: 991px) {
    body.home-index .hero-carousel-section {
        padding: 0.75rem 0.85rem 0.55rem;
        overflow: hidden;
    }

    body.home-index .hero-carousel-container {
        min-height: auto;
        aspect-ratio: 10 / 13;
        max-height: min(72vh, 560px);
        border-radius: 24px;
        overflow: hidden;
    }

    body.home-index .hero-slide {
        position: absolute;
        inset: 0;
        min-height: 100%;
        height: 100%;
        padding: clamp(1.4rem, 5vw, 2.35rem);
        display: flex;
        align-items: flex-end;
    }

    body.home-index .hero-content {
        width: 100%;
        max-width: 100%;
        display: block;
        padding: 0;
    }

    body.home-index .hero-text {
        max-width: 100%;
        padding: 1rem;
        border-radius: 20px;
        background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.58));
        backdrop-filter: blur(2px);
    }

    body.home-index .hero-kicker-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    body.home-index .hero-text .hero-title,
    body.home-index .hero-title {
        max-width: 100%;
        font-size: clamp(1.75rem, 8vw, 2.75rem);
        line-height: 1.05;
        letter-spacing: -0.045em;
        overflow-wrap: anywhere;
    }

    body.home-index .hero-text .hero-subtitle,
    body.home-index .hero-subtitle {
        max-width: 100%;
        font-size: clamp(0.95rem, 3.8vw, 1.08rem);
        line-height: 1.55;
    }

    body.home-index .hero-buttons {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.65rem;
        width: 100%;
        margin-top: 1rem;
    }

    body.home-index .hero-buttons .btn {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        padding: 0.72rem 0.95rem;
    }

    body.home-index .carousel-arrow {
        top: auto;
        bottom: 1.05rem;
        width: 38px;
        height: 38px;
        background: rgba(15, 23, 42, 0.64);
        backdrop-filter: blur(10px);
    }

    body.home-index .carousel-arrow.prev {
        left: 1rem;
    }

    body.home-index .carousel-arrow.next {
        right: 1rem;
    }

    body.home-index .carousel-dots {
        bottom: 1.45rem;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        max-width: calc(100% - 7rem);
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    body.home-index .hero-signal-strip-section {
        margin-top: 0.75rem;
        padding: 0 0.85rem;
        overflow: hidden;
    }

    body.home-index .hero-signal-strip {
        display: flex;
        gap: 0.55rem;
        overflow-x: auto;
        padding-bottom: 0.15rem;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    body.home-index .hero-signal-label,
    body.home-index .hero-signal-item {
        flex: 0 0 auto;
        scroll-snap-align: start;
        max-width: min(78vw, 320px);
        white-space: normal;
    }
}

@media (max-width: 420px) {
    body.home-index .hero-slide {
        min-height: 100%;
        padding: 1rem;
    }

    body.home-index .hero-text {
        padding: 0.85rem;
    }

    body.home-index .hero-kicker,
    body.home-index .hero-live-pill {
        font-size: 0.7rem;
        padding: 0.4rem 0.55rem;
    }
}

/* Modern editorial rhythm overrides */
.trending-section,
.categories-section,
.stats-section,
.latest-section,
.comments-section,
.tags-section,
.home-print-lab-section {
    padding-top: clamp(2.75rem, 5vw, 4.25rem);
    padding-bottom: clamp(2.75rem, 5vw, 4.25rem);
}

.home-print-lab-section {
    position: relative;
}

.home-print-lab-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr);
    gap: clamp(1rem, 4vw, 2rem);
    overflow: hidden;
    min-height: 340px;
    padding: clamp(1.5rem, 4vw, 2.6rem);
    border: 1px solid rgba(14, 165, 233, 0.24);
    border-radius: 34px;
    color: var(--text-primary);
    text-decoration: none;
    background:
        radial-gradient(circle at 76% 28%, rgba(34, 211, 238, 0.26), transparent 16rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(232, 247, 255, 0.78));
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .home-print-lab-card {
    background:
        radial-gradient(circle at 76% 28%, rgba(34, 211, 238, 0.16), transparent 16rem),
        linear-gradient(135deg, rgba(8, 21, 36, 0.96), rgba(12, 32, 52, 0.82));
    box-shadow: 0 24px 70px rgba(2, 8, 23, 0.28);
}

.home-print-lab-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(90deg, black, transparent 82%);
    pointer-events: none;
}

.home-print-lab-card:hover {
    color: var(--text-primary);
    text-decoration: none;
    border-color: rgba(14, 165, 233, 0.42);
}

.home-print-lab-orbit {
    position: absolute;
    width: 340px;
    height: 340px;
    right: -90px;
    top: -90px;
    border-radius: 999px;
    border: 1px solid rgba(14, 165, 233, 0.26);
}

.home-print-lab-copy {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.home-print-lab-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0284c7;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-print-lab-kicker::before {
    content: "";
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
    box-shadow: 0 0 18px rgba(14, 165, 233, 0.5);
}

.home-print-lab-copy h2 {
    margin: 0.75rem 0;
    font-size: clamp(2rem, 5vw, 4.4rem);
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: -0.065em;
}

.home-print-lab-copy p {
    max-width: 540px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.home-print-lab-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    min-height: 44px;
    padding: 0 1rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    font-weight: 850;
    box-shadow: 0 16px 34px rgba(14, 165, 233, 0.24);
}

.home-print-lab-visual {
    position: relative;
    z-index: 1;
    min-height: 230px;
    border-radius: 26px;
    background:
        linear-gradient(rgba(14, 165, 233, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 50% 78%, rgba(45, 212, 191, 0.28), transparent 8rem);
    background-size: 24px 24px, 24px 24px, auto;
    border: 1px solid rgba(14, 165, 233, 0.18);
}

.home-print-lab-visual .lab-rail,
.home-print-lab-visual .lab-nozzle,
.home-print-lab-visual .lab-object {
    position: absolute;
    display: block;
}

.home-print-lab-visual .lab-rail {
    top: 3rem;
    left: 13%;
    right: 13%;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0f172a, #22d3ee, #0f172a);
}

.home-print-lab-visual .lab-nozzle {
    top: 2.3rem;
    left: 44%;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(145deg, #071827, #164e63);
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.2);
}

.home-print-lab-visual .lab-object {
    left: 50%;
    bottom: 2rem;
    width: 112px;
    height: 128px;
    transform: translateX(-50%);
    border-radius: 38% 38% 20% 20%;
    background:
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0 4px, transparent 4px 9px),
        linear-gradient(145deg, #22d3ee, #0ea5e9 62%, #2563eb);
    box-shadow: 0 26px 60px rgba(14, 165, 233, 0.28);
}

.home-print-lab-metrics {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 760px;
}

.home-print-lab-metrics span {
    border: 1px solid rgba(14, 165, 233, 0.16);
    border-radius: 18px;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.54);
}

[data-theme="dark"] .home-print-lab-metrics span {
    background: rgba(255, 255, 255, 0.07);
}

.home-print-lab-metrics strong,
.home-print-lab-metrics small {
    display: block;
}

.home-print-lab-metrics small {
    color: var(--text-muted);
    font-weight: 750;
}

@media (max-width: 820px) {
    .home-print-lab-card {
        grid-template-columns: 1fr;
    }

    .home-print-lab-metrics {
        grid-template-columns: 1fr;
    }
}

.section-header {
    gap: 1rem;
}

.section-title {
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.section-title i {
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.1);
    font-size: 1.05rem;
    vertical-align: middle;
}

.section-subtitle,
.featured-excerpt,
.category-count,
.stat-label,
.latest-excerpt,
.latest-meta,
.side-meta {
    color: var(--text-muted);
}

.trending-main .featured-card,
.side-card,
.category-card,
.stat-card {
    background: var(--bg-surface);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
    transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease, background 0.32s ease;
}

.trending-main .featured-card:hover,
.trending-main .featured-card:focus-within,
.side-card:hover,
.side-card:focus-within,
.category-card:hover,
.category-card:focus-within,
.stat-card:hover,
.stat-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(14, 165, 233, 0.22);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.07);
}

.featured-card:hover .featured-image img,
.side-card:hover .side-image img {
    transform: scale(1.035);
}

.featured-meta {
    color: var(--text-muted);
    border-top-color: var(--border-color);
}

[data-theme="dark"] .trending-main .featured-card,
[data-theme="dark"] .side-card,
[data-theme="dark"] .category-card,
[data-theme="dark"] .stat-card {
    box-shadow: none;
}

[data-theme="dark"] .trending-main .featured-card:hover,
[data-theme="dark"] .trending-main .featured-card:focus-within,
[data-theme="dark"] .side-card:hover,
[data-theme="dark"] .side-card:focus-within,
[data-theme="dark"] .category-card:hover,
[data-theme="dark"] .category-card:focus-within,
[data-theme="dark"] .stat-card:hover,
[data-theme="dark"] .stat-card:focus-within {
    box-shadow: 0 18px 34px rgba(2, 8, 23, 0.18);
}
