/*
Theme Name: Almisaha Axios Pro
Theme URI: https://almisaha.com
Author: Almisaha Team
Description: Modern Arabic news theme inspired by Axios.com - Enhanced with post formats, featured section, widgets
Version: 2.8.3
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: almisaha-axios
Domain Path: /languages
*/

:root {
    --primary-color: #1151D3;
    --secondary-color: #202F5B;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --heading-font: 'Josefin Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    direction: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: #fff;
}

/* ===== HEADER & LOGO ===== */
.site-header {
    background: #EFEFEF;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-logo-text {
    font-family: var(--heading-font);
    letter-spacing: -0.5px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: clamp(0.1rem, 2vw, 0.25rem);
    font-weight: 900;
}

.site-logo-text span:first-child {
    color: var(--primary-color);
    font-size: clamp(1.1em, 3vw, 1.4em);
}

.site-logo-text span:last-child {
    color: #222;
    font-size: clamp(0.8em, 2.5vw, 0.95em);
}

/* ===== MAIN LAYOUT ===== */
.site-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(1rem, 4vw, 2rem);
}

.site-content {
    min-height: 60vh;
}

/* ===== FEATURED ARTICLE ===== */
.featured-article {
    background: var(--bg-white);
    border-bottom: 2px solid var(--border-color);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.featured-article-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.featured-article-text h2 {
    margin-top: 0;
    margin-bottom: clamp(0.5rem, 1.5vw, 0.8rem);
    font-size: 2rem;
    line-height: 1.2;
    color: var(--primary-color);
}

.featured-article-text p {
    color: var(--text-light);
    margin-bottom: clamp(0.5rem, 1.5vw, 0.8rem);
    margin-top: clamp(0.3rem, 1vw, 0.5rem);
    line-height: 1.8;
}

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

/* ===== ARTICLES GRID ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.article-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.article-content {
    padding: clamp(1rem, 3vw, 1.5rem);
}

.article-title {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.article-title a {
    color: var(--text-dark);
    text-decoration: none;
}

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

.article-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ===== SIDEBAR & WIDGETS ===== */
.main-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 4vw, 1.5rem);
}

.sidebar-widget {
    background: var(--bg-light);
    padding: clamp(0.75rem, 3vw, 1.25rem);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-bottom: clamp(1rem, 4vw, 1.5rem);
    transition: all 0.2s ease;
}

.sidebar-widget h3 {
    font-size: clamp(0.95rem, 2.5vw, 1rem);
    margin-bottom: clamp(0.6rem, 2vw, 0.8rem);
    padding-bottom: clamp(0.3rem, 1.5vw, 0.4rem);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 700;
    margin-top: 0;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget li {
    margin-bottom: clamp(0.5rem, 2vw, 0.6rem);
    padding-bottom: clamp(0.5rem, 2vw, 0.6rem);
    border-bottom: 1px solid var(--border-color);
    line-height: 1.4;
}

.sidebar-widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-widget a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    display: block;
    padding: clamp(0.25rem, 0.5vw, 0.35rem) 0;
}

.sidebar-widget a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

/* ===== PAGE STYLING ===== */
.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.page-article {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.page-article h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-article h2:first-child {
    margin-top: 0;
}

.page-article h3 {
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.page-article p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.page-article ul,
.page-article ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.page-article li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* ===== FOOTER ===== */
footer {
    background: #f5f5f5;
    padding: clamp(1.5rem, 3vw, 2rem);
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

footer p {
    margin: 0.5rem 0;
    text-align: center;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: underline;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .featured-article-content {
        grid-template-columns: 1fr;
    }

    .main-with-sidebar {
        grid-template-columns: 1fr;
    }

    .main-with-sidebar.single-post-container {
        grid-template-columns: 1fr;
    }

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

    .page-container {
        padding: 1rem;
    }

    .page-article {
        padding: 1.5rem;
    }
}

/* ===== RTL SUPPORT ===== */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .sidebar-widget a:hover {
    padding-left: 0;
    padding-right: 4px;
}

/* ===== CATEGORIES NAVIGATION ===== */
.categories-nav {
    width: 100%;
    background: #f5f5f5;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: clamp(0.5rem, 2vw, 1rem) 0;
    margin-top: 0.5rem;
}

.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.5rem, 2vw, 1.5rem);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(0.5rem, 2vw, 1rem);
}

.categories-list li {
    margin: 0;
}

.categories-list a {
    display: inline-block;
    padding: clamp(0.4rem, 1.5vw, 0.6rem) clamp(0.5rem, 2vw, 1rem);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    font-weight: 500;
    color: var(--text-dark);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.categories-list a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    text-decoration: none;
}

/* RTL Support for Categories */
[dir="rtl"] .categories-list {
    direction: rtl;
}

/* Mobile Categories Navigation */
@media (max-width: 768px) {
    .categories-list {
        gap: clamp(0.3rem, 1.5vw, 0.8rem);
    }
    
    .categories-list a {
        padding: clamp(0.35rem, 1vw, 0.5rem) clamp(0.4rem, 1.5vw, 0.8rem);
        font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    }
}

/* ===== HEADER STRUCTURE ===== */
.site-header {
    background: #EFEFEF;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    padding: clamp(0.75rem, 2vw, 1.5rem) 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.site-logo {
    display: inline-block;
}

.site-logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: clamp(0.1rem, 2vw, 0.25rem);
}

.site-logo-text {
    display: flex;
    align-items: center;
    gap: clamp(0.1rem, 2vw, 0.25rem);
}

/* ===== ADAPTIVE CATEGORIES NAVIGATION (Axios-style) ===== */
.categories-nav {
    width: 100%;
    background: white;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(0.5rem, 2vw, 1rem);
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(0.5rem, 2vw, 1rem);
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(0.5rem, 2vw, 1rem);
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(0.5rem, 2vw, 1rem);
    display: flex;
    justify-content: center;

.categories-list {
    list-style: none;
    padding: clamp(0.5rem, 1.5vw, 1rem) 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(1rem, 3vw, 2rem);
    justify-content: center;
    white-space: nowrap;
    min-width: min-content;
}

.categories-list li {
    margin: 0;
    flex-shrink: 0;
}

.categories-list a {
    display: inline-block;
    padding: clamp(0.35rem, 1vw, 0.5rem) 0;
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    font-weight: 500;
    color: var(--text-dark);
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}

.categories-list a:hover,
.categories-list a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.categories-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.2s ease;
}

.categories-list a:hover::after,
.categories-list a.active::after {
    width: 100%;
}

/* RTL Support for Categories */
[dir="rtl"] .categories-list {
    direction: rtl;
}

[dir="rtl"] .categories-list a::after {
    right: 0;
    left: auto;
}

/* Desktop - Center alignment with flex space-around */
@media (min-width: 1024px) {
    .categories-list {
        justify-content: center;
        gap: clamp(1.5rem, 4vw, 3rem);
    }
    
    .categories-nav {
        overflow-x: visible;
    }
}

/* Tablet - Horizontal scroll with centered start */
@media (max-width: 1023px) and (min-width: 769px) {
    .categories-list {
        justify-content: flex-start;
        padding-left: clamp(0.5rem, 2vw, 1rem);
    }
}

/* Mobile - Horizontal scrollable navigation */
@media (max-width: 768px) {
    .categories-list {
        gap: clamp(0.8rem, 2vw, 1.5rem);
        padding: clamp(0.4rem, 1vw, 0.8rem) 0;
    }
    
    .categories-list a {
        font-size: clamp(0.75rem, 1.8vw, 0.85rem);
        padding: clamp(0.3rem, 0.8vw, 0.4rem) 0;
    }
    
    .categories-nav {
        overflow-x: scroll;
        scroll-behavior: smooth;
        scrollbar-width: none; /* Firefox */
    }
    
    /* Hide scrollbar for Chrome, Safari, Edge */
    .categories-nav::-webkit-scrollbar {
        display: none;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .categories-list {
        gap: clamp(0.6rem, 1.5vw, 1rem);
    }
    
    .categories-list a {
        font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    }
}

/* ===== LOGO STYLING ===== */
.logo-image {
    height: clamp(3.25rem, 11vw, 5.5rem);
    width: auto;
    max-width: 100%;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: filter 0.2s ease;
}

.site-logo-link:hover .logo-image {
    filter: drop-shadow(0 2px 8px rgba(17, 81, 211, 0.2));
}

/* ===== FOOTER STYLING ===== */
.site-footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1f3a 100%);
    color: #fff;
    padding: clamp(2rem, 4vw, 3rem) 0;
    margin-top: 4rem;
}

