/* =====================================================
   THEME NAME: My Magazine Theme
   THEME URI: https://example.com
   AUTHOR: Your Name
   AUTHOR URI: https://example.com
   DESCRIPTION: A clean, modern magazine theme
   VERSION: 1.0
   LICENSE: GPL v2 or later
   ===================================================== */

:root {
    --accent-red: #f74643; /* primary accent */
    --dark-text: #222222;
    --gray-text: #6b6b6b;
    --light-border: #ececec;
    --font-main: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--dark-text);
    margin: 0;
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================================================
   TOP ACCENT LINE
   ===================================================== */
.top-accent-line {
    height: 4px;
    width: 100%;
    background: var(--accent-red);
}

/* =====================================================
   HEADER - ROW 1
   ===================================================== */
.header-top {
    background: #ffffff;
    border-bottom: 1px solid var(--light-border);
}

.header-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: wrap;
    gap: 16px;
}

/* Logo */
.header-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo-box {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.site-logo-img {
    max-height: 80px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.logo-mark {
    background: var(--accent-red);
    color: #fff;
    font-weight: 900;
    font-size: 22px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-title {
    font-weight: 900;
    font-size: 22px;
    color: var(--dark-text);
}

.site-tagline {
    font-size: 11px;
    color: var(--gray-text);
    margin-top: 2px;
}

/* Primary Menu */
.header-nav-area {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.primary-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
}

.primary-menu li a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.primary-menu li a:hover {
    background: var(--accent-red);
    color: #fff;
}

.primary-menu li.current-menu-item a,
.primary-menu li.current-page-item a,
.primary-menu li.current-menu-ancestor a {
    background: var(--accent-red);
    color: #fff;
}

/* Header Tools - Social & Search */
.header-tools {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-icons {
    display: flex;
    gap: 14px;
}

.social-icons a {
    color: var(--dark-text);
    font-size: 14px;
    text-decoration: none;
}

.social-icons a:hover {
    color: var(--accent-red);
}

.search-icon {
    cursor: pointer;
    font-size: 15px;
    color: var(--dark-text);
}

/* =====================================================
   HEADER - ROW 2 (Date only - right aligned)
   ===================================================== */
.header-bottom {
    background: #fafafa;
    border-bottom: 1px solid var(--light-border);
    font-size: 13px;
}

.header-bottom .container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 8px;
    padding-bottom: 8px;
}

.header-date {
    color: var(--gray-text);
}

/* =====================================================
   SEARCH OVERLAY
   ===================================================== */
#search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

#search-overlay.active {
    display: flex;
}

.search-overlay-content {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 90%;
    max-width: 600px;
}

#search-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 18px;
    border: none;
    border-radius: 4px;
}

.search-overlay-content button {
    background: var(--accent-red);
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 4px;
    cursor: pointer;
}

#search-close {
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

/* =====================================================
   BREADCRUMBS
   ===================================================== */
.breadcrumbs {
    padding: 12px 0;
    font-size: 13px;
    color: var(--gray-text);
}

.breadcrumbs a {
    color: var(--gray-text);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--accent-red);
}

/* =====================================================
   MAIN CONTENT LAYOUT
   ===================================================== */
