/* CNN-Inspired Weather Page Styles */

/* Variables */
:root {
    --font-headline: 'CNN Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
    --font-nav: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --black: #000000;
    --white: #ffffff;
    --gray-100: #f9f9f9;
    --gray-200: #f0f0f0;
    --gray-300: #e0e0e0;
    --gray-500: #6e6e6e;
    --gray-700: #3d3d3d;
    --red-cnn: #cc0000;
    --link-blue: #0c0c0c;
    --header-height: 50px;
}

/* Blinking animation for DEVELOPING tag */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.developing-tag {
    color: var(--red-cnn);
    font-weight: bold;
    font-size: 0.7rem;
    animation: blink 1s linear infinite;
    margin-left: 5px;
    text-transform: uppercase;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--black);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== TOP NAVIGATION BAR ========== */
.site-header {
    background-color: var(--black);
    color: var(--white);
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-family: var(--font-nav);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 20px;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--white);
    transition: transform 0.3s, opacity 0.3s;
}

.header-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--red-cnn);
    text-decoration: none;
    letter-spacing: -1px;
    margin-right: 30px;
    border: 2px solid var(--red-cnn);
    padding: 0 5px;
    line-height: 1;
    display: inline-block;
}

.header-logo:hover {
    background-color: var(--red-cnn);
    color: white;
}

.header-nav {
    display: flex;
    height: 100%;
    align-items: center;
}

.header-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    margin-right: 20px;
    height: 100%;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
}

.header-nav a:hover,
.header-nav a.active {
    border-bottom: 3px solid var(--red-cnn);
}

/* Nav Dropdown (for US and Technology) */
.nav-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-dropdown > a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    margin-right: 20px;
    height: 100%;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
    cursor: pointer;
}

.nav-dropdown:hover > a,
.nav-dropdown > a.active {
    border-bottom: 3px solid var(--red-cnn);
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #111;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1001;
    border-top: 2px solid var(--red-cnn);
}

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

.nav-dropdown-content a {
    color: var(--white);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: normal;
    border-bottom: none;
    margin-right: 0;
    height: auto;
}

.nav-dropdown-content a:hover {
    background-color: #222;
    color: var(--red-cnn);
    border-bottom: none;
}

.header-controls {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--white);
    padding: 8px;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    opacity: 0.7;
}

.header-search {
    font-size: 1.5rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--white);
    padding: 8px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search:hover {
    opacity: 0.7;
}

/* Dropdown Menu */
.dropdown-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: #111;
    color: white;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    border-bottom: 2px solid var(--red-cnn);
    font-family: var(--font-nav);
}

.dropdown-menu.open {
    transform: translateY(0);
}

.dropdown-col h4 {
    color: #ccc;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-size: 0.8rem;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.dropdown-col ul {
    list-style: none;
}

.dropdown-col li {
    margin-bottom: 8px;
}

.dropdown-col a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

.dropdown-col a:hover {
    text-decoration: underline;
    color: var(--red-cnn);
}

/* ========== CONTAINER ========== */
#container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Header - Centered */
.page-header {
    padding: 25px 0;
    border-bottom: 1px solid var(--gray-300);
    margin-bottom: 30px;
    text-align: center;
}

.site-title {
    font-family: var(--font-mono);
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.site-title a {
    color: var(--black);
}

.site-title a:hover {
    color: var(--red-cnn);
}

.meta-bar {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-label {
    color: var(--red-cnn);
    font-weight: 700;
}

/* ========== HERO SECTION ========== */
.hero-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-card {
    display: block;
}

.hero-card a {
    display: block;
}

.hero-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    margin-bottom: 15px;
}

.hero-content {
    max-width: 100%;
}

.hero-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--red-cnn);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.hero-title {
    font-family: var(--font-headline);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--black);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-card a:hover .hero-title {
    text-decoration: underline;
    color: #0000ee;
}

.hero-card a:hover {
    background-color: #ffcc00;
}

.hero-excerpt {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.5;
}

.hero-meta {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 10px;
    display: flex;
    align-items: center;
}

