/*
Theme Name: Apolo Blog
Theme URI: https://blog.apolo.ma
Author: Apolo Team
Author URI: https://apolo.ma
Description: قالب مدونة Apolo - سوق المغرب الإعلاني
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apolo-blog
Domain Path: /languages
Tags: blog, rtl, responsive, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ====================
   CSS Variables
==================== */
:root {
    --primary-color: #C10037;
    --primary-hover: #9B002C;
    --secondary-color: #374B5C;
    --dark-color: #0D233E;
    --bg-color: #F9FAFC;
    --white: #FFFFFF;
    --text-color: #374B5C;
    --text-muted: #666666;
    --border-color: #E3E3E3;
    --shadow: 0px 4.4px 20px -1px rgba(19, 16, 34, 0.05), 0px 4px 9px -1px rgba(19, 16, 34, 0.03);
    --shadow-hover: 0px 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #C10037 0%, #8B0030 100%);
    --gradient-dark: linear-gradient(135deg, #0D233E 0%, #374B5C 100%);
}

/* ====================
   Base Styles - RTL
==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Encode Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    direction: rtl;
    text-align: right;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark-color);
    margin-bottom: 15px;
}

h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p {
    margin-bottom: 15px;
}

ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ====================
   Container
==================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-8, .col-lg-4,
.col-md-8, .col-md-4,
.col-sm-12,
.col-lg-3, .col-md-3,
.col-lg-6 {
    padding: 0 15px;
}

.col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-lg-3 { flex: 0 0 25%; max-width: 25%; }
.col-lg-6 { flex: 0 0 50%; max-width: 50%; }

@media (max-width: 991.98px) {
    .col-lg-8, .col-lg-4, .col-lg-3, .col-lg-6,
    .col-md-8, .col-md-4, .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ====================
   Header & Navigation - RTL Fixed
==================== */
.header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    flex-direction: row-reverse;
}

.navbar-brand {
    display: flex;
    align-items: center;
    order: 3;
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 35px;
    flex-direction: row-reverse;
    order: 2;
}

.main-nav li a {
    color: var(--secondary-color);
    font-size: 15px;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.main-nav li a:hover,
.main-nav li.active a {
    color: var(--primary-color);
}

.main-nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.main-nav li a:hover::after,
.main-nav li.active a::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-direction: row-reverse;
    order: 1;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 14px;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-btn img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    overflow: hidden;
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-color);
    font-size: 14px;
    transition: var(--transition);
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.lang-dropdown a:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.lang-dropdown a.active {
    background: var(--primary-color);
    color: var(--white);
}

.lang-dropdown img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.cta-btn {
    background: var(--gradient-primary);
    color: var(--white) !important;
    padding: 12px 28px !important;
    border-radius: 100px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(193, 0, 55, 0.3);
}

.cta-btn:hover {
    background: var(--gradient-dark);
    box-shadow: 0 6px 20px rgba(13, 35, 62, 0.3);
    transform: translateY(-2px);
}

/* Mobile Menu */
#mobile_btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--secondary-color);
    cursor: pointer;
}

.menu-header {
    display: none;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--secondary-color);
    cursor: pointer;
}

