/* ============================================================
   CompareAIs.net — Main Stylesheet
   PHP 5.6 compatible site | No build tools required
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a1a;
    background: #ffffff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #00d4aa; text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- CSS Variables --- */
:root {
    --teal:       #00d4aa;
    --teal-dark:  #00a884;
    --amber:      #f59e0b;
    --amber-dark: #d97706;
    --dark:       #0f1117;
    --dark-2:     #1a1f2e;
    --gray-100:   #f9fafb;
    --gray-200:   #f3f4f6;
    --gray-300:   #e5e7eb;
    --gray-500:   #6b7280;
    --gray-700:   #374151;
    --white:      #ffffff;
    --font-display: 'Barlow Condensed', sans-serif;
    --font-body:    'DM Sans', sans-serif;
    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  14px;
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
    --container:  1140px;
}

/* --- Container --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
    background: var(--dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: box-shadow 0.2s;
}

#site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

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

/* Logo */
.site-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 24px;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-decoration: none;
}
.site-logo span { color: var(--teal); }
.site-logo:hover { text-decoration: none; }

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--teal);
    background: rgba(0,212,170,0.08);
}

/* Nav CTA button */
.nav-cta {
    background: var(--amber);
    color: var(--dark) !important;
    font-weight: 700 !important;
    padding: 8px 18px !important;
    border-radius: var(--radius-sm) !important;
    transition: background 0.2s !important;
}
.nav-cta:hover {
    background: var(--amber-dark) !important;
    color: var(--dark) !important;
}

/* Hamburger (mobile) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ============================================================
   DROPDOWN NAVIGATION
   ============================================================ */

.nav-links li {
    position: relative;
}

.nav-links .has-dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links .has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid rgba(255,255,255,0.45);
    transition: transform 0.2s, border-top-color 0.2s;
    flex-shrink: 0;
    margin-top: 1px;
}

.nav-links .has-dropdown:hover > a::after {
    transform: rotate(180deg);
    border-top-color: var(--teal);
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 210px;
    background: #1a1f2e;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    z-index: 2000;
    padding: 6px;
}

.nav-links .has-dropdown:hover .nav-dropdown {
    display: block;
}

.nav-dropdown-header {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 6px 10px 4px;
}

.nav-dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 4px 0;
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.65) !important;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    background: transparent !important;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.nav-dropdown a:hover {
    background: rgba(0,212,170,0.10) !important;
    color: var(--teal) !important;
    text-decoration: none;
}

.nav-dropdown a.active {
    color: var(--teal) !important;
    background: rgba(0,212,170,0.08) !important;
}

.nav-dropdown a .dd-icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.nav-dropdown a.dd-all {
    font-weight: 700;
    color: var(--teal) !important;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    margin-bottom: 2px;
    padding-bottom: 10px;
}

.nav-dropdown a.dd-all:hover {
    background: rgba(0,212,170,0.12) !important;
}

@media (max-width: 768px) {
    .nav-links .has-dropdown:hover .nav-dropdown,
    .nav-links .has-dropdown .nav-dropdown {
        display: none;
    }
    .nav-links .has-dropdown.open .nav-dropdown {
        display: block;
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(0,212,170,0.05);
        border-radius: var(--radius-sm);
        margin: 4px 0;
        padding: 4px;
    }
    .nav-links .has-dropdown > a::after {
        margin-left: auto;
    }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: var(--dark);
    padding: 72px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 480px; height: 480px;
    border-radius: 50%;
    border: 1px solid rgba(0,212,170,0.08);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20px; right: 60px;
    width: 260px; height: 260px;
    border-radius: 50%;
    border: 1px solid rgba(0,212,170,0.05);
    pointer-events: none;
}

.hero-eyebrow {
    font-size: 11px;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 64px;
    line-height: 1.0;
    color: #ffffff;
    margin-bottom: 20px;
    max-width: 640px;
}

.hero h1 em {
    color: var(--teal);
    font-style: normal;
}