.content-area {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 30px 0;
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* =====================================================
   NEWSLETTER SECTION
   ===================================================== */
.newsletter-section {
    background: var(--accent-red);
    padding: 50px 0;
    color: #ffffff;
}

.newsletter-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.newsletter-text h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.newsletter-text h2 i {
    margin-right: 12px;
}

.newsletter-text p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.newsletter-form {
    flex: 0 0 auto;
    min-width: 420px;
}

.newsletter-form form {
    display: flex;
    gap: 10px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
    min-width: 220px;
}

.newsletter-form input[type="email"]:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-form .subscribe-btn {
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 14px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.newsletter-form .subscribe-btn:hover {
    background: #000000;
}

.newsletter-form .subscribe-btn i {
    margin-right: 8px;
}

/* =====================================================
   SIDEBAR (General)
   ===================================================== */
.sidebar {
    flex: 0 0 300px;
    max-width: 300px;
}

.sidebar-widget {
    background: #f8f9fa;
    padding: 25px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #ececec;
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.sidebar-widget .widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #222222;
    margin: 0 0 18px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-red);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-widget .widget-title i {
    color: var(--accent-red);
}

/* Search Widget */
.widget-search .search-form {
    display: flex;
    gap: 8px;
}

.widget-search .search-form input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border 0.3s ease;
}

.widget-search .search-form input[type="search"]:focus {
    border-color: var(--accent-red);
}

.widget-search .search-form button {
    padding: 10px 16px;
    background: var(--accent-red);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.widget-search .search-form button:hover {
    background: #c62828;
}

/* Trending / Popular / Recent Posts */
.trending-posts,
.popular-posts,
.recent-posts,
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trending-posts li,
.popular-posts li,
.recent-posts li,
.category-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ececec;
}

.trending-posts li:last-child,
.popular-posts li:last-child,
.recent-posts li:last-child,
.category-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Trending Posts */
.trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trending-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: var(--accent-red);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.trending-title {
    font-weight: 600;
    font-size: 14px;
    color: #222;
    text-decoration: none;
    flex: 1;
}

.trending-title:hover {
    color: var(--accent-red);
}

.trending-meta {
    font-size: 12px;
    color: #888;
    flex-shrink: 0;
}

.trending-meta i {
    margin-right: 4px;
}

/* Popular Posts */
.popular-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #222;
}

.popular-thumb {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-thumb {
    background: #dee2e6;
    color: #adb5bd;
    font-size: 20px;
}

.popular-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.popular-title:hover {
    color: var(--accent-red);
}

/* Recent Posts */
.recent-title {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    display: block;
}

.recent-title:hover {
    color: var(--accent-red);
}

.recent-date {
    font-size: 12px;
    color: #888;
}

.recent-date i {
    margin-right: 4px;
}

/* Categories */
.category-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #444;
    font-size: 14px;
    padding: 6px 0;
    transition: all 0.3s ease;
}

.category-list li a:hover {
    color: var(--accent-red);
    padding-left: 8px;
}

.category-list li a i {
    color: var(--accent-red);
    font-size: 12px;
}

.category-count {
    margin-left: auto;
    color: #888;
    font-size: 12px;
}

/* Newsletter Widget */
.widget-newsletter .newsletter-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.widget-newsletter .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.widget-newsletter .newsletter-form input[type="email"] {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.widget-newsletter .newsletter-form input[type="email"]:focus {
    border-color: var(--accent-red);
}

.widget-newsletter .newsletter-submit {
    padding: 10px 16px;
    background: var(--accent-red);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.widget-newsletter .newsletter-submit:hover {
    background: #c62828;
}

.widget-newsletter .newsletter-submit i {
    margin-right: 6px;
}

/* Advertisement Widget */
.widget-advertisement .ad-space {
    text-align: center;
}

.widget-advertisement .ad-placeholder {
    background: #e9ecef;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 30px 20px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.widget-advertisement .ad-label {
    font-size: 18px;
    font-weight: 700;
    color: #495057;
}

.widget-advertisement .ad-size {
    font-size: 12px;
    color: #868e96;
    margin: 8px 0 12px 0;
}

.widget-advertisement .ad-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.widget-advertisement .ad-button {
    display: inline-block;
    padding: 8px 20px;
    background: var(--accent-red);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.widget-advertisement .ad-button:hover {
    background: #c62828;
}

/* Social Media Widget */
.widget-social .social-widget-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.widget-social .social-widget-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2a2a2a;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.widget-social .social-widget-icons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.widget-social .social-widget-icons .social-facebook:hover {
    background: #1877f2;
}
.widget-social .social-widget-icons .social-twitter:hover {
    background: #000000;
}
.widget-social .social-widget-icons .social-instagram:hover {
    background: #e4405f;
}
.widget-social .social-widget-icons .social-youtube:hover {
    background: #ff0000;
}
.widget-social .social-widget-icons .social-linkedin:hover {
    background: #0a66c2;
}
.widget-social .social-widget-icons .social-pinterest:hover {
    background: #bd081c;
}

.widget-social .social-text {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* =====================================================
   CATEGORY SIDEBAR (3 editable widgets)
   ===================================================== */
.category-sidebar {
    flex: 0 0 300px;
    max-width: 300px;
}

.category-widget {
    background: #f8f9fa;
    padding: 25px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #ececec;
}

.category-widget .widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0 0 18px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================
   FEATURED POSTS WIDGET (numbered list, exactly like image)
   ===================================================== */
.featured-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.featured-post-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #ececec;
    align-items: flex-start;
}

.featured-post-item:last-child {
    border-bottom: none;
}

.featured-post-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-red);
    min-width: 24px;
    line-height: 1.4;
}

.featured-post-content {
    flex: 1;
}

.featured-post-title {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a2e;
    text-decoration: none;
    display: block;
    line-height: 1.4;
    margin-bottom: 2px;
}

.featured-post-title:hover {
    color: var(--accent-red);
}

.featured-post-date {
    font-size: 0.8rem;
    color: #888;
    margin-top: 2px;
}

/* =====================================================
   FOOTER – BACKGROUND #1a1a1a, ACCENT #f74643
   ===================================================== */
.footer {
    background: #1a1a1a;
    color: #cccccc;
    padding: 60px 0 0 0;
    font-size: 14px;
    line-height: 1.8;
}

.footer a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #f74643;
}