/* ========== WIRE FEED SIDEBAR ========== */
.wire-feed-card {
    border: 3px solid var(--black);
    background: var(--white);
    height: fit-content;
    max-height: 480px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wire-header {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-mono);
    padding: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.wire-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
}

.wire-list li {
    padding: 12px 15px;
    border-bottom: 1px solid var(--gray-300);
}

.wire-list li:last-child {
    border-bottom: none;
}

.wire-list li:hover {
    background-color: var(--gray-100);
}

.wire-title {
    display: block;
    font-family: var(--font-headline);
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.3;
    color: var(--black);
    margin-bottom: 5px;
}

.wire-list li:hover .wire-title {
    color: #0000ee;
    text-decoration: underline;
}

.wire-list li:hover {
    background-color: #ffcc00;
}

.wire-meta {
    display: flex;
    align-items: center;
    font-size: 0.7rem;
    color: var(--gray-500);
    font-family: var(--font-body);
}

/* ========== MORE TOP STORIES ========== */
.more-stories-section {
    border-top: 1px solid var(--gray-300);
    padding-top: 30px;
}

.section-header {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--black);
    display: inline-block;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

/* Category Column */
.category-column {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--gray-300);
    padding: 0 15px;
}

.category-column:last-child {
    border-right: none;
}

.category-column:first-child {
    padding-left: 0;
}

.category-column:last-child {
    padding-right: 0;
}

.category-header {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-mono);
    font-weight: bold;
    padding: 8px 10px;
    text-transform: uppercase;
    text-align: center;
    font-size: 0.85rem;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* Story Items */
.story-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dotted var(--gray-300);
}

.story-item:last-child {
    border-bottom: none;
}

.story-item a {
    display: block;
}

.story-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    margin-bottom: 8px;
}

.story-title {
    font-family: var(--font-headline);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--black);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-item a:hover .story-title {
    text-decoration: underline;
    color: #0000ee;
}

.story-item a:hover {
    background-color: #ffcc00;
}

.story-meta {
    font-size: 0.65rem;
    color: var(--gray-500);
    margin-top: 4px;
    display: flex;
    align-items: center;
}

/* Loading State */
.loading-text {
    text-align: center;
    padding: 40px;
    color: var(--gray-500);
    font-size: 0.875rem;
    grid-column: 1 / -1;
}

/* ========== FOOTER ========== */
footer {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 3px solid var(--black);
    text-align: center;
}

.footer-warning {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: bold;
    color: var(--red-cnn);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-nav a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--black);
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.footer-nav a:hover {
    color: #0000ee;
    background-color: #ffcc00;
    border-bottom-color: transparent;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--gray-500);
}

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

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .dropdown-menu {
        grid-template-columns: 1fr;
        max-height: 80vh;
        overflow-y: auto;
    }

    .site-title {
        font-size: 2.2rem;
    }

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

    .wire-feed-card {
        max-height: 300px;
    }

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

    .hero-image {
        height: 220px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-nav {
        flex-wrap: wrap;
    }
}


/* ========== DARK MODE ========== */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .page-header {
    border-bottom-color: #333;
}

body.dark-mode .site-title a {
    color: #e0e0e0;
}

body.dark-mode .hero-title,
body.dark-mode .story-title {
    color: #e0e0e0;
}

body.dark-mode .hero-excerpt {
    color: #aaa;
}

body.dark-mode .wire-feed-card {
    border-color: #444;
    background: #222;
}

body.dark-mode .wire-header {
    background: #333;
}

body.dark-mode .wire-list li {
    border-bottom-color: #444;
}

body.dark-mode .wire-list li:hover {
    background-color: #2a2a2a;
}

body.dark-mode .wire-title {
    color: #e0e0e0;
}

body.dark-mode .category-header {
    background: #333;
}

body.dark-mode .category-column {
    border-right-color: #444;
}

body.dark-mode .story-item {
    border-bottom-color: #444;
}

body.dark-mode .more-stories-section {
    border-top-color: #444;
}

