/*
Theme Name: Before Its News
Theme URI: https://thebeforeitsnews.com
Author: Before Its News
Author URI: https://thebeforeitsnews.com
Description: Custom theme for The Before Its News - Breaking News, Tech, Business & Gadgets Reviews
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: beforeitsnews
Tags: blog, news, black-and-white, custom-menu, featured-images
*/

/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a1a;
    background-color: #ffffff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #555;
}

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: #000;
}

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

p {
    margin-bottom: 1rem;
    color: #333;
}

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

/* ========== HEADER ========== */
.site-header {
    background-color: #fff;
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.header-top {
    position: relative;
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.site-logo {
    flex: 0 0 auto;
    text-align: center;
}

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

.header-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
}

.header-socials a {
    color: #000;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.header-socials a:hover {
    color: #555;
}

/* Search */
.search-toggle {
    background: none;
    border: none;
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
}

.search-toggle:hover {
    color: #555;
}

.header-search-form {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    border-bottom: 1px solid #eee;
    border-top: 3px solid #000;
    display: none;
    z-index: 1010;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.header-search-form.active {
    display: block;
    animation: fadeInDown 0.25s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-search-form form {
    max-width: 700px;
    margin: 0 auto;
}

.header-search-form input[type="search"] {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    display: block;
    padding: 14px 20px;
    border: 2px solid #ddd;
    background: #fff;
    color: #000;
    font-size: 1rem;
    outline: none;
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.header-search-form input[type="search"]:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

.header-search-form input[type="search"]::placeholder {
    color: #999;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #000;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #000;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Main Navigation - Secondary Bar */
.main-navigation {
    background: #fff;
    border-top: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 999;
}

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

.main-navigation .nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.main-navigation .nav-menu > li {
    position: relative;
}

.main-navigation .nav-menu > li > a {
    color: #000;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 14px 16px;
    display: block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-navigation .nav-menu > li > a:hover,
.main-navigation .nav-menu > li.current-menu-item > a,
.main-navigation .nav-menu > li.current-menu-parent > a {
    color: #555;
}

/* Dropdown */
.main-navigation .nav-menu > li > .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 340px;
    max-width: 440px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 999;
}

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

.main-navigation .sub-menu li a {
    color: #333;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 8px 14px;
    display: block;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.4;
    white-space: normal;
}

.main-navigation .sub-menu li a:hover {
    background-color: #f9f9f9;
    color: #000;
}

/* Menu item underline effect matching user's menu */
.main-navigation .nav-menu > li > a u.mk,
.footer-menu li a u.mk {
    display: none;
}

/* Dropdown indicator for items with children */
.main-navigation .nav-menu > li.menu-item-has-children > a::after {
    content: "+";
    margin-left: 6px;
    font-size: 0.7rem;
    font-weight: 400;
}

/* Right-align dropdown for last menu items so they don't go off-screen */
.main-navigation .nav-menu > li:nth-last-child(-n+2) > .sub-menu {
    left: auto;
    right: 0;
}

/* ========== HERO / FEATURED SECTION ========== */
.hero-section {
    padding: 40px 0;
    background: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 70vh;
    max-height: 600px;
    min-height: 420px;
}

.hero-main {
    grid-row: span 1;
    height: 100%;
}

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.hero-card .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0.7;
}

.hero-card:hover .card-image {
    transform: scale(1.05);
    opacity: 0.5;
}

.hero-main .hero-card {
    height: 100%;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.hero-side .hero-card {
    flex: 1 1 0;
    min-height: 0;
    height: auto;
}

.hero-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    z-index: 2;
}

.hero-card .card-category {
    display: inline-block;
    background: #fff;
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.hero-card .card-category:hover {
    background: #ddd;
}

.hero-card .card-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.hero-main .card-title {
    font-size: 1.6rem;
}

.hero-card .card-title a {
    color: #fff;
}

.hero-card .card-title a:hover {
    color: #ddd;
}

.hero-card .card-meta {
    color: #aaa;
    font-size: 0.8rem;
}

.hero-card .card-meta a {
    color: #ccc;
}

.hero-card .read-more-btn {
    display: inline-block;
    margin-top: 12px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #fff;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.hero-card .read-more-btn:hover {
    background: #fff;
    color: #000;
}

/* ========== ABOUT SECTION (Homepage) ========== */
.about-section {
    padding: 80px 0;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.about-section .section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #000;
}

.about-section .about-text {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
    max-width: 800px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.about-card {
    padding: 30px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #000;
}

.about-card p {
    color: #555;
    line-height: 1.7;
}

.about-card ul {
    margin-top: 10px;
}

.about-card ul li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: #555;
}

.about-card ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000;
    font-weight: bold;
}

/* ========== FAQ SECTION ========== */
.faq-section {
    padding: 80px 0;
    background: #fff;
}

.faq-section .section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 40px;
    text-align: center;
    color: #000;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.faq-question {
    font-size: 1.05rem;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 10px;
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: "−";
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: #555;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-top: 15px;
}

/* ========== CATEGORY SECTIONS (Homepage) ========== */
.category-section {
    padding: 60px 0;
    border-bottom: 1px solid #f0f0f0;
}

.category-section:nth-child(even) {
    background: #fafafa;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #000;
}

.section-header .section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #000;
    text-transform: capitalize;
}

.section-header .section-title a {
    color: #000;
}

.section-header .section-title a:hover {
    color: #444;
}

.section-header .view-all {
    font-size: 0.85rem;
    font-weight: 600;
    color: #000;
    border: 1px solid #000;
    padding: 6px 16px;
    transition: all 0.3s ease;
}

.section-header .view-all:hover {
    background: #000;
    color: #fff;
}

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

.posts-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.posts-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.post-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.post-card .card-thumb {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

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

.post-card .card-thumb .card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #000;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

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

.post-card .card-content .card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #000;
}

.post-card .card-content .card-title a {
    color: #000;
}

.post-card .card-content .card-title a:hover {
    color: #555;
}

.post-card .card-meta {
    font-size: 0.8rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-card .card-meta a {
    color: #666;
}

.post-card .card-meta a:hover {
    color: #000;
}

/* First card in grid = large featured card */
.post-card-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.post-card-featured .card-thumb {
    height: 100%;
    min-height: 425px;
}

.post-card-featured .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    z-index: 2;
}

.post-card-featured .card-content .card-title {
    color: #fff;
    font-size: 1.4rem;
}

.post-card-featured .card-content .card-title a {
    color: #fff;
}

.post-card-featured .card-meta {
    color: #bbb;
}

.post-card-featured {
    position: relative;
}

/* Post List Style */
.post-list-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

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

.post-list-item .list-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
}

.post-list-item .list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-list-item:hover .list-thumb img {
    transform: scale(1.05);
}

.post-list-item .list-content .list-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    color: #000;
}

