/*
Theme Name: GeneratePress News Child - Google Discover Ready
Theme URI: https://yoursite.com
Description: A lightweight, Google Discover friendly news child theme for GeneratePress with optimized Core Web Vitals, schema markup, and mobile-first design
Author: Your Name
Author URI: https://yoursite.com
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gp-news-child
*/

/* === Core Styles - System Fonts for Better Performance === */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }

/* === Homepage 3 Column Grid Layout === */
.news-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 1024px) {
    .news-grid-three {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .news-grid-three {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* === Post Card Styles === */
.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* === Numbered Pagination Styles === */
.pagination-wrapper {
    margin: 3rem 0 2rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    background: #fff;
    color: #333;
    text-decoration: none;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
    transform: translateY(-2px);
}

.pagination .page-numbers.current {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
    cursor: default;
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

.pagination .page-numbers.dots:hover {
    background: transparent;
    transform: none;
}

.pagination .prev,
.pagination .next {
    font-weight: 700;
    background: #f5f5f5;
}

.pagination .prev:hover,
.pagination .next:hover {
    background: #0066cc;
    color: #fff;
}

@media (max-width: 768px) {
    .pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        font-size: 0.875rem;
        padding: 0 0.75rem;
    }
}


/* === Featured Image - Google Discover Optimized === */
.featured-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 52.36%; /* 1200x628 aspect ratio */
    overflow: hidden;
    background: #f5f5f5;
}

.featured-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    loading: lazy;
}

.single .featured-image-wrapper {
    margin-bottom: 2rem;
}

/* === Post Content === */
.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.post-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.post-title a:hover {
    color: #0066cc;
}

.post-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.post-excerpt {
    color: #555;
    line-height: 1.6;
}

/* === Single Post Styles === */
.single-post-header {
    margin-bottom: 2rem;
}

.single-post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .single-post-title {
        font-size: 1.75rem;
    }
}

.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

