/*
 Theme Name:   CAC Readers Theme
 Theme URI:    https://cacreaders.com
 Description:  Child theme of FoxDog Universal for CAC Readers
 Author:       FoxDog Media
 Author URI:   https://foxdogmedia.com
 Template:     foxdog-universal-v1.4.1
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  cacreaders
*/

/* ==========================================================================
   TYPOGRAPHY - Work Sans (Clean Tech Style)
   ========================================================================== */

body,
.site-title,
.entry-title,
h1, h2, h3, h4, h5, h6,
.tile-title,
.hero-title,
.section-title,
.main-navigation a,
.cat-pill {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Heading weights */
h1, .entry-title, .hero-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2, .section-title {
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3, h4, .tile-title {
    font-weight: 600;
}

/* Navigation typography */
.main-navigation a {
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
}

/* Body text */
body {
    font-weight: 400;
    line-height: 1.7;
}

/* Strong emphasis */
strong, b {
    font-weight: 600;
}


/* ==========================================================================
   Full-Width Header Reset
   ========================================================================== */

body {
    margin: 0 !important;
    padding: 0 !important;
}

#page.site {
    margin: 0 !important;
    padding: 0 !important;
}

.site-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.site-main > .container {
    padding-top: 0 !important;
    margin-top: 0 !important;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.site-header-compact + .site-main,
.site-header-compact + main,
.site-header + .site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ==========================================================================
   Compact Header with Tech Green/Dark Theme
   ========================================================================== */

.site-header,
.site-header-compact {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    width: 100%;
}

.site-header-compact .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    margin: 0 auto;
}

.site-header-compact .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Site Logo/Title */
.site-title-logo {
    margin: 0;
    line-height: 1;
}

.site-title-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    gap: 0.25rem;
}

.logo-part-1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #00d4aa;
    letter-spacing: -0.02em;
}

.logo-part-2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.logo-part-3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    letter-spacing: -0.01em;
}

.logo-accent {
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #00d4aa;
    border-radius: 2px;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Navigation */
.main-navigation ul {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 0.5rem 0.875rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.main-navigation a:hover {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
}

.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
    background: rgba(0, 212, 170, 0.2);
    color: #00d4aa;
}

/* Search Form */
.header-search .search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}

.header-search .search-field {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    color: white;
    font-size: 0.875rem;
    width: 180px;
}

.header-search .search-field::placeholder {
    color: rgba(255,255,255,0.6);
}

.header-search .search-submit {
    background: transparent;
    border: none;
    padding: 0.5rem 0.75rem;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: block;
    }
    .header-right {
        display: none;
    }
}

/* ==========================================================================
   Hero Carousel - Tech/Security Theme
   ========================================================================== */

.hero-carousel {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0;
}

.carousel-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
}

.hero-compact {
    display: grid;
    grid-template-columns: 55% 45%;
    min-height: 320px;
}

/* When no featured image, make content full width */
.hero-compact.no-image {
    grid-template-columns: 1fr;
    min-height: auto;
}

.hero-compact.no-image .hero-content {
    padding: 2rem 3rem;
    text-align: center;
    align-items: center;
}

.hero-image {
    position: relative;
    overflow: hidden;
}

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

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100px;
    background: linear-gradient(to right, transparent, #1a1a2e);
}

