/*
 * The Daily Chronicle - CSS
 */

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #333333;
    --accent-color: #e63946;
    --text-color: #333333;
    --bg-color: #ffffff;
    --header-bg: #ffffff;
    --nav-bg: #1a1a1a;
    --nav-text: #ffffff;
    --border-color: #eeeeee;
    --muted-color: #777777;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Source Sans Pro', sans-serif;
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #f1f1f1;
    --secondary-color: #cccccc;
    --accent-color: #ff4d4d;
    --text-color: #e0e0e0;
    --bg-color: #121212;
    --header-bg: #1a1a1a;
    --nav-bg: #000000;
    --nav-text: #ffffff;
    --border-color: #333333;
    --muted-color: #999999;
    --card-bg: #1e1e1e;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .site-footer,
[data-theme="dark"] .newsletter-banner {
    background-color: #0a0a0a;
    color: #e0e0e0;
}

[data-theme="dark"] .footer-column h3,
[data-theme="dark"] .newsletter-banner h2 {
    color: #ffffff;
}

[data-theme="dark"] .footer-links a,
[data-theme="dark"] .newsletter-banner p,
[data-theme="dark"] .footer-column p,
[data-theme="dark"] .footer-column .description {
    color: #b0b0b0;
}

[data-theme="dark"] .footer-links a:hover {
    color: var(--accent-color);
}

[data-theme="dark"] .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.05);
    color: #777;
}

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

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
    overflow-x: hidden;
    width: 100%;
}

.site-main {
    width: 100%;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* Ensure all lists in articles are styled correctly */
.article-body ul {
    list-style: disc;
    margin: 20px 0 20px 40px;
}

.article-body ol {
    list-style: decimal;
    margin: 20px 0 20px 40px;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Header Styles */
.site-header {
    background-color: var(--header-bg);
    border-bottom: 4px solid var(--primary-color);
    margin-bottom: 2rem;
}

.header-top {
    background-color: #f8f8f8;
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--muted-color);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .header-top {
    background-color: #1a1a1a;
}

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

/* Header Top Meta & Newsletter */
.header-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    height: 100%;
}

.header-meta a {
    color: var(--muted-color);
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.header-meta a:hover {
    color: var(--primary-color);
}

.header-newsletter-signup {
    display: flex;
    align-items: center;
}

.mini-form {
    display: flex;
    height: 34px;
    align-items: center;
    position: relative;
}

.mini-form .message {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 100;
    margin-top: 5px !important;
    display: none;
}

[data-theme="dark"] .mini-form .message {
    background: #222;
}

.mini-form input {
    padding: 0 12px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    width: 160px;
    height: 100%;
    outline: none;
    background-color: #fcfcfc;
}

.mini-form button {
    padding: 0 20px;
    font-size: 0.9rem;
    border: none;
    background-color: var(--accent-color);
    color: white;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 700;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.1s;
}

.mini-form button:hover {
    background-color: #c0392b;
}

/* Navigation Search Form */
.nav-search {
    display: flex;
    align-items: center;
}

.nav-search form {
    display: flex;
    background: #ffffff;
    border-radius: 4px;
    padding: 0;
    height: 32px;
    align-items: center;
    overflow: hidden;
}

.nav-search input {
    background: #ffffff;
    border: none;
    color: #333333;
    padding: 0 10px;
    width: 180px;
    font-size: 0.85rem;
    height: 100%;
    outline: none;
}

.nav-search input::placeholder {
    color: #999;
}

.nav-search button {
    background: #f0f0f0;
    border: none;
    border-left: 1px solid #ddd;
    cursor: pointer;
    color: #333;
    padding: 0 10px;
    font-size: 0.9rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.nav-search button:hover {
    background: #e0e0e0;
}

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

#dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    margin-left: 15px;
}

.header-main {
    padding: 30px 0;
    text-align: center;
}

.site-logo h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--primary-color);
}

/* Navigation Styles */
.site-nav {
    background-color: var(--nav-bg);
    color: var(--nav-text);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-list {
    display: flex;
    align-items: center;
}

.nav-list li {
    position: relative;
}

.nav-list li.has-mega-menu {
    position: static;
}

.nav-list li a {
    display: block;
    padding: 12px 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.nav-list li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown Styles */
.has-mega-menu {
    position: static;
}

.has-mega-menu:hover .mega-menu,
.has-mega-menu.open .mega-menu {
    display: block;
}

.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #ffffff;
    color: #111111;
    z-index: 1100;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    border-top: 2px solid var(--accent-color);
}

.mega-menu-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 26px 20px 30px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
    justify-items: start;
}

.mega-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    min-width: 0;
}

.mega-primary {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 900;
    text-transform: none;
    letter-spacing: 0;
    color: #111111;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.mega-primary::after {
    content: "";
}

.mega-sub {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
}

.mega-sub a {
    color: #222222;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-sub a:hover {
    color: var(--accent-color);
    background: transparent;
    border: none;
}

