/*
Theme Name: صدى الخليج - Sada Al Khaleej
Theme URI: https://example.com/sada-al-khaleej
Author: Developer
Author URI: https://example.com
Description: قالب ووردبريس عربي عصري للمواقع الإخبارية. يدعم اتجاه RTL بالكامل ويتضمن أقسام متعددة للصفحة الرئيسية مع تصميم متجاوب وسهل التخصيص.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sada-theme
Tags: rtl-language-support, right-to-left, news, blog, custom-logo, custom-menu, featured-images, theme-options, translation-ready
*/

/* General Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    background-color: #fdfdfd;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Aspect ratio containers for CLS prevention */
.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.aspect-ratio-1-1 {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

#page {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
}

#content {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
}

/* Header Styles */
header {
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0 5px;
}
.top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid black; 
    margin-bottom: 20px;
    padding-top: 20px;
}
.logo {
    font-family: 'Cairo', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
}
.logo .logo-alt { color: #d9534f; }
.logo a { text-decoration: none; color: inherit; }
.logo img,
.logo .site-logo-img,
.logo .custom-logo {
    max-height: 80px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Navigation & Search Bar - Desktop */
.nav-container {
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid black; 
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 34px; 
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 50px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 1rem;
    padding: 5px 10px;
    transition: color 0.2s ease-in-out;
}

nav a:hover {
    color: #d9534f;
}

.nav-search-icon {
    position: absolute;
    left: 10px;
    font-size: 1.3rem;
    color: #333;
    cursor: pointer;
    transition: color 0.2s, opacity 0.3s, visibility 0.3s;
}

.nav-search-icon:hover {
    color: #d9534f;
}

/* Logo switching for dark mode */
.logo .logo-light,
.mobile-menu-logo .logo-light {
    display: block;
}
.logo .logo-dark,
.mobile-menu-logo .logo-dark {
    display: none;
}

[data-theme="dark"] .logo .logo-light,
[data-theme="dark"] .mobile-menu-logo .logo-light {
    display: none;
}
[data-theme="dark"] .logo .logo-dark,
[data-theme="dark"] .mobile-menu-logo .logo-dark {
    display: block;
}

.search-bar-container {
    position: absolute;
    width: 250px;
    left: 10px;
    visibility: hidden;
    opacity: 0;
    background-color: #f0f0f0;
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 2px;
    transition: opacity 0.3s, visibility 0.3s;
    margin: 0;
    border: none;
}

.search-bar-container.show-search {
    visibility: visible;
    opacity: 1;
}

.nav-search-icon.hide-icon {
    visibility: hidden;
    opacity: 0;
}

.search-bar-container input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 4px 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    outline: none;
}

.search-bar-container .search-btn,
.search-bar-container .close-btn {
    background-color: #d9534f;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 2px;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Main Content Styles */
main {
    max-width: 1500px;
    margin: 0 auto 30px;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    padding: 0 5px;
}

/* Modern Grid Section */
.modern-grid-section {
    margin-bottom: 40px;
}
.modern-grid-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}
.modern-grid-left-col {
    display: grid;
    grid-template-rows: 2fr 1fr;
    gap: 15px;
}
.modern-grid-right-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.bottom-row-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.modern-card {
    position: relative;
    width: 100%;
    height: 100%;
    color: #fff;
    overflow: hidden;
    min-height: 250px;
    display: block;
    text-decoration: none;
    cursor: pointer;
}
.modern-card-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.3s ease;
}
.modern-card:hover .modern-card-bg {
    transform: scale(1.05);
}
.modern-card-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 10%, rgba(0,0,0,0) 70%);
}
.modern-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #d9534f;
    color: #fff;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 700;
}
.modern-card-category a {
    color: #fff;
    text-decoration: none;
}
.modern-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}
.modern-card-title a { color: #fff; text-decoration: none; }
.card-small .modern-card-title { font-size: 1.1rem; }

/* Final Unified Section Header */
.final-section-header {
    display: flex;
    justify-content: flex-start;
    margin-top: 40px;
    margin-bottom: 15px; 
}
.final-title-wrapper {
    display: flex;
    align-items: center;
}
.final-title-wrapper h2 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 900;
    padding-right: 15px;
}

/* H1 for Archive/Category Pages - SEO Optimized */
.final-title-wrapper h1,
.final-title-wrapper h1.archive-page-title {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 900;
    padding-right: 15px;
    color: #1a1a1a;
}

.page-main-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.page-main-header .final-title-wrapper {
    width: 100%;
}

.category-description {
    margin: 10px 0 0 0;
    padding: 0 20px;
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 800px;
}

.final-title-wrapper h2 a {
    color: #1a1a1a;
    text-decoration: none;
}
.final-title-wrapper h2 a:hover {
    color: #d9534f;
}
.final-title-wrapper .vertical-line {
    width: 5px;
    height: 40px; 
    background-color: #d9534f;
}