.footer h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    position: relative;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: #f74643;
}

/* Footer Grid - 4 Columns */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333333;
    margin-bottom: 25px;
}

.footer-column {
    min-width: 0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #f74643;
}

.footer-column ul li a i {
    font-size: 12px;
    color: #f74643;
    width: 16px;
}

/* Column 1: About */
.footer-about .footer-site-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    margin: 0 0 12px 0;
}

.footer-about .footer-about-text {
    color: #aaaaaa;
    margin-bottom: 18px;
    line-height: 1.8;
}

.footer-contact p {
    margin: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact p i {
    color: #f74643;
    width: 18px;
    font-size: 14px;
}

.footer-contact a {
    color: #aaaaaa;
}

.footer-contact a:hover {
    color: #f74643;
}

/* Column 4: Social Icons */
.footer-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #2a2a2a;
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-social-icons a:hover {
    background: #f74643;
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-social-text {
    color: #888888;
    font-size: 13px;
    margin: 0;
}

/* Footer Bottom / Copyright */
.footer-bottom {
    padding: 15px 0;
    border-top: 1px solid #333333;
}

.copyright {
    text-align: center;
    color: #888888;
    font-size: 13px;
}

.copyright a {
    color: #aaaaaa;
}

.copyright a:hover {
    color: #f74643;
}

.copyright i {
    color: #f74643;
    margin-right: 4px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* Tablet */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .newsletter-form {
        min-width: auto;
        width: 100%;
    }

    .sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .category-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-column ul li a {
        justify-content: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .footer-social-icons {
        justify-content: center;
    }

    .newsletter-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form form {
        flex-direction: column;
    }

    .newsletter-form input[type="email"] {
        min-width: auto;
        width: 100%;
    }

    .sidebar-widget {
        padding: 20px 16px;
    }

    .popular-item {
        flex-direction: row;
    }

    .popular-thumb {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 900px) {
    .header-top .container,
    .header-bottom .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-nav-area {
        flex-wrap: wrap;
    }

    .primary-menu {
        flex-wrap: wrap;
        gap: 14px;
    }

    .header-bottom .container {
        align-items: flex-start;
        justify-content: flex-start;
    }
}

/* =====================================================
   POST GRID – Magazine Layout
   ===================================================== */

/* Grid Header */
.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-red);
}

.grid-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.grid-title i {
    color: var(--accent-red);
    margin-right: 10px;
}

.grid-count {
    font-size: 14px;
    color: #888;
    background: #f8f9fa;
    padding: 4px 14px;
    border-radius: 20px;
}

/* Post Grid - 3 Columns */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Post Card */
.post-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ececec;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

/* Featured Image */
.post-card-thumb {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.post-card-thumb a {
    display: block;
}

.post-card-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-card-thumb img {
    transform: scale(1.04);
}

.post-card-placeholder {
    width: 100%;
    height: 200px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 40px;
}

/* Card Content */
.post-card-content {
    padding: 20px 22px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Category Badge */
.post-card-category {
    display: inline-block;
    background: var(--accent-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    align-self: flex-start;
}

/* Post Title */
.post-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.post-card-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card-title a:hover {
    color: var(--accent-red);
}

/* Meta: Author + Date */
.post-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.post-card-meta i {
    margin-right: 4px;
    color: var(--accent-red);
    width: 14px;
}

.post-card-author,
.post-card-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Excerpt */
.post-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex: 1;
}

/* Read More Button */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-red);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #c62828;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination-wrapper {
    margin-top: 35px;
    text-align: center;
}

.pagination-wrapper .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-wrapper .page-numbers.current {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
}

.pagination-wrapper .page-numbers:hover:not(.current) {
    background: #e9ecef;
}

.pagination-wrapper .page-numbers i {
    font-size: 12px;
}

/* =====================================================
   NO POSTS MESSAGE
   ===================================================== */
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #888;
}

.no-posts i {
    font-size: 40px;
    color: #dee2e6;
    display: block;
    margin-bottom: 15px;
}

.no-posts p {
    font-size: 16px;
    margin: 0;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* Tablet: 2 Columns */
@media (max-width: 992px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .post-card-thumb img,
    .post-card-placeholder {
        height: 180px;
    }
}

/* Mobile: 1 Column */
@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-card-thumb img,
    .post-card-placeholder {
        height: 200px;
    }
    
    .post-card-title {
        font-size: 16px;
    }
    
    .grid-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .grid-title {
        font-size: 18px;
    }
    
    .post-card-meta {
        font-size: 12px;
        gap: 10px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .post-card-content {
        padding: 16px 18px 18px 18px;
    }
    
    .post-card-thumb img,
    .post-card-placeholder {
        height: 160px;
    }
    
    .post-card-excerpt {
        font-size: 13px;
    }
}

/* =====================================================
   HOME PAGE - MAGAZINE LAYOUT
   ===================================================== */

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent-red);
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.section-title i {
    margin-right: 10px;
    color: var(--accent-red);
}

.view-all {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-red);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: #c62828;
}

