/* ===================================
   NY Breaking News Theme - Main CSS
   Version: 2.0.0
   =================================== */

/* CSS Variables */
:root {
    --primary-color: #e60000;
    --secondary-color: #1a1a1a;
    --accent-color: #ff4444;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.12);
    --radius: 8px;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --transition: all 0.3s ease;
    --container-width: 1280px;
}

/* Dark Mode */
[data-theme="dark"] {
    --text-color: #e0e0e0;
    --text-light: #aaaaaa;
    --bg-color: #121212;
    --bg-light: #1e1e1e;
    --bg-dark: #000000;
    --border-color: #333333;
    --shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--bg-color);
    border-bottom: 3px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-top {
    background: var(--bg-dark);
    color: #fff;
    padding: 6px 0;
    font-size: 13px;
}

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

.header-date {
    font-weight: 500;
}

.header-social a {
    color: #fff;
    margin-left: 15px;
    opacity: 0.8;
    transition: var(--transition);
}

.header-social a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.header-main {
    padding: 15px 0;
}

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

.site-logo img {
    max-height: 55px;
    width: auto;
}

.site-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 900;
    color: var(--secondary-color);
}

.site-logo .logo-text span {
    background: var(--primary-color);
    color: #fff;
    padding: 2px 8px;
    margin-right: 5px;
}

.header-search {
    position: relative;
}

.header-search input {
    border: 2px solid var(--border-color);
    border-radius: 25px;
    padding: 8px 40px 8px 15px;
    font-size: 14px;
    width: 250px;
    outline: none;
    transition: var(--transition);
    background: var(--bg-light);
}

.header-search input:focus {
    border-color: var(--primary-color);
    width: 300px;
}

.header-search button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
}

.dark-mode-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.dark-mode-toggle:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

/* Navigation */
.main-nav {
    background: var(--secondary-color);
}

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

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 12px 18px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    background: var(--primary-color);
    color: #fff;
}

/* Dropdown */
.nav-menu li .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-color);
    min-width: 220px;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    list-style: none;
    padding: 0;
}

.nav-menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu li .sub-menu li a {
    color: var(--text-color);
    padding: 10px 18px;
    font-size: 13px;
    text-transform: none;
    border-bottom: 1px solid var(--border-color);
}

.nav-menu li .sub-menu li a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 12px;
}

/* ===== BREAKING NEWS TICKER ===== */
.breaking-news {
    background: var(--primary-color);
    padding: 8px 0;
    overflow: hidden;
}

.breaking-news .container {
    display: flex;
    align-items: center;
}

.breaking-label {
    background: #fff;
    color: var(--primary-color);
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: 3px;
    margin-right: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.breaking-ticker {
    overflow: hidden;
    flex: 1;
}

.ticker-content {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-content a {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 0 30px;
}

.ticker-content a:hover {
    text-decoration: underline;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 30px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.hero-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.hero-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.hero-main .hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
}

.hero-main .hero-category {
    background: var(--primary-color);
    color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 10px;
}

.hero-main .hero-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 10px;
}

.hero-main .hero-meta {
    font-size: 13px;
    opacity: 0.8;
}

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

.hero-sidebar-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.hero-sidebar-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.hero-sidebar-item img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.hero-sidebar-item .item-content h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 5px;
}

.hero-sidebar-item .item-meta {
    font-size: 12px;
    color: var(--text-light);
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: 30px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary-color);
}

.section-link {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
}

/* Post Cards */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.post-card {
    background: var(--bg-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.post-card .card-image {
    position: relative;
    overflow: hidden;
}

.post-card .card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.post-card .card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: #fff;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
}

.post-card .card-content {
    padding: 18px;
}

.post-card .card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .card-excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.post-card .card-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-card .card-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* ===== SIDEBAR ===== */
.main-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    padding: 30px 0;
}

.sidebar .widget {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 25px;
}

.sidebar .widget-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
}

/* Trending Widget */
.trending-posts .trending-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.trending-posts .trending-number {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.3;
    line-height: 1;
    min-width: 35px;
}

.trending-posts .trending-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.trending-posts .trending-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ===== SINGLE POST ===== */
.single-post-header {
    padding: 30px 0 20px;
}

.single-post-header .post-category {
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 15px;
}

.single-post-header h1 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 15px;
}

.post-meta-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.post-meta-info .author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-meta-info .author-info img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.post-meta-info .author-info .author-name {
    font-weight: 600;
    color: var(--text-color);
}

.single-post-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color);
}