.post-list-item .list-content .list-title a:hover {
    color: #555;
}

.post-list-item .list-meta {
    font-size: 0.8rem;
    color: #999;
}

/* ========== LATEST POSTS SECTION (Homepage) ========== */
.latest-section {
    padding: 60px 0;
    background: #fff;
}

.latest-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.latest-posts .post-card {
    margin-bottom: 25px;
}

/* ========== SIDEBAR ========== */
.sidebar .widget {
    margin-bottom: 30px;
    padding: 25px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
}

.sidebar .widget-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar .popular-post {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.sidebar .popular-post:last-child {
    border-bottom: none;
}

.sidebar .popular-post .pop-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}

.sidebar .popular-post .pop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar .popular-post .pop-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    color: #000;
}

.sidebar .popular-post .pop-title a:hover {
    color: #555;
}

.sidebar .popular-post .pop-date {
    font-size: 0.75rem;
    color: #999;
    margin-top: 4px;
}

/* ========== SINGLE POST ========== */
.single-post-header {
    padding: 40px 0 20px;
    background: #fff;
}

.single-post-header .breadcrumb {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 20px;
}

.single-post-header .breadcrumb a {
    color: #666;
}

.single-post-header .breadcrumb a:hover {
    color: #000;
}

.single-post-header .breadcrumb .sep {
    margin: 0 8px;
    color: #ccc;
}

.single-post-header .post-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    color: #000;
    margin-bottom: 20px;
}

.single-post-header .post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    color: #777;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

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

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

.single-post-header .post-meta a {
    color: #000;
    font-weight: 600;
}

.single-featured-image {
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
}

.single-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Table of Contents */
.toc-container {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.toc-container .toc-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000;
}

.toc-container ol {
    counter-reset: toc-counter;
    padding-left: 0;
}