.hero-subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.60);
    max-width: 520px;
    line-height: 1.65;
    margin-bottom: 36px;
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: var(--amber);
    color: var(--dark);
    font-weight: 700;
    font-size: 15px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
}
.btn-primary:hover {
    background: var(--amber-dark);
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--dark);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.65);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.btn-ghost:hover { color: var(--teal); text-decoration: none; }

/* Stats bar */
.stats-bar {
    background: var(--amber);
    padding: 14px 0;
}

.stats-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    border-right: 1px solid rgba(0,0,0,0.12);
}
.stat-item:last-child { border-right: none; }

.stat-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 26px;
    color: var(--dark);
    line-height: 1;
}

.stat-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(0,0,0,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* ============================================================
   AD PLACEHOLDERS
   ============================================================ */

/* Generic ad placeholder style */
.ad-placeholder {
    background: var(--gray-100);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    gap: 4px;
}

.ad-placeholder .ad-size {
    font-size: 11px;
    color: #adb5bd;
}

/* Leaderboard: 728x90 */
.ad-leaderboard {
    width: 100%;
    max-width: 728px;
    height: 90px;
    margin: 0 auto;
}

/* Full-width banner */
.ad-banner-wrap {
    background: var(--gray-100);
    border-top: 1px solid var(--gray-300);
    border-bottom: 1px solid var(--gray-300);
    padding: 16px 0;
    text-align: center;
}

/* Rectangle: 300x250 */
.ad-rectangle {
    width: 300px;
    height: 250px;
}

/* Wide skyscraper: 160x600 */
.ad-skyscraper {
    width: 160px;
    height: 600px;
}

/* Affiliate banner */
.affiliate-banner {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    border: 1px solid rgba(0,212,170,0.2);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.affiliate-banner .aff-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.affiliate-banner .aff-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    color: #fff;
}

.affiliate-banner .aff-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin-top: 2px;
}

.affiliate-banner .btn-aff {
    display: inline-block;
    background: var(--amber);
    color: var(--dark);
    font-weight: 700;
    font-size: 14px;
    padding: 11px 24px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s;
    flex-shrink: 0;
}
.affiliate-banner .btn-aff:hover {
    background: var(--amber-dark);
    text-decoration: none;
    color: var(--dark);
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.section {
    padding: 56px 0;
}

.section-alt {
    background: var(--gray-100);
}

.section-header {
    margin-bottom: 36px;
}

.section-eyebrow {
    font-size: 11px;
    font-weight: 700;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 36px;
    color: var(--dark);
    line-height: 1.1;
}

.section-subtitle {
    font-size: 16px;
    color: var(--gray-500);
    margin-top: 8px;
    max-width: 560px;
}

/* ============================================================
   AI CARDS (Top Picks / Compare grid)
   ============================================================ */
.ai-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.ai-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}

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