[data-theme="dark"] .mega-menu {
    background-color: #0f0f0f;
    color: #eaeaea;
    border-top-color: var(--accent-color);
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}

[data-theme="dark"] .mega-primary {
    color: #ffffff;
}

[data-theme="dark"] .mega-sub a {
    color: rgba(255,255,255,0.78);
}

[data-theme="dark"] .mega-sub a:hover {
    color: #ffffff;
}

@media (max-width: 1280px) {
    .mega-menu-content {
        grid-template-columns: repeat(4, minmax(160px, 1fr));
        gap: 26px;
    }
}

/* Mobile Adjustments for Mega Menu */
@media (max-width: 992px) {
    .has-mega-menu {
        position: relative;
    }
    .mega-menu {
        position: static;
        box-shadow: none;
        width: 100%;
    }
    .mega-menu-content {
        padding: 12px 20px 18px;
        grid-template-columns: repeat(2, minmax(160px, 1fr));
        gap: 18px;
    }
    .mega-row {
        padding: 14px 12px;
    }
    .mega-primary {
        font-size: 1rem;
    }
    .mega-sub a {
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .mega-menu-content {
        grid-template-columns: 1fr;
    }
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger-menu span {
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Carousel Styles */
.hero-carousel-section {
    margin-bottom: 50px;
    position: relative;
    width: 100%;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

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

.carousel-slide {
    min-width: 100%;
    position: relative;
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 20;
    transition: background 0.3s;
    border-radius: 50%;
    margin: 0 20px;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: white;
    width: 24px;
    border-radius: 10px;
}

.hero-article {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 600px;
    background-color: #1a1a1a;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1), opacity 0.5s ease;
}

.hero-article:hover .hero-image {
    transform: scale(1.03);
    opacity: 0.8;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 80px 50px 50px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    color: white;
    z-index: 10;
    pointer-events: none; /* Allows click through to the link */
}

.hero-article a {
    display: block;
    height: 100%;
    width: 100%;
}

.hero-category {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 900px;
    font-weight: 900;
}

.hero-excerpt {
    font-size: 1.3rem;
    line-height: 1.5;
    max-width: 800px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-weight: 400;
}

@media (max-width: 768px) {
    .hero-article {
        height: 450px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-excerpt {
        font-size: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hero-content {
        padding: 40px 25px 25px;
    }
}

/* Form Size Fixes */
.newsletter-form {
    display: flex;
    width: 100%;
    max-width: 400px;
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
}

.mini-form {
    max-width: 250px;
}

.mini-form input {
    width: 150px;
}

/* Content Layout */
.main-layout-three-col {
    display: grid;
    grid-template-columns: 220px 1fr 300px;
    gap: 30px;
}

.site-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

@media (max-width: 1100px) {
    .main-layout-three-col {
        grid-template-columns: 1fr 300px;
    }
    .site-sidebar-left {
        display: none;
    }
}

@media (max-width: 992px) {
    .main-layout-three-col {
        grid-template-columns: 1fr;
    }
    .site-content {
        grid-template-columns: 1fr;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 992px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--nav-bg);
        flex-direction: column;
        padding: 10px 0;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        width: 100%;
    }

    .hamburger-menu {
        display: flex;
    }

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

.top-stories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.article-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.card-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
    background-color: #eee;
}

.card-content {
    padding: 20px;
}

.card-category {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-excerpt {
    font-size: 0.95rem;
    color: var(--muted-color);
    margin-bottom: 15px;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--muted-color);
    display: flex;
    justify-content: space-between;
}

/* Latest News Feed */
.section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 10px;
}

.latest-feed .article-list-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 600px) {
    .latest-feed .article-list-item {
        grid-template-columns: 1fr;
    }
}

.list-item-image {
    height: 130px;
    width: 100%;
    object-fit: cover;
    border-radius: 4px;
    background-color: #eee;
}

/* Layout Fixes */
.site-sidebar, .site-sidebar-left {
    position: static;
    height: auto;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* Shown via JS */
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.back-to-top:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

/* Improved Responsive Layout */
@media (max-width: 1200px) {
    .main-layout-three-col {
        grid-template-columns: 1fr 300px;
    }
    .site-sidebar-left {
        display: none; /* Hide left sidebar on tablet to avoid crowding */
    }
}

@media (max-width: 992px) {
    .main-layout-three-col {
        grid-template-columns: 1fr;
    }
    .site-sidebar {
        margin-top: 40px;
    }
}

.site-sidebar-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background-color: #f9f9f9;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

[data-theme="dark"] .quick-links li a {
    background-color: #1a1a1a;
}

.quick-links li a:hover {
    background-color: white;
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateX(5px);
}

[data-theme="dark"] .quick-links li a:hover {
    background-color: #222;
}

.quick-links .icon {
    font-size: 1.2rem;
    width: 24px;
    display: flex;
    justify-content: center;
}

.quick-links .text {
    font-size: 0.95rem;
    font-weight: 600;
}

.market-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    font-weight: 600;
}

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

.market-up { 
    color: #00873c; 
    display: flex;
    align-items: center;
    gap: 4px;
}
.market-up::before { content: "▲"; font-size: 0.7rem; }

.market-down { 
    color: #eb0014; 
    display: flex;
    align-items: center;
    gap: 4px;
}
.market-down::before { content: "▼"; font-size: 0.7rem; }

.weather-info {
    text-align: center;
    padding: 15px 10px;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

[data-theme="dark"] .weather-info {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
}

.weather-temp {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--font-serif);
    color: var(--primary-color);
}

.weather-desc {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.weather-loc {
    display: block;
    font-size: 0.8rem;
    color: var(--muted-color);
    margin-top: 5px;
}

.ad-placeholder-small {
    background-color: #f9f9f9;
    padding: 15px;
    text-align: center;
    border: 1px dashed #ccc;
    font-size: 0.7rem;
}

.ad-box-small {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}
.sidebar-widget {
    margin-bottom: 40px;
    padding: 25px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    width: 100%;
}

.sidebar-widget h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 12px;
}

.trending-list {
    width: 100%;
}

.trending-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.trending-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.trending-number {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--border-color);
    line-height: 1;
    min-width: 30px;
}

.trending-info {
    flex: 1;
}

.trending-title {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.4;
    display: block;
    margin-bottom: 6px;
}

.trending-category {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 700;
}

/* Social Buttons in Sidebar */
.social-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 6px;
    color: white !important;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.social-btn.twitter { background-color: #000; }
.social-btn.facebook { background-color: #1877F2; }
.social-btn.linkedin { background-color: #0077B5; }

/* Article Page */
.article-header {
    margin-bottom: 30px;
}

.article-category {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.article-headline {
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.article-subheadline {
    font-size: 1.4rem;
    color: var(--muted-color);
    margin-bottom: 25px;
    line-height: 1.4;
    font-style: italic;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.author-photo {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #eee;
    border: 1px solid var(--border-color);
}

.author-info h4 {
    font-weight: 700;
}

.author-info p {
    font-size: 0.85rem;
    color: var(--muted-color);
}

.article-featured-image {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 25px;
}

.article-body blockquote {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    padding: 30px 40px;
    margin: 40px 0;
    border-left: 5px solid var(--accent-color);
    background-color: #f9f9f9;
}

[data-theme="dark"] .article-body blockquote {
    background-color: #222;
}

/* Comments Section */
.comments-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.comment-form {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

[data-theme="dark"] .comment-form {
    background-color: #1a1a1a;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: white;
}

[data-theme="dark"] .form-group input, 
[data-theme="dark"] .form-group textarea {
    background-color: #333;
    color: white;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-primary:hover {
    background-color: #000;
}

.comment-list {
    margin-top: 30px;
}

.comment-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 700;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--muted-color);
}

/* Footer Styles */
.site-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
    margin-top: 0; /* Remove top margin since banner handles it */
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h3 {
    font-family: var(--font-serif);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.newsletter-form {
    margin-top: 15px;
    display: flex;
}

.newsletter-form input {
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    flex-grow: 1;
}

.newsletter-form button {
    padding: 10px 20px;
    border: none;
    border-radius: 0 4px 4px 0;
    background-color: var(--accent-color);
    color: white;
    cursor: pointer;
    font-weight: 700;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
}

.footer-legal a {
    margin-left: 20px;
}

/* Placeholder for missing images */
img {
    background-color: #f5f5f5;
    position: relative;
    min-height: 150px;
}

img::before {
    content: "The Daily Chronicle";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    color: #999;
    font-family: var(--font-serif);
    font-size: 0.9rem;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

[data-theme="dark"] img {
    background: #222 linear-gradient(45deg, #222 25%, #333 25%, #333 50%, #222 50%, #222 75%, #333 75%, #333 100%);
    background-size: 40px 40px;
}

/* Animations & Transitions */
.article-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Newsletter mid-page signup (optional homepage feature) */
.newsletter-banner {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin: 60px 0 0;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.newsletter-banner .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.newsletter-banner h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.newsletter-banner p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-banner form {
    max-width: 500px;
    margin: 0 auto;
}

/* Social Share buttons */
.social-share {
    display: flex;
    gap: 15px;
    margin: 40px 0;
}

.share-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.share-btn.twitter { background-color: #000000; }
.share-btn.facebook { background-color: #1877F2; }

/* Tags */
.article-tags {
    margin-top: 30px;
}

.tag {
    display: inline-block;
    background-color: var(--border-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 10px;
    color: var(--muted-color);
}

[data-theme="dark"] .ad-placeholder {
    background-color: #333;
}

.ad-placeholder span {
    font-size: 0.65rem;
    color: var(--muted-color);
    display: block;
    margin-bottom: 10px;
}

.ad-box {
    border: 2px dashed #ccc;
    padding: 30px 10px;
}

.ad-cta {
    display: inline-block;
    margin-top: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    border-radius: 4px;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .site-logo h1 {
        font-size: 2.5rem;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-legal a {
        margin: 0 10px;
    }
}