.hero-content {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.hero-category {
    display: inline-block;
    background: #00d4aa;
    color: #1a1a2e;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

.hero-title a {
    color: white;
    text-decoration: none;
}

.hero-excerpt {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.75rem;
}

.hero-cta {
    display: inline-block;
    background: #00d4aa;
    color: #1a1a2e;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9375rem;
    align-self: center;
    transition: all 0.2s ease;
}

.hero-cta:hover {
    background: #00f5c4;
    transform: translateY(-2px);
}

/* Carousel Controls */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background: rgba(0, 212, 170, 0.4);
}

.carousel-prev {
    left: 1.5rem;
}

.carousel-next {
    right: 1.5rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dot.active {
    background: #00d4aa;
    width: 24px;
    border-radius: 5px;
}

/* ==========================================================================
   Category Banner
   ========================================================================== */

.category-banner {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
}

.cat-pill {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cat-pill-1 {
    background: #e0f7f1;
    color: #0d7377;
}

.cat-pill-2 {
    background: #e8f4f8;
    color: #1a5276;
}

.cat-pill-3 {
    background: #fff3cd;
    color: #856404;
}

.cat-pill-4 {
    background: #f5e6fe;
    color: #6f42c1;
}

.cat-pill-5 {
    background: #ffe5e5;
    color: #c0392b;
}

.cat-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ==========================================================================
   Articles Grid
   ========================================================================== */

.recent-grid,
.category-section {
    padding: 2rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #00d4aa;
    display: inline-block;
}

.view-all-link {
    color: #16213e;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9375rem;
}

.view-all-link:hover {
    color: #00d4aa;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.articles-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

@media (max-width: 1100px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Article Tiles */
.article-tile {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.article-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tile-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}

.tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-tile:hover .tile-image img {
    transform: scale(1.05);
}

.tile-category-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 3px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.tile-content {
    padding: 1rem;
}

.tile-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.5rem;
}

.tile-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.tile-title a:hover {
    color: #00d4aa;
}

.tile-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: #6b7280;
}

.tile-separator {
    color: #9ca3af;
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

@media (max-width: 900px) {
    .site-header-compact .container {
        padding: 0 1rem;
    }
    .logo-part-1, .logo-part-2, .logo-part-3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .site-header-compact {
        padding: 0.375rem 0;
    }
    .site-title-logo a {
        flex-wrap: wrap;
        gap: 0.125rem;
    }
    .logo-part-1, .logo-part-2 {
        font-size: 1.125rem;
    }
    .logo-part-3 {
        font-size: 1rem;
    }
    .logo-accent {
        width: 30px;
        height: 2px;
        bottom: -2px;
    }
    .hero-compact {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .hero-image {
        height: 180px;
        order: 1;
    }
    .hero-image::after {
        display: none;
    }
    .hero-content {
        padding: 1.25rem 1rem;
        order: 2;
    }
    .hero-category {
        font-size: 0.6875rem;
        padding: 0.2rem 0.5rem;
        margin-bottom: 0.75rem;
    }
    .hero-title {
        font-size: 1.25rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    .hero-excerpt {
        font-size: 0.875rem;
        -webkit-line-clamp: 2;
        margin-bottom: 0.75rem;
    }
    .hero-meta {
        font-size: 0.75rem;
        gap: 0.5rem;
        margin-bottom: 1rem;
        flex-wrap: wrap;
    }
    .hero-cta {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    .carousel-arrow {
        width: 36px;
        height: 36px;
    }
    .carousel-prev { left: 0.75rem; }
    .carousel-next { right: 0.75rem; }
    .carousel-dots { bottom: 1rem; }
    .carousel-dot { width: 8px; height: 8px; }
    .carousel-dot.active { width: 20px; }
    .category-banner {
        padding: 0.875rem 0.75rem;
        gap: 0.375rem;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .category-banner::-webkit-scrollbar { display: none; }
    .cat-pill {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .recent-grid, .category-section { padding: 1.25rem 0; }
    .section-header { margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem; }
    .section-title { font-size: 1.125rem; padding-bottom: 0.375rem; }
    .view-all-link { font-size: 0.8125rem; }
    .articles-grid { gap: 1rem; }
    .tile-content { padding: 0.875rem; }
    .tile-title { font-size: 0.9375rem; line-height: 1.4; }
    .tile-meta { font-size: 0.6875rem; }
    .tile-category-badge { font-size: 0.625rem; padding: 0.2rem 0.5rem; }
    .site-main > .container { padding-left: 0.75rem; padding-right: 0.75rem; }
}

@media (max-width: 400px) {
    .logo-part-1, .logo-part-2 { font-size: 1rem; }
    .logo-part-3 { font-size: 0.875rem; }
    .hero-title { font-size: 1.125rem; }
    .hero-content { padding: 1rem 0.875rem; }
    .hero-image { height: 160px; }
    .carousel-arrow { width: 32px; height: 32px; }
    .carousel-prev { left: 0.5rem; }
    .carousel-next { right: 0.5rem; }
}

/* Mobile Menu */
.mobile-menu {
    background: #1a1a2e;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu-inner { padding: 1rem; }
.mobile-nav-list { list-style: none; margin: 0; padding: 0; }
.mobile-nav-list li { border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-nav-list li:last-child { border-bottom: none; }
.mobile-nav-list a {
    display: block;
    padding: 0.875rem 0.5rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}
.mobile-nav-list a:hover, .mobile-nav-list .current-menu-item a {
    color: #00d4aa;
    background: rgba(255,255,255,0.05);
}
.mobile-search {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-search .search-form { display: flex; gap: 0.5rem; }
.mobile-search .search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
}
.mobile-search .search-field::placeholder { color: rgba(255,255,255,0.6); }
.mobile-search .search-submit {
    padding: 0.75rem 1.25rem;
    background: #00d4aa;
    color: #1a1a2e;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}
@media (min-width: 901px) { .mobile-menu { display: none !important; } }

/* ==========================================================================
   Sticky Navigation
   ========================================================================== */

.site-header-compact {
    position: sticky !important;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.site-header-compact.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Article Page Styles
   ========================================================================== */

.single .entry-title,
.single h1.entry-title,
article h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.single .entry-content h2,
article.post .entry-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #00d4aa;
    color: #1a1a2e;
}

.entry-meta,
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

/* ==========================================================================
   Archive/Category Page - CNN-inspired Layout
   ========================================================================== */

.archive-main {
    background: #f8fafc;
    min-height: 100vh;
}

.archive-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 2.5rem 0;
    margin-bottom: 2rem;
}

.archive-title {
    color: #ffffff;
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
}

.archive-description {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin: 0;
    max-width: 600px;
}

.archive-count {
    display: inline-block;
    background: #00d4aa;
    color: #1a1a2e;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Hero Article */
.archive-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.archive-hero .hero-image-link {
    display: block;
    overflow: hidden;
}

.archive-hero .hero-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 350px;
    transition: transform 0.3s ease;
}

.archive-hero:hover .hero-image-link img {
    transform: scale(1.03);
}

.archive-hero .hero-details {
    padding: 2rem 2rem 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.archive-hero .hero-headline {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 1rem;
}

.archive-hero .hero-headline a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s;
}

.archive-hero .hero-headline a:hover {
    color: #00d4aa;
}

.archive-hero .hero-excerpt {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.archive-hero .hero-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Featured Row - 3 Cards */
.featured-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.featured-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.featured-card .card-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.featured-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.featured-card .card-content {
    padding: 1.25rem;
}

.featured-card .card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.75rem;
}

.featured-card .card-title a {
    color: #1a1a2e;
    text-decoration: none;
}

.featured-card .card-title a:hover {
    color: #00d4aa;
}

.featured-card .card-meta {
    font-size: 0.8125rem;
    color: #6b7280;
}

.meta-dot {
    color: #d1d5db;
}

/* Mixed Grid */
.mixed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.grid-item {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.grid-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Large grid item spans 2 columns */
.grid-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.grid-item .grid-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.grid-item-large .grid-image {
    aspect-ratio: 16/12;
}

.grid-item .grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-item:hover .grid-image img {
    transform: scale(1.05);
}

.grid-item .grid-content {
    padding: 1rem;
}

.grid-item-large .grid-content {
    padding: 1.5rem;
}

.grid-item .grid-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.5rem;
}

.grid-item-large .grid-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.grid-item .grid-title a {
    color: #1a1a2e;
    text-decoration: none;
}

.grid-item .grid-title a:hover {
    color: #00d4aa;
}

.grid-item .grid-excerpt {
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0 0 0.75rem;
}

.grid-item .grid-meta {
    font-size: 0.75rem;
    color: #6b7280;
}

.grid-item-large .grid-meta {
    font-size: 0.8125rem;
}

/* Pagination */
.archive-pagination {
    padding: 2rem 0;
    text-align: center;
}

.archive-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.archive-pagination a,
.archive-pagination span {
    display: inline-block;
    padding: 0.625rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
}

.archive-pagination a {
    background: #ffffff;
    color: #1a1a2e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s;
}

.archive-pagination a:hover {
    background: #00d4aa;
    color: #1a1a2e;
}

.archive-pagination .current {
    background: #1a1a2e;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 1100px) {
    .mixed-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-item-large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 900px) {
    .archive-hero {
        grid-template-columns: 1fr;
    }
    .archive-hero .hero-image-link img {
        min-height: 250px;
    }
    .archive-hero .hero-details {
        padding: 1.5rem;
    }
    .featured-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .mixed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-item-large {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .archive-title {
        font-size: 1.75rem;
    }
    .archive-hero .hero-headline {
        font-size: 1.375rem;
    }
    .mixed-grid {
        grid-template-columns: 1fr;
    }
    .grid-item-large {
        grid-column: span 1;
    }
}

/* Placeholder styles for posts without images */
.hero-placeholder,
.card-placeholder,
.grid-placeholder {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0d7377 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.25);
    position: relative;
    overflow: hidden;
}

/* Add subtle pattern overlay */
.hero-placeholder::before,
.card-placeholder::before,
.grid-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(30deg, rgba(0,212,170,0.05) 12%, transparent 12.5%, transparent 87%, rgba(0,212,170,0.05) 87.5%),
        linear-gradient(150deg, rgba(0,212,170,0.05) 12%, transparent 12.5%, transparent 87%, rgba(0,212,170,0.05) 87.5%),
        linear-gradient(30deg, rgba(0,212,170,0.05) 12%, transparent 12.5%, transparent 87%, rgba(0,212,170,0.05) 87.5%),
        linear-gradient(150deg, rgba(0,212,170,0.05) 12%, transparent 12.5%, transparent 87%, rgba(0,212,170,0.05) 87.5%);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
}

.hero-placeholder {
    min-height: 350px;
}

.card-placeholder {
    aspect-ratio: 16/10;
}

.grid-placeholder {
    aspect-ratio: 16/10;
}

.grid-item-large .grid-placeholder {
    aspect-ratio: 16/12;
}

.placeholder-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Archive hero when no image - make it single column with centered content */
.archive-hero.no-image {
    grid-template-columns: 1fr;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0d7377 100%);
    position: relative;
    overflow: hidden;
}

.archive-hero.no-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(30deg, rgba(0,212,170,0.05) 12%, transparent 12.5%, transparent 87%, rgba(0,212,170,0.05) 87.5%),
        linear-gradient(150deg, rgba(0,212,170,0.05) 12%, transparent 12.5%, transparent 87%, rgba(0,212,170,0.05) 87.5%);
    background-size: 80px 140px;
}

.archive-hero.no-image .hero-placeholder {
    display: none;
}

.archive-hero.no-image .hero-details {
    padding: 3rem 3rem 3rem 4rem;
    text-align: left;
    max-width: 800px;
    margin: 0;
    position: relative;
    z-index: 1;
}

.archive-hero.no-image .hero-headline {
    font-size: 2rem;
}

.archive-hero.no-image .hero-headline a {
    color: #ffffff;
}

.archive-hero.no-image .hero-headline a:hover {
    color: #00d4aa;
}

.archive-hero.no-image .hero-excerpt {
    color: rgba(255,255,255,0.85);
}

.archive-hero.no-image .hero-meta {
    color: rgba(255,255,255,0.7);
    justify-content: flex-start;
}

/* ==========================================================================
   Footer - Dark Tech Theme
   ========================================================================== */

.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    padding: 0;
    margin-top: 3rem;
}

.site-footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Footer Main */
.footer-main {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-column {
    min-width: 0;
}

/* Footer Titles */
.footer-title {
    font-size: 1rem;
    font-weight: 700;
    color: #00d4aa;
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(0, 212, 170, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* About Section */
.footer-about .footer-description {
    color: rgba(255,255,255,0.75);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0;
}

/* Footer Lists */
.footer-category-list,
.footer-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-category-list li,
.footer-link-list li {
    margin-bottom: 0.625rem;
}

.footer-category-list a,
.footer-link-list a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-category-list a:hover,
.footer-link-list a:hover {
    color: #00d4aa;
    padding-left: 0.25rem;
}

.category-count {
    color: rgba(255,255,255,0.4);
    font-size: 0.8125rem;
}

/* Footer Bottom */
.footer-bottom {
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright p {
    margin: 0;
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

/* Footer Badges */
.footer-badges {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.affiliate-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.8125rem;
}

.affiliate-notice svg {
    color: #00d4aa;
    flex-shrink: 0;
}

.trust-badges {
    display: flex;
    gap: 1rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(0, 212, 170, 0.15);
    color: #00d4aa;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.trust-badge svg {
    flex-shrink: 0;
}

/* Footer Responsive */
@media (max-width: 1000px) {
    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-about {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .footer-main {
        padding: 2rem 0 1.5rem;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-about {
        grid-column: span 1;
    }

    .footer-title {
        font-size: 0.9375rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }

    .footer-category-list a,
    .footer-link-list a {
        font-size: 0.875rem;
    }

    .footer-bottom {
        padding: 1.25rem 0;
    }

    .footer-bottom-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-badges {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .affiliate-notice {
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   Troubleshooting Hub - Support Center Style
   ========================================================================== */

.troubleshooting-hub {
    background: #f8fafc;
}

/* Hero Search Section */
.troubleshoot-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0d7377 100%);
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.troubleshoot-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 170, 0.08) 0%, transparent 50%);
}

.troubleshoot-hero .container {
    position: relative;
    z-index: 1;
}

.troubleshoot-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
}

.troubleshoot-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1.125rem;
    margin: 0 0 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Box */
.troubleshoot-search {
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.search-icon {
    color: #6b7280;
    margin: 0 0.75rem;
    flex-shrink: 0;
}

.troubleshoot-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0.75rem 0;
    background: transparent;
}

.troubleshoot-search-input::placeholder {
    color: #9ca3af;
}

.troubleshoot-search-btn {
    background: #00d4aa;
    color: #1a1a2e;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.troubleshoot-search-btn:hover {
    background: #00f5c4;
}

/* Quick Links */
.quick-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.quick-links-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

.quick-links a {
    color: #00d4aa;
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    background: rgba(0, 212, 170, 0.15);
    border-radius: 4px;
    transition: all 0.2s;
}

.quick-links a:hover {
    background: rgba(0, 212, 170, 0.3);
}

/* Section Headings */
.section-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.375rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.section-heading svg {
    color: #00d4aa;
    flex-shrink: 0;
}

/* Quick Fixes Section */
.quick-fixes {
    padding: 2.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.quick-fix-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.quick-fix-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    position: relative;
}

.fix-number {
    position: absolute;
    top: -10px;
    left: 1rem;
    background: #00d4aa;
    color: #1a1a2e;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.quick-fix-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0.5rem 0 0.5rem;
}

.quick-fix-card p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Guide Categories Grid */
.guide-categories {
    padding: 2.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.guide-category-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.guide-category-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #00d4aa;
}

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.error-icon {
    background: #fee2e2;
    color: #dc2626;
}

.reader-icon {
    background: #dbeafe;
    color: #2563eb;
}

.cert-icon {
    background: #d1fae5;
    color: #059669;
}

.browser-icon {
    background: #fef3c7;
    color: #d97706;
}

.guide-category-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.5rem;
}

.guide-category-card > p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 1rem;
}

.guide-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.guide-list li {
    padding: 0.5rem 0;
    border-top: 1px solid #f3f4f6;
}

.guide-list li:first-child {
    border-top: none;
    padding-top: 0;
}

.guide-list a {
    color: #374151;
    text-decoration: none;
    font-size: 0.9375rem;
    display: block;
    transition: color 0.2s;
}

.guide-list a:hover {
    color: #00d4aa;
}

/* All Guides Section */
.all-guides {
    padding: 2.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #ffffff;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.article-row:hover {
    border-color: #00d4aa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.article-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.article-thumb-placeholder {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
}

.article-info {
    flex: 1;
    min-width: 0;
}

.article-title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0 0 0.375rem;
    line-height: 1.3;
}

.article-title a {
    color: #1a1a2e;
    text-decoration: none;
}

.article-title a:hover {
    color: #00d4aa;
}

.article-excerpt {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.article-arrow {
    color: #d1d5db;
    flex-shrink: 0;
    transition: color 0.2s;
}

.article-row:hover .article-arrow {
    color: #00d4aa;
}

/* FAQ Section */
.faq-section {
    padding: 2.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a2e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #00d4aa;
    font-weight: 400;
    transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.faq-answer p:first-child {
    margin-top: 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-answer a {
    color: #00d4aa;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Still Need Help */
.need-help {
    padding: 2.5rem 0;
}

.help-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    color: #ffffff;
}

.help-icon {
    width: 72px;
    height: 72px;
    background: rgba(0, 212, 170, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d4aa;
    flex-shrink: 0;
}

.help-content {
    flex: 1;
}

.help-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.help-content p {
    color: rgba(255,255,255,0.75);
    margin: 0;
    font-size: 0.9375rem;
}

.help-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.help-btn {
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s;
}

.help-btn.primary {
    background: #00d4aa;
    color: #1a1a2e;
}

.help-btn.primary:hover {
    background: #00f5c4;
}

.help-btn.secondary {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.2);
}

.help-btn.secondary:hover {
    background: rgba(255,255,255,0.2);
}

/* Troubleshooting Hub Responsive */
@media (max-width: 1000px) {
    .quick-fix-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .troubleshoot-title {
        font-size: 1.75rem;
    }

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

    .search-input-wrapper {
        flex-wrap: wrap;
    }

    .troubleshoot-search-input {
        width: 100%;
        padding: 0.5rem 0;
    }

    .troubleshoot-search-btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    .search-icon {
        display: none;
    }

    .quick-fix-grid {
        grid-template-columns: 1fr;
    }

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

    .article-row {
        flex-wrap: wrap;
    }

    .article-thumb {
        width: 60px;
        height: 60px;
    }

    .article-arrow {
        display: none;
    }

    .help-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .help-actions {
        flex-direction: column;
        width: 100%;
    }

    .help-btn {
        text-align: center;
    }
}

/* ==========================================================================
   CAC Readers Category - Product Rankings Page
   ========================================================================== */

.cac-readers-hub {
    background: #f8fafc;
}

/* Hero */
.readers-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 2.5rem 0;
    text-align: center;
}

.readers-hero-title {
    color: #ffffff;
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
}

.readers-hero-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1.0625rem;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Top Products Section */
.top-products {
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.top-products-header {
    margin-bottom: 1.5rem;
}

.top-products-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.5rem;
}

.top-products-title svg {
    color: #f59e0b;
}

.top-products-note {
    color: #6b7280;
    font-size: 0.8125rem;
    margin: 0;
}

/* Product Rankings */
.product-rankings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-card {
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.2s;
}

.product-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.product-card.rank-1 {
    border-color: #f59e0b;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}

.product-card.rank-1 .rank-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.product-card.rank-2 .rank-badge {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.product-card.rank-3 .rank-badge {
    background: linear-gradient(135deg, #cd7c2e 0%, #b45309 100%);
}

.rank-badge {
    background: #1a1a2e;
    color: #ffffff;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rank-number {
    font-size: 1.25rem;
    font-weight: 800;
}

.rank-label {
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.9;
}

.product-content {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.5rem;
    padding: 1.25rem;
}

.product-image {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.product-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.product-compatibility {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.compat-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compat-badge.windows {
    background: #dbeafe;
    color: #1d4ed8;
}

.compat-badge.mac {
    background: #f3f4f6;
    color: #374151;
}

.compat-badge.linux {
    background: #fef3c7;
    color: #b45309;
}

.compat-badge.usbc {
    background: #d1fae5;
    color: #059669;
}

.compat-badge.mobile {
    background: #ede9fe;
    color: #7c3aed;
}

.product-features {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
}

.product-features li {
    margin-bottom: 0.25rem;
}

.product-actions {
    margin-top: auto;
}

.btn-amazon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ff9900;
    color: #111111;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
}

.btn-amazon:hover {
    background: #ffad33;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.4);
}

.btn-amazon svg {
    opacity: 0;
    width: 0;
}

/* Quick Comparison Table */
.quick-compare {
    margin-top: 2rem;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.quick-compare h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 1rem;
}

.compare-table-wrapper {
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.compare-table th,
.compare-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

.compare-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.compare-table td {
    color: #4b5563;
}

.compare-table .check {
    color: #059669;
    font-weight: 600;
}

.compare-table .dash {
    color: #d1d5db;
}

/* Reader Articles Grid */
.readers-articles {
    padding: 2.5rem 0;
}

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

.reader-article {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.reader-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.reader-article .article-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.reader-article .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.reader-article:hover .article-image img {
    transform: scale(1.05);
}

.reader-article .article-placeholder {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
}

.reader-article .article-content {
    padding: 1.25rem;
}

.reader-article .article-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.5rem;
}

.reader-article .article-title a {
    color: #1a1a2e;
    text-decoration: none;
}

.reader-article .article-title a:hover {
    color: #00d4aa;
}

.reader-article .article-excerpt {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

.reader-article .article-meta {
    font-size: 0.75rem;
    color: #9ca3af;
    display: flex;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 900px) {
    .product-content {
        grid-template-columns: 100px 1fr;
        gap: 1rem;
    }

    .product-image {
        width: 100px;
        height: 100px;
    }

    .product-name {
        font-size: 1.0625rem;
    }

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

@media (max-width: 600px) {
    .readers-hero-title {
        font-size: 1.75rem;
    }

    .product-content {
        grid-template-columns: 1fr;
    }

    .product-image {
        width: 100%;
        height: 120px;
    }

    .btn-amazon {
        width: 100%;
        justify-content: center;
    }

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

/* ==========================================================================
   Setup Guides Hub - OS-based Organization
   ========================================================================== */

.setup-guides-hub {
    background: #f8fafc;
}

/* Hero */
.setup-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0d7377 100%);
    padding: 2.5rem 0;
    text-align: center;
}

.setup-hero-title {
    color: #ffffff;
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
}

.setup-hero-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1.0625rem;
    margin: 0 0 2rem;
}

/* OS Quick Select */
.os-quick-select {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.os-select-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s;
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.2);
}

.os-select-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.os-select-btn.windows-btn:hover { background: rgba(0, 120, 215, 0.3); }
.os-select-btn.mac-btn:hover { background: rgba(102, 102, 102, 0.3); }
.os-select-btn.linux-btn:hover { background: rgba(255, 165, 0, 0.3); }
.os-select-btn.mobile-btn:hover { background: rgba(0, 212, 170, 0.3); }

/* Getting Started */
.getting-started {
    padding: 2.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.prereq-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.prereq-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    position: relative;
}

.prereq-number {
    position: absolute;
    top: -12px;
    left: 1rem;
    background: #00d4aa;
    color: #1a1a2e;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.prereq-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0.25rem 0 0.5rem;
}

.prereq-card p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.prereq-card a {
    color: #00d4aa;
    text-decoration: none;
}

/* OS Sections */
.os-section {
    padding: 2.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.os-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    border-radius: 12px;
}

.os-header.windows { background: linear-gradient(135deg, #0078d7 0%, #005a9e 100%); }
.os-header.mac { background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%); }
.os-header.linux { background: linear-gradient(135deg, #dd4814 0%, #c34113 100%); }
.os-header.mobile { background: linear-gradient(135deg, #00d4aa 0%, #0d7377 100%); }

.os-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.os-info h2 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.os-info p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9375rem;
    margin: 0.25rem 0 0;
}

/* Setup Steps */
.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.step-card.important-note {
    background: #fef3c7;
    border-color: #f59e0b;
}

.step-number {
    display: inline-block;
    background: #1a1a2e;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.5rem;
}

.step-card p {
    font-size: 0.9375rem;
    color: #4b5563;
    margin: 0 0 1rem;
    line-height: 1.6;
}

.step-tip {
    background: #f0fdf4;
    border-left: 3px solid #00d4aa;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #065f46;
    border-radius: 0 6px 6px 0;
}

.step-list {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.9375rem;
    color: #4b5563;
}

.step-list li {
    margin-bottom: 0.5rem;
}

.step-note {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.code-block {
    background: #1a1a2e;
    color: #00d4aa;
    padding: 1rem;
    border-radius: 6px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
    overflow-x: auto;
}

.code-block code {
    background: none;
    padding: 0;
}

.browser-options {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.browser-tag {
    background: #e5e7eb;
    color: #374151;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.mobile-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-option {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
}

.app-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-badge {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
}

.related-guides {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.related-guides h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.75rem;
}

.related-guides ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.related-guides li {
    margin-bottom: 0.5rem;
}

.related-guides a {
    color: #00d4aa;
    text-decoration: none;
    font-size: 0.9375rem;
}

.related-guides a:hover {
    text-decoration: underline;
}

/* Common Issues */
.common-issues {
    padding: 2.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.issues-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.issue-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.2s;
}

.issue-card:hover {
    border-color: #00d4aa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.issue-card h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 0.375rem;
}

.issue-card p {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0 0 0.75rem;
    line-height: 1.4;
}

.issue-link {
    font-size: 0.8125rem;
    color: #00d4aa;
    font-weight: 600;
}

/* All Guides List */
.all-guides {
    padding: 2.5rem 0;
}

.guides-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.guide-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.guide-row:hover {
    border-color: #00d4aa;
}

.guide-thumb {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.guide-thumb-placeholder {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
}

.guide-info {
    flex: 1;
    min-width: 0;
}

.guide-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.guide-info h3 a {
    color: #1a1a2e;
    text-decoration: none;
}

.guide-info h3 a:hover {
    color: #00d4aa;
}

.guide-info p {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0 0 0.25rem;
    line-height: 1.4;
}

.guide-meta {
    font-size: 0.75rem;
    color: #9ca3af;
}

.guide-arrow {
    color: #d1d5db;
    font-size: 1.25rem;
    text-decoration: none;
    transition: color 0.2s;
}

.guide-row:hover .guide-arrow {
    color: #00d4aa;
}

/* Setup Guides Responsive */
@media (max-width: 900px) {
    .prereq-cards {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 600px) {
    .setup-hero-title {
        font-size: 1.75rem;
    }

    .os-quick-select {
        flex-direction: column;
        align-items: stretch;
    }

    .os-select-btn {
        justify-content: center;
    }

    .os-header {
        flex-direction: column;
        text-align: center;
    }

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

    .guide-row {
        flex-wrap: wrap;
    }

    .guide-arrow {
        display: none;
    }
}