body.dark-mode footer {
    border-top-color: #444;
}

body.dark-mode .footer-nav a {
    color: #e0e0e0;
}


/* ========== CATEGORY FILTER SECTION ========== */
.category-filter-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-300);
    margin-bottom: 30px;
}

.filter-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.category-dropdown-wrapper {
    position: relative;
    width: 300px;
}

.category-dropdown-btn {
    width: 100%;
    padding: 12px 15px;
    background: var(--white);
    border: 2px solid var(--black);
    font-family: var(--font-headline);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.category-dropdown-btn:hover {
    background: var(--gray-100);
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.category-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: var(--white);
    border: 2px solid var(--black);
    border-top: none;
    z-index: 100;
    transition: max-height 0.3s ease;
}

.category-dropdown-content.open {
    max-height: 350px;
    overflow-y: auto;
}

.dropdown-search {
    padding: 10px;
    border-bottom: 1px solid var(--gray-300);
}

.dropdown-search input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--gray-300);
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.dropdown-options {
    padding: 5px 0;
}

.dropdown-option {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.dropdown-option:hover {
    background: var(--gray-100);
}

.dropdown-option input {
    margin-right: 10px;
    cursor: pointer;
}

.selected-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: var(--black);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

.remove-tag {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    margin-left: 3px;
}

.remove-tag:hover {
    color: var(--red-cnn);
}

/* ========== PAGINATION ========== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 30px 0;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 15px;
    background: var(--white);
    border: 2px solid var(--black);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: #ffcc00;
    color: var(--black);
}

.page-btn.active {
    background: var(--black);
    color: var(--white);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-ellipsis {
    padding: 0 10px;
    font-family: var(--font-mono);
}

/* Dark mode for category filter */
body.dark-mode .category-dropdown-btn {
    background: #222;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .category-dropdown-btn:hover {
    background: #333;
}

body.dark-mode .category-dropdown-content {
    background: #222;
    border-color: #444;
}

body.dark-mode .dropdown-search {
    border-bottom-color: #444;
}

body.dark-mode .dropdown-search input {
    background: #333;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-mode .dropdown-option:hover {
    background: #333;
}

body.dark-mode .selected-tag {
    background: #444;
}

body.dark-mode .page-btn {
    background: #222;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .page-btn:hover:not(:disabled) {
    background: #ffcc00;
    color: #000;
}

body.dark-mode .page-btn.active {
    background: #555;
}


/* ========== SEARCH PAGE STYLES ========== */
.search-section {
    padding: 30px 0 20px;
    text-align: center;
}

.search-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--black);
    outline: none;
}

.search-box input:focus {
    border-color: var(--red-cnn);
}

.search-btn {
    padding: 12px 25px;
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.search-btn:hover {
    background: #ffcc00;
    color: var(--black);
}

/* Category Pills */
.category-pills-section {
    padding: 15px 0 25px;
    border-bottom: 1px solid var(--gray-300);
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.category-pill {
    padding: 6px 14px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.category-pill:hover {
    background: var(--gray-100);
    border-color: var(--black);
}

.category-pill.active {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

/* Search Results */
.search-results-section {
    padding-top: 25px;
}

.results-header {
    margin-bottom: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gray-500);
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.search-results-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.search-result-item {
    padding: 12px 0;
    border-bottom: 1px dotted var(--gray-300);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item a {
    display: block;
    text-decoration: none;
}

.search-result-item a:hover {
    background: #ffcc00;
}

.search-result-item a:hover .result-title {
    color: #0000ee;
}

.result-title {
    font-family: var(--font-headline);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--black);
    margin-bottom: 6px;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--gray-500);
}

.result-category {
    color: var(--red-cnn);
    font-weight: 600;
}

.result-source {
    font-weight: 600;
}

/* Dark mode for search */
body.dark-mode .search-box input {
    background: #222;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .search-btn {
    background: #444;
    border-color: #444;
}

body.dark-mode .search-btn:hover {
    background: #ffcc00;
    color: #000;
}

body.dark-mode .category-pill {
    background: #222;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .category-pill:hover {
    background: #333;
}

body.dark-mode .category-pill.active {
    background: #555;
}

body.dark-mode .search-result-item {
    border-bottom-color: #444;
}

body.dark-mode .result-title {
    color: #e0e0e0;
}

body.dark-mode .search-result-item a:hover {
    background: #ffcc00;
}

body.dark-mode .search-result-item a:hover .result-title {
    color: #0000ee;
}

@media (max-width: 768px) {
    .search-results-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        width: 100%;
    }
}


/* ========== STATIC PAGES (About, Contact, Privacy, Editorial) ========== */
.static-page {
    padding: 30px 0;
}

.static-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.static-content h2 {
    font-family: var(--font-headline);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--black);
}

.static-content h3 {
    font-family: var(--font-headline);
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 10px;
}

.static-content h4 {
    font-family: var(--font-headline);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
}

.static-content p {
    margin-bottom: 15px;
    color: var(--gray-700);
}

.static-content .lead {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--black);
}