/* Sports Section */
.sports-grid-section {
    margin-bottom: 40px;
}
.sports-grid-container-final {
    display: grid;
    grid-template-columns: 1.3fr 1fr; 
    gap: 15px;
}
.sports-grid-right-final {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
}
.sports-card {
    position: relative;
    color: #fff;
    overflow: hidden;
    min-height: 250px;
    display: block;
    text-decoration: none;
    cursor: pointer;
}
.sports-card-large {
    min-height: calc(500px + 15px);
}
.sports-card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 1;
    transition: transform 0.3s ease;
}
.sports-card:hover .sports-card-bg { transform: scale(1.05); }
.sports-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 20%, rgba(0,0,0,0) 100%);
}
.sports-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
}
.sports-card-title a { color: #fff; text-decoration: none; }
.sports-card-large .sports-card-title {
    font-size: 1.8rem;
}

/* Health Section */
.health-section {
    margin-bottom: 40px;
}
.health-grid-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}
.health-card-top {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.health-card-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.health-card-top-img {
    width: 250px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}
.health-card-top-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.6;
    color: #333;
    margin: 0;
}
.health-card-top-title a { color: #333; text-decoration: none; }
.health-grid-bottom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.health-card-bottom {
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.health-card-bottom:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.health-card-bottom-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.health-card-bottom-content {
    padding: 15px;
}
.health-card-bottom-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.7;
    margin: 0;
    color: #333;
}
.health-card-bottom-title a { color: #333; text-decoration: none; }

/* Technology Section */
.tech-section {
    margin-bottom: 40px;
}
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.tech-card {
    background-color: #f0f0f0;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.tech-card:hover {
    transform: translateY(-5px);
}
.tech-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.tech-card-content {
    padding: 20px;
}
.tech-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.7;
    margin: 0;
}
.tech-card-title a { color: #333; text-decoration: none; }

/* White Card Section */
.white-card-section {
        margin-bottom: 40px;
}
.white-card-grid-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
    .white-card-grid-bottom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.white-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.white-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.white-card-img-large {
    width: 100%;
    height: 280px;
    object-fit: cover;
}
.white-card-img-small {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.white-card-content {
    padding: 20px;
}
.white-card-title-large {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.7;
    margin: 0;
}
.white-card-title-large a { color: #333; text-decoration: none; }
.white-card-title-small {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
}
.white-card-title-small a { color: #333; text-decoration: none; }

/* Footer Section */
.site-footer {
    background-color: #000;
    color: #fff;
    padding: 30px 0;
    margin-top: auto;
    width: 100%;
}
.footer-content-wrapper {
    max-width: 1500px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 5px;
}
.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-logo-container .footer-logo-text {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
}
.footer-logo-container .logo-alt {
    color: #d9534f;
}
.footer-logo-container img,
.footer-logo-container .footer-logo-img {
    max-height: 70px;
    width: auto;
    height: auto;
    display: block;
}

.footer-social-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-social-wrapper h5 {
    display: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 25px;
}
.footer-social-icons a {
    color: #fff;
    font-size: 1.4rem;
    transition: color 0.2s;
}
.footer-social-icons a:hover {
    color: #ccc;
}
.footer-separator {
    border: none;
    height: 1px;
    background-color: #333;
    margin: 0;
}
.footer-bottom-row {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 25px;
    gap: 30px;
    flex-wrap: wrap;
}
.footer-legal-links {
    text-align: center;
    flex-grow: 1;
}
.footer-nav-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}
.footer-nav-links li {
    list-style: none;
    display: inline-block;
}
.footer-nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
}
.footer-nav-links a:hover {
    text-decoration: underline;
}
.copyright-text {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin: 0;
}

/* --- Category Page Styles --- */
.category .final-section-header,
.archive .final-section-header:first-child {
    margin-top: 0;
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.category-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.category-card-secondary {
        background-color: #f7f7f7;
}

.category-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.category-card-content {
    padding: 20px;
    flex-grow: 1;
}

.category-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
}

.category-card-main {
    background-color: transparent;
}

.category-card-main .category-card-content {
    padding: 25px 30px;
    background-color: #f7f7f7;
    min-height: 80px;
}

.category-card-main .category-card-title {
    font-size: 1.4rem;
    line-height: 1.5;
    color: #333;
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .category-card-main {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: auto;
    }
    .category-card-main {
        grid-column: span 2;
        grid-row: span 2;
    }
    .category-card-main-inner {
        display: grid;
        grid-template-rows: 1fr auto;
        height: 100%;
    }
    .category-card-main-img-container {
        overflow: hidden;
    }
    .category-card-main-img-container .category-card-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        aspect-ratio: auto;
    }
    .category-card-main .category-card-content {
        padding: 8px;
        background-color: #f7f7f7;
    }
    .category-card-main .category-card-title {
        color: #333;
    }
    .category-card-secondary {
        display: flex;
        flex-direction: column;
    }
    .category-card-secondary .category-card-img {
        aspect-ratio: 4 / 3;
        height: auto;
    }
    .category-card-secondary .category-card-content {
        flex-grow: 0;
    }
}

/* Category Bottom Grid */
.category-section {
    margin-bottom: 30px;
}

.category-bottom-grid {
    margin-top: 30px;
}

.bottom-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bottom-post-card {
    background-color: #fff;
    border: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bottom-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.bottom-post-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.bottom-post-content {
    padding: 15px;
}

.bottom-post-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.6;
    margin: 0 0 10px 0;
    color: #333;
}

.bottom-post-date {
    font-size: 0.85rem;
    color: #888;
}

.bottom-post-date i {
    margin-left: 5px;
}

@media (max-width: 1024px) {
    .bottom-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .bottom-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Single Post Styles --- */
.page-container {
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0 5px;
    box-sizing: border-box;
}

.article-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.main-content-col {
    width: 100%;
}

.article-header {
    margin-bottom: 25px;
}

.breadcrumbs {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #777;
    font-weight: 700;
    display: flex;
    justify-content: flex-start;
}
.breadcrumbs a {
    color: #555; text-decoration: none; transition: color 0.2s;
}
.breadcrumbs a:hover { color: #d9534f; }
.breadcrumbs span { margin: 0 8px; }

.article-title {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.6;
    margin: 0 0 15px 0;
    text-align: right;
}

.article-meta {
    display: flex;
    justify-content: flex-start;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 10px 20px;
    border-radius: 8px;
    gap: 25px;
    align-items: center;
    font-size: 0.9rem;
    color: #555;
    font-weight: 700;
    margin-top: 25px; 
    margin-bottom: 25px;
}
.article-meta span { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.article-meta span a {
    color: #333;
    text-decoration: none;
}
.article-meta span a:hover {
    color: #d9534f;
}
.article-meta i {
    color: #d9534f;
    font-size: 1.1rem;
}

.meta-share-container {
    position: relative;
    margin-right: auto;
}
.meta-share-button {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.2s;
}
.meta-share-button:hover,
.meta-share-button:hover i {
    color: #333;
}
.meta-share-dropdown {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 140%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background-color: #fff;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    z-index: 10;
    display: flex;
    gap: 20px;
    transition: all 0.2s ease-in-out;
}
.meta-share-dropdown.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.meta-share-dropdown a {
    text-decoration: none;
    transition: transform 0.2s;
    font-size: 2.2rem;
    line-height: 1;
}
.meta-share-dropdown a:hover {
    transform: scale(1.1);
}
.meta-share-dropdown::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}
.meta-share-dropdown .fa-whatsapp { color: #25D366; }
.meta-share-dropdown .fa-x-twitter { color: #1a1a1a; }
.meta-share-dropdown .fa-facebook-f { color: #1877F2; }
.meta-share-dropdown .fa-telegram { color: #2AABEE; }

.featured-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    max-height: none !important;
}

.article-body p,
.entry-content p {
    font-size: 1.2rem; line-height: 1.8; margin-bottom: 25px;
}

/* WordPress Block Editor Images - NOT featured image */
.entry-content .wp-block-image,
.article-body .wp-block-image {
    margin: 25px 0;
    max-width: 100%;
}

.entry-content .wp-block-image img,
.article-body .wp-block-image img,
.entry-content > p > img,
.article-body > p > img,
.entry-content img[class*="wp-image"],
.article-body img[class*="wp-image"],
.article-body img:not(.featured-image),
.entry-content img:not(.featured-image) {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 25px auto;
    border-radius: 8px;
}

.article-body figure,
.entry-content figure,
.entry-content .wp-block-image figure {
    margin: 25px 0;
    max-width: 100%;
}

.article-body figure img,
.entry-content figure img {
    margin: 0 auto;
}

.article-body figcaption,
.entry-content figcaption,
.wp-block-image figcaption {
    font-size: 0.9rem;
    color: #777;
    text-align: center;
    margin-top: 10px;
}

.article-tags {
    margin-top: 20px; padding-bottom: 20px;
}
.tags-list { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tag-label {
    color: #555;
    font-size: 1.1rem;
}
.tag-label i {
    color: #555;
}
.tags-list a,
.tag-link {
    background-color: #f0f0f0; 
    color: #555 !important; 
    padding: 6px 15px; 
    border-radius: 5px;
    text-decoration: none; 
    font-size: 0.9rem; 
    font-weight: 700; 
    transition: background-color 0.2s;
    display: inline-block;
}
.tags-list a:hover,
.tag-link:hover { background-color: #ddd; }

/* Sidebar styles */
.sidebar-col .final-section-header { margin-top: 0; padding-top: 0; border-top: none; }
.sidebar-news-list { display: flex; flex-direction: column; gap: 20px; }
.sidebar-news-item {
    display: grid; grid-template-columns: 1fr 100px; gap: 15px; align-items: center; text-decoration: none; color: #333; background-color: #f7f7f7; padding: 10px;
}
.sidebar-news-item img { width: 100%; height: 80px; object-fit: cover; }
.sidebar-news-item h4 { font-weight: 700; font-size: 1rem; line-height: 1.6; margin: 0; transition: color 0.2s; }
.sidebar-news-item:hover h4 { color: #d9534f; }

/* Related Posts Section */
.related-posts-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

/* Related Posts Grid */
.related-posts-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.related-card { background-color: #f7f7f7; text-decoration: none; color: inherit; }
.related-card-img { width: 100%; height: 180px; object-fit: cover; }
.related-card-content { padding: 15px; }
.related-card-title { font-size: 1rem; font-weight: 700; line-height: 1.6; margin: 0; }

/* Comments Section */
.comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    margin-bottom: 50px; 
}
.comment-form { display: flex; flex-direction: column; gap: 15px; margin-top: 25px; }
.comment-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-family: 'Cairo', sans-serif; font-size: 1rem; box-sizing: border-box; }
.comment-form textarea { min-height: 150px; resize: vertical; }
.comment-form button { 
    background-color: #d9534f; 
    color: white; 
    padding: 12px 25px; 
    border: none; 
    border-radius: 5px; 
    font-family: 'Cairo', sans-serif; 
    font-size: 1rem; 
    font-weight: 700; 
    cursor: pointer; 
    transition: opacity 0.2s; 
    align-self: flex-start; 
}
.comment-form button:hover { opacity: 0.9; }
.comments-list { margin-top: 40px; }

.comment-item {
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.comment-item:last-child {
    margin-bottom: 0;
}

.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.comment-author { font-weight: 900; font-size: 1.1rem; }
.comment-date { font-size: 0.8rem; color: #777; }
.comment-body { font-size: 1rem; line-height: 1.7; margin: 0; }

.comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #777;
}
.action-votes {
    display: flex;
    align-items: center;
    gap: 20px;
}
.action-reply,
.action-like,
.action-dislike {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}
.action-reply:hover,
.action-like:hover,
.action-dislike:hover {
    color: #d9534f;
}
.replies-container {
    margin-top: 20px;
    margin-right: 40px;
    padding-right: 20px;
    border-right: 3px solid #f0f0f0;
}

/* WordPress Comments Overrides */
.comments-area {
    margin-top: 0;
}
.comments-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: none;
}
.comment-body p {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}
.comment-respond {
    margin-top: 0;
    margin-bottom: 30px;
}
.comment-reply-title {
    display: none;
}
.logged-in-as {
    display: none;
}
.comment-notes {
    display: none;
}
.comment-form-comment {
    margin-bottom: 15px;
}
.comment-form-comment textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    min-height: 150px;
    resize: vertical;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}
.comment-form-author,
.comment-form-email {
    margin: 0;
}
.comment-form-author input,
.comment-form-email input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
}
.form-submit {
    margin: 0;
}
.form-submit button,
.form-submit input[type="submit"] {
    background-color: #d9534f;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}
.form-submit button:hover,
.form-submit input[type="submit"]:hover {
    opacity: 0.9;
}
/* Comment form error */
.comment-error {
    background-color: #fff3f3;
    border: 1px solid #d9534f;
    color: #d9534f;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.8;
}
.comment-error i {
    margin-left: 5px;
}
.field-error {
    border-color: #d9534f !important;
    background-color: #fff9f9 !important;
}
/* Comments list */
.comments-list {
    margin-top: 30px;
}
/* Nested replies */
.comment .children {
    margin-top: 20px;
    margin-right: 40px;
    padding-right: 20px;
    border-right: 3px solid #f0f0f0;
}
.action-reply a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.action-reply a:hover {
    color: #d9534f;
}

@media (min-width: 1024px) {
    .article-layout-grid {
        grid-template-columns: 2.5fr 1fr;
        align-items: start;
    }
    .article-layout-grid > .sidebar-col {
        margin-top: 32px;
    }
    .related-posts-grid { 
        grid-template-columns: repeat(3, 1fr); 
    }
    /* Comments wrapper spans full width on desktop */
    .comments-wrapper {
        grid-column: 1 / 2;
    }
}

/* --- Author Profile Styles --- */
.author-profile-section {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.author-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.author-name {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 10px 0;
}
.author-bio {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 700px;
    color: #555;
    margin-bottom: 25px;
}
.author-social-links {
    display: flex;
    gap: 20px;
}
.author-social-links a {
    color: #777;
    font-size: 1.5rem;
    transition: color 0.2s, transform 0.2s;
}
.author-social-links a:hover {
    color: #d9534f;
    transform: scale(1.1);
}

/* Grid for Author's Articles */
.author-articles-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

.article-card {
    background-color: #f7f7f7;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
}

.article-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    height: auto;
    max-height: 230px;
}

.article-card-content {
    padding: 20px;
}

.article-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
}

@media (min-width: 768px) {
    .author-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .author-profile-section {
        flex-direction: row;
        text-align: right;
    }
    .author-avatar {
        margin-bottom: 0;
        margin-left: 30px;
    }
}

@media (min-width: 1024px) {
    .author-articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- 404 Page Styles --- */
.error-404 {
    text-align: center;
    padding: 60px 20px;
}
.error-404 .page-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #d9534f;
    margin-bottom: 30px;
}
.error-404 .error-icon {
    font-size: 6rem;
    color: #d9534f;
    margin-bottom: 30px;
}
.error-404 p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}
.error-actions {
    margin: 30px 0;
}
.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #d9534f;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s;
}
.btn-home:hover {
    background-color: #c9302c;
}
.search-form-wrapper {
    max-width: 500px;
    margin: 40px auto 0;
}
.recent-posts-404 {
    margin-top: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.recent-posts-404 h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 20px;
}
.posts-grid-small {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
}
.post-card-small {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
}
.post-card-small .post-thumb img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}
.post-card-small .post-info h4 {
    margin: 0 0 5px;
    font-size: 1rem;
    font-weight: 700;
}
.post-card-small .post-info h4 a {
    text-decoration: none;
    color: #333;
}
.post-card-small .post-info h4 a:hover {
    color: #d9534f;
}
.post-card-small .post-date {
    font-size: 0.8rem;
    color: #999;
}

@media (min-width: 768px) {
    .posts-grid-small {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Search Form Styles --- */
.search-form {
    position: relative;
}
.search-form-inner {
    display: flex;
    background: #f0f0f0;
    border-radius: 50px;
    overflow: hidden;
}
.search-form .search-field {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    outline: none;
}
.search-form .search-submit {
    background: #d9534f;
    color: #fff;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.3s;
}
.search-form .search-submit:hover {
    background: #c9302c;
}

/* --- Page Template Styles --- */
.page-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.page-content-wrapper .entry-header {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 3px solid #d9534f;
    text-align: center;
}

.page-content-wrapper .entry-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.4;
    color: #222;
    margin: 0;
}

.page-content-wrapper .featured-image {
    margin-bottom: 35px;
}

.page-content-wrapper .featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-content-wrapper .entry-content {
    font-size: 1.1rem;
    line-height: 2;
    color: #444;
}

.page-content-wrapper .entry-content p {
    margin-bottom: 20px;
}

.page-content-wrapper .entry-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #222;
    margin: 35px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.page-content-wrapper .entry-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #333;
    margin: 30px 0 15px;
}

.page-content-wrapper .entry-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #444;
    margin: 25px 0 12px;
}

.page-content-wrapper .entry-content ul,
.page-content-wrapper .entry-content ol {
    margin: 20px 0;
    padding-right: 25px;
}

.page-content-wrapper .entry-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.page-content-wrapper .entry-content a {
    color: #d9534f;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.page-content-wrapper .entry-content a:hover {
    border-bottom-color: #d9534f;
}

.page-content-wrapper .entry-content blockquote {
    margin: 30px 0;
    padding: 25px 30px;
    background: #f9f9f9;
    border-right: 4px solid #d9534f;
    border-radius: 8px;
    font-style: italic;
    color: #555;
}

.page-content-wrapper .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 1rem;
}

.page-content-wrapper .entry-content th,
.page-content-wrapper .entry-content td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    text-align: right;
}

.page-content-wrapper .entry-content th {
    background: #f5f5f5;
    font-weight: 700;
}

.page-content-wrapper .entry-content tr:nth-child(even) {
    background: #fafafa;
}

.page-content-wrapper .entry-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.page-content-wrapper .edit-link a {
    color: #d9534f;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 20px;
    border: 2px solid #d9534f;
    border-radius: 25px;
    transition: all 0.3s;
}

.page-content-wrapper .edit-link a:hover {
    background: #d9534f;
    color: #fff;
}

/* Page Comments Section */
.page-content-wrapper + .comments-area {
    max-width: 900px;
    margin: 40px auto 0;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* --- Pagination Styles --- */
.pagination-wrapper {
    margin-top: 40px;
    text-align: center;
}
.pagination-wrapper .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background 0.3s, color 0.3s;
}
.pagination-wrapper .page-numbers.current,
.pagination-wrapper .page-numbers:hover {
    background: #d9534f;
    color: #fff;
}
.pagination-wrapper .prev,
.pagination-wrapper .next {
    background: transparent;
    color: #d9534f;
}
.pagination-wrapper .prev:hover,
.pagination-wrapper .next:hover {
    background: #d9534f;
    color: #fff;
}

/* --- No Results Styles --- */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 12px;
}
.no-results p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