.toc-container ol li {
    counter-increment: toc-counter;
    padding: 6px 0;
    padding-left: 25px;
    position: relative;
    font-size: 0.9rem;
    color: #333;
}

.toc-container ol li::before {
    content: counter(toc-counter) ".";
    position: absolute;
    left: 0;
    font-weight: 600;
    color: #000;
}

.toc-container ol li a {
    color: #333;
}

.toc-container ol li a:hover {
    color: #000;
}

/* Single Post Content */
.single-content-area {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    padding-bottom: 60px;
}

.single-content {
    max-width: 100%;
}

.single-content h2 {
    font-size: 1.6rem;
    margin: 35px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #000;
}

.single-content h3 {
    font-size: 1.3rem;
    margin: 25px 0 12px;
    color: #000;
}

.single-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.single-content ul,
.single-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.single-content ul li,
.single-content ol li {
    padding: 5px 0;
    font-size: 1rem;
    color: #444;
    line-height: 1.7;
    list-style: disc;
}

.single-content ol li {
    list-style: decimal;
}

.single-content blockquote {
    border-left: 4px solid #000;
    padding: 20px 25px;
    margin: 25px 0;
    background: #f9f9f9;
    font-style: italic;
    color: #555;
}

.single-content img {
    border-radius: 8px;
    margin: 20px 0;
}

.single-content a {
    color: #000;
    font-weight: 600;
    border-bottom: 1px solid #000;
}

.single-content a:hover {
    color: #555;
    border-color: #555;
}

/* Don't Miss / Related Posts */
.related-posts {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 3px solid #000;
}

.related-posts .section-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #000;
}

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

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    margin: 40px 0;
    align-items: flex-start;
}

.author-box .author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.author-box .author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
}

.author-box .author-bio {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.post-navigation .nav-box {
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.post-navigation .nav-box:hover {
    background: #f0f0f0;
}

.post-navigation .nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 8px;
    font-weight: 600;
}

.post-navigation .nav-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #000;
    line-height: 1.4;
}

.post-navigation .nav-next {
    text-align: right;
}

/* ========== ARCHIVE / CATEGORY PAGE ========== */
.archive-header {
    position: relative;
    padding: 160px 0 140px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.archive-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.archive-header .container {
    position: relative;
    z-index: 2;
}

.archive-header .archive-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.archive-header .archive-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
    margin: 0 auto;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
    line-height: 1.6;
}

.archive-content {
    padding: 50px 0;
}

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

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.pagination .current {
    background: #000;
    color: #fff;
    border-color: #000;
}

.pagination .next,
.pagination .prev {
    width: auto;
    padding: 0 16px;
    font-size: 0.85rem;
}

/* ========== PAGE TEMPLATE ========== */
.page-header-section {
    position: relative;
    padding: 160px 0 140px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.page-header-section .container {
    position: relative;
    z-index: 2;
}

.page-header-section .page-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.page-content-area {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

.page-content-area p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.page-content-area h2 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: #000;
}

.page-content-area h3 {
    font-size: 1.25rem;
    margin: 25px 0 12px;
    color: #000;
}

.page-content-area h4 {
    font-size: 1.1rem;
    margin: 20px 0 10px;
    color: #000;
}

.page-content-area a {
    color: #000;
    text-decoration: underline;
    font-weight: 600;
}

.page-content-area a:hover {
    color: #555;
}

.page-content-area ul li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: #444;
}

.page-content-area ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000;
}

/* ========== SEARCH RESULTS ========== */
.search-results-header {
    padding: 50px 0;
    background: #000;
    text-align: center;
}

.search-results-header h1 {
    color: #fff;
    font-size: 2rem;
}

.search-results-header .search-query {
    color: #ccc;
    font-weight: 400;
}

/* ========== 404 PAGE ========== */
.error-404-section {
    padding: 100px 0;
    text-align: center;
}

.error-404-section .error-code {
    font-size: 8rem;
    font-weight: 900;
    color: #000;
    line-height: 1;
    margin-bottom: 20px;
}

.error-404-section .error-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #000;
}