.static-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.static-content li {
    margin-bottom: 8px;
    color: var(--gray-700);
}

.static-content a {
    color: var(--red-cnn);
    text-decoration: underline;
}

.static-content a:hover {
    background: #ffcc00;
    color: #000;
}

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

.static-content .note {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-style: italic;
}

/* Contact Form */
.contact-form-container {
    margin: 30px 0;
    padding: 25px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-family: var(--font-headline);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--gray-300);
    background: var(--white);
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--black);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    padding: 12px 30px;
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn:hover {
    background: #ffcc00;
    color: var(--black);
}

/* Section Intro */
.section-intro {
    font-size: 0.9rem;
    color: var(--gray-500);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 25px;
    line-height: 1.5;
}

/* Dark mode for static pages */
body.dark-mode .static-content h2 {
    border-bottom-color: #444;
}

body.dark-mode .static-content p,
body.dark-mode .static-content li {
    color: #bbb;
}

body.dark-mode .static-content .lead {
    color: #e0e0e0;
}

body.dark-mode .static-content hr {
    border-top-color: #444;
}

body.dark-mode .contact-form-container {
    background: #222;
    border-color: #444;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form select,
body.dark-mode .contact-form textarea {
    background: #333;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-mode .submit-btn {
    background: #444;
    border-color: #444;
}


/* ========== HOME PAGE SECTIONS ========== */
.home-section {
    padding: 25px 0;
    border-top: 3px solid var(--black);
}

.home-section-header {
    margin-bottom: 20px;
}

.home-section-header h2 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-section-header h2 a {
    color: var(--black);
    text-decoration: none;
}

.home-section-header h2 a:hover {
    color: var(--red-cnn);
}

.home-section-articles {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.home-article-item {
    border-bottom: 1px dotted var(--gray-300);
    padding-bottom: 15px;
}

.home-article-item a {
    display: block;
    text-decoration: none;
}

.home-article-item a:hover {
    background: #ffcc00;
}

.home-article-item a:hover .home-article-title {
    color: #0000ee;
}

.home-article-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    margin-bottom: 10px;
}

.home-article-title {
    font-family: var(--font-headline);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--black);
    margin-bottom: 5px;
}

.home-article-meta {
    font-size: 0.7rem;
    color: var(--gray-500);
}

/* Dark mode for home sections */
body.dark-mode .home-section {
    border-top-color: #444;
}

body.dark-mode .home-section-header h2 a {
    color: #e0e0e0;
}

body.dark-mode .home-article-item {
    border-bottom-color: #444;
}

body.dark-mode .home-article-title {
    color: #e0e0e0;
}

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


