/* 
 * Timesbull News - Modern News Website Design
 * Version: 2.0 - Professional Layout
 */
/* ========================================
   CRITICAL RESPONSIVE FIXES
   ======================================== */

/* 1. FIX ALL IMAGES - Most Important Fix! */
img, 
.entry-content img, 
.wp-block-image img, 
figure img,
.article-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* Force responsive behavior even for images with inline dimensions */
img[width],
img[height] {
    max-width: 100% !important;
    height: auto !important;
}

/* 2. FIX CONTAINER OVERFLOWS */
.entry-content,
.article-content,
.post-content {
    overflow-x: hidden;
    word-wrap: break-word;
}

/* 3. FIX TABLES FOR MOBILE */
table {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ========================================
   LAYOUT CONSISTENCY FIXES
   ======================================== */

/* 4. CONSISTENT CONTENT WIDTH */
.container,
.site-content .container,
.entry-content > *:not(.alignwide):not(.alignfull) {
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px;
    padding-right: 20px;
}

/* 5. FIX HEADER/FOOTER RESPONSIVENESS */
@media (max-width: 768px) {
    .site-header .container,
    .site-footer .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .menu-primary {
        flex-wrap: wrap;
    }
    
    .menu-primary li {
        flex: 1 0 50%;
        text-align: center;
    }
}

/* 6. FIX SPECIFIC ELEMENTS FROM YOUR SITE */
/* Fix Hindi text breaking */
.hindi-text,
[lang="hi"] {
    word-break: break-word;
    hyphens: auto;
}

/* Fix comment form on mobile */
#commentform input,
#commentform textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* ========================================
   MOBILE-SPECIFIC FIXES
   ======================================== */

@media (max-width: 480px) {
    /* Fix small mobile screens */
    body {
        font-size: 16px;
        line-height: 1.5;
    }
    
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.3rem !important; }
    h3 { font-size: 1.1rem !important; }
    
    /* Fix spacing on mobile */
    .entry-content > * {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ========================================
   BROWSER COMPATIBILITY FIXES
   ======================================== */

/* Fix for older browsers */
@supports not (display: grid) {
    .news-grid {
        display: flex;
        flex-wrap: wrap;
    }
}

/* Print styles */
@media print {
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
}
/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-red: #d2232a;
    --primary-dark: #a81c22;
    --secondary-black: #222222;
    --accent-blue: #0d47a1;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #495057;
    --text-dark: #212529;
    --text-light: #6c757d;
    --white: #ffffff;
    
    /* Typography */
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ===== TYPOGRAPHY ===== */
body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
    color: var(--secondary-black);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--space-sm);
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* ===== LAYOUT CONTAINERS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ===== HEADER DESIGN ===== */
.site-header {
    background: var(--secondary-black);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

/* Top Bar */
.top-bar {
    background: var(--primary-red);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

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

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

.top-bar-menu {
    display: flex;
    list-style: none;
    gap: var(--space-md);
}

.top-bar-menu a {
    color: var(--white);
    opacity: 0.9;
}

.top-bar-menu a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Main Header */
.main-header {
    padding: var(--space-md) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    flex: 1;
}

.site-title {
    margin: 0;
}

.site-title a {
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
}

.site-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Search Form */
.header-search {
    flex: 0 0 300px;
}

.search-form {
    position: relative;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    border: none;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 0.9rem;
}

.search-form input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-form button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 0 1rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.search-form button:hover {
    background: var(--primary-dark);
}

/* Main Navigation */
.primary-navigation {
    background: var(--white);
    border-top: 1px solid var(--medium-gray);
}

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

#primary-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

#primary-menu > li {
    position: relative;
}

#primary-menu > li > a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--secondary-black);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
    transition: all var(--transition-fast);
}

#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
    background: var(--light-gray);
}

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