.single-post-content p {
    margin-bottom: 20px;
}

.single-post-content h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 30px 0 15px;
}

.single-post-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 25px 0 12px;
}

.single-post-content img {
    border-radius: var(--radius);
    margin: 20px 0;
}

.single-post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 20px 0;
    background: var(--bg-light);
    font-style: italic;
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Social Share */
.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 25px 0;
}

.share-label {
    font-weight: 700;
    font-size: 14px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 13px;
}

.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }
.share-whatsapp { background: #25d366; }
.share-copy {
    background: var(--secondary-color);
    width: auto;
    padding: 0 15px;
    border-radius: 18px;
}

.share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin: 30px 0;
}

.author-box .author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-box .author-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.author-box .author-role {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.author-box .author-bio {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Related Posts */
.related-posts {
    margin: 40px 0;
}

.related-posts h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
}

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

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    padding: 12px 0;
    font-size: 13px;
}

.breadcrumbs ol {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumbs li::after {
    content: '>';
    margin: 0 8px;
    color: var(--text-light);
}

.breadcrumbs li:last-child::after {
    display: none;
}

.breadcrumbs li:last-child {
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--primary-color);
    font-weight: 500;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-dark);
    color: #ccc;
    padding: 50px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-about .footer-logo {
    max-height: 40px;
    margin-bottom: 15px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.7;
    color: #999;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #999;
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

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

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #333;
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #777;
}

.footer-bottom a {
    color: var(--primary-color);
}

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

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.pagination a {
    background: var(--bg-light);
    color: var(--text-color);
}

.pagination a:hover,
.pagination .current {
    background: var(--primary-color);
    color: #fff;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: var(--secondary-color);
}

/* ===== PAGE TEMPLATES ===== */
.page-header {
    background: var(--bg-light);
    padding: 40px 0;
    text-align: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 900;
}

/* Contact Page */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: var(--font-primary);
    transition: var(--transition);
    background: var(--bg-color);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* ===== CATEGORY/ARCHIVE PAGE ===== */
.archive-header {
    background: var(--bg-light);
    padding: 30px 0;
    margin-bottom: 30px;
}

.archive-header h1 {
    font-size: 28px;
    font-weight: 800;
}

.archive-header .archive-description {
    font-size: 15px;
    color: var(--text-light);
    margin-top: 8px;
}

/* ===== 404 PAGE ===== */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-404 h1 {
    font-size: 120px;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
}

.error-404 h2 {
    font-size: 28px;
    margin: 20px 0;
}

.error-404 p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.error-404 .btn-home {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: 700;
    transition: var(--transition);
}