.view-all i {
    transition: transform 0.3s ease;
}

.view-all:hover i {
    transform: translateX(4px);
}

/* Latest News Section */
.latest-news-section {
    margin: 30px 0 40px 0;
}

/* =====================================================
   CATEGORY SECTIONS
   ===================================================== */
.category-section {
    margin: 35px 0;
    padding-top: 15px;
    border-top: 3px solid #e9ecef;
}

.category-section .section-header {
    border-bottom-color: #e9ecef;
}

.category-posts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* Category Featured Post */
.category-featured {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ececec;
    transition: all 0.3s ease;
}

.category-featured:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.category-featured-thumb img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.category-featured-thumb .post-card-placeholder {
    height: 280px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 40px;
}

.category-featured-content {
    padding: 20px 22px 22px 22px;
}

.category-featured-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 8px 0 10px 0;
    line-height: 1.3;
}

.category-featured-content h3 a {
    color: #222;
    text-decoration: none;
}

.category-featured-content h3 a:hover {
    color: var(--accent-red);
}

.category-featured-content .post-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.category-featured-content .post-card-meta i {
    color: var(--accent-red);
    margin-right: 4px;
}

.category-featured-content .post-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Category Small Posts */
.category-small {
    display: flex;
    gap: 14px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.category-small:hover {
    background: #e9ecef;
}

.category-small-thumb {
    flex-shrink: 0;
}

.category-small-thumb img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}

.category-small-content {
    flex: 1;
}

.category-small-content .post-card-category {
    font-size: 9px;
    padding: 2px 8px;
    margin-bottom: 4px;
}

.category-small-content h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 4px 0 6px 0;
    line-height: 1.3;
}

.category-small-content h4 a {
    color: #222;
    text-decoration: none;
}

.category-small-content h4 a:hover {
    color: var(--accent-red);
}

.category-small-content .post-card-meta {
    font-size: 12px;
    color: #888;
}

.category-small-content .post-card-meta i {
    color: var(--accent-red);
    margin-right: 4px;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin: 20px 0 40px 0;
}