.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(0.75rem, 3vw, 2rem);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 700;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    color: #fff;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.footer-about p {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.footer-logo {
    margin-top: 1rem;
    width: clamp(80px, 20vw, 120px);
}

.footer-logo img {
    width: 100%;
    height: auto;
    filter: brightness(0.95);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: clamp(0.5rem, 1.5vw, 0.8rem);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    transition: all 0.2s ease;
    text-decoration: none;
    border-left: 2px solid transparent;
    padding-left: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    text-decoration: none;
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.8rem, 2vw, 1.5rem);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(2.5rem, 6vw, 3.5rem);
    height: clamp(2.5rem, 6vw, 3.5rem);
    background: rgba(17, 81, 211, 0.2);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    transition: all 0.2s ease;
    text-decoration: none;
}

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

.social-icon span {
    display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 1.2em; font-weight: bold;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: clamp(1.5rem, 2vw, 2rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
    text-align: center;
}

.footer-copyright,
.footer-meta {
    font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    color: rgba(255, 255, 255, 0.7);
}

.footer-copyright strong {
    color: var(--primary-color);
}

/* RTL Support for Footer */
[dir="rtl"] .footer-links a {
    border-left: none;
    border-right: 2px solid transparent;
    padding-left: 0;
    padding-right: 0.5rem;
}

[dir="rtl"] .footer-links a:hover {
    border-left: none;
    border-right-color: var(--primary-color);
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 3vw, 2rem);
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-logo {
        margin: 1rem auto 0;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        grid-template-columns: 1fr;
    }
}

/* ===== ARTICLE CARD IMAGES ===== */
.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s ease;
    background: white;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.article-image {
    width: 100%;
    height: clamp(150px, 25vw, 250px);
    overflow: hidden;
    background: #f0f0f0;
}

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

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

.article-content {
    padding: clamp(0.75rem, 3vw, 1.5rem);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-title {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    margin-bottom: clamp(0.5rem, 1.5vw, 0.8rem);
    line-height: 1.4;
}

.article-title a {
    color: var(--text-dark);
    transition: color 0.2s ease;
}

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

.article-excerpt {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    color: #999;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
}

/* RTL Support for Article Cards */
[dir="rtl"] .article-card {
    direction: rtl;
}

/* Mobile Article Cards */
@media (max-width: 768px) {
    .article-image {
        height: clamp(120px, 30vw, 180px);
    }
    
    .article-content {
        padding: clamp(0.6rem, 2vw, 1rem);
    }
}

/* ===== SINGLE ARTICLE PAGE ===== */
.single-post {
    background: white;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 4px;
}

.article-header {
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: clamp(1rem, 2vw, 1.5rem);
}

.article-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
    color: var(--text-dark);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.4;
}

.article-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1rem, 3vw, 2rem);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: var(--text-light);
}

.article-author,
.article-date {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.article-author .label,
.article-date .label {
    font-weight: 700;
    color: var(--text-dark);
}

.article-author a {
    color: var(--primary-color);
    text-decoration: none;
}

.article-author a:hover {
    text-decoration: underline;
}

/* Featured Image on Single Post */
.single-featured-image {
    width: 100%;
    height: clamp(250px, 50vw, 500px);
    overflow: hidden;
    border-radius: 4px;
    margin: clamp(1.5rem, 3vw, 2rem) 0;
    background: #f0f0f0;
}

.single-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Article Body Content */
.article-body {
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    line-height: 1.8;
    color: var(--text-dark);
    margin: clamp(2rem, 4vw, 3rem) 0;
}

.article-body p {
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    text-align: justify;
}

.article-body h2 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    margin: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(0.8rem, 2vw, 1.2rem);
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.article-body h3 {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    margin: clamp(1.2rem, 2.5vw, 1.8rem) 0 clamp(0.6rem, 1.5vw, 1rem);
    color: var(--text-dark);
}

.article-body ul,
.article-body ol {
    margin: clamp(1rem, 2vw, 1.5rem) 0;
    padding-left: clamp(1.5rem, 3vw, 2.5rem);
}

.article-body li {
    margin-bottom: clamp(0.5rem, 1vw, 0.8rem);
    line-height: 1.8;
}

.article-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: clamp(1rem, 2vw, 1.5rem);
    margin: clamp(1.5rem, 3vw, 2rem) 0;
    background: #f9f9f9;
    font-style: italic;
    color: var(--text-light);
}