@media (max-width: 991.98px) {
    .header-nav {
        height: 70px;
        flex-direction: row;
    }
    
    .navbar-brand {
        order: 2;
    }
    
    #mobile_btn {
        display: block;
        order: 1;
    }
    
    .menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .main-menu-wrapper {
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .main-menu-wrapper.open {
        left: 0;
    }
    
    .main-nav {
        flex-direction: column;
        padding: 20px;
        gap: 0;
        order: 1;
    }
    
    .main-nav li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav li a {
        display: block;
        padding: 15px 0;
    }
    
    .header-actions {
        display: none;
    }
    
    .mobile-actions {
        display: flex !important;
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .mobile-actions .cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ====================
   Hero Section
==================== */
.hero-section {
    background: var(--gradient-dark);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(193, 0, 55, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    color: var(--white);
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 800;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    margin-bottom: 35px;
}

/* Enhanced Search Box */
.search-box-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    display: flex;
    background: var(--white);
    border-radius: 100px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.search-box input {
    flex: 1;
    padding: 20px 30px;
    border: none;
    font-size: 16px;
    background: transparent;
    text-align: right;
}

.search-box input:focus {
    outline: none;
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 0 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box button:hover {
    background: var(--gradient-dark);
}

.search-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.search-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.search-filter:hover,
.search-filter.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 50px 0 40px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 15px;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 20px;
    }
    
    .search-box button {
        padding: 15px;
        justify-content: center;
    }
}

/* ====================
   Promo Banner
==================== */
.promo-banner {
    background: var(--gradient-primary);
    padding: 50px 0;
    margin: 0;
}

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

.promo-text h2 {
    color: var(--white);
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

.promo-text p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 16px;
}

.promo-stats {
    display: flex;
    gap: 50px;
}

.promo-stat {
    text-align: center;
}

.promo-stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--white);
    display: block;
    line-height: 1;
}

.promo-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

.promo-btn {
    background: var(--white);
    color: var(--primary-color);
    padding: 16px 40px;
    border-radius: 100px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.promo-btn:hover {
    background: var(--dark-color);
    color: var(--white);
    transform: translateY(-3px);
}

@media (max-width: 991.98px) {
    .promo-content {
        flex-direction: column;
        text-align: center;
    }
    
    .promo-stats {
        justify-content: center;
    }
    
    .promo-text h2 {
        font-size: 24px;
    }
    
    .promo-stat-number {
        font-size: 32px;
    }
}

/* ====================
   Section Headers
==================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--primary-color);
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.view-all:hover {
    gap: 12px;
}

/* ====================
   Categories Grid
==================== */
.categories-section {
    padding: 60px 0;
    background: var(--white);
}

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

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 35px 20px;
    background: var(--bg-color);
    border-radius: 20px;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

.category-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.category-card:hover .category-icon {
    background: var(--gradient-primary);
}

.category-icon i {
    font-size: 32px;
    color: var(--primary-color);
    transition: var(--transition);
}

.category-card:hover .category-icon i {
    color: var(--white);
}

.category-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.category-count {
    font-size: 14px;
    color: var(--text-muted);
}

@media (max-width: 991.98px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-card {
        padding: 25px 15px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
    }
    
    .category-icon i {
        font-size: 24px;
    }
    
    .category-name {
        font-size: 14px;
    }
}

/* ====================
   Trending Posts
==================== */
.trending-section {
    background: var(--bg-color);
    padding: 60px 0;
}

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

.trending-card {
    display: flex;
    gap: 15px;
    padding: 25px;
    background: var(--white);
    border-radius: 15px;
    transition: var(--transition);
    text-decoration: none;
    align-items: flex-start;
}

.trending-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.trending-rank {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.2;
    line-height: 1;
    min-width: 50px;
}

.trending-content {
    flex: 1;
}

.trending-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--dark-color);
}

.trending-card:hover .trending-title {
    color: var(--primary-color);
}

.trending-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.trending-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.trending-meta i {
    color: var(--primary-color);
}

@media (max-width: 991.98px) {
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .trending-grid {
        grid-template-columns: 1fr;
    }
}

/* ====================
   Category Filter
==================== */
.category-filter {
    padding: 25px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--bg-color);
    border: 2px solid transparent;
    border-radius: 100px;
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.category-pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--white);
}

.category-pill.active {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: var(--white);
}

.category-pill i {
    font-size: 16px;
}

/* ====================
   Blog Section
==================== */
.blog-section {
    padding: 60px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 767.98px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    height: 240px;
    background: var(--bg-color);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-card-category {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
}

.blog-card-category a {
    color: var(--white);
}

.popular-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--dark-color);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.6;
}

.blog-card-title a {
    color: var(--dark-color);
}

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