.error-404-section .error-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.error-404-section .back-home {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.error-404-section .back-home:hover {
    background: #333;
    color: #fff;
}

/* ========== LATEST & POPULAR SECTION ========== */
.latest-popular-section {
    padding: 50px 0;
    background: #f9f9f9;
}

.latest-popular-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.latest-posts-col .section-header,
.popular-posts-col .section-header {
    margin-bottom: 25px;
    border-bottom: 2px solid #000;
    padding-bottom: 12px;
}

.latest-posts-col .section-title,
.popular-posts-col .section-title {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000;
}

.latest-post-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

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

.latest-thumb {
    flex: 0 0 100px;
    height: 70px;
    overflow: hidden;
    border-radius: 4px;
}

.latest-thumb img,
.latest-thumb .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-content {
    flex: 1;
    min-width: 0;
}

.latest-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #000;
    background: #eee;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.latest-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
}

.latest-title a {
    color: #000;
    transition: color 0.3s ease;
}

.latest-title a:hover {
    color: #555;
}

.latest-meta {
    font-size: 0.8rem;
    color: #888;
}

/* Popular Posts */
.popular-post-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

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

.pop-number {
    flex: 0 0 32px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ddd;
    line-height: 1;
    text-align: center;
}

.popular-content {
    flex: 1;
    min-width: 0;
}

.popular-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.popular-title a {
    color: #000;
    transition: color 0.3s ease;
}

.popular-title a:hover {
    color: #555;
}

.popular-meta {
    font-size: 0.75rem;
    color: #888;
}

/* ========== FOOTER ========== */
.site-footer {
    background: #fff;
    color: #333;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 20px;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-socials a {
    color: #000;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-socials a:hover {
    color: #555;
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    max-height: 45px;
    width: auto;
}

.footer-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    max-width: 600px;
    padding: 0 10px;
}

.footer-menu li a {
    color: #555;
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    display: inline-block;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.footer-menu li a:hover {
    color: #000;
}

.footer-copyright {
    font-size: 0.6rem;
    color: #777;
    line-height: 1.5;
    text-align: right;
}

.footer-copyright strong {
    color: #000;
    font-weight: 700;
}

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

    .hero-main {
        grid-row: span 1;
        height: auto;
    }

    .hero-main .hero-card {
        height: 350px;
    }

    .hero-side {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 15px;
        height: auto;
    }

    .hero-side .hero-card {
        height: 200px;
        min-height: 200px;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .single-content-area {
        grid-template-columns: 1fr;
    }

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

    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-posts .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .header-socials {
        display: none;
    }

    .main-navigation {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 999;
        border-top: 1px solid #eee;
    }

    .main-navigation.active {
        left: 0;
    }

    .main-navigation .nav-menu {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation .nav-menu > li > a {
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
        color: #000;
    }

    .main-navigation .nav-menu > li > .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-top: none;
        background: #f9f9f9;
        box-shadow: none;
        border: none;
    }

    .main-navigation .sub-menu li a {
        border-bottom: 1px solid #eee;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }

    .hero-side {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hero-side .hero-card {
        height: 180px;
        min-height: 180px;
    }

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

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

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

    .post-card-featured {
        grid-column: span 1;
        grid-row: span 1;
    }

    .post-card-featured .card-thumb {
        min-height: 250px;
    }

    .single-post-header .post-title {
        font-size: 1.6rem;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

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

    .footer-main {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .footer-copyright {
        text-align: center;
        font-size: 0.6rem;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-menu {
        max-width: 100%;
        padding: 0;
    }

    .archive-header .archive-title {
        font-size: 1.8rem;
    }

    .page-header-section .page-title {
        font-size: 1.8rem;
    }

    .latest-popular-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .latest-thumb {
        flex: 0 0 80px;
        height: 60px;
    }

    .latest-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 0 15px;
    }

    .container {
        padding: 0 15px;
    }

    .hero-main .hero-card {
        height: 250px;
        min-height: 250px;
    }

    .hero-card .card-overlay {
        padding: 20px;
    }

    .hero-main .card-title {
        font-size: 1.2rem;
    }

    .post-card .card-thumb {
        height: 180px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .single-post-header .post-title {
        font-size: 1.4rem;
    }

    .error-404-section .error-code {
        font-size: 5rem;
    }
}

/* ========== UTILITY CLASSES ========== */
.text-center { text-align: center; }
.text-white { color: #fff; }
.bg-black { background-color: #000; }
.bg-white { background-color: #fff; }
.bg-light { background-color: #f9f9f9; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.pt-40 { padding-top: 40px; }
.pb-40 { padding-bottom: 40px; }

/* Placeholder image styling */
.no-thumbnail {
    background: linear-gradient(135deg, #1a1a1a, #333);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