/* Article Footer Meta */
.article-footer-meta {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: clamp(1rem, 2vw, 1.5rem) 0;
    margin: clamp(2rem, 3vw, 2.5rem) 0;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.article-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.article-categories .label {
    font-weight: 700;
    color: var(--text-dark);
}

.article-categories a {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.35rem 0.8rem;
    border-radius: 3px;
    font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    transition: all 0.2s ease;
}

.article-categories a:hover {
    background: var(--secondary-color);
    text-decoration: none;
}

/* Author Bio */
.author-bio {
    background: #f9f9f9;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: clamp(1.5rem, 3vw, 2rem);
    margin: clamp(2rem, 3vw, 2.5rem) 0;
}

.author-bio-header h3 {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.author-bio-content {
    display: flex;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: clamp(60px, 12vw, 100px);
    height: clamp(60px, 12vw, 100px);
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.author-bio-text h4 {
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.author-bio-text p {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Comments Section */
.article-comments-section {
    margin: clamp(2.5rem, 4vw, 3.5rem) 0;
    padding-top: clamp(1.5rem, 3vw, 2rem);
    border-top: 2px solid var(--border-color);
}

#comments {
    font-size: clamp(0.9rem, 2.1vw, 1rem);
}

#comments h2 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--primary-color);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.commentlist {
    list-style: none;
    padding: 0;
    margin: clamp(1.5rem, 3vw, 2rem) 0;
}

.comment {
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    padding: clamp(1rem, 2vw, 1.5rem);
    background: #f9f9f9;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.comment-author {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.comment-date {
    font-size: clamp(0.8rem, 1.8vw, 0.85rem);
    color: #999;
    margin-bottom: 0.8rem;
}

.comment-text {
    color: var(--text-light);
    line-height: 1.6;
}

/* Comment Form */
#respond {
    background: white;
    padding: clamp(1.5rem, 3vw, 2rem);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-top: clamp(2rem, 3vw, 2.5rem);
}

#respond h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--primary-color);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

/* RTL Support */
[dir="rtl"] .article-body blockquote {
    border-left: none;
    border-right: 4px solid var(--primary-color);
    padding: clamp(1rem, 2vw, 1.5rem);
}

[dir="rtl"] .article-body ul,
[dir="rtl"] .article-body ol {
    padding-left: 0;
    padding-right: clamp(1.5rem, 3vw, 2.5rem);
}

[dir="rtl"] .author-bio-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .comment {
    border-left: none;
    border-right: 4px solid var(--primary-color);
}

/* Mobile Single Post */
@media (max-width: 768px) {
    .article-header-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .single-featured-image {
        height: clamp(200px, 60vw, 350px);
    }
    
    .author-bio-content {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        display: flex;
        justify-content: center;
    }
}

/* ===== ENHANCED RTL SUPPORT FOR ARTICLES ===== */
[dir="rtl"] .article-body {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .article-body p {
    text-align: right;
    direction: rtl;
    unicode-bidi: embed;
}

[dir="rtl"] .article-body h1,
[dir="rtl"] .article-body h2,
[dir="rtl"] .article-body h3,
[dir="rtl"] .article-body h4,
[dir="rtl"] .article-body h5,
[dir="rtl"] .article-body h6 {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .article-body ul,
[dir="rtl"] .article-body ol {
    padding-left: 0;
    padding-right: clamp(1.5rem, 3vw, 2.5rem);
    direction: rtl;
}

[dir="rtl"] .article-body li {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .article-body blockquote {
    border-left: none;
    border-right: 4px solid var(--primary-color);
    padding: clamp(1rem, 2vw, 1.5rem);
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .article-title {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .article-header-meta {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .article-footer-meta {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .author-bio-text {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .single-post {
    direction: rtl;
    text-align: right;
}

/* ===== MOBILE SOCIAL ICONS FIX ===== */
@media (max-width: 768px) {
    .footer-social {
        width: 100%;
    }
    
    .social-links {
        width: 100%;
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .social-icon {
        width: 2.5rem;
        height: 2.5rem;
        display: inline-flex !important;
    }
}

@media (max-width: 480px) {
    .social-links {
        gap: 0.6rem;
    }
    
    .social-icon {
        width: 2.2rem;
        height: 2.2rem;
    }
}

/* ===== MOBILE SOCIAL ICONS FIX ===== */
@media (max-width: 768px) {
    .footer-social {
        width: 100%;
    }
    
    .social-links {
        width: 100%;
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .social-icon {
        width: 2.5rem;
        height: 2.5rem;
        display: inline-flex !important;
    }
}

@media (max-width: 480px) {
    .social-links {
        gap: 0.6rem;
    }
    
    .social-icon {
        width: 2.2rem;
        height: 2.2rem;
    }
}

/* ===== SUBCATEGORIES STYLING ===== */
.subcategories-section {
    background: #f9f9f9;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 2rem;
}

.subcategories-section h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    color: var(--primary-color);
    text-align: center;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.subcat-card {
    background: white;
    padding: clamp(0.8rem, 2vw, 1.2rem);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
    transition: all 0.2s ease;
}

.subcat-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(17, 81, 211, 0.1);
}

.subcat-link {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    margin-bottom: 0.5rem;
}

.subcat-link:hover {
    text-decoration: underline;
}

.post-count {
    display: block;
    color: #666;
    font-size: 0.85rem;
}


/* ===== NAV WRAPPER CENTERING ===== */
.nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(0.5rem, 2vw, 2rem);
    display: flex;
    justify-content: center;
}


        box-shadow: none;
        visibility: hidden;
        transform: none;
        transition: opacity 0.2s ease, max-height 0.3s ease;
        background: #f9f9f9;
        margin-top: 0.5rem;
    }
    
    .categories-list li.has-submenu.open > .submenu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
    }
    
    .categories-list .submenu li a {
        padding: 0.5rem 1.5rem;
        font-size: 0.85rem;
    }
}


/* ===== AXIOS-STYLE NESTED SUBMENU ===== */
.categories-list li.has-submenu {
    position: relative;
}

.categories-list li.has-submenu > a::after {
    content: ;
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    margin-left: 6px;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

.categories-list li.has-submenu.open > a::after {
    transform: rotate(45deg);
}

/* Submenu Container - Axios Style */
.categories-list .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #f0f0f0;
    border: none;
    border-radius: 0;
    list-style: none;
    padding: 1.5rem;
    margin: 0;
    margin-top: 0.5rem;
    min-width: max-content;
    max-width: 90vw;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.categories-list li.has-submenu.open > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Submenu Items */
.categories-list .submenu li {
    margin: 0;
    padding: 0;
}

.categories-list .submenu li a {
    display: block;
    padding: 0.75rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.categories-list .submenu li a:hover {
    background: #e0e0e0;
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Desktop Hover (Only on screens >= 769px) */
@media (min-width: 769px) {
    .categories-list li.has-submenu:hover > .submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .categories-list li.has-submenu:hover > a::after {
        transform: rotate(45deg);
    }
}

/* Mobile/Tablet Click Behavior */
@media (max-width: 768px) {
    .categories-list .submenu {
        position: static;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        background: #f9f9f9;
        border: none;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        margin: 0.5rem 0 0 0;
        max-width: 100%;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transform: none;
        transition: opacity 0.3s ease, max-height 0.3s ease;
        box-shadow: none;
    }
    
    .categories-list li.has-submenu.open > .submenu {
        opacity: 1;
        visibility: visible;
        max-height: 800px;
    }
    
    .categories-list .submenu li a {
        padding: 0.75rem 1.5rem;
        border-radius: 0;
        font-size: 0.9rem;
    }
    
    .categories-list .submenu li a:hover {
        background: #f0f0f0;
        transform: none;
        padding-left: 1.8rem;
    }
}

@media (max-width: 480px) {
    .categories-list .submenu {
        padding: 0;
    }
    
    .categories-list .submenu li a {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }
}


/* ===== RTL LAYOUT FIXES ===== */
[dir="rtl"] .main-with-sidebar {
    grid-template-columns: 300px 1fr;
}

[dir="rtl"] .articles-grid {
    direction: rtl;
}

[dir="rtl"] .article-card {
    direction: rtl;
}

[dir="rtl"] .article-title,
[dir="rtl"] .article-excerpt,
[dir="rtl"] .article-meta {
    text-align: right;
    direction: rtl;
}

/* Limit excerpt to 3 lines */
.article-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    height: auto;
}


/* ===== AXIOS-STYLE CATEGORY PAGE ===== */

/* Category Header */
.category-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
    border-radius: 8px;
    text-align: center;
}

.category-header h1 {
    margin: 0 0 1rem 0;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
}

.category-description {
    margin: 0;
    font-size: 1rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* Main Category Layout: Sidebar Left, Content Right */
.category-container {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* ===== LEFT SIDEBAR ===== */
.category-sidebar {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.sidebar-widget {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: clamp(1rem, 2vw, 1.25rem);
    font-size: 0.9rem;
}

.widget-title {
    margin: 0 0 1rem 0;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.75rem;
}

/* Subcategories List */
.subcategories-list,
.categories-list-widget,
.latest-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subcategories-list li,
.categories-list-widget li,
.latest-posts-list li {
    margin: 0;
    padding: 0;
}

.subcategories-list li a,
.categories-list-widget li a,
.latest-posts-list li a {
    display: block;
    padding: 0.6rem 0.8rem;
    color: var(--text-color);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    line-height: 1.5;
}

.subcategories-list li a:hover,
.categories-list-widget li a:hover,
.latest-posts-list li a:hover {
    background: #f5f5f5;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 1.1rem;
}

.categories-list-widget li a.active {
    background: rgba(17, 81, 211, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

/* ===== RIGHT CONTENT ===== */
.category-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Subcategories Grid */
.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.subcat-card {
    background: white;
    border: 1px solid var(--border-color);
    padding: clamp(1rem, 2vw, 1.5rem);
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.subcat-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(17, 81, 211, 0.15);
    transform: translateY(-2px);
}

.subcat-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--primary-color);
}

.post-count {
    font-size: 0.85rem;
    color: #999;
}

/* Articles Grid */
.category-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
}

.category-article-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-article-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

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

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

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

.category-article-card .article-content {
    padding: clamp(1rem, 2vw, 1.5rem);
}

.category-article-card .article-title {
    margin: 0 0 0.75rem 0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    line-height: 1.5;
}

.category-article-card .article-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.category-article-card .article-title a:hover {
    color: var(--primary-color);
}

.category-article-card .article-excerpt {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-article-card .article-meta {
    font-size: 0.85rem;
    color: #999;
}

/* Pagination */
.category-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.no-posts {
    text-align: center;
    padding: 2rem;
    color: #999;
}

/* ===== RTL ADJUSTMENTS ===== */
[dir="rtl"] .category-container {
    grid-template-columns: 1fr 180px;
}

[dir="rtl"] .subcategories-list li a,
[dir="rtl"] .categories-list-widget li a,
[dir="rtl"] .latest-posts-list li a {
    border-left: none;
    border-right: 3px solid transparent;
    padding-left: 0;
    padding-right: 0.8rem;
}

[dir="rtl"] .subcategories-list li a:hover,
[dir="rtl"] .categories-list-widget li a:hover,
[dir="rtl"] .latest-posts-list li a:hover {
    border-left: none;
    border-right-color: var(--primary-color);
    padding-left: 0;
    padding-right: 1.1rem;
}

[dir="rtl"] .category-header {
    text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .category-container {
        grid-template-columns: 160px 1fr;
        gap: 1.5rem;
    }
    
    [dir="rtl"] .category-container {
        grid-template-columns: 1fr 160px;
    }
}

@media (max-width: 768px) {
    .category-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    [dir="rtl"] .category-container {
        grid-template-columns: 1fr;
    }
    
    .category-sidebar {
        order: 2;
    }
    
    .category-content {
        order: 1;
    }
    
    .sidebar-widget {
        display: none;
    }
    
    .category-articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 480px) {
    .category-header {
        padding: 1.5rem;
    }
    
    .category-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .subcategories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}


/* ===== SMALLER WIDGETS ===== */
.sidebar-widget {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.6rem !important;
    font-size: 0.85rem;
}

.widget-title {
    margin: 0 0 0.75rem 0 !important;
    font-size: 0.9rem !important;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.subcategories-list li a,
.categories-list-widget li a,
.latest-posts-list li a {
    display: block;
    padding: 0.45rem 0.5rem !important;
    color: var(--text-color);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    font-size: 0.8rem !important;
    line-height: 1.4;
}

.subcategories-list li a:hover,
.categories-list-widget li a:hover,
.latest-posts-list li a:hover {
    background: #f5f5f5;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 0.75rem !important;
}

.categories-list-widget li a.active {
    background: rgba(17, 81, 211, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

/* RTL Adjustments for smaller sidebar */
[dir="rtl"] .subcategories-list li a,
[dir="rtl"] .categories-list-widget li a,
[dir="rtl"] .latest-posts-list li a {
    border-left: none;
    border-right: 2px solid transparent;
    padding-left: 0 !important;
    padding-right: 0.5rem !important;
}

[dir="rtl"] .subcategories-list li a:hover,
[dir="rtl"] .categories-list-widget li a:hover,
[dir="rtl"] .latest-posts-list li a:hover {
    border-left: none;
    border-right-color: var(--primary-color);
    padding-left: 0 !important;
    padding-right: 0.75rem !important;
}


/* ===== AXIOS-STYLE SINGLE ARTICLE PAGE ===== */

/* Hero Section */
.article-hero {
    position: relative;
    width: 100%;
    height: clamp(300px, 60vw, 500px);
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.hero-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
    position: absolute;
    bottom: clamp(1.5rem, 4vw, 2.5rem);
    left: clamp(1.5rem, 4vw, 2.5rem);
    right: clamp(1.5rem, 4vw, 2.5rem);
    z-index: 10;
}

.hero-category {
    margin-bottom: 1rem;
}

.category-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.hero-title {
    color: white;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}


/* Article Container Layout - Works for both LTR and RTL */
.article-container {
    display: flex;
    flex-direction: row;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: flex-start;
}

.article-sidebar {
    width: 180px;
    flex-shrink: 0;
    order: -1;
}

.article-main {
    flex: 1;
    order: 0;
}

[dir="rtl"] .article-sidebar {
    order: -1;
}

[dir="rtl"] .article-main {
    order: 0;
}


/* LEFT SIDEBAR */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 2vw, 1rem);
}

.article-meta-widget {
    padding: 0.6rem !important;
    font-size: 0.75rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.6rem;
}

.meta-item {
    padding: 0.4rem 0;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-item .label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.75rem;
}

.meta-item .value {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.4;
}

.meta-item .value a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.meta-item .value a:hover {
    text-decoration: underline;
}

.categories-widget-list,
.latest-articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-widget-list li,
.latest-articles-list li {
    padding: 0;
    margin: 0;
}

.categories-widget-list li a,
.latest-articles-list li a {
    display: block;
    padding: 0.45rem 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.8rem;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.categories-widget-list li a:hover,
.latest-articles-list li a:hover {
    background: #f5f5f5;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 0.75rem;
}

/* Share Buttons */
.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    font-size: 1rem;
    cursor: pointer;
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* RIGHT CONTENT - Article */
.article-main {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 2rem;
}

.article-header .article-title {
    margin: 0 0 1rem 0;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-color);
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #999;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-info .label {
    font-weight: 600;
    color: #666;
}

.author-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.author-info a:hover {
    text-decoration: underline;
}

.separator {
    opacity: 0.5;
}

.reading-time {
    font-weight: 500;
    color: #666;
}

/* Article Body */
.article-body {
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text-color);
}

.article-summary {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    margin: 0 0 1.5rem 0;
    padding: 1.5rem;
    background: #f9f9f9;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.article-body p {
    margin: 0 0 1.5rem 0;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    margin: 2rem 0 1rem 0;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-color);
}

.article-body h2 {
    font-size: 1.8rem;
}

.article-body h3 {
    font-size: 1.5rem;
}

.article-body h4 {
    font-size: 1.2rem;
}

.article-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    background: #f9f9f9;
    font-size: 1.1rem;
    font-style: italic;
    color: #333;
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body li {
    margin: 0.5rem 0;
    line-height: 1.8;
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 6px;
}

/* Article Footer */
.article-footer {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 2rem 0;
}

.article-tags {
    font-size: 0.9rem;
}

.tags-label {
    font-weight: 600;
    color: #666;
    margin-right: 0.5rem;
}

.tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 0.4rem 0.8rem;
    margin: 0.25rem;
    border-radius: 20px;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Author Bio */
.author-bio-section {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: clamp(1rem, 3vw, 1.5rem);
    margin: 2rem 0;
}

.bio-header h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.bio-content {
    display: flex;
    gap: 1.5rem;
}

.author-avatar {
    flex-shrink: 0;
}

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

.bio-text h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.bio-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Related Articles */
.related-articles-section {
    margin: 3rem 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

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

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

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

.related-content {
    padding: 1rem;
}

.related-title {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.related-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.related-date {
    font-size: 0.85rem;
    color: #999;
}

/* Comments Section */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

/* ===== RTL ADJUSTMENTS ===== */

[dir="rtl"] .hero-content {
    left: auto;
    right: clamp(1.5rem, 4vw, 2.5rem);
}

[dir="rtl"] .article-summary {
    border-left: none;
    border-right: 4px solid var(--primary-color);
    padding-right: 1.5rem;
}

[dir="rtl"] .article-body blockquote {
    border-left: none;
    border-right: 4px solid var(--primary-color);
    padding-right: 1.5rem;
}

[dir="rtl"] .article-body ul,
[dir="rtl"] .article-body ol {
    padding-left: 0;
    padding-right: 2rem;
}

[dir="rtl"] .article-meta {
    direction: rtl;
}

[dir="rtl"] .categories-widget-list li a,
[dir="rtl"] .latest-articles-list li a {
    border-left: none;
    border-right: 2px solid transparent;
    padding-left: 0;
    padding-right: 0.5rem;
}

[dir="rtl"] .categories-widget-list li a:hover,
[dir="rtl"] .latest-articles-list li a:hover {
    border-left: none;
    border-right-color: var(--primary-color);
    padding-left: 0;
    padding-right: 0.75rem;
}

[dir="rtl"] .bio-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .share-buttons {
    direction: rtl;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .article-container {
        grid-template-columns: 150px 1fr;
        gap: 1.5rem;
    }
    
    [dir="rtl"] .article-container {
        grid-template-columns: 150px 1fr;
    }
}

@media (max-width: 768px) {
    .article-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    [dir="rtl"] .article-container {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        order: 2;
    }
    
    .article-main {
        order: 1;
    }
    
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .article-header .article-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
}

@media (max-width: 480px) {
    .article-hero {
        height: clamp(200px, 50vw, 300px);
    }
    
    .hero-title {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .share-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}


/* ===== SMALLER WIDGET OVERRIDES ===== */
.article-sidebar {
    gap: 0.75rem !important;
}

.sidebar-widget {
    padding: 0.6rem !important;
    border-radius: 4px;
}

.widget-title {
    margin: 0 0 0.5rem 0 !important;
    font-size: 0.8rem !important;
    padding-bottom: 0.4rem !important;
}

.meta-item {
    padding: 0.3rem 0 !important;
    font-size: 0.75rem !important;
    gap: 0.15rem !important;
}

.meta-item .label {
    font-size: 0.7rem !important;
}

.meta-item .value {
    font-size: 0.75rem !important;
}

.categories-widget-list li a,
.latest-articles-list li a {
    padding: 0.4rem 0.4rem !important;
    font-size: 0.75rem !important;
}

.categories-widget-list li a:hover,
.latest-articles-list li a:hover {
    padding-left: 0.65rem !important;
}

[dir="rtl"] .categories-widget-list li a:hover,
[dir="rtl"] .latest-articles-list li a:hover {
    padding-right: 0.65rem !important;
}


/* ===== MOBILE-FRIENDLY RESPONSIVE DESIGN ===== */

/* TABLET: 769px - 1024px */
@media (max-width: 1024px) {
    .article-container {
        gap: 1.5rem;
    }
    
    .article-sidebar {
        width: 160px;
    }
    
    .article-body {
        font-size: 1rem;
    }
}

/* TABLET/MOBILE: 769px and below */
@media (max-width: 768px) {
    /* ===== HERO SECTION ===== */
    .article-hero {
        height: clamp(200px, 50vw, 350px);
        margin-bottom: 1.5rem;
        border-radius: 6px;
    }
    
    .hero-title {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
    }
    
    .hero-content {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }
    
    .category-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* ===== ARTICLE LAYOUT - STACK ON MOBILE ===== */
    .article-container {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .article-sidebar {
        width: 100%;
        order: 2;
    }
    
    .article-main {
        order: 1;
    }
    
    /* ===== HIDE EXTRA WIDGETS ON MOBILE ===== */
    .article-sidebar .sidebar-widget:nth-child(2),
    .article-sidebar .sidebar-widget:nth-child(3) {
        display: none;
    }
    
    .article-sidebar .sidebar-widget:nth-child(4) {
        display: block !important;
    }
    
    /* Show only share widget on mobile */
    .share-widget {
        display: block !important;
    }
    
    /* ===== ARTICLE HEADER ===== */
    .article-header {
        margin-bottom: 1.5rem;
    }
    
    .article-header .article-title {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
        margin-bottom: 0.75rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.85rem;
    }
    
    .author-info {
        flex-wrap: wrap;
    }
    
    .separator {
        display: none;
    }
    
    /* ===== ARTICLE BODY ===== */
    .article-body {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .article-summary {
        padding: 1rem;
        margin: 0 0 1rem 0;
        font-size: 1.05rem;
    }
    
    .article-body h2 {
        font-size: 1.4rem;
        margin: 1.5rem 0 0.75rem 0;
    }
    
    .article-body h3 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.75rem 0;
    }
    
    .article-body blockquote {
        padding: 1rem;
        margin: 1.5rem 0;
        font-size: 1rem;
    }
    
    /* ===== AUTHOR BIO ===== */
    .author-bio-section {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .bio-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .author-avatar {
        text-align: center;
    }
    
    .bio-text h4 {
        font-size: 1rem;
    }
    
    .bio-text p {
        font-size: 0.9rem;
    }
    
    /* ===== RELATED ARTICLES ===== */
    .related-articles-section {
        margin: 2rem 0;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .related-articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .related-card .article-image {
        height: 120px;
    }
    
    .related-title {
        font-size: 0.9rem;
    }
    
    /* ===== SIDEBAR WIDGETS MOBILE ===== */
    .sidebar-widget {
        padding: 0.75rem !important;
    }
    
    .widget-title {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .share-buttons {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .share-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    /* ===== CATEGORY PAGE MOBILE ===== */
    .category-container {
        grid-template-columns: 1fr;
    }
    
    .category-sidebar {
        order: 2;
    }
    
    .category-content {
        order: 1;
    }
    
    .category-sidebar .sidebar-widget:nth-child(n+2) {
        display: none;
    }
    
    .category-articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .subcategories-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.75rem;
    }
    
    /* ===== HEADER MOBILE ===== */
    .header-wrapper {
        padding: 1rem;
    }
    
    .site-logo-link {
        display: block;
    }
    
    .logo-image {
        height: clamp(2rem, 8vw, 3rem);
    }
    
    /* ===== NAVIGATION MOBILE ===== */
    .categories-nav {
        padding: 0.5rem 0;
    }
    
    .categories-list {
        gap: clamp(0.5rem, 2vw, 0.75rem);
    }
    
    .categories-list li a {
        padding: clamp(0.4rem, 1vw, 0.6rem);
        font-size: clamp(0.7rem, 2vw, 0.85rem);
    }
}

/* SMALL MOBILE: 480px and below */
@media (max-width: 480px) {
    /* ===== HERO ===== */
    .article-hero {
        height: clamp(150px, 40vw, 250px);
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: clamp(1rem, 3.5vw, 1.5rem);
    }
    
    .hero-content {
        bottom: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
    }
    
    .category-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* ===== ARTICLE ===== */
    .article-container {
        gap: 1rem;
    }
    
    .article-header .article-title {
        font-size: clamp(1.1rem, 3.5vw, 1.5rem);
        margin-bottom: 0.5rem;
    }
    
    .article-meta {
        font-size: 0.8rem;
        gap: 0.25rem;
    }
    
    .article-body {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .article-body p {
        margin: 0 0 1rem 0;
    }
    
    .article-body h2 {
        font-size: 1.2rem;
        margin: 1.25rem 0 0.5rem 0;
    }
    
    .article-body h3 {
        font-size: 1.05rem;
    }
    
    .article-summary {
        padding: 0.75rem;
        font-size: 0.95rem;
        margin: 0 0 0.75rem 0;
    }
    
    .article-body blockquote {
        padding: 0.75rem;
        margin: 1rem 0;
        font-size: 0.95rem;
    }
    
    /* ===== AUTHOR BIO ===== */
    .author-bio-section {
        padding: 0.75rem;
        margin: 1.25rem 0;
    }
    
    .author-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .bio-text h4 {
        font-size: 0.95rem;
    }
    
    .bio-text p {
        font-size: 0.85rem;
    }
    
    /* ===== RELATED ARTICLES ===== */
    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .related-card .article-image {
        height: 150px;
    }
    
    .related-content {
        padding: 0.75rem;
    }
    
    /* ===== WIDGETS ===== */
    .sidebar-widget {
        padding: 0.5rem !important;
    }
    
    .widget-title {
        font-size: 0.75rem !important;
        margin-bottom: 0.35rem !important;
    }
    
    .meta-item {
        padding: 0.2rem 0 !important;
        font-size: 0.7rem !important;
    }
    
    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }
    
    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    /* ===== CATEGORY PAGE ===== */
    .category-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .category-header h1 {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
    }
    
    .category-articles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .subcategories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .subcat-card {
        padding: 0.75rem;
    }
    
    .subcat-card h3 {
        font-size: 0.9rem;
    }
    
    .post-count {
        font-size: 0.75rem;
    }
    
    /* ===== NAVIGATION ===== */
    .logo-image {
        height: clamp(1.8rem, 6vw, 2.5rem);
    }
    
    .categories-list {
        gap: 0.5rem;
    }
    
    .categories-list li a {
        font-size: 0.75rem;
        padding: 0.35rem 0.4rem;
    }
}

/* EXTRA SMALL: 360px and below */
@media (max-width: 360px) {
    .article-hero {
        height: clamp(120px, 35vw, 180px);
    }
    
    .hero-title {
        font-size: clamp(0.95rem, 3vw, 1.3rem);
    }
    
    .article-header .article-title {
        font-size: clamp(1rem, 3vw, 1.4rem);
    }
    
    .article-body {
        font-size: 0.9rem;
    }
    
    .article-body h2 {
        font-size: 1.1rem;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    
    .share-btn {
        width: 100%;
        height: 40px;
    }
}


/* ===== MOBILE RTL ADJUSTMENTS ===== */
@media (max-width: 768px) {
    [dir="rtl"] .article-container {
        flex-direction: column;
    }
    
    [dir="rtl"] .article-sidebar {
        width: 100%;
        order: 2;
    }
    
    [dir="rtl"] .article-main {
        order: 1;
    }
    
    [dir="rtl"] .share-buttons {
        direction: rtl;
    }
    
    [dir="rtl"] .bio-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    [dir="rtl"] .article-sidebar {
        width: 100%;
    }
}

/* ===== TOUCH-FRIENDLY BUTTONS ===== */
@media (max-width: 768px) {
    .share-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .related-card {
        cursor: pointer;
    }
    
    .categories-list li a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Better touch targets */
    button, a {
        -webkit-tap-highlight-color: rgba(17, 81, 211, 0.1);
    }
}

/* ===== ARTICLE CARDS ON MOBILE ===== */
@media (max-width: 768px) {
    .category-article-card {
        display: grid;
        grid-template-columns: 150px 1fr;
        gap: 1rem;
    }
    
    .category-article-card .article-image {
        height: 120px;
        grid-column: 1;
        grid-row: 1 / 3;
    }
    
    .category-article-card .article-content {
        grid-column: 2;
        padding: 0;
    }
    
    .category-article-card .article-title {
        font-size: 1rem;
        margin: 0;
    }
    
    .category-article-card .article-excerpt {
        display: none;
    }
}

@media (max-width: 480px) {
    .category-article-card {
        grid-template-columns: 100px 1fr;
    }
    
    .category-article-card .article-image {
        height: 100px;
    }
    
    .category-article-card .article-title {
        font-size: 0.9rem;
    }
}


/* ===== RESPONSIVE FOOTER ===== */

/* TABLET: 769px - 1024px */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(1.5rem, 3vw, 2rem);
    }
    
    .footer-title {
        font-size: clamp(0.95rem, 2vw, 1.1rem);
    }
    
    .footer-column p,
    .footer-links a,
    .social-links a span,
    .footer-copyright p {
        font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    }
}

/* MOBILE: 769px and below */
@media (max-width: 768px) {
    .site-footer {
        padding: clamp(1.5rem, 3vw, 2rem) 0;
        margin-top: 2rem;
    }
    
    .footer-wrapper {
        padding: 0 clamp(0.75rem, 2vw, 1.5rem);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 2vw, 2rem);
        margin-bottom: 2rem;
    }
    
    .footer-column {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-title {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
        border-bottom: 2px solid var(--primary-color);
        padding-bottom: 0.5rem;
        width: 100%;
    }
    
    .footer-column p {
        font-size: clamp(0.8rem, 2vw, 0.9rem);
        line-height: 1.6;
        margin: 0;
    }
    
    .footer-logo {
        margin: 1rem auto 0;
        width: 100%;
    }
    
    .footer-logo img {
        max-width: 120px;
        height: auto;
    }
    
    .footer-links {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .footer-links li {
        margin: 0;
    }
    
    .footer-links a {
        display: block;
        padding: 0.4rem 0;
        font-size: clamp(0.8rem, 2vw, 0.9rem);
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        transition: all 0.2s ease;
    }
    
    .footer-links a:hover {
        color: white;
        font-weight: 500;
    }
    
    .social-links {
        display: flex;
        justify-content: center;
        gap: clamp(0.75rem, 2vw, 1rem);
        flex-wrap: wrap;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .social-icon {
        width: clamp(2rem, 8vw, 2.5rem);
        height: clamp(2rem, 8vw, 2.5rem);
        font-size: clamp(0.8rem, 1.5vw, 1rem);
    }
    
    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: clamp(1rem, 2vw, 1.5rem);
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-copyright p {
        font-size: clamp(0.75rem, 1.8vw, 0.85rem);
        margin: 0;
        line-height: 1.6;
    }
}

/* SMALL MOBILE: 480px and below */
@media (max-width: 480px) {
    .site-footer {
        padding: 1.25rem 0;
    }
    
    .footer-wrapper {
        padding: 0 clamp(0.5rem, 1.5vw, 1rem);
    }
    
    .footer-content {
        gap: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-title {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
        padding-bottom: 0.4rem;
    }
    
    .footer-column p {
        font-size: 0.75rem;
    }
    
    .footer-logo img {
        max-width: 100px;
    }
    
    .footer-links a {
        padding: 0.3rem 0;
        font-size: 0.8rem;
    }
    
    .social-links {
        gap: 0.5rem;
    }
    
    .social-icon {
        width: 2rem;
        height: 2rem;
        font-size: 0.8rem;
    }
    
    .footer-copyright p {
        font-size: 0.7rem;
    }
}

/* EXTRA SMALL: 360px and below */
@media (max-width: 360px) {
    .footer-title {
        font-size: 0.8rem;
    }
    
    .footer-column p {
        font-size: 0.7rem;
    }
    
    .footer-logo img {
        max-width: 80px;
    }
    
    .social-icon {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.7rem;
    }
}

/* ===== RESPONSIVE ARTICLE IMAGES ===== */

/* Make all article images responsive */
.article-body img,
.single-featured-image img,
.article-image img,
.related-image img,
.category-article-card .article-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Article body images */
.article-body img {
    margin: clamp(1rem, 2vw, 2rem) 0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Featured image on single post */
.single-featured-image {
    width: 100%;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

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

/* Article card images */
.article-image img,
.category-article-card .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Related article images */
.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile image optimization */
@media (max-width: 768px) {
    .article-body img {
        margin: clamp(1rem, 1.5vw, 1.5rem) 0;
    }
    
    .single-featured-image {
        margin-bottom: clamp(1rem, 2vw, 1.5rem);
    }
    
    .article-hero {
        border-radius: 4px;
    }
}

@media (max-width: 480px) {
    .article-body img {
        margin: 0.75rem 0;
        border-radius: 4px;
    }
    
    .single-featured-image {
        margin-bottom: 1rem;
    }
}

/* ===== RESPONSIVE HERO IMAGE ===== */
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== RESPONSIVE CATEGORY IMAGES ===== */
.subcategories-grid img,
.category-article-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ===== RTL MOBILE FOOTER ===== */
@media (max-width: 768px) {
    [dir="rtl"] .footer-column {
        text-align: center;
    }
    
    [dir="rtl"] .footer-links {
        gap: 0.5rem;
    }
    
    [dir="rtl"] .social-links {
        direction: rtl;
    }
}


/* ===== AXIOS MOBILE OPTIMIZED v3.0 ===== */

/* ===== READ PROGRESS BAR ===== */
.read-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #FF6B35 100%);
    width: 0;
    z-index: 1000;
    transition: width 0.1s ease;
}

/* ===== ARTICLE MAX WIDTH & CENTERING ===== */
.article-main {
    max-width: 750px !important;
    margin: 0 auto !important;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

/* ===== LARGE TYPOGRAPHY ===== */
.article-header .article-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 1.5rem 0;
    color: #1a1a1a;
}

.article-body {
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.9;
    color: #333;
    margin-bottom: 2rem;
}

.article-body p {
    margin: 0 0 1.8rem 0;
    text-align: justify;
}

/* ===== ARTICLE METADATA INLINE ===== */
.article-meta-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #999;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.author-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.author-link:hover {
    text-decoration: underline;
}

.meta-separator {
    opacity: 0.5;
}

.reading-time {
    font-weight: 500;
}

/* ===== INLINE RELATED POSTS ===== */
.inline-related-section {
    background: linear-gradient(135deg, #f9f9f9 0%, #f5f5f5 100%);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    margin: 3rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.inline-related-title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin: 0 0 1.5rem 0;
    color: var(--primary-color);
    font-weight: 700;
}

.inline-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.inline-related-card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.inline-related-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.inline-image {
    overflow: hidden;
    height: 150px;
    background: #eee;
}

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

.inline-related-card:hover .inline-image img {
    transform: scale(1.08);
}

.inline-content {
    padding: 1rem;
}

.inline-related-card h4 {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    color: var(--text-color);
}

.inline-date {
    font-size: 0.85rem;
    color: #999;
}

/* ===== STICKY SHARE BAR (Mobile) ===== */
.sticky-share-bar {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 500;
    transition: bottom 0.3s ease;
    display: none;
}

.sticky-share-bar.visible {
    bottom: 0;
}

.sticky-share-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem clamp(1rem, 3vw, 2rem);
    gap: 1rem;
}

.share-text {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.sticky-share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.sticky-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0f0f0;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.sticky-share-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* ===== BETTER ARTICLE CONTENT STYLING ===== */
.article-body h2,
.article-body h3 {
    margin: 2.5rem 0 1.25rem 0;
    font-weight: 800;
    line-height: 1.4;
    color: #1a1a1a;
}

.article-body h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.article-body h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.article-body blockquote {
    border-left: 5px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    background: #f9f9f9;
    font-size: 1.15rem;
    font-style: italic;
    color: #1a1a1a;
    line-height: 1.8;
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body li {
    margin: 0.75rem 0;
    line-height: 1.8;
    color: #333;
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    /* Show sticky share bar on mobile */
    .sticky-share-bar {
        display: block;
    }
    
    /* Increase font sizes on mobile */
    .article-body {
        font-size: 1.05rem;
        line-height: 1.85;
    }
    
    .article-header .article-title {
        font-size: clamp(1.5rem, 4vw, 2.2rem);
        margin-bottom: 1rem;
    }
    
    .article-meta-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        font-size: 0.9rem;
    }
    
    .meta-separator {
        display: inline;
        margin: 0 0.5rem;
    }
    
    /* Better spacing on mobile */
    .article-main {
        padding: 0 clamp(0.75rem, 2vw, 1.5rem);
    }
    
    .article-body p {
        margin: 0 0 1.5rem 0;
        text-align: left;
    }
    
    .inline-related-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .inline-image {
        height: 120px;
    }
    
    .article-body h2 {
        font-size: clamp(1.3rem, 3.5vw, 1.8rem);
        margin: 2rem 0 1rem 0;
    }
    
    .article-body h3 {
        font-size: clamp(1.1rem, 3vw, 1.4rem);
    }
    
    .article-body blockquote {
        padding: 1.25rem;
        font-size: 1.05rem;
        margin: 1.5rem 0;
    }
    
    .sticky-share-content {
        padding: 0.75rem 1rem;
    }
    
    .share-text {
        font-size: 0.85rem;
    }
    
    .sticky-share-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .article-header .article-title {
        font-size: clamp(1.3rem, 3.5vw, 1.8rem);
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .inline-related-grid {
        grid-template-columns: 1fr;
    }
    
    .inline-image {
        height: 140px;
    }
    
    .sticky-share-content {
        flex-direction: column;
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .sticky-share-buttons {
        width: 100%;
        justify-content: space-around;
    }
    
    .sticky-share-btn {
        width: 44px;
        height: 44px;
    }
}

/* ===== RTL ADJUSTMENTS ===== */
[dir="rtl"] .inline-related-section {
    border-left: none;
    border-right: 4px solid var(--primary-color);
}

[dir="rtl"] .article-body blockquote {
    border-left: none;
    border-right: 5px solid var(--primary-color);
    padding-right: 1.5rem;
    padding-left: 0;
}

[dir="rtl"] .article-body ul,
[dir="rtl"] .article-body ol {
    padding-left: 0;
    padding-right: 2rem;
}

[dir="rtl"] .sticky-share-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .sticky-share-buttons {
    flex-direction: row-reverse;
}

[dir="rtl"] .article-body p {
    text-align: right;
}

[dir="rtl"] @media (max-width: 768px) {
    .article-body p {
        text-align: right;
    }
}


/* ===== FIXED STICKY HEADER v3.1 ===== */
.site-header {
    background: #EFEFEF;
    border-bottom: 1px solid var(--border-color);
    padding: clamp(0.75rem, 2vw, 1.5rem) 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Add padding to body to account for fixed header */
body {
    padding-top: clamp(60px, 12vw, 120px);
}

/* Ensure main content doesn't hide under header */
.site-content {
    position: relative;
    z-index: 1;
}

/* Responsive fixed header */
@media (max-width: 768px) {
    .site-header {
        padding: clamp(0.5rem, 1.5vw, 1rem) 0;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }
    
    body {
        padding-top: clamp(50px, 10vw, 80px);
    }
    
    .logo-image {
        height: clamp(2.2rem, 6vw, 3.5rem);
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 0.5rem 0;
    }
    
    body {
        padding-top: 50px;
    }
    
    .logo-image {
        height: clamp(2rem, 5vw, 2.8rem);
    }
    
    .header-wrapper {
        padding: 0.5rem 1rem;
    }
}

/* Categories nav stays with header */
.categories-nav {
    position: relative;
    background: white;
    border-top: 1px solid var(--border-color);
    padding: clamp(0.4rem, 1vw, 0.75rem) 0;
    margin-top: 0;
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(0.5rem, 2vw, 1rem);
    display: flex;
    justify-content: center;
}

.categories-list {
    gap: clamp(0.75rem, 2vw, 1.5rem);
}

/* ===== MOBILE ARTICLE PAGE - HEADER NOT FIXED ===== */
@media (max-width: 768px) {
    .single-post .site-header {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: auto;
        box-shadow: none;
    }
    
    .single-post body {
        padding-top: 0;
    }
    
    body.single-post {
        padding-top: 0;
    }
}

/* Keep fixed on mobile for non-article pages */
.home .site-header,
.archive .site-header,
.category .site-header {
    position: fixed;
    top: 0;
}


/* ===== REFINED: MOBILE ARTICLE PAGES ONLY ===== */
@media (max-width: 768px) {
    /* Single article pages - header scrolls naturally */
    body.single .site-header,
    body.single-post .site-header {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: auto !important;
        box-shadow: none;
    }
    
    /* Remove body padding for article pages */
    body.single,
    body.single-post {
        padding-top: 0 !important;
    }
    
    /* Article pages: header scrolls away naturally */
    .single .site-header,
    .single-post .site-header {
        position: static;
    }
}

/* Desktop article pages: header stays fixed */
@media (min-width: 769px) {
    .single-post .site-header,
    .single .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
    }
}


/* ⭐ ALMISAHA PRO FEATURES CSS - March 10, 2026 */

/* 🔴 Breaking News Sticky Bar */
.breaking-news-bar {
    position: sticky;
    top: 0;
    background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.breaking-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.breaking-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breaking-title {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: opacity 0.3s;
}

.breaking-title:hover {
    opacity: 0.8;
}

.breaking-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.breaking-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .breaking-news-bar {
        padding: 10px 15px;
    }
    .breaking-title {
        font-size: 13px;
    }
}

/* 🎠 Enhanced Related Posts Carousel */
.related-carousel-section {
    margin: 60px 0;
    padding: 40px 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.carousel-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.5px;
}

.carousel-nav {
    display: flex;
    gap: 10px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #1151D3;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1151D3;
    font-size: 18px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.carousel-btn:hover:not(:disabled) {
    background: #1151D3;
    color: white;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-container {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 20px;
    padding: 10px 0;
}

.carousel-item {
    flex: 0 0 calc(50% - 10px);
    min-width: 280px;
}

@media (min-width: 768px) {
    .carousel-item {
        flex: 0 0 calc(33.333% - 15px);
        min-width: 320px;
    }
}

@media (min-width: 1024px) {
    .carousel-item {
        flex: 0 0 calc(25% - 15px);
        min-width: 320px;
    }
}

.carousel-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.carousel-card:hover {
    border-color: #1151D3;
    box-shadow: 0 12px 24px rgba(17, 81, 211, 0.15);
    transform: translateY(-6px);
}

.carousel-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.carousel-card:hover .carousel-image img {
    transform: scale(1.08);
}

.carousel-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.carousel-category {
    font-size: 11px;
    color: #1151D3;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.carousel-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}

@media (max-width: 768px) {
    .carousel-title {
        font-size: 22px;
    }
    .carousel-nav {
        display: none;
    }
    .related-carousel-section {
        margin: 40px 0;
        padding: 30px 0;
    }
}

/* ========================================
   ALMISAHA PRO FEATURES - CSS ENHANCEMENTS
   Version: 3.0 (March 10, 2026)
   Professional Styling for Widgets, Galleries, Banners
   ======================================== */

/* ============================================
   1. NEWSLETTER BANNER SECTION
   ============================================ */

.newsletter-banner-section {
    margin: 60px 0;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1151D3 0%, #202F5B 100%);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(17, 81, 211, 0.2);
}

.newsletter-banner {
    max-width: 100%;
}

.newsletter-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.newsletter-text {
    flex: 1;
}

.newsletter-headline {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-align: right;
}

.newsletter-subheadline {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    margin: 0;
    text-align: right;
    line-height: 1.6;
}

.newsletter-form-wrapper {
    flex: 1;
    min-width: 300px;
}

.fallback-newsletter-form {
    display: flex;
    gap: 10px;
    flex-direction: row-reverse;
}

.fallback-newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #333;
}

.fallback-newsletter-form input[type="email"]::placeholder {
    color: #999;
}

.newsletter-submit-btn {
    padding: 14px 30px;
    background: #FF6B6B;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-submit-btn:hover {
    background: #FF5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* Newsletter widget on sidebar */
.newsletter-widget-form {
    padding: 20px 0;
}

.newsletter-widget-form .newsletter-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    text-align: right;
}

/* MC4WP Form styling */
.mc4wp-form {
    margin-top: 15px;
}

.mc4wp-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 14px;
}

.mc4wp-form input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #1151D3;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mc4wp-form input[type="submit"]:hover {
    background: #0D3BA3;
}

/* Mobile responsive newsletter */
@media (max-width: 768px) {
    .newsletter-banner-content {
        flex-direction: column;
        gap: 25px;
    }
    
    .newsletter-headline {
        font-size: 24px;
    }
    
    .newsletter-form-wrapper {
        width: 100%;
    }
    
    .fallback-newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-submit-btn {
        width: 100%;
    }
}

/* ============================================
   2. FEATURED STORIES GRID
   ============================================ */

.featured-stories-section {
    margin: 60px 0;
    padding: 40px 0;
}

.featured-stories-header {
    text-align: center;
    margin-bottom: 40px;
}

.featured-stories-title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin: 0 0 10px 0;
}

.featured-stories-subtitle {
    color: #999;
    font-size: 15px;
    margin: 0;
}

.featured-stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.featured-story-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}

.featured-story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.featured-story-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-story-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}

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

.featured-story-card:hover .featured-story-image img {
    transform: scale(1.08);
}

.featured-story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.featured-story-card:hover .featured-story-overlay {
    opacity: 1;
}

.featured-story-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured-category-badge {
    display: inline-block;
    background: #1151D3;
    color: white;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    font-weight: 600;
    width: fit-content;
}

.featured-story-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 10px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.featured-story-card:hover .featured-story-title {
    color: #1151D3;
}

.featured-story-excerpt {
    color: #666;
    font-size: 13px;
    margin: 10px 0 0 0;
    line-height: 1.5;
    flex-grow: 1;
}

.featured-read-more {
    color: #1151D3;
    font-weight: 600;
    font-size: 13px;
    margin-top: 15px;
    display: inline-block;
    transition: all 0.3s ease;
}

.featured-story-card:hover .featured-read-more {
    transform: translateX(-5px);
}

/* Desktop 3-column layout */
@media (min-width: 1024px) {
    .featured-stories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet 2-column layout */
@media (min-width: 768px) and (max-width: 1023px) {
    .featured-stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile single column */
@media (max-width: 767px) {
    .featured-stories-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-stories-title {
        font-size: 24px;
    }
}

/* ============================================
   3. TRENDING WIDGET CARDS
   ============================================ */

.trending-widget-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trending-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.trending-card:hover {
    background: #f0f2f5;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.trending-image {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.no-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ddd, #e0e0e0);
}

.trending-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.trending-title {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    margin: 0;
    line-height: 1.3;
}

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

.trending-card:hover .trending-title a {
    color: #1151D3;
}

.engagement-badge {
    font-size: 11px;
    color: #FF6B6B;
    font-weight: 600;
    margin-top: 5px;
}

/* ============================================
   4. POPULAR POSTS WIDGET
   ============================================ */

.popular-widget-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-card {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.popular-card:hover {
    background: #f0f2f5;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.popular-image {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.popular-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    background: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.popular-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.popular-title {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    margin: 0;
    line-height: 1.3;
}

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

.popular-card:hover .popular-title a {
    color: #1151D3;
}

.views-count {
    font-size: 11px;
    color: #1151D3;
    font-weight: 600;
    margin-top: 5px;
}

/* ============================================
   5. GALLERY SHORTCODE
   ============================================ */

.almisaha-gallery {
    margin: 30px 0;
}

.almisaha-gallery-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.almisaha-gallery-masonry {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: auto;
}

.almisaha-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin: 0;
    background: #f5f5f5;
}

.almisaha-gallery-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    overflow: hidden;
}

.almisaha-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.almisaha-gallery-item:hover img {
    transform: scale(1.08);
}

.almisaha-gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    color: white;
    padding: 15px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.almisaha-gallery-item:hover figcaption {
    transform: translateY(0);
}

/* Fancybox customization */
.fancybox__container {
    z-index: 99999;
}

/* ============================================
   6. FOOTER NEWSLETTER CTA
   ============================================ */

.footer-newsletter-cta {
    background: linear-gradient(135deg, #1151D3 0%, #202F5B 100%);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    text-align: center;
}

.newsletter-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.newsletter-cta-title {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.newsletter-cta-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin: 0;
}

.newsletter-cta-btn {
    display: inline-block;
    background: #FF6B6B;
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.newsletter-cta-btn:hover {
    background: #FF5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* ============================================
   7. WIDGET TITLE STYLING
   ============================================ */

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #1151D3;
    text-align: right;
}

.sidebar-widget {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.sidebar-widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* ============================================
   8. LATEST ARTICLES WIDGET LIST
   ============================================ */

.latest-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.latest-widget-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.latest-widget-list li:last-child {
    border-bottom: none;
}

.latest-widget-list a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    transition: color 0.3s ease;
    display: block;
}

.latest-widget-list a:hover {
    color: #1151D3;
    padding-left: 5px;
}

/* ============================================
   9. CATEGORIES WIDGET LIST
   ============================================ */

.categories-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-widget-list li {
    padding: 10px 0;
}

.categories-widget-list a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
}

.categories-widget-list a:hover {
    background: #f0f0f0;
    color: #1151D3;
    padding-left: 15px;
}

/* ============================================
   10. BREAKPOINTS & RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .newsletter-banner-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .newsletter-form-wrapper {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .newsletter-headline {
        font-size: 24px;
    }
    
    .featured-stories-grid {
        gap: 20px;
    }
    
    .featured-story-image {
        height: 200px;
    }
    
    .almisaha-gallery-grid,
    .almisaha-gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .newsletter-banner-content {
        padding: 0;
    }
    
    .newsletter-headline {
        font-size: 20px;
    }
    
    .newsletter-subheadline {
        font-size: 13px;
    }
    
    .featured-stories-grid {
        grid-template-columns: 1fr;
    }
    
    .almisaha-gallery-grid,
    .almisaha-gallery-masonry {
        grid-template-columns: 1fr;
    }
    
    .featured-story-image {
        height: 180px;
    }
}

/* ============================================
   11. DARK MODE SUPPORT (Optional)
   ============================================ */

@media (prefers-color-scheme: dark) {
    .newsletter-banner {
        background: linear-gradient(135deg, #1a1f3a 0%, #16213e 100%);
    }
    
    .featured-stories-title {
        color: #f0f0f0;
    }
    
    .featured-stories-subtitle {
        color: #ccc;
    }
    
    .featured-story-card {
        background: #2a2a2a;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    }
    
    .featured-story-title {
        color: #f0f0f0;
    }
    
    .featured-story-excerpt {
        color: #bbb;
    }
    
    .trending-card,
    .popular-card {
        background: #2a2a2a;
    }
    
    .trending-title,
    .popular-title {
        color: #f0f0f0;
    }
    
    .widget-title {
        color: #f0f0f0;
    }
}

/* ============================================
   12. ANIMATION & TRANSITIONS
   ============================================ */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.featured-story-card {
    animation: slideInUp 0.6s ease forwards;
}

.featured-story-card:nth-child(1) { animation-delay: 0.1s; }
.featured-story-card:nth-child(2) { animation-delay: 0.2s; }
.featured-story-card:nth-child(3) { animation-delay: 0.3s; }
.featured-story-card:nth-child(4) { animation-delay: 0.4s; }
.featured-story-card:nth-child(5) { animation-delay: 0.5s; }
.featured-story-card:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   END ALMISAHA PRO FEATURES CSS
   ============================================ */

/* MOBILE FIX - Show Trending Widget on Mobile */
@media (max-width: 768px) {
    .article-sidebar .sidebar-widget:nth-child(2) {
        display: block !important;
    }
}


/* 🔴 DRAMATIC BREAKING NEWS CAROUSEL - 3 Articles */
.breaking-news-carousel {
    position: sticky;
    top: 0;
    background: #000;
    z-index: 999;
    padding: 20px;
    margin-bottom: 30px;
    border-bottom: 4px solid #dc2626;
    animation: slideDown 0.4s ease-out;
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.3);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.breaking-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(220, 38, 38, 0.5);
}

.breaking-label {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(220, 38, 38, 0.8); }
}

.breaking-tagline {
    color: #888;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breaking-carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
}

.breaking-carousel-track::-webkit-scrollbar {
    display: none;
}

.breaking-article-card {
    flex: 0 0 100%;
    display: flex;
    gap: 15px;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    opacity: 0.5;
    transform: scale(0.95);
    pointer-events: none;
}

.breaking-article-card.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.breaking-image {
    width: 280px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.breaking-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.breaking-article-card.active .breaking-image img {
    transform: scale(1.05);
}

.breaking-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(220,38,38,0.5) 100%);
}

.breaking-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #dc2626;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.breaking-number {
    font-size: 48px;
    font-weight: 900;
    color: #dc2626;
    line-height: 1;
    opacity: 0.3;
}

.breaking-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.breaking-article-card.active .breaking-title {
    color: #fbbf24;
}

.breaking-time {
    font-size: 12px;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breaking-nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(220, 38, 38, 0.3);
}

.breaking-dot {
    width: 36px;
    height: 36px;
    border: 2px solid #dc2626;
    background: transparent;
    border-radius: 50%;
    color: #dc2626;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.breaking-dot.active {
    background: #dc2626;
    color: white;
    opacity: 1;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

.breaking-dot:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.breaking-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.breaking-close:hover {
    color: #dc2626;
    transform: rotate(90deg);
}

/* MOBILE - Full width, stacked */
@media (max-width: 768px) {
    .breaking-news-carousel {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .breaking-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .breaking-label {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .breaking-article-card {
        flex-direction: column;
    }
    
    .breaking-image {
        width: 100%;
        height: 200px;
    }
    
    .breaking-content {
        padding: 15px;
    }
    
    .breaking-title {
        font-size: 18px;
    }
    
    .breaking-number {
        font-size: 36px;
    }
}