/* --- Archive Description --- */
.archive-description,
.category-description {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

/* --- Author Stats --- */
.author-stats {
    margin-top: 15px;
    color: #777;
}
.author-stats .post-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* --- Card Meta Styles --- */
.category-card-meta,
.article-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #999;
}
.category-card-meta span,
.article-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.category-card-main .category-card-meta {
    color: rgba(255,255,255,0.8);
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #d9534f;
    color: #fff;
    padding: 8px 15px;
    z-index: 9999;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
}

/* --- Screen Reader Text --- */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* ======================================
   List Section Styles (Horizontal List)
   ====================================== */
.list-section {
    margin-bottom: 40px;
}

.list-container {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.list-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background-color: #f8f9fa;
}

.list-item-thumb {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

.list-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.list-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.list-item-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.list-item-title a:hover {
    color: #d9534f;
}

.list-item-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #666;
}

.list-item-meta i {
    margin-left: 5px;
}

.list-item-category a {
    color: #d9534f;
    text-decoration: none;
}

.list-item-category a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .list-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .list-item-thumb {
        width: 100%;
        height: 180px;
    }
}

/* ========================================
   THEME TOGGLE BUTTON
   ======================================== */
.theme-toggle {
    position: absolute;
    left: 50px;
    background: #e5e7eb;
    border: none;
    border-radius: 50px;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 32px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: #d1d5db;
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.theme-toggle .sun-icon svg,
.theme-toggle .moon-icon svg {
    width: 16px;
    height: 16px;
}

.theme-toggle .sun-icon {
    color: #D3A827;
    background: #fff;
}

.theme-toggle .moon-icon {
    color: rgba(0, 0, 0, 0.4);
    background: transparent;
}

/* When dark mode is active */
[data-theme="dark"] .theme-toggle {
    background: #374151;
}

[data-theme="dark"] .theme-toggle:hover {
    background: #4b5563;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    color: #D3A827;
    background: #1f2937;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    color: rgba(255, 255, 255, 0.4);
    background: transparent;
}

/* ========================================
   DARK MODE STYLES
   ======================================== */
[data-theme="dark"] {
    --bg-primary: #0d1a2d;
    --bg-secondary: #0d1a2d;
    --bg-card: #0d1a2d;
    --text-primary: #ffffff;
    --text-secondary: #a8b2c1;
    --border-color: #1e3a5f;
    --accent-color: #d4af37;
    --toggle-bg: #3d4654;
}

[data-theme="dark"] body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .site-header {
    background-color: var(--bg-primary);
}

[data-theme="dark"] .top-bar {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .nav-container {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .logo a,
[data-theme="dark"] nav a {
    color: var(--text-primary);
}

/* DARK MODE - Category Header */
[data-theme="dark"] .final-section-header {
    background-color: var(--bg-primary);
}

[data-theme="dark"] .archive-page-title {
    color: #ffffff;
}

[data-theme="dark"] nav a:hover {
    color: var(--accent-color);
}

/* Dark mode - Search */
[data-theme="dark"] .search-bar-container {
    background-color: #3d4654;
    border-color: var(--border-color);
}

[data-theme="dark"] .search-field,
[data-theme="dark"] .search-bar-container input {
    background-color: transparent;
    color: var(--text-primary);
}

[data-theme="dark"] .search-field::placeholder,
[data-theme="dark"] .search-bar-container input::placeholder {
    color: #a0aec0;
}

/* Dark mode - Cards */
[data-theme="dark"] .card,
[data-theme="dark"] .article-card,
[data-theme="dark"] .category-card,
[data-theme="dark"] .small-card,
[data-theme="dark"] .news-card {
    background-color: #47505d;
}

[data-theme="dark"] .article-card-content,
[data-theme="dark"] .category-card-content {
    background-color: #47505d;
}

[data-theme="dark"] .card-title,
[data-theme="dark"] .card-title a,
[data-theme="dark"] .article-card-title,
[data-theme="dark"] .category-card-title,
[data-theme="dark"] .news-card-title,
[data-theme="dark"] .news-card-title a {
    color: var(--text-primary);
}

[data-theme="dark"] .card-title a:hover,
[data-theme="dark"] .news-card-title a:hover {
    color: var(--accent-color);
}

/* Dark mode - Section Headers */
[data-theme="dark"] .section-title,
[data-theme="dark"] .final-section-header h2,
[data-theme="dark"] .related-posts-title {
    color: var(--text-primary);
}

[data-theme="dark"] .final-section-header {
    border-bottom-color: var(--border-color);
}

/* Dark mode - Sidebar */
[data-theme="dark"] .sidebar-section {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .sidebar-title {
    color: var(--text-primary);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .sidebar-title::after {
    background-color: var(--accent-color);
}

[data-theme="dark"] .sidebar-item-title a {
    color: var(--text-primary);
}

[data-theme="dark"] .sidebar-item-title a:hover {
    color: var(--accent-color);
}

/* Dark mode - Article Content */
[data-theme="dark"] .article-title,
[data-theme="dark"] .entry-title {
    color: var(--text-primary);
}

[data-theme="dark"] .article-meta,
[data-theme="dark"] .entry-meta {
    color: var(--text-secondary);
}

[data-theme="dark"] .article-meta a,
[data-theme="dark"] .entry-meta a {
    color: var(--text-secondary);
}

[data-theme="dark"] .article-content,
[data-theme="dark"] .entry-content {
    color: var(--text-primary);
}

[data-theme="dark"] .entry-content p {
    color: var(--text-primary);
}

/* Dark mode - Tags */
[data-theme="dark"] .article-tags .tag,
[data-theme="dark"] .tags-list a {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

[data-theme="dark"] .article-tags .tag:hover,
[data-theme="dark"] .tags-list a:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* Dark mode - Comments */
[data-theme="dark"] .comments-area {
    background-color: transparent;
    border-color: var(--border-color);
}

[data-theme="dark"] .comments-title,
[data-theme="dark"] .comment-reply-title {
    color: var(--text-primary);
}

[data-theme="dark"] .comment-author .fn,
[data-theme="dark"] .comment-author .fn a {
    color: var(--text-primary);
}

[data-theme="dark"] .comment-content,
[data-theme="dark"] .comment-content p {
    color: var(--text-primary);
}

[data-theme="dark"] .comment-metadata,
[data-theme="dark"] .comment-metadata a {
    color: var(--text-secondary);
}

[data-theme="dark"] .comment-form label {
    color: var(--text-primary);
}

/* Dark mode - Related Posts */
[data-theme="dark"] .related-posts {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .related-card {
    background-color: var(--bg-secondary);
}

[data-theme="dark"] .related-card-title {
    color: var(--text-primary);
}

[data-theme="dark"] .related-card:hover .related-card-title {
    color: var(--accent-color);
}

/* Dark mode - Author Page */
[data-theme="dark"] .author-profile-section {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .author-name {
    color: var(--text-primary);
}

[data-theme="dark"] .author-bio {
    color: var(--text-secondary);
}

/* Dark mode - Footer */
[data-theme="dark"] .site-footer {
    background-color: #1a1a1a;
}

[data-theme="dark"] .footer-widget-title {
    color: var(--text-primary);
}

[data-theme="dark"] .footer-widgets a {
    color: var(--text-secondary);
}

[data-theme="dark"] .footer-widgets a:hover {
    color: var(--accent-color);
}

[data-theme="dark"] .footer-bottom {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .footer-bottom p {
    color: var(--text-secondary);
}

/* Dark mode - Pagination */
[data-theme="dark"] .pagination-wrapper .page-numbers {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .pagination-wrapper .page-numbers:hover,
[data-theme="dark"] .pagination-wrapper .page-numbers.current {
    background-color: var(--accent-color);
    color: #fff;
}

/* Dark mode - 404 Page */
[data-theme="dark"] .error-404 h1 {
    color: var(--text-primary);
}

[data-theme="dark"] .error-404 p {
    color: var(--text-secondary);
}

/* Dark mode - Breadcrumbs */
[data-theme="dark"] .breadcrumbs,
[data-theme="dark"] .breadcrumbs a {
    color: var(--text-secondary);
}

[data-theme="dark"] .breadcrumbs a:hover {
    color: var(--accent-color);
}

/* Dark mode - Infinite Scroll */
[data-theme="dark"] .infinite-scroll-loader i {
    color: var(--accent-color);
}

[data-theme="dark"] .infinite-scroll-end {
    color: var(--text-secondary);
}

/* Dark mode - List Items */
[data-theme="dark"] .list-item {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .list-item-title a {
    color: var(--text-primary);
}

[data-theme="dark"] .list-item-title a:hover {
    color: var(--accent-color);
}

[data-theme="dark"] .list-item-meta {
    color: var(--text-secondary);
}

/* Dark mode - Vote buttons */
[data-theme="dark"] .vote-btn {
    color: var(--text-secondary);
}

[data-theme="dark"] .vote-btn:hover,
[data-theme="dark"] .vote-btn.active {
    color: var(--accent-color);
}

/* Smooth transition for theme change - only specific elements */
html.theme-transitioning .card,
html.theme-transitioning .article-card,
html.theme-transitioning .category-card,
html.theme-transitioning .sidebar-section,
html.theme-transitioning .comment-item,
html.theme-transitioning .related-card,
html.theme-transitioning .sidebar-news-item,
html.theme-transitioning .article-meta,
html.theme-transitioning .tags-list a,
html.theme-transitioning nav a,
html.theme-transitioning .final-title-wrapper h2,
html.theme-transitioning .theme-toggle,
html.theme-transitioning input,
html.theme-transitioning textarea,
html.theme-transitioning .site-footer {
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                border-color 0.3s ease !important;
}

/* Background changes instantly - no transition */
html,
body,
#page,
.site,
.site-content,
main,
header,
.top-bar,
.nav-container,
.modern-grid-section,
.modern-card,
.modern-card-content {
    transition: none !important;
}

/* ========================================
   ADDITIONAL DARK MODE STYLES
   ======================================== */

/* Dark mode - Main container */
[data-theme="dark"] #page,
[data-theme="dark"] .site,
[data-theme="dark"] .site-content,
[data-theme="dark"] main {
    background-color: var(--bg-primary);
}

/* Dark mode - Section Headers */
[data-theme="dark"] .final-title-wrapper h2,
[data-theme="dark"] .final-title-wrapper h2 a {
    color: var(--text-primary);
}

/* Dark mode - Health Section */
[data-theme="dark"] .health-card-top {
    background-color: #47505d;
    border-color: #47505d;
}

[data-theme="dark"] .health-card-top-title,
[data-theme="dark"] .health-card-top-title a {
    color: var(--text-primary);
}

[data-theme="dark"] .health-card-bottom {
    background-color: #47505d;
    border-color: #47505d;
}

[data-theme="dark"] .health-card-bottom-content {
    background-color: #47505d;
}

[data-theme="dark"] .health-card-bottom-title,
[data-theme="dark"] .health-card-bottom-title a {
    color: var(--text-primary);
}

/* Dark mode - Technology Section */
[data-theme="dark"] .tech-card {
    background-color: #47505d;
}

[data-theme="dark"] .tech-card-content {
    background-color: #47505d;
}

[data-theme="dark"] .tech-card-title,
[data-theme="dark"] .tech-card-title a {
    color: var(--text-primary);
}

/* Dark mode - White Card Section */
[data-theme="dark"] .white-card {
    background-color: #47505d;
    border-color: #47505d;
}

[data-theme="dark"] .white-card-content {
    background-color: #47505d;
}

[data-theme="dark"] .white-card-title,
[data-theme="dark"] .white-card-title a {
    color: var(--text-primary);
}

/* Dark mode - News Cards */
[data-theme="dark"] .news-grid-item,
[data-theme="dark"] .news-item {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

/* Dark mode - Sidebar widgets */
[data-theme="dark"] .widget,
[data-theme="dark"] .widget-area {
    background-color: var(--bg-secondary);
}

[data-theme="dark"] .widget-title {
    color: var(--text-primary);
}

[data-theme="dark"] .widget a {
    color: var(--text-secondary);
}

[data-theme="dark"] .widget a:hover {
    color: var(--accent-color);
}

/* Dark mode - Search page */
[data-theme="dark"] .search-results-title,
[data-theme="dark"] .search-title {
    color: var(--text-primary);
}

/* Dark mode - Archive page */
[data-theme="dark"] .archive-title,
[data-theme="dark"] .page-title {
    color: var(--text-primary);
}

[data-theme="dark"] .archive-description,
[data-theme="dark"] .taxonomy-description {
    color: var(--text-secondary);
}

/* Dark mode - Category grid */
[data-theme="dark"] .category-card-main,
[data-theme="dark"] .category-card-secondary {
    background-color: #47505d;
}

[data-theme="dark"] .category-card-main .category-card-content,
[data-theme="dark"] .category-card-secondary .category-card-content {
    background-color: #47505d;
}

/* Dark mode - Post navigation */
[data-theme="dark"] .post-navigation,
[data-theme="dark"] .posts-navigation {
    border-color: var(--border-color);
}

[data-theme="dark"] .post-navigation a,
[data-theme="dark"] .posts-navigation a {
    color: var(--text-primary);
}

[data-theme="dark"] .post-navigation a:hover,
[data-theme="dark"] .posts-navigation a:hover {
    color: var(--accent-color);
}

/* Dark mode - Article page specific */
[data-theme="dark"] .single-post-content,
[data-theme="dark"] .post-content,
[data-theme="dark"] .article-wrapper {
    background-color: var(--bg-primary);
}

[data-theme="dark"] .post-meta,
[data-theme="dark"] .article-date,
[data-theme="dark"] .article-author {
    color: var(--text-secondary);
}

[data-theme="dark"] .article-author a {
    color: var(--text-secondary);
}

/* Dark mode - Blockquotes */
[data-theme="dark"] blockquote {
    background-color: var(--bg-secondary);
    border-color: var(--accent-color);
    color: var(--text-primary);
}

/* Dark mode - Tables */
[data-theme="dark"] table {
    border-color: var(--border-color);
}

[data-theme="dark"] th,
[data-theme="dark"] td {
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] th {
    background-color: var(--bg-secondary);
}

/* Dark mode - Code blocks */
[data-theme="dark"] pre,
[data-theme="dark"] code {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* Dark mode - Horizontal rule */
[data-theme="dark"] hr {
    border-color: var(--border-color);
}

/* Dark mode - Share buttons area */
[data-theme="dark"] .share-buttons,
[data-theme="dark"] .social-share {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

/* Dark mode - Author box in post */
[data-theme="dark"] .author-box,
[data-theme="dark"] .post-author-box {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .author-box-name,
[data-theme="dark"] .post-author-name {
    color: var(--text-primary);
}

[data-theme="dark"] .author-box-bio,
[data-theme="dark"] .post-author-bio {
    color: var(--text-secondary);
}

/* Dark mode - Buttons */
[data-theme="dark"] .btn,
[data-theme="dark"] button:not(.theme-toggle):not(.menu-toggle):not(.search-btn):not(.close-btn) {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .btn:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* Dark mode - Input fields general */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background-color: #3d4654;
    border-color: #4a5568;
    color: var(--text-primary);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #a0aec0;
}

/* Dark mode - Mobile menu */
[data-theme="dark"] .menu-toggle {
    color: var(--text-primary);
}

[data-theme="dark"] .mobile-menu,
[data-theme="dark"] #primary-menu.active {
    background-color: var(--bg-secondary);
}

/* Dark mode - Search icon */
[data-theme="dark"] .nav-search-icon {
    color: var(--text-primary);
}

[data-theme="dark"] .nav-search-icon:hover {
    color: var(--accent-color);
}

/* Dark mode - Close button */
[data-theme="dark"] .close-btn {
    color: var(--text-primary);
}

/* Dark mode - Loading states */
[data-theme="dark"] .loading,
[data-theme="dark"] .spinner {
    border-color: var(--border-color);
    border-top-color: var(--accent-color);
}

/* Dark mode - No results */
[data-theme="dark"] .no-results,
[data-theme="dark"] .not-found {
    color: var(--text-secondary);
}

[data-theme="dark"] .no-results h2,
[data-theme="dark"] .not-found h2 {
    color: var(--text-primary);
}

/* ========================================
   DARK MODE - SINGLE POST PAGE
   ======================================== */

/* Dark mode - Article Meta Box */
[data-theme="dark"] .article-meta {
    background-color: #47505d;
    border-color: #5a6370;
    color: var(--text-secondary);
}

[data-theme="dark"] .article-meta span {
    color: var(--text-secondary);
}

[data-theme="dark"] .article-meta span a {
    color: var(--text-primary);
}

[data-theme="dark"] .article-meta span a:hover {
    color: var(--accent-color);
}

[data-theme="dark"] .article-meta i {
    color: var(--accent-color);
}

/* Dark mode - Share Dropdown */
[data-theme="dark"] .meta-share-dropdown {
    background-color: #47505d;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

[data-theme="dark"] .meta-share-dropdown::after {
    border-color: transparent transparent #47505d transparent;
}

[data-theme="dark"] .meta-share-button {
    color: var(--text-secondary);
}

[data-theme="dark"] .meta-share-button:hover,
[data-theme="dark"] .meta-share-button:hover i {
    color: var(--text-primary);
}

/* Dark mode - Sidebar News Items */
[data-theme="dark"] .sidebar-news-item {
    background-color: #47505d;
    color: var(--text-primary);
}

[data-theme="dark"] .sidebar-news-item h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .sidebar-news-item:hover h4 {
    color: var(--accent-color);
}

/* Dark mode - Related Posts */
[data-theme="dark"] .related-posts-section {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .related-card {
    background-color: #47505d;
}

[data-theme="dark"] .related-card-content {
    background-color: #47505d;
}

[data-theme="dark"] .related-card-title {
    color: var(--text-primary);
}

[data-theme="dark"] .related-card:hover .related-card-title {
    color: var(--accent-color);
}

/* Dark mode - Comments Section */
[data-theme="dark"] .comments-section {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .comment-item {
    border-color: #3d4654;
    background-color: #1e2a3a;
}

[data-theme="dark"] .comment-item .comment-item {
    background-color: #253344;
}

[data-theme="dark"] .comment-author {
    color: var(--text-primary);
}

[data-theme="dark"] .comment-date {
    color: var(--text-secondary);
}

[data-theme="dark"] .comment-body,
[data-theme="dark"] .comment-body p {
    color: var(--text-primary);
    background-color: #2d3a4a;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
}

[data-theme="dark"] .comment-actions {
    color: var(--text-secondary);
}

[data-theme="dark"] .action-reply a,
[data-theme="dark"] .action-reply {
    color: var(--text-secondary);
}

[data-theme="dark"] .action-reply:hover,
[data-theme="dark"] .action-reply a:hover {
    color: var(--accent-color);
}

[data-theme="dark"] .action-like,
[data-theme="dark"] .action-dislike {
    color: var(--text-secondary);
}

[data-theme="dark"] .action-like:hover,
[data-theme="dark"] .action-dislike:hover {
    color: var(--accent-color);
}

[data-theme="dark"] .replies-container {
    border-right-color: #3d4654;
}

/* Dark mode - Comment Form */
[data-theme="dark"] .comment-form input,
[data-theme="dark"] .comment-form textarea,
[data-theme="dark"] .comment-form-comment textarea,
[data-theme="dark"] .comment-form-author input,
[data-theme="dark"] .comment-form-email input,
[data-theme="dark"] #author,
[data-theme="dark"] #email,
[data-theme="dark"] #comment {
    background-color: #1e2a3a !important;
    border-color: #3d4654 !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .comment-form input::placeholder,
[data-theme="dark"] .comment-form textarea::placeholder,
[data-theme="dark"] #author::placeholder,
[data-theme="dark"] #email::placeholder,
[data-theme="dark"] #comment::placeholder {
    color: #8899aa !important;
}

[data-theme="dark"] .comment-respond {
    background-color: transparent;
}

[data-theme="dark"] .comments-list {
    background-color: transparent;
}

/* Dark mode - Tags */
[data-theme="dark"] .tag-label,
[data-theme="dark"] .tag-label i {
    color: var(--text-secondary);
}

[data-theme="dark"] .tags-list a {
    background-color: #47505d;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .tags-list a:hover {
    background-color: var(--accent-color);
    color: #fff !important;
}

/* Dark mode - Entry Content */
[data-theme="dark"] .entry-content,
[data-theme="dark"] .article-body {
    color: var(--text-primary);
}

[data-theme="dark"] .entry-content p,
[data-theme="dark"] .article-body p {
    color: var(--text-primary);
}

[data-theme="dark"] .entry-content a,
[data-theme="dark"] .article-body a {
    color: var(--accent-color);
}

[data-theme="dark"] .entry-content h2,
[data-theme="dark"] .entry-content h3,
[data-theme="dark"] .entry-content h4,
[data-theme="dark"] .article-body h2,
[data-theme="dark"] .article-body h3,
[data-theme="dark"] .article-body h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .entry-content blockquote,
[data-theme="dark"] .article-body blockquote {
    background-color: #47505d;
    border-color: var(--accent-color);
    color: var(--text-primary);
}

[data-theme="dark"] figcaption,
[data-theme="dark"] .wp-block-image figcaption {
    color: var(--text-secondary);
}

/* Dark mode - Page links */
[data-theme="dark"] .page-links {
    color: var(--text-primary);
}

[data-theme="dark"] .page-links a {
    background-color: #47505d;
    color: var(--text-primary);
}

[data-theme="dark"] .page-links a:hover {
    background-color: var(--accent-color);
}

/* ========================================
   RESPONSIVE DESIGN - PROFESSIONAL
   ======================================== */

/* Mobile Menu Toggle - Hidden on Desktop */
.mobile-menu-toggle {
    display: none;
}

.mobile-search {
    display: none;
}

/* Mobile Search Popup - Hidden on Desktop */
.mobile-search-popup {
    display: none;
}

/* Mobile Menu Logo - Hidden on Desktop */
.mobile-menu-logo {
    display: none;
}

/* Mobile Menu Footer - Hidden on Desktop */
.mobile-menu-footer {
    display: none;
}

/* Mobile Menu Social - Hidden on Desktop */
.mobile-menu-social {
    display: none;
}

/* Theme Toggle Switch - Hidden on Desktop */
.theme-toggle-switch {
    display: none;
}

/* Mobile Menu Toggle Wrapper - Hidden on Desktop */
.mobile-menu-toggle-wrapper {
    display: none;
}

/* Desktop Controls */
.desktop-toggle,
.desktop-search {
    display: flex;
}

/* ===== LARGE TABLETS & SMALL LAPTOPS (1024px - 1200px) ===== */
@media (max-width: 1200px) {
    header,
    main {
        padding: 0 15px;
    }
    
    .modern-grid-container {
        gap: 12px;
    }
    
    .modern-card-title {
        font-size: 1.2rem;
    }
    
    .card-small .modern-card-title {
        font-size: 1rem;
    }
}

/* ===== MOBILE & TABLETS (max-width: 1024px) ===== */
@media (max-width: 1024px) {
    /* Center everything */
    body {
        overflow-x: hidden;
    }
    
    /* Header */
    header {
        padding: 0 15px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    main {
        padding: 0 15px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* Top Bar - Logo with Controls */
    .top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 15px;
        max-width: 100%;
    }
    
    .logo {
        font-size: 1.4rem;
        flex: 1;
        text-align: center;
        order: 2;
    }
    
    .logo img,
    .logo .site-logo-img {
        max-height: 60px;
        margin: 0 auto;
    }
    
    /* Show Mobile Menu Toggle - Right Side */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        background: #f0f0f0;
        border: none;
        border-radius: 8px;
        font-size: 1.4rem;
        cursor: pointer;
        color: #333;
        order: 1;
    }
    
    /* Show Mobile Search - Left Side */
    .mobile-search {
        display: flex;
        font-size: 1.4rem;
        cursor: pointer;
        order: 3;
        width: 48px;
        height: 48px;
        align-items: center;
        justify-content: center;
        background: #f0f0f0;
        border-radius: 8px;
        color: #333;
    }
    
    /* Mobile Search Popup */
    .mobile-search-popup {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 15px;
        z-index: 99999;
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    }
    
    /* When admin bar is present - mobile admin bar is 46px */
    .admin-bar .mobile-search-popup {
        top: 46px;
    }
    
    .mobile-search-popup.active {
        display: block;
    }
    
    .mobile-search-form {
        display: flex;
        align-items: center;
        gap: 10px;
        background: #f5f5f5;
        border-radius: 25px;
        padding: 8px 15px;
    }
    
    .mobile-search-field {
        flex: 1;
        border: none;
        background: transparent;
        font-size: 1rem;
        outline: none;
        font-family: 'Cairo', sans-serif;
    }
    
    .mobile-search-btn {
        background: var(--accent-color, #d4af37);
        border: none;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        color: #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-search-close {
        background: transparent;
        border: none;
        font-size: 1.2rem;
        color: #666;
        cursor: pointer;
        padding: 5px;
    }
    
    /* Hide Desktop Controls */
    .desktop-toggle,
    .desktop-search {
        display: none !important;
    }
    
    /* Navigation Container - Slide from Right */
    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        padding: 0;
        box-shadow: -5px 0 20px rgba(0,0,0,0.2);
        transition: right 0.3s ease;
    }
    
    .nav-container.active {
        right: 0;
        overflow-y: auto;
    }
    
    /* Mobile Menu Logo */
    .mobile-menu-logo {
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        padding: 20px !important;
        border-bottom: 1px solid #eee;
        background: #fff;
    }
    
    .mobile-menu-logo a {
        display: flex;
        align-items: center;
    }
    
    .mobile-menu-logo-img {
        max-height: 50px !important;
        width: auto;
    }
    
    .mobile-menu-logo-text {
        font-size: 1.5rem !important;
        font-weight: 900;
        color: #1a2a3f;
        text-decoration: none;
    }
    
    .mobile-menu-logo-text .logo-alt {
        color: #d4af37;
    }
    
    .mobile-menu-close {
        position: absolute;
        left: 15px;
        top: 20px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 36px !important;
        height: 36px !important;
        background: #f5f5f5;
        border: none;
        font-size: 1.2rem !important;
        cursor: pointer;
        color: #666;
        border-radius: 50%;
        transition: all 0.2s;
    }
    
    .mobile-menu-close:hover {
        background: #eee;
        color: #333;
    }
    
    /* Mobile Navigation */
    .nav-container nav {
        flex: 1;
        padding: 0 !important;
        overflow-y: auto;
        width: 100% !important;
    }
    
    .nav-container nav ul,
    .nav-container nav > ul,
    .nav-container .main-navigation ul,
    #primary-menu {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
        list-style: none !important;
    }
    
    .nav-container nav ul li,
    .nav-container nav > ul > li,
    .nav-container .main-navigation ul li,
    #primary-menu > li {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        display: block !important;
        border-bottom: 1px solid #e5e5e5 !important;
        list-style: none !important;
    }
    
    .nav-container nav ul li:last-child,
    #primary-menu > li:last-child {
        border-bottom: none !important;
    }
    
    .nav-container nav ul li::before,
    #primary-menu > li::before {
        display: none !important;
        content: none !important;
    }
    
    .nav-container nav a,
    .nav-container nav ul li a,
    .nav-container .main-navigation a,
    #primary-menu > li > a {
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        display: block !important;
        width: 100% !important;
        padding: 18px 20px !important;
        color: #1a1a1a !important;
        text-align: right !important;
        transition: background 0.2s, color 0.2s;
        background: #fff !important;
        box-sizing: border-box !important;
        text-decoration: none !important;
        border: none !important;
    }
    
    .nav-container nav ul li.current-menu-item > a,
    .nav-container nav ul li.current_page_item > a,
    #primary-menu > li.current-menu-item > a,
    #primary-menu > li.current_page_item > a {
        color: #d9534f !important;
        background: #fff5f5 !important;
    }
    
    .nav-container nav a:hover,
    #primary-menu > li > a:hover {
        background: #f8f8f8 !important;
    }
    
    /* Mobile Menu Footer */
    .mobile-menu-footer {
        display: block !important;
        margin-top: auto;
        border-top: none !important;
        background: transparent !important;
    }
    
    /* Mobile Menu Toggle Wrapper - Dark Mode Toggle */
    .mobile-menu-toggle-wrapper,
    .mobile-menu-footer .mobile-menu-toggle-wrapper,
    .nav-container .mobile-menu-footer .mobile-menu-toggle-wrapper {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 18px 20px !important;
        border-top: 1px solid #e5e5e5 !important;
        border-bottom: 1px solid #e5e5e5 !important;
        background: #fff !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .mobile-menu-toggle-label,
    .mobile-menu-toggle-wrapper .mobile-menu-toggle-label,
    .mobile-menu-footer .mobile-menu-toggle-label {
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: #1a1a1a !important;
        margin: 0 !important;
        margin-left: auto !important;
    }
    
    /* Theme Toggle Switch */
    .theme-toggle-switch,
    .mobile-menu-toggle-wrapper .theme-toggle-switch,
    .mobile-menu-footer .theme-toggle-switch {
        display: flex !important;
        align-items: center !important;
        background: #eee !important;
        border-radius: 30px !important;
        padding: 4px !important;
        gap: 4px !important;
        margin: 0 !important;
        margin-right: auto !important;
        flex-shrink: 0 !important;
    }
    
    .theme-toggle-switch .sun-btn,
    .theme-toggle-switch .moon-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.2s ease;
        color: #888;
        background: transparent;
    }
    
    .theme-toggle-switch .sun-btn.active {
        background: #f9c834;
        color: #fff;
        box-shadow: none;
    }
    
    .theme-toggle-switch .moon-btn.active {
        background: #333;
        color: #fff;
        box-shadow: none;
    }
    
    /* Mobile Menu Social */
    .mobile-menu-social,
    .mobile-menu-footer .mobile-menu-social,
    .nav-container .mobile-menu-social {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 24px !important;
        padding: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .mobile-menu-social a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: #555;
        font-size: 1.3rem !important;
        transition: all 0.2s;
    }
    
    .mobile-menu-social a:hover {
        color: #d4af37;
        transform: scale(1.1);
    }
    
    /* Hide search bar in mobile menu */
    .nav-container .search-bar-container {
        display: none !important;
    }
    
    /* Hide desktop controls in nav-container on mobile */
    .nav-container .desktop-search,
    .nav-container .desktop-toggle {
        display: none !important;
    }
    
    /* Overlay when menu is open */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .menu-overlay.active {
        display: block;
    }
    
    /* ============================================
       MODERN MOBILE HOMEPAGE DESIGN
       ============================================ */
    
    /* Center all sections */
    .modern-grid-section,
    .final-section-header,
    .sports-section,
    .health-section,
    .video-section,
    .tech-section {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
    
    /* Modern Grid - Homepage Hero */
    .modern-grid-container {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .modern-grid-left-col {
        grid-template-rows: auto;
    }
    
    .modern-grid-right-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .bottom-row-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    /* Make 3rd card in bottom row span full width */
    .bottom-row-grid .modern-card:nth-child(3) {
        grid-column: 1 / -1;
        min-height: 200px;
    }
    
    /* Hero Card - First Big Card */
    .modern-grid-left-col .modern-card:first-child {
        min-height: 280px;
        border-radius: 12px;
    }
    
    .modern-card {
        min-height: 160px;
        border-radius: 12px;
        overflow: hidden;
    }
    
    .modern-card-bg {
        border-radius: 12px;
    }
    
    .modern-card-content {
        padding: 12px;
        border-radius: 12px;
    }
    
    .modern-card-title {
        font-size: 0.9rem;
        line-height: 1.5;
        overflow: visible;
        text-overflow: unset;
        -webkit-line-clamp: unset;
        display: block;
    }
    
    .modern-grid-left-col .modern-card:first-child .modern-card-title {
        font-size: 1.25rem;
    }
    
    .modern-card-category {
        padding: 4px 10px;
        font-size: 0.7rem;
        border-radius: 6px;
        top: 10px;
        left: 10px;
    }
    
    /* Sports Section - Modern Layout */
    .sports-grid-container-final {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .sports-grid-right-final {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .sports-card-large {
        min-height: 350px !important;
        border-radius: 16px;
    }
    
    .sports-card-large .sports-card-bg {
        border-radius: 16px;
    }
    
    .sports-card {
        min-height: 150px;
        border-radius: 12px;
    }
    
    .sports-card-bg {
        border-radius: 12px;
    }
    
    .sports-card-content {
        padding: 12px;
        border-radius: 0 0 12px 12px;
    }
    
    .sports-card-large .sports-card-title {
        font-size: 1.2rem;
    }
    
    .sports-card-title {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Health Section - Card Style */
    .health-grid-top {
        gap: 12px;
    }
    
    .health-card-top {
        display: flex !important;
        flex-direction: row !important;
        padding: 12px !important;
        border-radius: 12px !important;
        gap: 12px !important;
        align-items: flex-start !important;
    }
    
    .health-card-top-img {
        width: 120px !important;
        height: 120px !important;
        border-radius: 10px !important;
        flex-shrink: 0 !important;
        object-fit: cover !important;
    }
    
    .health-card-top-title {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        flex: 1 !important;
        text-align: right !important;
    }
    
    .health-grid-bottom {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .health-card-bottom {
        border-radius: 12px;
    }
    
    .health-card-bottom-img {
        height: 120px;
        border-radius: 12px 12px 0 0;
    }
    
    .health-card-bottom-content {
        padding: 10px;
    }
    
    .health-card-bottom-title {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Technology Section - Grid Layout */
    .tech-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .tech-card {
        border-radius: 12px;
        overflow: hidden;
    }
    
    .tech-card-img {
        height: 120px;
        width: 100%;
        object-fit: cover;
        border-radius: 12px 12px 0 0;
    }
    
    .tech-card-content {
        padding: 10px;
    }
    
    .tech-card-title {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* White Card Section - Mixed Layout */
    .white-card-grid-top {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .white-card-grid-bottom {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .white-card {
        border-radius: 12px;
        overflow: hidden;
    }
    
    .white-card-img-large {
        height: 180px;
    }
    
    .white-card-img-small {
        height: 110px;
    }
    
    .white-card-content {
        padding: 12px;
    }
    
    .white-card-title-large {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .white-card-title-small {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
/* Section Headers - Modern Style (mobile tweaks) */
.final-section-header {
    margin-top: 30px;
    margin-bottom: 12px;
}

/* Keep same desktop look on mobile: no full red bar */
.final-title-wrapper {
    display: flex;
    align-items: center;
    background: none;
    padding: 0;
    border-radius: 0;
}

.final-title-wrapper h1,
.final-title-wrapper h1.archive-page-title,
.final-title-wrapper h2 {
    font-size: 1.6rem;
    padding-right: 15px;
}

.final-title-wrapper h1 a,
.final-title-wrapper h2 a {
    color: inherit;
}

.final-title-wrapper .vertical-line {
    display: block;
}
    
    /* Section Grids Base */
    .health-grid-top,
    .sports-grid-left {
        grid-template-columns: 1fr;
    }
    
    /* Category Page */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-card-main {
        grid-column: span 1;
    }
    
    .category-card-main-inner {
        display: flex;
        flex-direction: column;
    }
    
    .category-card-main .category-card-content {
        padding: 15px;
    }
    
    /* Article Page - Full Responsive */
    .page-container {
        padding: 0;
    }
    
    .article-layout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .main-content-col {
        padding: 0;
    }
    
    .article-header {
        margin-bottom: 20px;
    }
    
    .breadcrumbs {
        font-size: 0.85rem;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .article-title {
        font-size: 1.5rem;
        line-height: 1.5;
    }
    
    .featured-image {
        border-radius: 10px;
        margin-bottom: 15px;
    }
    
    .article-meta {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 15px;
        padding: 12px 15px;
        font-size: 0.85rem;
    }
    
    .article-meta span {
        white-space: nowrap;
    }
    
    .meta-share-container {
        margin-right: 0;
    }
    
    .meta-share-button {
        padding: 5px 10px;
        background: #f0f0f0;
        border-radius: 5px;
        cursor: pointer;
    }
    
    .meta-share-dropdown {
        position: absolute;
        top: 100%;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(10px);
        min-width: 180px;
        padding: 12px 15px;
        gap: 18px;
        justify-content: center;
    }
    
    .meta-share-dropdown.show {
        visibility: visible;
        opacity: 1;
        transform: translateX(-50%) translateY(5px);
    }
    
    .meta-share-dropdown::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .meta-share-dropdown a {
        font-size: 1.6rem;
    }
    
    .article-body p,
    .entry-content p {
        font-size: 1.05rem;
        line-height: 1.8;
        margin-bottom: 20px;
    }
    
    .article-body img,
    .entry-content img {
        border-radius: 8px;
    }
    
    .article-tags {
        margin-top: 25px;
        padding-top: 20px;
        border-top: 1px solid #eee;
    }
    
    .tags-list {
        justify-content: flex-start;
    }
    
    .tags-list a {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    /* Related Posts - Mobile */
    .related-posts-section {
        margin-top: 35px;
        padding-top: 25px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .related-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        background: #f9f9f9;
        border-radius: 10px;
        overflow: hidden;
    }
    
    .related-card-img {
        width: 120px;
        height: 90px;
        flex-shrink: 0;
        object-fit: cover;
        border-radius: 10px;
    }
    
    .related-card-content {
        padding: 10px;
        flex: 1;
    }
    
    .related-card-title {
        font-size: 0.95rem;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* Sidebar - Mobile */
    .sidebar-col {
        margin-top: 20px;
        padding-top: 25px;
        border-top: 2px solid #f0f0f0;
    }
    
    .sidebar-news-list {
        gap: 15px;
    }
    
    .sidebar-news-item {
        grid-template-columns: 1fr 100px;
        gap: 12px;
        padding: 12px;
        border-radius: 10px;
    }
    
    .sidebar-news-item img {
        height: 75px;
        border-radius: 8px;
    }
    
    .sidebar-news-item h4 {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Comments - Mobile */
    .comments-section {
        margin-top: 35px;
        padding-top: 25px;
    }
    
    /* Comments wrapper - full width on mobile */
    .comments-wrapper {
        grid-column: 1 / -1;
    }
    
    /* Make article-layout-grid flex on mobile for proper stacking */
    .article-layout-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    
    /* ============================================
       STATIC PAGES - MOBILE RESPONSIVE
       (Privacy Policy, About, Contact, etc.)
       ============================================ */
    
    .page-content-wrapper {
        padding: 25px 20px;
        margin: 15px;
        border-radius: 12px;
    }
    
    .page-content-wrapper .entry-header {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }
    
    .page-content-wrapper .entry-title {
        font-size: 1.6rem;
    }
    
    .page-content-wrapper .featured-image {
        margin-bottom: 25px;
    }
    
    .page-content-wrapper .featured-image img {
        border-radius: 10px;
    }
    
    .page-content-wrapper .entry-content {
        font-size: 1rem;
        line-height: 1.9;
    }
    
    .page-content-wrapper .entry-content h2 {
        font-size: 1.35rem;
        margin: 30px 0 15px;
    }
    
    .page-content-wrapper .entry-content h3 {
        font-size: 1.2rem;
        margin: 25px 0 12px;
    }
    
    .page-content-wrapper .entry-content h4 {
        font-size: 1.1rem;
    }
    
    .page-content-wrapper .entry-content ul,
    .page-content-wrapper .entry-content ol {
        padding-right: 20px;
    }
    
    .page-content-wrapper .entry-content blockquote {
        padding: 20px;
        margin: 25px 0;
    }
    
    .page-content-wrapper .entry-content table {
        font-size: 0.9rem;
        display: block;
        overflow-x: auto;
    }
    
    .page-content-wrapper .entry-content th,
    .page-content-wrapper .entry-content td {
        padding: 10px 12px;
    }
    
    .page-content-wrapper + .comments-area {
        margin: 25px 15px 0;
        padding: 20px;
        border-radius: 12px;
    }

    /* ============================================
       CATEGORY PAGE - MOBILE RESPONSIVE
       ============================================ */
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-card-main {
        grid-column: 1;
    }
    
    .category-card-main-inner {
        display: flex;
        flex-direction: column;
    }
    
    .category-card-main .category-card-img {
        aspect-ratio: 16 / 9;
        height: auto;
        border-radius: 10px 10px 0 0;
    }
    
    .category-card-main .category-card-content {
        padding: 15px;
        border-radius: 0 0 10px 10px;
    }
    
    .category-card-main .category-card-title {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    /* Secondary cards - Same style as main card */
    .category-card-secondary {
        display: flex;
        flex-direction: column;
        background: #f9f9f9;
        border-radius: 10px;
        overflow: hidden;
        padding: 0;
    }
    
    .category-card-secondary .category-card-img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        border-radius: 10px 10px 0 0;
    }
    
    .category-card-secondary .category-card-content {
        padding: 15px;
    }
    
    .category-card-secondary .category-card-title {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    /* Pagination - Mobile */
    .pagination-wrapper {
        margin-top: 30px;
        padding: 20px 0;
    }
    
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .page-numbers {
        padding: 8px 14px;
        font-size: 0.9rem;
        border-radius: 6px;
    }

    /* Author Page */
    .author-profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin: 0 auto 20px;
    }
    
    .author-posts-grid {
        grid-template-columns: 1fr;
    }
    
    /* Sidebar */
    .sidebar-news-item {
        grid-template-columns: 1fr 80px;
        gap: 10px;
    }
    
    /* Footer */
    .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-nav-links li {
        display: block;
        margin: 10px 0;
    }
    
    /* Comments */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .replies-container {
        margin-right: 20px;
        padding-right: 15px;
    }
    
    /* List Items */
    .list-item {
        flex-direction: column;
    }
    
    .list-item-thumb {
        width: 100%;
        height: 180px;
    }
    
    /* Footer - Mobile & Tablet */
    .footer-top-row {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .footer-logo-container {
        order: 1;
        display: flex;
        justify-content: center;
    }
    
    .footer-logo-container img,
    .footer-logo-container .footer-logo-img {
        max-height: 65px;
        margin: 0 auto;
    }
    
    .footer-social-wrapper {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .footer-social-wrapper h5 {
        display: block;
        font-size: 1.1rem;
        margin: 0;
    }
    
    .footer-social-icons {
        justify-content: center;
        gap: 25px;
    }
    
    .footer-social-icons a {
        font-size: 1.5rem;
    }
    
    .footer-bottom-row {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-nav-links {
        justify-content: center;
    }
}

/* ===== MOBILE PORTRAIT (max-width: 480px) ===== */
@media (max-width: 480px) {
    /* Base */
    header,
    main {
        padding: 0 10px;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    .logo img,
    .logo .site-logo-img {
        max-height: 45px;
    }
    
    /* Modern Grid - Smaller screens */
    .modern-grid-right-col,
    .bottom-row-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .modern-grid-left-col .modern-card:first-child {
        min-height: 240px;
    }
    
    .modern-card {
        min-height: 140px;
        border-radius: 10px;
    }
    
    .modern-card-title {
        font-size: 0.85rem;
    }
    
    .modern-grid-left-col .modern-card:first-child .modern-card-title {
        font-size: 1.1rem;
    }
    
    .modern-card-content {
        padding: 10px;
    }
    
    .modern-card-category {
        padding: 3px 8px;
        font-size: 0.65rem;
        top: 8px;
        left: 8px;
    }
    
    /* Sports Section */
    .sports-grid-right-final {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .sports-card-large {
        min-height: 220px;
    }
    
    .sports-card {
        min-height: 130px;
    }
    
    .sports-card-large .sports-card-title {
        font-size: 1.05rem;
    }
    
    .sports-card-title {
        font-size: 0.8rem;
    }
    
    /* Health Section */
    .health-grid-bottom {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .health-card-bottom {
        display: flex;
        flex-direction: column;
    }
    
    .health-card-bottom-img {
        height: 120px;
        width: 100%;
        object-fit: cover;
        border-radius: 10px;
    }
    
    .health-card-bottom-content {
        padding: 10px 5px;
    }
    
    .health-card-bottom-title {
        font-size: 0.85rem;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* Tech Section */
    .tech-card {
        flex: 0 0 80%;
    }
    
    .tech-card-img {
        height: 140px;
    }
    
    .tech-card-title {
        font-size: 0.85rem;
    }
    
    /* White Card Section */
    .white-card-grid-bottom {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .white-card-img-large {
        height: 160px;
    }
    
    .white-card-img-small {
        height: 95px;
    }
    
    .white-card-title-large {
        font-size: 1rem;
    }
    
    .white-card-title-small {
        font-size: 0.8rem;
    }
    
    /* Section Headers */
    .final-title-wrapper {
        padding: 8px 14px;
        border-radius: 8px;
    }
    
    .final-title-wrapper h2 {
        font-size: 1rem;
    }
    
    /* Category Cards - 480px */
    .category-card-content {
        padding: 12px;
    }
    
    .category-card-title {
        font-size: 1rem;
    }
    
    .category-card-main .category-card-title,
    .category-card-secondary .category-card-title {
        font-size: 1rem;
    }
    
    /* Static Pages - 480px */
    .page-content-wrapper {
        padding: 20px 15px;
        margin: 10px;
        border-radius: 10px;
    }
    
    .page-content-wrapper .entry-title {
        font-size: 1.4rem;
    }
    
    .page-content-wrapper .entry-content {
        font-size: 0.95rem;
    }
    
    .page-content-wrapper .entry-content h2 {
        font-size: 1.2rem;
    }
    
    .page-content-wrapper .entry-content h3 {
        font-size: 1.1rem;
    }
    
    .page-content-wrapper .entry-content blockquote {
        padding: 15px;
    }
    
    .page-content-wrapper + .comments-area {
        margin: 20px 10px 0;
        padding: 15px;
    }

    /* Article Page - 480px */
    .article-title {
        font-size: 1.25rem;
        line-height: 1.5;
    }
    
    .breadcrumbs {
        font-size: 0.75rem;
    }
    
    .article-meta {
        font-size: 0.8rem;
        padding: 10px 12px;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .meta-share-button {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .article-body p,
    .entry-content p {
        font-size: 1rem;
        line-height: 1.75;
    }
    
    .tags-list a {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    
    /* Related Cards - 480px */
    .related-card-img {
        width: 100px;
        height: 75px;
    }
    
    .related-card-title {
        font-size: 0.9rem;
    }
    
    .related-card-content {
        padding: 8px;
    }
    
    /* Sidebar - 480px */
    .sidebar-news-item {
        grid-template-columns: 1fr 90px;
    }
    
    .sidebar-news-item img {
        height: 70px;
    }
    
    .sidebar-news-item h4 {
        font-size: 0.9rem;
    }
    
    /* Comments */
    .comment-item {
        padding: 15px;
    }
    
    .comment-author {
        font-size: 1rem;
    }
    
    .comment-body,
    .comment-body p {
        font-size: 0.95rem;
    }
    
    .comment-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .replies-container {
        margin-right: 10px;
        padding-right: 10px;
    }
    
    /* Related Cards */
    .related-card-title {
        font-size: 0.95rem;
    }
    
    .related-card-content {
        padding: 12px;
    }
    
    /* Sidebar */
    .sidebar-news-item h4 {
        font-size: 0.9rem;
    }
    
    /* Theme Toggle */
    .theme-toggle {
        padding: 3px;
        gap: 12px;
        height: 28px;
    }
    
    .theme-toggle .sun-icon,
    .theme-toggle .moon-icon {
        width: 22px;
        height: 22px;
    }
    
    .theme-toggle .sun-icon svg,
    .theme-toggle .moon-icon svg {
        width: 14px;
        height: 14px;
    }
    
    /* Share Dropdown */
    .meta-share-dropdown {
        padding: 8px 12px;
        gap: 15px;
    }
    
    .meta-share-dropdown a {
        font-size: clamp(1.2rem, 6vw, 1.6rem);
    }
    
    /* Pagination */
    .pagination-wrapper {
        padding: 15px 0;
    }
    
    .nav-links {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-numbers {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    /* Footer - Mobile */
    .site-footer {
        padding: 25px 15px;
    }
    
    .footer-top-row {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding-bottom: 20px;
    }
    
    .footer-logo-container {
        order: 1;
        display: flex;
        justify-content: center;
    }
    
    .footer-logo-container img,
    .footer-logo-container .footer-logo-img {
        max-height: 60px;
        margin: 0 auto;
    }
    
    .footer-social-wrapper {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .footer-social-wrapper h5 {
        display: block;
        font-size: 1.1rem;
        margin: 0;
    }
    
    .footer-social-icons {
        justify-content: center;
        gap: 25px;
    }
    
    .footer-social-icons a {
        font-size: 1.5rem;
    }
    
    .footer-bottom-row {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding-top: 20px;
    }
    
    .footer-nav-links {
        justify-content: center;
        gap: 15px;
    }
    
    .footer-nav-links a {
        font-size: 0.9rem;
    }
    
    .copyright-text {
        font-size: 0.85rem;
    }
}

/* ===== VERY SMALL SCREENS (max-width: 360px) ===== */
@media (max-width: 360px) {
    .logo {
        font-size: 1.4rem;
    }
    
    .logo img,
    .logo .site-logo-img {
        max-height: 35px;
    }
    
    .modern-card {
        min-height: 160px;
    }
    
    .final-title-wrapper h2 {
        font-size: 1.2rem;
    }
    
    /* Article Page - 360px */
    .article-title {
        font-size: 1.15rem;
        line-height: 1.45;
    }
    
    .breadcrumbs {
        font-size: 0.7rem;
    }
    
    .article-meta {
        font-size: 0.75rem;
        padding: 8px 10px;
        gap: 8px;
    }
    
    .article-meta i {
        font-size: 0.9rem;
    }
    
    .meta-share-button {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
    
    .article-body p,
    .entry-content p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 18px;
    }
    
    .tags-list a {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    /* Related Cards - 360px */
    .related-card {
        gap: 10px;
    }
    
    .related-card-img {
        width: 85px;
        height: 65px;
    }
    
    .related-card-title {
        font-size: 0.85rem;
    }
    
    .related-card-content {
        padding: 6px;
    }
    
    /* Sidebar - 360px */
    .sidebar-news-item {
        grid-template-columns: 1fr 80px;
        padding: 10px;
        gap: 10px;
    }
    
    .sidebar-news-item img {
        height: 60px;
    }
    
    .sidebar-news-item h4 {
        font-size: 0.85rem;
    }
    
    /* Comments - 360px */
    .comment-item {
        padding: 12px;
    }
    
    .comment-author {
        font-size: 0.9rem;
    }
    
    .comment-body,
    .comment-body p {
        font-size: 0.9rem;
    }
    
    .replies-container {
        margin-right: 8px;
        padding-right: 8px;
    }
    
    /* Category Page - 360px */
    .category-card-main .category-card-title {
        font-size: 1rem;
    }
    
    .category-card-main .category-card-content {
        padding: 12px;
    }
    
    .category-card-secondary {
        padding: 8px;
        gap: 10px;
    }
    
    .category-card-secondary .category-card-img {
        width: 85px;
        height: 65px;
    }
    
    .category-card-secondary .category-card-title {
        font-size: 0.8rem;
    }
    
    .page-numbers {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    nav a {
        font-size: 1rem;
    }
}

/* ===== DARK MODE RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
    [data-theme="dark"] nav ul {
        background-color: var(--bg-primary);
    }
    
    [data-theme="dark"] nav ul li {
        border-bottom-color: var(--border-color);
    }
    
    [data-theme="dark"] .search-bar-container {
        background-color: #3d4654;
    }
    
    [data-theme="dark"] .mobile-menu-toggle {
        background-color: #3d4654;
        color: var(--text-primary);
    }
    
    [data-theme="dark"] .mobile-search {
        background-color: #3d4654;
        color: var(--text-primary);
    }
    
    [data-theme="dark"] .mobile-menu-toggle:hover,
    [data-theme="dark"] .mobile-search:hover {
        background-color: #47505d;
    }
    
    [data-theme="dark"] .nav-container {
        background-color: var(--bg-primary);
        box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    }
    
    [data-theme="dark"] .mobile-menu-logo {
        border-bottom-color: var(--border-color);
        background-color: var(--bg-primary) !important;
    }
    
    [data-theme="dark"] .mobile-menu-logo-text {
        color: var(--text-primary);
    }
    
    [data-theme="dark"] .mobile-menu-close {
        color: var(--text-secondary);
        background-color: #3d4654 !important;
    }
    
    [data-theme="dark"] .mobile-menu-close:hover {
        background-color: #47505d !important;
        color: var(--text-primary);
    }
    
    [data-theme="dark"] .mobile-menu-footer {
        border-top-color: var(--border-color);
        background-color: var(--bg-primary) !important;
    }

    [data-theme="dark"] .mobile-menu-toggle-wrapper {
        border-bottom-color: var(--border-color);
        border-top-color: var(--border-color) !important;
        background-color: var(--bg-primary) !important;
    }

    [data-theme="dark"] .mobile-menu-toggle-label {
        color: var(--text-primary) !important;
    }

    [data-theme="dark"] .theme-toggle-switch {
        background-color: #3d4654 !important;
    }    [data-theme="dark"] .theme-toggle-switch .sun-btn,
    [data-theme="dark"] .theme-toggle-switch .moon-btn {
        color: var(--text-secondary);
    }
    
    [data-theme="dark"] .mobile-menu-social a {
        color: var(--text-secondary);
    }
    
    [data-theme="dark"] .mobile-menu-social a:hover {
        color: #d4af37;
    }
    
    [data-theme="dark"] nav a,
    [data-theme="dark"] .nav-container nav a,
    [data-theme="dark"] .nav-container nav ul li a,
    [data-theme="dark"] .nav-container .main-navigation a,
    [data-theme="dark"] #primary-menu > li > a {
        color: var(--text-primary) !important;
        background: var(--bg-primary) !important;
        background-color: var(--bg-primary) !important;
    }
    
    [data-theme="dark"] nav a:hover,
    [data-theme="dark"] .nav-container nav a:hover,
    [data-theme="dark"] .nav-container nav ul li a:hover,
    [data-theme="dark"] #primary-menu > li > a:hover {
        background: #1a2a3f !important;
        background-color: #1a2a3f !important;
    }
    
    [data-theme="dark"] .nav-container nav ul li,
    [data-theme="dark"] #primary-menu > li {
        border-bottom-color: var(--border-color) !important;
    }
    
    [data-theme="dark"] .nav-container nav ul li::before {
        color: var(--text-primary) !important;
    }
    
    [data-theme="dark"] .nav-container nav ul li.current-menu-item::before,
    [data-theme="dark"] .nav-container nav ul li.current_page_item::before {
        color: #d9534f !important;
    }
    
    [data-theme="dark"] .nav-container nav ul li.current-menu-item a,
    [data-theme="dark"] .nav-container nav ul li.current_page_item a,
    [data-theme="dark"] #primary-menu > li.current-menu-item > a,
    [data-theme="dark"] #primary-menu > li.current_page_item > a {
        background: rgba(217, 83, 79, 0.15) !important;
        background-color: rgba(217, 83, 79, 0.15) !important;
    }
    
    /* Mobile Search Popup Dark Mode */
    [data-theme="dark"] .mobile-search-popup {
        background-color: var(--bg-primary);
    }
    
    [data-theme="dark"] .mobile-search-form {
        background-color: #3d4654;
    }
    
    [data-theme="dark"] .mobile-search-field {
        color: var(--text-primary);
    }
    
    [data-theme="dark"] .mobile-search-field::placeholder {
        color: var(--text-secondary);
    }
    
    [data-theme="dark"] .mobile-search-close {
        color: var(--text-secondary);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .site-header,
    .site-footer,
    .sidebar-col,
    .comments-section,
    .related-posts-section,
    .theme-toggle,
    .nav-search-icon,
    .search-bar-container {
        display: none !important;
    }
    
    .article-layout-grid {
        grid-template-columns: 1fr !important;
    }
    
    body {
        background: #fff !important;
        color: #000 !important;
    }
}

/* ========================================
   MOBILE MENU FIXES - HIGHEST PRIORITY
   ======================================== */
@media (max-width: 768px) {
    .mobile-menu-footer .mobile-menu-toggle-wrapper {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 18px 20px !important;
        border-top: 1px solid #e5e5e5 !important;
        border-bottom: 1px solid #e5e5e5 !important;
        background: #fff !important;
        box-sizing: border-box !important;
    }
    
    .mobile-menu-footer .mobile-menu-toggle-wrapper .mobile-menu-toggle-label {
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: #1a1a1a !important;
        order: 2 !important;
        margin: 0 !important;
    }
    
    .mobile-menu-footer .mobile-menu-toggle-wrapper .theme-toggle-switch {
        display: flex !important;
        align-items: center !important;
        background: #eee !important;
        border-radius: 30px !important;
        padding: 4px !important;
        gap: 4px !important;
        order: 1 !important;
        margin: 0 !important;
    }
    
    /* Dark Mode Overrides for Mobile Menu Footer */
    [data-theme="dark"] .mobile-menu-footer .mobile-menu-toggle-wrapper {
        background: var(--bg-primary) !important;
        border-top-color: var(--border-color) !important;
        border-bottom-color: var(--border-color) !important;
    }
    
    [data-theme="dark"] .mobile-menu-footer .mobile-menu-toggle-wrapper .mobile-menu-toggle-label {
        color: var(--text-primary) !important;
    }
    
    [data-theme="dark"] .mobile-menu-footer .mobile-menu-toggle-wrapper .theme-toggle-switch {
        background: #3d4654 !important;
    }
}

/* ========================================
   DARK MODE MOBILE MENU - FINAL OVERRIDES
   ======================================== */
@media (max-width: 768px) {
    [data-theme="dark"] .nav-container {
        background: #1e2936 !important;
        background-color: #1e2936 !important;
    }
    
    [data-theme="dark"] .mobile-menu-logo {
        background: #1e2936 !important;
        background-color: #1e2936 !important;
        border-bottom-color: #3d4654 !important;
    }
    
    [data-theme="dark"] .nav-container nav a,
    [data-theme="dark"] .nav-container nav ul li a,
    [data-theme="dark"] .nav-container .main-navigation a,
    [data-theme="dark"] #primary-menu > li > a,
    [data-theme="dark"] .nav-container nav > ul > li > a {
        background: #1e2936 !important;
        background-color: #1e2936 !important;
        color: #e8e8e8 !important;
    }
    
    [data-theme="dark"] .nav-container nav a:hover,
    [data-theme="dark"] .nav-container nav ul li a:hover,
    [data-theme="dark"] #primary-menu > li > a:hover {
        background: #283544 !important;
        background-color: #283544 !important;
    }
    
    [data-theme="dark"] .nav-container nav ul li,
    [data-theme="dark"] #primary-menu > li {
        border-bottom-color: #3d4654 !important;
    }
    
    [data-theme="dark"] .mobile-menu-footer {
        background: #1e2936 !important;
        background-color: #1e2936 !important;
    }
    
    [data-theme="dark"] .mobile-menu-footer .mobile-menu-toggle-wrapper,
    [data-theme="dark"] .mobile-menu-toggle-wrapper {
        background: #1e2936 !important;
        background-color: #1e2936 !important;
        border-top-color: #3d4654 !important;
        border-bottom-color: #3d4654 !important;
    }
    
    [data-theme="dark"] .mobile-menu-toggle-label {
        color: #e8e8e8 !important;
    }
    
    [data-theme="dark"] .mobile-menu-social {
        background: #1e2936 !important;
        background-color: #1e2936 !important;
    }
}

/* ============================================
   Contact Page Styles - صفحة تواصل معنا
   ============================================ */

.contact-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.contact-content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

/* Contact Form Card */
.contact-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

.contact-form-card h2 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form-card h2 i {
    color: #d9534f;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contact-form label i {
    color: #d9534f;
    margin-left: 5px;
}

.contact-form label .required {
    color: #d9534f;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #d9534f;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(217, 83, 79, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-submit-btn {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #d9534f 0%, #c9302c 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 83, 79, 0.35);
}

/* Contact Info Sidebar */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info-card,
.contact-social-card,
.contact-note-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

.contact-info-card h3,
.contact-social-card h3,
.contact-note-card h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-card h3 i,
.contact-social-card h3 i,
.contact-note-card h3 i {
    color: #d9534f;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-info-list li:last-child {
    border-bottom: none;
}

.contact-info-list li > i {
    color: #d9534f;
    font-size: 1.2rem;
    margin-top: 3px;
}

.contact-info-list li strong {
    display: block;
    color: #333;
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.contact-info-list li a {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
}

.contact-info-list li a:hover {
    color: #d9534f;
}

/* Social Icons */
.contact-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-social-icons .social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-social-icons .social-icon:hover {
    transform: translateY(-3px);
}

.contact-social-icons .facebook { background: #1877f2; }
.contact-social-icons .twitter { background: #000; }
.contact-social-icons .instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.contact-social-icons .youtube { background: #ff0000; }
.contact-social-icons .whatsapp { background: #25d366; }
.contact-social-icons .telegram { background: #0088cc; }

.contact-note-card p {
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* Alert Messages */
.contact-alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.contact-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Dark Mode */
[data-theme="dark"] .contact-title {
    color: #fff;
}

[data-theme="dark"] .contact-subtitle {
    color: #aaa;
}

[data-theme="dark"] .contact-form-card,
[data-theme="dark"] .contact-info-card,
[data-theme="dark"] .contact-social-card,
[data-theme="dark"] .contact-note-card {
    background: #1e2a3a;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
}

[data-theme="dark"] .contact-form-card h2,
[data-theme="dark"] .contact-info-card h3,
[data-theme="dark"] .contact-social-card h3,
[data-theme="dark"] .contact-note-card h3 {
    color: #fff;
}

[data-theme="dark"] .contact-form label {
    color: #ccc;
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
    background: #2a3a4a;
    border-color: #3a4a5a;
    color: #fff;
}

[data-theme="dark"] .contact-form input::placeholder,
[data-theme="dark"] .contact-form textarea::placeholder {
    color: #888;
}

[data-theme="dark"] .contact-info-list li {
    border-bottom-color: #3a4a5a;
}

[data-theme="dark"] .contact-info-list li strong {
    color: #fff;
}

[data-theme="dark"] .contact-info-list li a {
    color: #aaa;
}

[data-theme="dark"] .contact-note-card p {
    color: #aaa;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-content-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-section {
        order: -1;
    }
}

@media (max-width: 600px) {
    .contact-title {
        font-size: 1.8rem;
    }
    
    .contact-form-card {
        padding: 25px 20px;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ============================================
   Static Pages Styles - الصفحات الثابتة
   ============================================ */

.static-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.static-page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid #d9534f;
}

.static-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.static-page-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.static-page-content-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    overflow: hidden;
}

.static-page-featured-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.static-page-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.static-page-body {
    padding: 40px;
}

.static-page-body h2 {
    font-size: 1.6rem;
    color: #333;
    margin: 35px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.static-page-body h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background: #d9534f;
}

.static-page-body h3 {
    font-size: 1.3rem;
    color: #444;
    margin: 25px 0 15px;
}

.static-page-body h4 {
    font-size: 1.1rem;
    color: #555;
    margin: 20px 0 12px;
}

.static-page-body p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 18px;
}

.static-page-body ul,
.static-page-body ol {
    margin: 20px 0;
    padding-right: 25px;
}

.static-page-body li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 10px;
}

.static-page-body a {
    color: #d9534f;
    text-decoration: none;
    border-bottom: 1px dashed #d9534f;
    transition: all 0.3s ease;
}

.static-page-body a:hover {
    color: #c9302c;
    border-bottom-style: solid;
}

.static-page-body blockquote {
    background: #f8f9fa;
    border-right: 4px solid #d9534f;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #555;
}

.static-page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.static-page-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.static-page-body th,
.static-page-body td {
    padding: 12px 15px;
    text-align: right;
    border: 1px solid #e8e8e8;
}

.static-page-body th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.static-page-body tr:nth-child(even) {
    background: #fafafa;
}

/* Dark Mode - Static Pages */
[data-theme="dark"] .static-page-title {
    color: #fff;
}

[data-theme="dark"] .static-page-subtitle {
    color: #aaa;
}

[data-theme="dark"] .static-page-content-wrapper {
    background: #1e2a3a;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
}

[data-theme="dark"] .static-page-body h2,
[data-theme="dark"] .static-page-body h3,
[data-theme="dark"] .static-page-body h4 {
    color: #fff;
}

[data-theme="dark"] .static-page-body h2 {
    border-bottom-color: #3a4a5a;
}

[data-theme="dark"] .static-page-body p,
[data-theme="dark"] .static-page-body li {
    color: #bbb;
}

[data-theme="dark"] .static-page-body blockquote {
    background: #2a3a4a;
    color: #ccc;
}

[data-theme="dark"] .static-page-body th {
    background: #2a3a4a;
    color: #fff;
}

[data-theme="dark"] .static-page-body th,
[data-theme="dark"] .static-page-body td {
    border-color: #3a4a5a;
}

[data-theme="dark"] .static-page-body tr:nth-child(even) {
    background: #253545;
}

/* ============================================
   Dark Mode - Entry/Page Content (Legacy Classes)
   أنماط الوضع المظلم للـ classes القديمة
   ============================================ */
[data-theme="dark"] .page-content-wrapper {
    background: #1e2a3a;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
}

[data-theme="dark"] .entry-header .entry-title,
[data-theme="dark"] .page-content-wrapper .entry-title {
    color: #fff;
}

[data-theme="dark"] .entry-content {
    color: #bbb;
}

[data-theme="dark"] .entry-content h1,
[data-theme="dark"] .entry-content h2,
[data-theme="dark"] .entry-content h3,
[data-theme="dark"] .entry-content h4,
[data-theme="dark"] .entry-content h5,
[data-theme="dark"] .entry-content h6 {
    color: #fff;
}

[data-theme="dark"] .entry-content p,
[data-theme="dark"] .entry-content li {
    color: #bbb;
}

[data-theme="dark"] .entry-content blockquote {
    background: #2a3a4a;
    color: #ccc;
    border-color: #d9534f;
}

[data-theme="dark"] .entry-content table th {
    background: #2a3a4a;
    color: #fff;
}

[data-theme="dark"] .entry-content table th,
[data-theme="dark"] .entry-content table td {
    border-color: #3a4a5a;
    color: #bbb;
}

[data-theme="dark"] .entry-content table tr:nth-child(even) {
    background: #253545;
}

[data-theme="dark"] .entry-footer {
    color: #888;
}

[data-theme="dark"] .featured-image img {
    opacity: 0.9;
}

/* Responsive - Static Pages */
@media (max-width: 768px) {
    .static-page-container {
        padding: 25px 15px;
    }
    
    .static-page-title {
        font-size: 1.8rem;
    }
    
    .static-page-body {
        padding: 25px 20px;
    }
    
    .static-page-body h2 {
        font-size: 1.4rem;
    }
    
    .static-page-body p,
    .static-page-body li {
        font-size: 1rem;
    }
}

/* DARK MODE - Category Header Title Fix */
[data-theme="dark"] .final-title-wrapper h1.archive-page-title {
    color: var(--text-primary);
}