.blog-card-excerpt {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

.blog-card-stats {
    display: flex;
    gap: 18px;
}

.blog-card-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 13px;
}

.blog-card-stat i {
    color: var(--primary-color);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
}

.read-more:hover {
    gap: 10px;
}

/* ====================
   Pagination
==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    flex-direction: row-reverse;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--white);
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow);
    padding: 0 15px;
}

.pagination a:hover,
.pagination .current {
    background: var(--gradient-primary);
    color: var(--white);
}

/* ====================
   Sidebar
==================== */
.sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.widget-title i {
    color: var(--primary-color);
}

/* CTA Widget */
.cta-widget {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.cta-widget .widget-title {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
    justify-content: center;
}

.cta-widget .widget-title::after {
    background: var(--white);
    right: 50%;
    transform: translateX(50%);
}

.cta-widget .widget-title i {
    color: var(--white);
}

.cta-widget p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-size: 14px;
}

.cta-widget .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--primary-color);
    padding: 14px 30px;
    border-radius: 100px;
    font-weight: 700;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.cta-widget .btn:hover {
    background: var(--dark-color);
    color: var(--white);
    transform: translateY(-3px);
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.cta-stat {
    text-align: center;
}

.cta-stat-number {
    font-size: 26px;
    font-weight: 800;
    color: var(--white);
}

.cta-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

/* Recent Posts Widget */
.recent-post {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.recent-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post:first-child {
    padding-top: 0;
}

.recent-post-image {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-color);
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.recent-post:hover .recent-post-image img {
    transform: scale(1.1);
}

.recent-post-content {
    flex: 1;
}

.recent-post-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.5;
}

.recent-post-title a {
    color: var(--dark-color);
}

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

.recent-post-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Tag Cloud Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    display: inline-block;
    padding: 10px 18px;
    background: var(--bg-color);
    border-radius: 100px;
    font-size: 13px;
    color: var(--secondary-color);
    transition: var(--transition);
    text-decoration: none;
}

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

/* Newsletter Widget */
.newsletter-widget {
    background: var(--gradient-dark);
    color: var(--white);
}

.newsletter-widget .widget-title {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
    justify-content: center;
}

.newsletter-widget .widget-title::after {
    background: var(--primary-color);
    right: 50%;
    transform: translateX(50%);
}

.newsletter-widget p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.newsletter-form .form-group {
    margin-bottom: 15px;
}

.newsletter-form input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 100px;
    font-size: 14px;
    transition: var(--transition);
    text-align: right;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(193, 0, 55, 0.3);
}

.newsletter-form button {
    width: 100%;
    padding: 15px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(193, 0, 55, 0.4);
}

/* Social Widget */
.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-links a {
    width: 48px;
    height: 48px;
    background: var(--bg-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-3px);
}

@media (max-width: 991.98px) {
    .sidebar {
        margin-top: 40px;
        position: static;
    }
}

/* ====================
   Single Post
==================== */
.single-hero {
    background: var(--gradient-dark);
    padding: 70px 0 50px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.single-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(193, 0, 55, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.single-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.single-category {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 10px 28px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 25px;
}

.single-category a {
    color: var(--white);
}

.single-hero h1 {
    color: var(--white);
    font-size: 38px;
    margin-bottom: 30px;
    line-height: 1.4;
}

.single-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.single-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.single-meta-item img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.single-featured-image {
    margin: -40px auto 50px;
    max-width: 900px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    position: relative;
    z-index: 10;
}

.single-featured-image img {
    width: 100%;
    height: auto;
}

.single-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 0;
}

.single-content p {
    margin-bottom: 25px;
    line-height: 2;
    font-size: 16px;
}

.single-content h2,
.single-content h3,
.single-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.single-content ul,
.single-content ol {
    margin-bottom: 25px;
    padding-right: 25px;
}

.single-content ul li,
.single-content ol li {
    margin-bottom: 12px;
    position: relative;
    padding-right: 25px;
}

.single-content ul li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    background: var(--gradient-primary);
    border-radius: 50%;
}