.ai-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ai-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-best  { background: #d1fae5; color: #065f46; }
.badge-pop   { background: #e0f2fe; color: #0c4a6e; }
.badge-value { background: #fef3c7; color: #92400e; }
.badge-new   { background: #f3e8ff; color: #6b21a8; }

.ai-name {
    font-weight: 700;
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 2px;
}

.ai-maker {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 14px;
}

.score-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.score-bar-track {
    flex: 1;
    height: 5px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.score-bar-fill {
    height: 5px;
    border-radius: 3px;
    background: var(--teal);
}

.score-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-700);
    min-width: 32px;
    text-align: right;
}

.ai-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 16px;
}

.ai-tag {
    font-size: 11px;
    color: var(--gray-500);
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    padding: 3px 8px;
    border-radius: 4px;
}

.btn-review {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--btn-color, var(--teal));
    border: 2px solid var(--btn-color, var(--teal));
    border-radius: var(--radius-sm);
    padding: 9px;
    margin-top: auto;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
.btn-review:hover {
    background: var(--btn-color, var(--teal));
    color: #ffffff;
    text-decoration: none;
}

.btn-review-amber {
    --btn-color: var(--amber);
}
.btn-review-amber:hover {
    color: #ffffff;
}

/* View all link */
.view-all-wrap {
    text-align: center;
    margin-top: 8px;
}

.view-all {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
    border-bottom: 1px solid var(--gray-300);
    padding-bottom: 2px;
    transition: color 0.2s;
}
.view-all:hover { color: var(--teal); }

/* ============================================================
   CATEGORIES GRID
   ============================================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 20px 18px;
    text-align: center;
    transition: box-shadow 0.2s, border-color 0.2s;
    text-decoration: none;
    display: block;
}

.category-card:hover {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0,212,170,0.08);
    text-decoration: none;
}

.category-icon {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
}

.category-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 4px;
}

.category-count {
    font-size: 12px;
    color: var(--gray-500);
}

/* ============================================================
   BLOG / AI INSIGHTS
   ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 20px;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
    text-decoration: none;
}

.blog-card:hover {
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.blog-img {
    height: 140px;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.blog-card-featured .blog-img {
    height: 180px;
    font-size: 56px;
}

.blog-content {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-category {
    font-size: 10px;
    font-weight: 700;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 7px;
}

.blog-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.45;
    margin-bottom: 10px;
}

.blog-card-featured .blog-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 20px;
}

.blog-excerpt {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
}

.blog-meta {
    font-size: 11px;
    color: #9ca3af;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.compare-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.compare-table th {
    background: var(--dark);
    color: #fff;
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.compare-table th:first-child { border-radius: var(--radius-md) 0 0 0; }
.compare-table th:last-child  { border-radius: 0 var(--radius-md) 0 0; }

.compare-table td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
    vertical-align: middle;
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--gray-100); }

.compare-table .check     { color: #10b981; font-size: 16px; }
.compare-table .no-check  { color: #d1d5db; font-size: 16px; }

/* ============================================================
   SIDEBAR LAYOUT
   ============================================================ */
.content-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

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

.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 20px;
}

.sidebar-widget-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--teal);
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
    background: var(--dark);
    padding: 48px 0;
    text-align: center;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 48px;
    color: #fff;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    max-width: 560px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb .sep { color: rgba(255,255,255,0.25); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.55);
    padding: 52px 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .site-logo {
    display: block;
    margin-bottom: 14px;
    font-size: 22px;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255,255,255,0.45);
    max-width: 260px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--teal); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255,255,255,0.28);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    font-size: 12px;
    color: rgba(255,255,255,0.28);
    text-decoration: none;
}
.footer-bottom-links a:hover { color: var(--teal); }

.footer-disclaimer {
    background: rgba(0,0,0,0.2);
    padding: 12px 24px;
    font-size: 11px;
    color: rgba(255,255,255,0.25);
    text-align: center;
    line-height: 1.6;
    border-top: 1px solid rgba(255,255,255,0.04);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center  { text-align: center; }
.text-teal    { color: var(--teal); }
.text-amber   { color: var(--amber); }
.text-muted   { color: var(--gray-500); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.divider {
    border: none;
    border-top: 1px solid var(--gray-300);
    margin: 40px 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .ai-cards-grid      { grid-template-columns: repeat(2, 1fr); }
    .categories-grid    { grid-template-columns: repeat(2, 1fr); }
    .footer-grid        { grid-template-columns: 1fr 1fr; }
    .blog-grid          { grid-template-columns: 1fr 1fr; }
    .content-sidebar    { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero h1            { font-size: 44px; }
    .nav-links          { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--dark); padding: 16px; gap: 4px; }
    .nav-links.open     { display: flex; }
    .nav-toggle         { display: flex; }
    .ai-cards-grid      { grid-template-columns: 1fr; }
    .categories-grid    { grid-template-columns: repeat(2, 1fr); }
    .blog-grid          { grid-template-columns: 1fr; }
    .footer-grid        { grid-template-columns: 1fr; }
    .content-sidebar    { grid-template-columns: 1fr; }
    .stats-bar .container { flex-direction: row; justify-content: center; }
    .stat-item          { border-right: none; padding: 0 16px; }
    .ad-rectangle       { width: 100%; max-width: 300px; }
    .ad-skyscraper      { display: none; }
}

@media (max-width: 480px) {
    .hero h1            { font-size: 36px; }
    .hero-btns          { flex-direction: column; align-items: flex-start; }
    .categories-grid    { grid-template-columns: repeat(2, 1fr); }
    .stat-item          { padding: 0 10px; }
}