/* ========== FORM STATUS MESSAGES ========== */
.form-status {
    padding: 12px;
    margin-bottom: 15px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

body.dark-mode .form-status.success {
    background: #1e4620;
    color: #a3d9a5;
    border-color: #2d5a2e;
}

body.dark-mode .form-status.error {
    background: #4a1c1c;
    color: #f5a5a5;
    border-color: #6b2c2c;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* ========== STORY PAGE STYLES ========== */
.story-page {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 30px 0;
}

.story-content {
    max-width: 100%;
}

.story-breadcrumb {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.story-breadcrumb a {
    color: var(--gray-500);
    text-decoration: none;
}

.story-breadcrumb a:hover {
    color: var(--red-cnn);
    text-decoration: underline;
}

.story-headline {
    font-family: var(--font-headline);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.story-meta-bar {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-300);
}

.story-figure {
    margin: 0 0 25px 0;
}

.story-main-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
}

.story-summary {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 30px;
}

.story-summary p {
    margin-bottom: 15px;
}

.story-source-box {
    background: var(--gray-100);
    border-left: 4px solid var(--red-cnn);
    padding: 20px;
    margin-bottom: 25px;
}

.source-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.source-link {
    display: inline-block;
    font-family: var(--font-headline);
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    margin-bottom: 10px;
}

.source-link:hover {
    color: var(--red-cnn);
    text-decoration: underline;
}

.source-disclaimer {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-style: italic;
    margin: 0;
}

.story-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 20px;
}

.tags-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-500);
}

.story-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--black);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
}

.story-tag:hover {
    background: var(--red-cnn);
}

/* Story Sidebar */
.story-sidebar {
    position: sticky;
    top: 70px;
    height: fit-content;
}

.related-stories {
    border: 2px solid var(--black);
    background: var(--white);
}

.related-header {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 12px 15px;
    margin: 0;
    text-transform: uppercase;
}

.related-item {
    padding: 15px;
    border-bottom: 1px solid var(--gray-300);
}

.related-item:last-child {
    border-bottom: none;
}

.related-item a {
    display: block;
    text-decoration: none;
}

.related-item a:hover {
    background: #ffcc00;
}

.related-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    margin-bottom: 10px;
}

.related-title {
    font-family: var(--font-headline);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--black);
    margin: 0 0 5px 0;
}

.related-item a:hover .related-title {
    color: #0000ee;
}

.related-time {
    font-size: 0.7rem;
    color: var(--gray-500);
}

/* Dark mode for story page */
body.dark-mode .story-headline {
    color: #e0e0e0;
}

body.dark-mode .story-meta-bar {
    border-bottom-color: #444;
}

body.dark-mode .story-summary {
    color: #bbb;
}

body.dark-mode .story-source-box {
    background: #222;
}

body.dark-mode .source-link {
    color: #e0e0e0;
}

body.dark-mode .related-stories {
    border-color: #444;
    background: #222;
}

body.dark-mode .related-header {
    background: #333;
}

body.dark-mode .related-item {
    border-bottom-color: #444;
}

body.dark-mode .related-title {
    color: #e0e0e0;
}

@media (max-width: 768px) {
    .story-page {
        grid-template-columns: 1fr;
    }
    
    .story-headline {
        font-size: 1.6rem;
    }
    
    .story-sidebar {
        position: static;
    }
}


/* ========== IN-FEED AD STYLES ========== */
.ad-item {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    padding: 10px;
    margin: 10px 0;
    min-height: 100px;
}

.ad-item ins.adsbygoogle {
    display: block;
    width: 100%;
}

.ad-section {
    margin: 20px 0;
    padding: 0;
}

.ad-section .ad-item {
    background: transparent;
    border: none;
    padding: 15px 0;
}

/* Dark mode ad styling */
body.dark-mode .ad-item {
    background: #1a1a1a;
    border-color: #333;
}

body.dark-mode .ad-section .ad-item {
    background: transparent;
}

/* ========== TOP/BOTTOM AD BANNERS ========== */
.ad-banner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px 0;
    min-height: 0;
    overflow: hidden;
}

.ad-banner ins.adsbygoogle {
    display: block;
    width: 100%;
    max-height: 120px;
}

.ad-banner ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}

.ad-banner-top {
    margin-bottom: 5px;
}

.ad-banner-bottom {
    margin-top: 5px;
}