.error-404 .btn-home:hover {
    background: var(--secondary-color);
}

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

    .hero-sidebar {
        flex-direction: row;
        overflow-x: auto;
    }

    .hero-sidebar-item {
        min-width: 280px;
    }

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

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .header-search input {
        width: 180px;
    }

    .header-search input:focus {
        width: 200px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-color);
        flex-direction: column;
        z-index: 100;
    }

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

    .nav-menu li .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.2);
    }

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

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

    .single-post-header h1 {
        font-size: 26px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .hero-main img {
        height: 250px;
    }

    .hero-main .hero-title {
        font-size: 20px;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .social-share {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .site-logo .logo-text {
        font-size: 22px;
    }

    .header-search {
        display: none;
    }

    .container {
        padding: 0 15px;
    }

    .post-card .card-image img {
        height: 180px;
    }
}

/* ===== LOADING ANIMATION ===== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-light) 25%, #e0e0e0 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== NEWSLETTER ===== */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    padding: 25px;
    border-radius: var(--radius);
    color: #fff;
    text-align: center;
}

.newsletter-widget h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.newsletter-widget p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.newsletter-widget input {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 14px;
}

.newsletter-widget button {
    width: 100%;
    padding: 10px;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-widget button:hover {
    background: #333;
}

/* Print Styles */
@media print {
    .site-header, .site-footer, .sidebar, .social-share, .related-posts, .back-to-top, .breaking-news {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }
}


/* Homepage quality improvements: resilient logo and readable imported headlines */
.site-logo .custom-logo-link {
    display: flex;
    align-items: center;
    line-height: 1;
}

.site-logo img.custom-logo {
    display: block;
    width: auto !important;
    max-width: 260px;
    height: auto !important;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
}

.hero-title,
.card-title,
.trending-post-title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.hero-title {
    -webkit-line-clamp: 3;
}

.card-title,
.trending-post-title {
    -webkit-line-clamp: 3;
}

.card-excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    min-height: 3.2em;
}

.home-content .section-link {
    font-weight: 700;
    white-space: nowrap;
}

.newsletter-widget,
.footer-newsletter {
    border-radius: var(--radius);
}

@media (max-width: 767px) {
    .site-logo img.custom-logo {
        max-width: 205px;
        max-height: 46px;
    }

    .hero-title {
        -webkit-line-clamp: 3;
    }
}


/* Keep the complete custom logo visible inside the desktop header. */
.header-main .site-logo {
    flex: 0 0 260px;
    min-width: 0;
}

.header-main .site-logo .custom-logo-link,
.header-main .site-logo img.custom-logo {
    width: 260px !important;
    max-width: 100%;
}

@media (max-width: 767px) {
    .header-main .site-logo {
        flex-basis: 205px;
    }

    .header-main .site-logo .custom-logo-link,
    .header-main .site-logo img.custom-logo {
        width: 205px !important;
    }
}


/* ===== EDITORIAL REFINEMENT: TRUST & READABILITY ===== */
/* A quieter, reader-first visual system inspired by professional digital newsrooms. */
:root {
    --primary-color: #c91f32;
    --accent-color: #dc4050;
    --secondary-color: #15171a;
    --text-color: #202124;
    --text-light: #61656b;
    --bg-light: #f6f7f8;
    --border-color: #dedfe3;
    --shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
    --shadow-hover: 0 12px 28px rgba(17, 24, 39, 0.12);
    --radius: 4px;
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(201, 31, 50, 0.35); outline-offset: 3px; }

.site-header { border-bottom: 1px solid var(--border-color); box-shadow: none; }
.header-main { padding: 18px 0; }
.header-top { background: #17191c; font-size: 12px; letter-spacing: 0.015em; }
.main-nav { background: #15171a; border-bottom: 1px solid rgba(255,255,255,.1); }
.nav-menu li a { padding: 13px 16px; font-size: 12px; letter-spacing: .07em; }
.nav-menu li a:hover, .nav-menu li.current-menu-item a { background: transparent; color: #fff; box-shadow: inset 0 -3px 0 var(--primary-color); }

.breaking-news { background: #b91e30; padding: 7px 0; }
.breaking-label { animation: none; border-radius: 2px; letter-spacing: .06em; }

.hero-section { padding: 36px 0 32px; }
.hero-grid { gap: 24px; }
.hero-main, .hero-sidebar-item, .post-card { border-radius: 4px; }
.hero-main .hero-overlay { padding: 34px; }
.hero-main .hero-title { line-height: 1.12; letter-spacing: -0.018em; }
.hero-main .hero-category, .post-card .card-category, .single-post-header .post-category { border-radius: 2px; letter-spacing: .06em; }

.post-card { border: 1px solid var(--border-color); box-shadow: none; background: var(--bg-color); height: 100%; overflow: hidden; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.post-card .card-content { padding: 18px; }
.post-card .card-title { line-height: 1.23; letter-spacing: -0.012em; }
.post-card .card-excerpt { line-height: 1.58; }

.single-post-header { max-width: 920px; margin: 0 auto; padding: 44px 0 24px; }
.single-post-header h1 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.12; letter-spacing: -0.024em; margin-bottom: 18px; }
.post-meta-info { padding: 14px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.single-post-content { max-width: 760px; margin-left: auto; margin-right: auto; font-size: 18px; line-height: 1.78; }
.single-post-content h2 { font-family: var(--font-heading); font-size: clamp(1.55rem, 2.6vw, 2rem); line-height: 1.22; letter-spacing: -0.012em; }
.single-post-content h3 { line-height: 1.3; }
.single-post-content blockquote { border-left-width: 3px; background: #f7f7f6; padding: 18px 22px; }
.single-post-content img { border-radius: 4px; }

@media (max-width: 768px) {
    .header-main { padding: 13px 0; }
    .hero-section { padding: 22px 0 26px; }
    .hero-grid { gap: 16px; }
    .hero-main .hero-overlay { padding: 20px; }
    .single-post-header { padding: 28px 0 18px; }
    .single-post-header h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); line-height: 1.14; }
    .single-post-content { font-size: 17px; line-height: 1.72; }
    .post-meta-info { gap: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}


/* Footer trust pathways */
.footer-trust-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px !important; font-size: 13px; }
.footer-trust-links a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-trust-links a:hover { color: #fff; opacity: .82; }
.footer-trust-links span { opacity: .6; }