/* Breaking News */
.breaking-news {
    background: var(--primary-red);
    color: var(--white);
    padding: 0.75rem 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { background-color: var(--primary-red); }
    50% { background-color: #e63946; }
    100% { background-color: var(--primary-red); }
}

.breaking-news-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.breaking-label {
    background: var(--secondary-black);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breaking-news-widget {
    flex: 1;
    font-weight: 500;
}

.breaking-news-widget a {
    color: var(--white);
    text-decoration: underline;
}

.breaking-news-widget a:hover {
    text-decoration: none;
}

/* ===== HOMEPAGE LAYOUT ===== */

/* Hero Section */
.hero-section {
    margin: var(--space-xl) 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-lg);
}

/* Main Hero Post */
.main-hero-post {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.main-hero-image {
    height: 400px;
    overflow: hidden;
}

.main-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.main-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: var(--white);
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
}

.hero-category {
    background: var(--primary-red);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: var(--space-sm);
}

.main-hero-title {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.main-hero-title a {
    color: var(--white);
}

.main-hero-excerpt {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: var(--space-md);
}

.main-hero-meta {
    display: flex;
    gap: var(--space-md);
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Sidebar Hero Posts */
.sidebar-hero-posts {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.hero-sidebar-post {
    display: flex;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--medium-gray);
}

.hero-sidebar-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hero-sidebar-image {
    flex: 0 0 120px;
    height: 80px;
    overflow: hidden;
    border-radius: var(--radius-md);
}

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

.hero-sidebar-post:hover .hero-sidebar-image img {
    transform: scale(1.1);
}

.hero-sidebar-content {
    flex: 1;
}

.hero-sidebar-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.hero-sidebar-title a {
    color: var(--text-dark);
}

.hero-sidebar-title a:hover {
    color: var(--primary-red);
}

.hero-sidebar-meta {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Category Sections */
.category-section {
    margin: var(--space-xl) 0;
}

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

.section-title {
    margin: 0;
    font-size: 1.75rem;
    color: var(--secondary-black);
}

.view-all {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-all:hover {
    text-decoration: underline;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

/* News Card */
.news-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--medium-gray);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
}

.news-card-image {
    height: 200px;
    overflow: hidden;
}

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

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

.news-card-content {
    padding: var(--space-md);
}

.news-category {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-xs);
    display: inline-block;
}

.news-card-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.news-card-title a {
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title a:hover {
    color: var(--primary-red);
}

.news-excerpt {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--medium-gray);
    font-size: 0.875rem;
    color: var(--text-light);
}

.post-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.read-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Trending News */
.trending-section {
    background: var(--light-gray);
    padding: var(--space-xl) 0;
    margin: var(--space-xl) 0;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.trending-post {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
}

.trending-post:hover {
    transform: translateX(4px);
}

.trending-number {
    background: var(--primary-red);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.trending-content {
    flex: 1;
}

.trending-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.trending-title a {
    color: var(--text-dark);
}

.trending-title a:hover {
    color: var(--primary-red);
}

.trending-meta {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: var(--space-xl) 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.pagination .page-numbers:hover:not(.current) {
    border-color: var(--primary-red);
    color: var(--primary-red);
    background: var(--light-gray);
}

.pagination .current {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: var(--space-xl) 0;
}

.load-more-button {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.load-more-button:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.load-more-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== SIDEBAR ===== */
.widget-area {
    margin-top: var(--space-xl);
}

.widget {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--medium-gray);
}

.widget-title {
    color: var(--secondary-black);
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--primary-red);
}

/* Recent Posts Widget */
.widget_recent_entries ul {
    list-style: none;
}

.widget_recent_entries li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--medium-gray);
}

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

.widget_recent_entries a {
    color: var(--text-dark);
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

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

.post-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Categories Widget */
.widget_categories ul {
    list-style: none;
}

.widget_categories li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--medium-gray);
}

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

.widget_categories a {
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    color: var(--white);
}

.newsletter-widget .widget-title {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.newsletter-form {
    margin-top: var(--space-md);
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 0.875rem;
    margin-bottom: var(--space-sm);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.newsletter-form button {
    width: 100%;
    padding: 1rem;
    background: var(--secondary-black);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.newsletter-form button:hover {
    background: var(--text-dark);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--secondary-black);
    color: var(--white);
    margin-top: var(--space-xl);
}

.footer-widgets {
    padding: var(--space-xl) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widgets .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.footer-widget-area .widget-title {
    color: var(--white);
    border-bottom-color: var(--primary-red);
}

.footer-widget-area a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget-area a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Footer Menu */
.footer-menu-section {
    padding: var(--space-lg) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-menu {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    list-style: none;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.footer-menu a:hover {
    color: var(--white);
}

/* Footer Bottom */
.footer-bottom {
    padding: var(--space-lg) 0;
    text-align: center;
}

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

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    transition: color var(--transition-fast);
}

.social-link:hover {
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== SINGLE POST ===== */
.entry-header {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--medium-gray);
}

.entry-categories {
    margin-bottom: var(--space-md);
}

.category-badge {
    background: var(--primary-red);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.entry-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.entry-meta {
    display: flex;
    gap: var(--space-lg);
    color: var(--text-light);
    font-size: 0.9375rem;
}

.post-thumbnail {
    margin: var(--space-lg) 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.entry-content p {
    margin-bottom: var(--space-md);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.entry-content h2, 
.entry-content h3, 
.entry-content h4 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

/* Social Share */
.social-share {
    background: var(--light-gray);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin: var(--space-xl) 0;
    text-align: center;
}

.social-share span {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--secondary-black);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
}

.share-facebook,
.share-twitter,
.share-linkedin {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }
.share-linkedin { background: #0077b5; }

.share-facebook:hover,
.share-twitter:hover,
.share-linkedin:hover {
    transform: translateY(-2px);
}

/* Related Posts */
.related-posts {
    margin: var(--space-xl) 0;
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--medium-gray);
    border-bottom: 1px solid var(--medium-gray);
}

.related-posts-title {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.related-post {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
}

.related-post:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.related-post-image {
    height: 180px;
    overflow: hidden;
}

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

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

.related-post-content {
    padding: var(--space-md);
}

.related-post-content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.related-post-content h4 a {
    color: var(--text-dark);
}

.related-post-content h4 a:hover {
    color: var(--primary-red);
}

.related-post-meta {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .main-hero-content {
        padding: var(--space-lg);
    }
    
    .main-hero-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .site-title a {
        font-size: 1.75rem;
    }
    
    .header-search {
        flex: 0 0 100%;
        max-width: 400px;
        width: 100%;
    }
    
    .menu-toggle {
        display: block;
    }
    
    #primary-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-md);
        z-index: 1000;
    }
    
    #primary-menu.active {
        display: flex;
    }
    
    #primary-menu > li > a {
        padding: 1rem var(--space-md);
        border-bottom: 1px solid var(--medium-gray);
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .trending-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .entry-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .breaking-news-content {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .share-buttons {
        flex-direction: column;
    }
}