.single-content blockquote {
    background: var(--bg-color);
    border-right: 4px solid var(--primary-color);
    padding: 30px;
    margin: 35px 0;
    font-style: italic;
    color: var(--secondary-color);
    border-radius: 0 15px 15px 0;
}

.single-content blockquote p {
    margin-bottom: 0;
}

.single-content img {
    border-radius: 15px;
    margin: 35px 0;
}

/* Share Section */
.share-section {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 50px 0;
}

.share-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.share-btn.facebook {
    background: #1877F2;
    color: var(--white);
}

.share-btn.twitter {
    background: #1DA1F2;
    color: var(--white);
}

.share-btn.whatsapp {
    background: #25D366;
    color: var(--white);
}

.share-btn.telegram {
    background: #0088cc;
    color: var(--white);
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Author Box */
.author-box {
    display: flex;
    gap: 30px;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    margin: 50px 0;
    box-shadow: var(--shadow);
}

.author-avatar {
    flex: 0 0 110px;
}

.author-avatar img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.author-role {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.author-bio {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.author-social {
    display: flex;
    gap: 10px;
}

.author-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    transition: var(--transition);
}

.author-social a:hover {
    background: var(--gradient-primary);
    color: var(--white);
}

@media (max-width: 767.98px) {
    .single-hero h1 {
        font-size: 26px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    
    .author-avatar {
        margin: 0 auto;
    }
    
    .author-social {
        justify-content: center;
    }
}

/* Related Posts */
.related-posts {
    padding: 60px 0;
    background: var(--white);
}

.related-posts-title {
    font-size: 28px;
    margin-bottom: 40px;
    text-align: center;
}

/* ====================
   Footer - RTL Fixed
==================== */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 70px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
    height: 55px;
    margin-bottom: 20px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links li a::before {
    content: '←';
    opacity: 0;
    transition: var(--transition);
}

.footer-links li a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.footer-links li a:hover::before {
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: 12px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    flex-direction: row-reverse;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

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

@media (max-width: 1199.98px) {
    .footer-top {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767.98px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* ====================
   Breadcrumb
==================== */
.breadcrumb-section {
    background: var(--gradient-dark);
    padding: 60px 0;
    text-align: center;
}

.breadcrumb-title {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 15px;
}

.breadcrumb-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    flex-wrap: wrap;
    flex-direction: row-reverse;
}

.breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb-nav a:hover {
    color: var(--white);
}

.breadcrumb-nav .separator {
    color: rgba(255, 255, 255, 0.5);
}

/* ====================
   Menu Overlay
==================== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ====================
   Scroll to Top
==================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(193, 0, 55, 0.4);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    background: var(--gradient-dark);
}

/* ====================
   Animations
==================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* ====================
   No Results
==================== */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results-icon {
    font-size: 70px;
    color: var(--border-color);
    margin-bottom: 25px;
}

.no-results h3 {
    font-size: 26px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.no-results p {
    color: var(--text-muted);
    font-size: 16px;
}

/* ====================
   WordPress Default
==================== */
.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.aligncenter {
    display: block;
    margin: 0 auto 20px;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
}

/* Comments */
.comments-area {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-size: 24px;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
}

.comment {
    margin-bottom: 25px;
}

.comment-body {
    display: flex;
    gap: 20px;
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.comment-author {
    flex: 0 0 60px;
}

.comment-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.comment-meta {
    margin-bottom: 10px;
}

.comment-meta .fn {
    font-weight: 700;
    color: var(--dark-color);
}

.comment-metadata {
    font-size: 13px;
    color: var(--text-muted);
}

.comment-content {
    color: var(--text-color);
    line-height: 1.8;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
}

/* Comment Form */
.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
    transition: var(--transition);
    text-align: right;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(193, 0, 55, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form input[type="submit"] {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.comment-form input[type="submit"]:hover {
    background: var(--gradient-dark);
    transform: translateY(-2px);
}