.hero-main {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #1a1a1a;
}

.hero-main img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.hero-placeholder {
    height: 420px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 60px;
}

.hero-main .hero-post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 35px 30px 30px 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #fff;
}

.hero-main .hero-category {
    display: inline-block;
    background: var(--accent-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.hero-main h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 8px 0 12px 0;
    line-height: 1.2;
}

.hero-main h2 a {
    color: #fff;
    text-decoration: none;
}

.hero-main h2 a:hover {
    color: var(--accent-red);
}

.hero-main .hero-meta {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 10px;
}

.hero-main .hero-meta i {
    margin-right: 5px;
}

.hero-main .hero-excerpt {
    font-size: 15px;
    color: #ddd;
    line-height: 1.6;
    margin: 0;
}

/* Hero Secondary */
.hero-secondary {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-secondary-item {
    display: flex;
    gap: 12px;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.hero-secondary-item:hover {
    background: #e9ecef;
}

.hero-secondary-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.hero-secondary-placeholder {
    width: 100px;
    height: 100px;
    background: #dee2e6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 30px;
    flex-shrink: 0;
}

.hero-secondary-content {
    flex: 1;
}

.hero-secondary-category {
    display: inline-block;
    background: var(--accent-red);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.hero-secondary-content h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 4px 0 6px 0;
    line-height: 1.3;
}

.hero-secondary-content h3 a {
    color: #222;
    text-decoration: none;
}

.hero-secondary-content h3 a:hover {
    color: var(--accent-red);
}

.hero-secondary-meta {
    font-size: 12px;
    color: #888;
    margin: 0;
}

.hero-secondary-meta i {
    margin-right: 4px;
}

/* =====================================================
   RESPONSIVE OVERRIDES FOR HERO
   ===================================================== */
@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
    }
    
    .hero-main img,
    .hero-placeholder {
        height: 300px;
    }
    
    .category-posts {
        grid-template-columns: 1fr;
    }
    
    .category-featured-thumb img,
    .category-featured-thumb .post-card-placeholder {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .hero-main img,
    .hero-placeholder {
        height: 220px;
    }
    
    .hero-main .hero-post-content {
        padding: 20px 18px 18px 18px;
    }
    
    .hero-main h2 {
        font-size: 20px;
    }
    
    .hero-main .hero-excerpt {
        display: none;
    }
    
    .hero-secondary-item img,
    .hero-secondary-placeholder {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .hero-secondary-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-secondary-item img,
    .hero-secondary-placeholder {
        width: 100%;
        height: 150px;
    }
}

/* =====================================================
   MOBILE LOGO SIZE ADJUSTMENT
   ===================================================== */
@media (max-width: 768px) {
    .site-logo-img {
        max-height: 60px;
    }
}

/* Ensure header stays aligned on all screens */
.header-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.header-branding {
    flex: 0 0 auto;
}

.header-nav-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-tools {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Mobile responsiveness for nav */
@media (max-width: 900px) {
    .header-top .container {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .header-nav-area {
        flex: 1 1 100%;
        order: 3;
        justify-content: flex-start;
    }
}

/* =====================================================
   CATEGORY PAGE: Main + Sidebar layout
   ===================================================== */
.category-content-area {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px 0;
}

.category-main {
    flex: 2 1 65%;
    min-width: 0;
}

.category-sidebar {
    flex: 1 1 30%;
    min-width: 250px;
}

/* Responsive for category page */
@media (max-width: 768px) {
    .category-content-area {
        flex-direction: column;
    }
    .category-main,
    .category-sidebar {
        flex: 1 1 100%;
    }
}

/* =====================================================
   CATEGORY POST GRID (used inside category-main)
   ===================================================== */
.category-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.category-post {
    background: #fff;
    padding: 15px;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.category-post:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.category-post .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.category-post h2 {
    font-size: 1.2rem;
    margin: 10px 0 5px;
}

.category-post h2 a {
    color: #222;
    text-decoration: none;
}

.category-post h2 a:hover {
    color: var(--accent-red);
}

.category-post .post-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 8px;
}

.category-post .post-meta i {
    color: var(--accent-red);
    margin-right: 4px;
}

.category-post .post-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}