/* === Social Share Buttons === */
.social-share {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s ease;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #000; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.linkedin { background: #0077b5; }

/* === Related Posts === */
.related-posts {
    margin: 3rem 0;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.related-posts h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* === Breadcrumbs === */
.breadcrumbs {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* === Category/Archive Pages === */
.archive-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #0066cc;
}

.archive-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.archive-description {
    color: #666;
    font-size: 1.125rem;
}

/* === Author Page === */
.author-box {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.author-avatar img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
}

.author-info h1 {
    margin-bottom: 0.5rem;
}

.author-bio {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

/* === 404 Page === */
.error-404-content {
    text-align: center;
    padding: 4rem 2rem;
}

.error-404-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #0066cc;
}

.error-404-content p {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
}

.btn-home {
    display: inline-block;
    padding: 1rem 2rem;
    background: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
}

.btn-home:hover {
    background: #0052a3;
}

/* === Core Web Vitals Optimization === */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift */
.featured-image-wrapper,
.author-avatar {
    aspect-ratio: attr(width) / attr(height);
}

/* === Accessibility === */
a:focus,
button:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* === HEADER STYLES === */
.site-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Top Bar */
.top-bar {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.site-title {
    font-size: 1.75rem;
    margin: 0;
    font-weight: 700;
}

.site-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.site-description {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-search {
    position: relative;
}

.header-search input[type="search"] {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    width: 250px;
}

.header-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

/* === MOBILE MENU TOGGLE BUTTON === */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.menu-icon {
    display: block;
    width: 28px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Animated hamburger to X */
.mobile-menu-toggle.active .menu-icon:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .menu-icon:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .menu-icon:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Show mobile menu button on small screens */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide desktop search on mobile */
    .header-search {
        display: none;
    }
}

/* === NAVIGATION MENU (MOBILE RESPONSIVE) === */
.main-navigation {
    background: #d32f2f;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 1rem 1.25rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu li.current-menu-item > a {
    background: rgba(255,255,255,0.2);
    color: #FFD700;
}

/* Dropdown Menu */
.nav-menu ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #b71c1c;
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1000;
}

.nav-menu li:hover > ul {
    opacity: 1;
    visibility: visible;
}

.nav-menu ul li a {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-menu ul li:last-child a {
    border-bottom: none;
}

/* === MOBILE MENU STYLES (FIXED VISIBILITY) === */
@media (max-width: 768px) {
    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: #d32f2f;
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    }
    
    .main-navigation.active {
        left: 0;
        display: block !important; /* Force display */
    }
    
    .nav-menu {
        display: flex !important; /* Force display */
        flex-direction: column;
        align-items: stretch;
        padding: 60px 0 20px 0;
        list-style: none;
        margin: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        display: block !important; /* Force display */
    }
    
    .nav-menu a {
        display: block !important; /* Force display */
        padding: 1rem 1.5rem;
        color: #fff !important; /* Force white color */
        text-decoration: none;
        font-weight: 600;
        font-size: 1rem;
    }
    
    .nav-menu a:hover {
        background: rgba(255,255,255,0.2);
        color: #FFD700 !important;
    }
    
    /* Mobile Dropdown/Submenu */
    .nav-menu ul {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        box-shadow: none;
        background: #b71c1c;
    }
    
    .nav-menu ul li {
        display: block !important;
    }
    
    .nav-menu ul li a {
        padding-left: 2.5rem !important;
        display: block !important;
        color: #fff !important;
    }
    
    /* Close button in mobile menu */
    .main-navigation::before {
        content: '×';
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 2.5rem;
        color: #fff;
        cursor: pointer;
        z-index: 1001;
    }
    
    /* Overlay when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}


/* === TRENDING NEWS SLIDER (BLACK BG, BLINKING RED CIRCLE) === */
.trending-news-section {
    background: #1a1a1a; /* Black background */
    padding: 0.75rem 0;
    overflow: hidden;
    position: relative;
    border-top: 2px solid #d32f2f;
}

.trending-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.trending-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: red; /* White text */
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background: none;
    z-index: 2;
    position: relative;
}

/* Blinking Red Circle */
.trending-label::before {
    content: '';
    width: 12px;
    height: 12px;
    background: #ff0000;
    border-radius: 50%;
    display: inline-block;
    animation: blink 1s ease-in-out infinite;
    box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
    }
    50% {
        opacity: 0.3;
        transform: scale(0.9);
        box-shadow: 0 0 5px #ff0000;
    }
}

.trending-label svg {
    color: #fff;
    display: none; /* Hide the default icon */
}

.trending-slider {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 35px;
    display: flex;
    align-items: center;
}

.trending-track {
    display: flex;
    white-space: nowrap;
    animation: trendingSlide 30s linear infinite;
    will-change: transform;
}

.trending-track:hover {
    animation-play-state: paused;
}

@keyframes trendingSlide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.trending-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.5rem;
    flex-shrink: 0;
}

.breaking-badge {
    font-size: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.trending-item a {
    color: #000; /* Black text for posts */
    background: #fff; /* White background for better readability */
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.trending-item a:hover {
    color: #fff;
    background: #d32f2f;
    transform: translateY(-2px);
}

.trending-item .separator {
    color: #666;
    margin-left: 1rem;
}

/* Control Buttons */
.trending-controls {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    z-index: 2;
}

.trending-prev,
.trending-next {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 2px solid red;
    border-radius: 50%;
    color: red;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.trending-prev:hover,
.trending-next:hover {
    background: #d32f2f;
    border-color: #d32f2f;
    transform: scale(1.1);
}

.trending-prev:active,
.trending-next:active {
    transform: scale(0.95);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .trending-label span {
        display: inline; /* Keep text on mobile */
    }
    
    .trending-label::before {
        width: 10px;
        height: 10px;
    }
    
    .trending-controls {
        display: none;
    }
    
    .trending-item {
        padding: 0 1rem;
    }
    
    .trending-item a {
        font-size: 0.875rem;
        padding: 0.2rem 0.5rem;
    }
    
    .breaking-badge {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .trending-slider {
        margin: 0 -1rem;
    }
    
    .trending-item {
        padding: 0 0.75rem;
    }
}


/* === FOOTER STYLES === */
.site-footer {
    background: #1a1a1a;
    color: #fff;
    margin-top: 4rem;
}

.footer-widgets {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .footer-widgets-grid {
        grid-template-columns: 1fr;
    }
}

.footer-widget-col {
    color: #ddd;
}

.footer-widget-col h2,
.footer-widget-col h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-widget-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget-col li {
    margin-bottom: 0.5rem;
}

.footer-widget-col a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget-col a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 1.5rem 0;
    background: #111;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright p {
    margin: 0;
    font-size: 0.875rem;
    color: #999;
}

.copyright a {
    color: #fff;
    text-decoration: none;
}

.footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: #999;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === HEADER DATE & TIME STYLES === */
.header-datetime {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.date-display {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.time-display {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .header-datetime {
        display: none;
    }
}

/* Update Top Bar Layout for 3 items */
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .top-bar-inner {
        gap: 1rem;
    }
    
    .header-datetime {
        padding: 0.5rem;
    }
    
    .date-display {
        font-size: 0.75rem;
    }
    
    .time-display {
        font-size: 1rem;
    }
}


/* === CATEGORY SECTIONS === */
.category-section {
    margin: 3rem 0;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.category-section:last-child {
    border-bottom: none;
}

.category-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #d32f2f;
}

.category-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.category-section-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-section-title a:hover {
    color: #d32f2f;
}

.view-all-link {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: #b71c1c;
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .category-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .category-section-title {
        font-size: 1.5rem;
    }
}
/* === CONTAINER FIX (CENTER ALIGNMENT) === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* === ARCHIVE/CATEGORY HEADER === */
.archive-header {
    margin: 2rem auto 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #d32f2f;
    text-align: center;
    max-width: 1200px;
}

.archive-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    font-weight: 700;
}

.archive-description {
    color: #666;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-top: 0.5rem;
}

.category-meta {
    margin-top: 1rem;
    color: #999;
    font-size: 0.875rem;
}

/* === MAIN CONTENT WRAPPER === */
.site-main {
    padding: 2rem 0;
    width: 100%;
}

/* === 3 COLUMN GRID (HOMEPAGE & CATEGORY PAGES) === */
.news-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    width: 100%;
}

/* === POST CARD STYLING === */
.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Featured Image */
.featured-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 52.36%; /* 1200x628 aspect ratio */
    overflow: hidden;
    background: #f5f5f5;
}

.featured-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post Content */
.post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-weight: 700;
}

.post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #d32f2f;
}

.post-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.post-meta .separator {
    color: #ccc;
    padding: 0 0.25rem;
}

.post-excerpt {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-top: auto;
}

/* === PAGINATION CENTER ALIGNMENT === */
.pagination-wrapper {
    margin: 3rem auto 2rem;
    display: flex;
    justify-content: center;
    max-width: 1200px;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .news-grid-three {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .news-grid-three {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .archive-header {
        text-align: left;
        margin: 1.5rem auto;
    }
    
    .archive-title {
        font-size: 1.5rem;
    }
    
    .site-main {
        padding: 1rem 0;
    }
}
