/*
Theme Name: TravelAgency Premium
Theme URI: https://yourwebsite.com/
Author: Your Name
Description: وكالة سفر احترافية
Version: 2.0.0
Text Domain: travel-agency
*/

:root {
    --primary: #c9a14a;
    --primary-dark: #b8893a;
    --primary-light: #e8cd8b;
    --secondary: #2c3e50;
    --accent: #e67e22;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow: 0 5px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    direction: rtl;
    font-family: 'Tajawal', 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
}

input, textarea, text, button {
    font-family: 'Tajawal', 'Poppins', sans-serif;
    font-size: 16px;
}

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

.none{
    display: none;
}

/* ========== HEADER ========== */
.site-header {
    /*position: fixed;*/
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.site-branding{
    text-align: center;
}

.site-branding .site-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--primary);
}

.main-navigation .nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation .nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.main-navigation .nav-menu a:hover {
    color: var(--primary);
}

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

.currency-switcher {
    position: relative;
}

.currency-toggle {
    background: transparent;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 30px;
    cursor: pointer;
}

.currency-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 10px 0;
    min-width: 120px;
    display: none;
    z-index: 100;
}

.currency-switcher:hover .currency-dropdown {
    display: block;
}

.currency-dropdown li {
    padding: 8px 15px;
}

.currency-dropdown li:hover {
    background: var(--bg-light);
}

.search-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-dark);
}

.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    width: 90%;
    max-width: 600px;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 20px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
}

.close-search {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.page-body { 
    margin-bottom: 50px;
}

/* ========================================
   القائمة الجانبية للجوال - الحل النهائي
   ======================================== */

/* إخفاء القائمة الثابتة (desktop-nav) في الجوال */
@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }
}

/* زر القائمة (هامبرغر) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 10000;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-dark);
    border-radius: 3px;
    left: 0;
    transition: 0.25s ease-in-out;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 20px; }

.menu-toggle.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu-toggle.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* القائمة الجانبية المنبثقة */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 80px 20px 30px;
    visibility: visible;
}

.mobile-menu.active {
    right: 0;
    visibility: visible;
}

/* دعم اللغة الإنجليزية */
html:not(.rtl) .mobile-menu {
    right: auto;
    left: -100%;
}

html:not(.rtl) .mobile-menu.active {
    left: 0;
    right: auto;
}

/* الطبقة الخلفية الداكنة */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
    backdrop-filter: blur(3px);
}

.mobile-menu-overlay.active {
    display: block;
}

/* منع تمرير الصفحة الخلفية */
body.menu-open {
    overflow: hidden;
}

/* روابط القائمة الجانبية */
.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #eee;
    margin: 0;
}

.mobile-nav-menu li a {
    display: block;
    padding: 15px 0;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-nav-menu li a:hover {
    color: var(--primary);
    padding-right: 10px;
}

html:not(.rtl) .mobile-nav-menu li a:hover {
    padding-right: 0;
    padding-left: 10px;
}

/* العملات داخل القائمة */
.mobile-currency {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.mobile-currency h4 {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: var(--text-light);
}

.mobile-currency-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.currency-option {
    background: var(--bg-light);
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.currency-option:hover,
.currency-option.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* البحث داخل القائمة */
.mobile-search {
    margin-bottom: 25px;
}

.mobile-search h4 {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: var(--text-light);
}

.mobile-search .search-form {
    display: flex;
    gap: 8px;
}

.mobile-search input[type="search"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.85rem;
}

.mobile-search button {
    padding: 10px 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
}

/* إظهار في الجوال فقط */
@media (max-width: 768px) {
    .menu-toggle {
        display: block !important;
    }
    
    .desktop-nav {
        display: none !important;
    }
    
    .header-actions .currency-switcher {
        display: none !important;
    }
    
    .header-inner {
        justify-content: space-between;
    }
    
    .site-branding {
        flex: 1;
    }
}

/* إخفاء في سطح المكتب */
@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }
    
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
    
    .desktop-nav {
        display: block !important;
    }
}


/* ========== HERO SLIDER STYLES ========== */

.hero-slider-section {
    position: relative;
    /*margin-top: 80px;*/
    padding: 0px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 80vh;
    min-height: 500px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding-top: 30vh;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-content .btn {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* أزرار التنقل */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    color: white;
    font-size: 1.2rem;
}

.slider-prev {
    right: 20px;
}

.slider-next {
    left: 20px;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--primary);
}

/* نقاط التنقل */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.slider-dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 10px;
}

/* تنسيقات الجوال للسلايدر */
@media (max-width: 768px) {
    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-content {
        padding-top: 20vh;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .slider-prev,
    .slider-next {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .slider-prev {
        right: 10px;
    }
    
    .slider-next {
        left: 10px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
}

/* ========== SECTIONS ========== */
section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

/* ========== SEARCH ========== */
.search-section {
    background: var(--bg-light);
}

.tour-search-form .search-row {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.tour-search-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 50px;
    box-shadow: var(--shadow);
}

/* ========== TOURS GRID ========== */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.tour-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tour-card-image {
    height: 220px;
    overflow: hidden;
}

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

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

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

.tour-card-content h3 {
    margin-bottom: 10px;
}

.tour-card-content h3 a {
    text-decoration: none;
    color: var(--text-dark);
}

.tour-meta {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.tour-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 15px 0;
}

.btn-details {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition);
}

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


/* ========================================
   قسم الاستشارات
   ======================================== */

.consulting-section {
    padding: 80px 0;
    background: var(--bg-light);
}

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

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

/* بطاقة الاستشارة */
.consulting-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

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

/* أيقونة الاستشارة */
.consulting-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.consulting-icon i {
    font-size: 2.5rem;
    color: var(--primary);
}

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

/* وسام أونلاين */
.consulting-badge {
    position: absolute;
    top: 20px;
    right: 20px;
}

.online-badge {
    background: var(--success);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

body.rtl .consulting-badge {
    right: auto;
    left: 20px;
}

/* عنوان الاستشارة */
.consulting-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

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

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

/* اسم المستشار */
.consultant-name {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.consultant-name i {
    color: var(--primary);
}

/* معلومات الاستشارة */
.consulting-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.consulting-meta i {
    color: var(--primary);
    margin-left: 5px;
}

body.rtl .consulting-meta i {
    margin-left: 0;
    margin-right: 5px;
}

/* الوصف */
.consulting-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* سعر الاستشارة */
.consulting-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.consulting-price {
    text-align: left;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-unit {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* زر التفاصيل */
.consulting-footer .btn-details {
    padding: 8px 20px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem;
}

.consulting-footer .btn-details:hover {
    background: var(--primary);
    color: white;
}

.consulting-footer .btn-details:hover i {
    transform: translateX(-5px);
}

body.rtl .consulting-footer .btn-details:hover i {
    transform: translateX(5px);
}

/* زر مشاهدة الكل */
.section-footer {
    text-align: center;
    margin-top: 20px;
}
.section-footer a {
    font-size: 18px !important;
}

.section-footer .btn-outline {
    padding: 12px 35px;
    font-size: 1rem;
}

/* حالة عدم وجود نتائج */
.consulting-grid .no-results {
    grid-column: span 2;
    text-align: center;
    padding: 60px;
    background: var(--bg-white);
    border-radius: 16px;
}

@media (max-width: 768px) {
    .consulting-grid .no-results {
        grid-column: span 1;
    }
}

/* ========================================
   الشريط المميز في زاوية البطاقة (شريط حقيقي)
   ======================================== */

.consulting-card {
    position: relative;
    overflow: hidden;
}

/* الشريط المميز الحقيقي في الزاوية */
.consulting-corner-badge {
    position: absolute;
    top: 20px;
    left: -35px;
    width: 160px;
    padding: 6px 0;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(-45deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 15;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* للغة العربية (RTL) */
body.rtl .consulting-corner-badge {
    left: auto;
    right: -35px;
    transform: rotate(45deg);
}

/* إذا كان هناك شريط مميز، نضيف مساحة في الأعلى */
.consulting-card.has-corner-badge {
    margin-top: 5px;
}

/* وسام أونلاين */
.consulting-online-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--success);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    z-index: 15;
}

body.rtl .consulting-online-badge {
    right: auto;
    left: 15px;
}

/* الميزات الإضافية */
.consulting-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--text-dark);
}

.feature-tag i {
    color: var(--success);
    font-size: 0.65rem;
}

/* السعر */
.consulting-price {
    text-align: left;
}

.price-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-block;
}

/* التجاوب */
@media (max-width: 768px) {
    .consulting-corner-badge {
        font-size: 0.6rem;
        width: 130px;
        padding: 4px 0;
        top: 15px;
        left: -30px;
    }
    
    body.rtl .consulting-corner-badge {
        left: auto;
        right: -30px;
    }
}



/* ========================================
   تنسيقات متقدمة للاستشارات
   ======================================== */

/* الشريط المميز (زاوية البطاقة) */
.consulting-card {
    position: relative;
    overflow: hidden;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: -35px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: 600;
    transform: rotate(-45deg);
    box-shadow: var(--shadow-sm);
    z-index: 10;
    white-space: nowrap;
}

body.rtl .featured-badge {
    left: auto;
    right: -35px;
    transform: rotate(45deg);
}

/* وسام أونلاين */
.consulting-online-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
}

body.rtl .consulting-online-badge {
    right: auto;
    left: 20px;
}

/* الميزات الإضافية */
.consulting-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--text-dark);
}

.feature-tag i {
    color: var(--success);
    font-size: 0.65rem;
}

/* تحسين عرض المدة */
.consulting-duration {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
}

/* تحسين البطاقة بشكل عام */
.consulting-card {
    padding-top: 20px;
}

/* إذا كان هناك شريط مميز، نضيف مسافة */
.consulting-card.has-badge {
    padding-top: 30px;
}

/* التجاوب */
@media (max-width: 768px) {
    .featured-badge {
        font-size: 0.6rem;
        padding: 3px 30px;
        top: 12px;
        left: -25px;
    }
    
    body.rtl .featured-badge {
        left: auto;
        right: -25px;
    }
    
    .consulting-online-badge {
        top: 12px;
        right: 12px;
        font-size: 0.6rem;
        padding: 3px 8px;
    }
    
    body.rtl .consulting-online-badge {
        right: auto;
        left: 12px;
    }
    
    .consulting-features {
        gap: 5px;
    }
    
    .feature-tag {
        font-size: 0.6rem;
        padding: 3px 8px;
    }
}

/* ========== DESTINATIONS - 4 أعمدة ========== */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

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

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

.destination-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 280px;
}

.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.destination-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px 20px 20px;
    color: white;
}

.destination-overlay h3 {
    color: white;
    margin-bottom: 10px;
}

.destination-overlay a {
    color: var(--primary);
    text-decoration: none;
}

/* ========== FEATURES ========== 
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}  */

.features-section {
    background-color: #f8f9fa;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

.feature {
    padding: 30px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* مميزات */


.feature-card {
    text-align: center;
    padding: 30px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
}


/* ========== SERVICES ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 30px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary);
    text-decoration: none;
}


.services-archive {
    margin-top: 50px;
    margin-bottom: 50px;
}

/* ========== TESTIMONIALS ========== */
.testimonials-section {
    background: var(--bg-light);
}

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

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.testimonial-card i {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 15px;
}

.testimonial-author {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.stars {
    color: #f39c12;
}

/* ========== BLOG ========== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.post-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card h3 {
    padding: 20px 20px 10px;
}

.post-card h3 a {
    text-decoration: none;
    color: var(--text-dark);
}

.post-meta {
    padding: 0 20px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.post-card p {
    padding: 10px 20px;
}

.read-more {
    display: inline-block;
    margin: 0 20px 20px;
    color: var(--primary);
    text-decoration: none;
}

/* ========== CTA ========== */
.cta-section {
    background-color: #f8f9fa;
    text-align: center;
    color: black;
    margin-bottom: 50px;
}

.cta-content h2 {
    font-size: 30px;
    color: #c9a14a;
    margin-bottom: 20px;
}

.cta-content .btn-details {
    margin-top: 40px;
    font-weight: bold;
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition);
}

.cta-content .btn-details:hover {
    background: var(--primary);
    color: white;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

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

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

/* ========== FOOTER - 4 أعمدة ========== */
.site-footer {
    background: var(--secondary);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

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

@media (max-width: 576px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

.footer-widgets ul {
    list-style-type: none;
}
.footer-widgets ul li {
    margin-bottom: 3px;
}

.footer-widgets ul li a {
    color: white;
    text-decoration: none;
}
.footer-widgets p {
    margin-bottom: 10px;
}
.footer-widgets .social-icons {
    margin-top: 5px;
}
.footer-widgets .social-icons svg {
    width: 25px;
    height: 25px;
    margin: 3px;
}

.footer-widget-title {
    color: var(--primary);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

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


/* ========== WHATSAPP ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.8rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .tours-grid, .services-grid, .testimonials-grid, .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        text-align: center;
        box-shadow: var(--shadow);
    }
    
    .main-navigation .nav-menu.active {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .tours-grid, .services-grid, .testimonials-grid, .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-slider {
        height: 60vh;
    }
    
    .hero-content {
        padding-top: 20vh;
    }
}

@media (max-width: 576px) {
    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}





/* ========================================
   أزرار الطفو
   ======================================== */

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: var(--transition);
}

#back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.8rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ========================================
   صفحة المقال الفردي
   ======================================== */

.single-post-main {
    padding: 100px 0 60px;
}

.single-post {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.post-header {
    padding: 30px 30px 0;
}

.post-title {
    font-size: 2rem;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    color: var(--text-light);
    font-size: 0.9rem;
}

.post-meta i {
    color: var(--primary);
    margin-left: 5px;
}

body.rtl .post-meta i {
    margin-left: 0;
    margin-right: 5px;
}

.post-thumbnail {
    margin: 20px 30px;
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.post-content {
    padding: 0 30px 30px;
    line-height: 1.8;
}

.post-content h2 {
    margin: 30px 0 15px;
    color: var(--primary);
}

.post-content h3 {
    margin: 25px 0 10px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-tags {
    padding: 20px 30px;
    border-top: 1px solid #eee;
}

.post-tags a {
    display: inline-block;
    background: var(--bg-light);
    padding: 5px 12px;
    margin: 0 5px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.85rem;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    background: var(--bg-light);
}

.post-navigation a {
    text-decoration: none;
    color: var(--primary);
}

/* ========================================
   صفحة الوجهة الفردية
   ======================================== */

.destination-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

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

.destination-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 40px 30px 30px;
    color: white;
}

.destination-hero-overlay h1 {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
}

.destination-location {
    margin-bottom: 10px;
}

.destination-rating {
    color: var(--warning);
}

.destination-related {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.destination-related h3 {
    text-align: center;
    margin-bottom: 30px;
}

.related-tours {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.related-tour-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.related-tour-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-tour-card h4 {
    padding: 15px 15px 5px;
}

.related-tour-card .btn-details {
    margin: 0 15px 15px;
    display: inline-block;
}

/* ========================================
   صفحة باقة السفر
   ======================================== */

.package-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

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

.package-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.package-info h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.package-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--text-light);
}

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

.package-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.includes-excludes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.includes h3 i {
    color: var(--success);
    margin-left: 10px;
}

.excludes h3 i {
    color: var(--danger);
    margin-left: 10px;
}

.includes ul, .excludes ul {
    list-style: none;
    padding: 0;
}

.includes li, .excludes li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.itinerary {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
    margin-top: 30px;
}

/* ========================================
   صفحة 404
   ======================================== */

.error-404-main {
    padding: 120px 0 80px;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.error-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-number {
    font-size: 8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 20px;
}

.error-title {
    font-size: 2rem;
    margin-bottom: 15px;
}

.error-message {
    color: var(--text-light);
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.error-search h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.error-search .search-form {
    display: flex;
    gap: 10px;
}

.error-search input[type="search"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* ========================================
   صفحة الأرشيف
   ======================================== */

.archive-main {
    padding: 100px 0 60px;
}

.archive-header {
    text-align: center;
    margin-bottom: 50px;
}

.archive-title {
    font-size: 2rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.archive-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 3px;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}

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

/* ========================================
    from page / archieve-visa-service
    ======================================== */

.page-header {
    text-align: center;
    padding: 60px 0 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 20px;
    margin-bottom: 40px;
}
.visa-types-section {
    margin-bottom: 60px;
}
.visa-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.visa-type-card {
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.visa-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.visa-type-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}
.visa-type-card h3 {
    margin-bottom: 10px;
}
.visa-type-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}
.visa-type-card .btn-outline {
    display: inline-block;
    padding: 8px 20px;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.visa-type-card .btn-outline:hover {
    background: var(--primary);
    color: white;
}


/* ========================================
   صفحة الصفحة العادية
   ======================================== */

.page-main {
    padding: 100px 0 60px;
}

.standard-page {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.page-header {
    margin-bottom: 30px;
    text-align: center;
}

.page-title {
    font-size: 2rem;
    /*color: var(--primary);*/
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.page-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.page-thumbnail {
    margin-bottom: 30px;
}

.page-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.page-content {
    line-height: 1.8;
}

.page-content h2 {
    margin: 30px 0 15px;
    color: var(--primary);
}

/* ========================================
   التجاوب مع الجوالات
   ======================================== */

@media (max-width: 992px) {
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .package-header {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block !important;
    }
    
    .desktop-nav {
        display: none !important;
    }
    
    .desktop-actions {
        display: none !important;
    }
    
    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-content {
        padding-top: 20vh;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .slider-prev,
    .slider-next {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .slider-prev {
        right: 10px;
    }
    
    .slider-next {
        left: 10px;
    }
    
    .tours-grid,
    .services-grid,
    .testimonials-grid,
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .post-header,
    .post-content,
    .post-tags,
    .post-navigation {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .post-thumbnail {
        margin: 15px 20px;
    }
    
    .standard-page {
        padding: 20px;
    }
    
    .error-number {
        font-size: 5rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    section {
        padding: 50px 0;
    }
    
    .destinations-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .hero-slider {
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .includes-excludes {
        grid-template-columns: 1fr;
    }
    
    .visa-stats {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================
   شريط التمرير المخصص
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========================================
   الإشعارات والتحميل
   ======================================== */

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    background: var(--success);
    color: white;
    border-radius: 8px;
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

.notification.error {
    background: var(--danger);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-light);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}







/* تنسيق زر مشاهدة الكل */
.section-footer {
    text-align: center;
    margin-top: 40px;
}

.section-footer a {
    color: #c9a14a;
}

.section-footer .btn-outline {
    padding: 12px 35px;
    font-size: 1rem;
}

.section-footer .btn-outline:hover i {
    transform: translateX(-5px);
    transition: transform 0.3s ease;
}

body.rtl .section-footer .btn-outline:hover i {
    transform: translateX(5px);
}





/* ========================================
   صفحة أرشيف المدونة (Blog Archive)
   ======================================== */

.blog-archive {
    padding: 120px 0 60px;
}

/* Hero Section */
.archive-hero {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary-light), var(--bg-light));
    border-radius: 20px;
}

.archive-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.archive-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.archive-description {
    color: var(--text-light);
    max-width: 600px;
    margin: 20px auto 0;
}

/* Filter Bar */
.blog-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    padding: 15px 20px;
    background: var(--bg-white);
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
}

.filter-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
}

.filter-btn .count {
    font-size: 0.75rem;
    opacity: 0.7;
}

.sort-select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    background: var(--bg-white);
    cursor: pointer;
}

/* Blog Post Cards */
.blog-post-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

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

.post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 240px;
}

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

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

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.blog-post-card:hover .post-overlay {
    opacity: 1;
}

.read-more-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transform: scale(0.8);
    transition: var(--transition);
}

.blog-post-card:hover .read-more-icon {
    transform: scale(1);
}

.post-format-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.cat-link {
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.post-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

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

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

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.post-meta i {
    margin-left: 5px;
    color: var(--primary);
}

body.rtl .post-meta i {
    margin-left: 0;
    margin-right: 5px;
}

.post-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
}

.read-more-btn:hover {
    background: var(--primary);
    color: white;
}

.read-more-btn:hover i {
    transform: translateX(-5px);
}

body.rtl .read-more-btn:hover i {
    transform: translateX(5px);
}

/* Share Button */
.post-share {
    position: relative;
}

.share-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

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

.share-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 5px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 10;
}

.post-share:hover .share-dropdown {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

.share-dropdown a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.share-dropdown a:hover {
    background: var(--primary);
    color: white;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 50px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 3px;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50%;
    transition: var(--transition);
}

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

.pagination .prev,
.pagination .next {
    width: auto;
    padding: 0 15px;
    border-radius: 30px;
}

/* ========================================
   صفحة المقال الواحد (Single Post)
   ======================================== */

.single-post-main {
    padding: 100px 0 60px;
}

.single-post {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 30px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

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

.breadcrumb i {
    font-size: 0.7rem;
    color: var(--text-light);
}

.breadcrumb span {
    color: var(--primary);
}

/* Post Header */
.post-header {
    padding: 30px 30px 0;
}

.post-categories {
    margin-bottom: 15px;
}

.post-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
}

.author-title {
    font-size: 0.7rem;
    color: var(--text-light);
}

/* Post Thumbnail */
.post-thumbnail {
    margin: 30px;
    position: relative;
}

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

.image-caption {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 10px;
}

/* Post Content */
.post-content {
    padding: 0 30px 30px;
    line-height: 1.8;
}

.post-content h2 {
    font-size: 1.8rem;
    margin: 35px 0 20px;
    color: var(--primary);
}

.post-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.post-content blockquote {
    background: var(--bg-light);
    border-right: 4px solid var(--primary);
    padding: 20px 30px;
    margin: 25px 0;
    font-style: italic;
    border-radius: 12px;
}

body.rtl .post-content blockquote {
    border-right: none;
    border-left: 4px solid var(--primary);
}

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

body.rtl .post-content ul,
body.rtl .post-content ol {
    padding-left: 0;
    padding-right: 25px;
}

.post-content li {
    margin-bottom: 8px;
}

/* Page Links */
.page-links {
    margin: 30px 0;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    text-align: center;
}

.page-links .page-links-title {
    font-weight: 600;
    margin-right: 15px;
}

.page-links span {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: white;
    border-radius: 50%;
    margin: 0 3px;
}

.page-links a span {
    background: var(--bg-light);
    transition: var(--transition);
}

.page-links a span:hover {
    background: var(--primary);
    color: white;
}

/* Post Tags */
.post-tags {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tags-title {
    font-weight: 600;
    color: var(--text-dark);
}

.post-tags a {
    display: inline-block;
    padding: 5px 15px;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.post-tags a:hover {
    background: var(--primary);
    color: white;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    padding: 30px;
    background: var(--bg-light);
}

.nav-prev a,
.nav-next a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    max-width: 300px;
}

.nav-prev a i,
.nav-next a i {
    color: var(--primary);
    font-size: 1.2rem;
}

.nav-text span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.nav-text h4 {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-prev a:hover h4,
.nav-next a:hover h4 {
    color: var(--primary);
}

/* Author Box */
.author-box {
    display: flex;
    gap: 25px;
    padding: 30px;
    background: var(--bg-light);
    margin: 30px;
    border-radius: 16px;
}

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

.author-info h3 {
    margin-bottom: 8px;
}

.author-bio {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

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

.author-social a {
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Related Posts */
.related-posts {
    padding: 0 30px 30px;
}

.related-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.related-title:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

body.rtl .related-title:after {
    left: auto;
    right: 0;
}

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

.related-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.related-thumb img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-card h4 {
    padding: 12px 12px 5px;
    font-size: 0.95rem;
}

.related-card h4 a {
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

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

.related-date {
    padding: 0 12px 12px;
    font-size: 0.7rem;
    color: var(--text-light);
}

/* Comments Section */
.comments-section {
    padding: 0 30px 30px;
}

/* ========================================
   التجاوب مع الجوالات
   ======================================== */

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

@media (max-width: 768px) {
    .blog-archive {
        padding: 100px 0 40px;
    }
    
    .archive-title {
        font-size: 1.8rem;
    }
    
    .blog-filter {
        flex-direction: column;
        border-radius: 16px;
    }
    
    .filter-categories {
        justify-content: center;
    }
    
    .post-meta {
        gap: 12px;
    }
    
    .single-post-main {
        padding: 80px 15px 40px;
    }
    
    .post-header {
        padding: 20px 20px 0;
    }
    
    .post-title {
        font-size: 1.6rem;
    }
    
    .post-meta {
        gap: 15px;
    }
    
    .meta-item {
        font-size: 0.75rem;
    }
    
    .post-thumbnail {
        margin: 20px;
    }
    
    .post-content {
        padding: 0 20px 20px;
    }
    
    .post-content h2 {
        font-size: 1.4rem;
    }
    
    .post-tags {
        padding: 15px 20px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-prev a,
    .nav-next a {
        justify-content: center;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
        margin: 20px;
    }
    
    .author-social {
        justify-content: center;
    }
    
    .related-posts {
        padding: 0 20px 20px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .comments-section {
        padding: 0 20px 20px;
    }
}

@media (max-width: 480px) {
    .post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .meta-item {
        justify-content: center;
    }
    
    .breadcrumb {
        font-size: 0.7rem;
    }
}




/* ========================================
   إصلاح الفوتر في صفحة المقالات فقط
   ======================================== */

/* إصلاح الحاوية الرئيسية */
.site-content {
    display: flex;
    flex-direction: column;
    min-height: auto !important;
}

/* إصلاح صفحة المقال */
.single-post-main {
    flex: 1;
    width: 100%;
    overflow: visible;
}

/* التأكد من أن الفوتر في الأسفل مع عرض كامل */
.site-footer {
    width: 100% !important;
    position: relative !important;
    clear: both !important;
    margin-top: 0 !important;
}

/* إصلاح الحاوية الداخلية للمقال */
.single-post-main .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* التأكد من أن المقال لا يضيق الفوتر */
.single-post {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

/* إصلاح أي عنصر عائم */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}


/* حل سريع للصور الكبيرة */
.post-content img {
    max-width: 100%;
    height: auto;
}




/* ========================================
   تنسيقات قسم التعليقات
   ======================================== */

.comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
    clear: both;
}

/* عنوان التعليقات */
.comments-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

/* قائمة التعليقات */
.comment-list {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
}

.comment-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.comment-item:hover {
    box-shadow: var(--shadow-sm);
}

/* صورة المستخدم */
.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

/* محتوى التعليق */
.comment-content {
    flex: 1;
}

.comment-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}

.comment-date {
    font-size: 0.75rem;
    color: var(--text-light);
}

.comment-text {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 10px;
}

.comment-text p {
    margin-bottom: 10px;
}

/* زر الرد */
.comment-reply-link {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: none;
    margin-top: 5px;
    transition: var(--transition);
}

.comment-reply-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* التعليقات الفرعية (الردود) */
.children {
    list-style: none;
    margin: 20px 0 0 40px;
    padding: 0;
}

body.rtl .children {
    margin: 20px 40px 0 0;
}

/* ========================================
   نموذج إضافة تعليق
   ======================================== */

.comment-respond {
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 16px;
}

.comment-reply-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.cancel-reply {
    font-size: 0.8rem;
    margin-right: 15px;
}

.cancel-reply a {
    color: var(--danger);
    text-decoration: none;
}

.cancel-reply a:hover {
    text-decoration: underline;
}

/* حقول النموذج */
.comment-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.comment-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-field label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.comment-field input,
.comment-field textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    transition: var(--transition);
    font-family: inherit;
}

.comment-field input:focus,
.comment-field textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 161, 74, 0.1);
}

/* حقل التعليق الرئيسي */
.comment-form-comment {
    margin-bottom: 20px;
}

.comment-form-comment textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    resize: vertical;
    font-family: inherit;
}

/* زر الإرسال */
.form-submit {
    text-align: center;
    margin-top: 20px;
}

.submit {
    padding: 12px 35px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* رسالة عند إغلاق التعليقات */
.comments-closed {
    text-align: center;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 12px;
    color: var(--text-light);
}

/*
.comment-form label {
    display: inline-block;
    margin-left: 20px;
    width: 10%;
}
.comment-form input {
    margin-bottom: 10px;
}*/

/* ========================================
   التجاوب مع الجوالات
   ======================================== */

@media (max-width: 768px) {
    .comment-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .comment-avatar img {
        width: 45px;
        height: 45px;
    }
    
    .comment-fields-grid {
        grid-template-columns: 1fr;
    }
    
    .comment-respond {
        padding: 20px;
    }
    
    .children {
        margin-left: 20px;
    }
    
    body.rtl .children {
        margin-right: 20px;
    }
}


.form-disabled-notice {
    text-align: center;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 12px;
    margin-bottom: 20px;
}
.form-disabled-notice i {
    font-size: 2rem;
    color: #ffc107;
}
.disabled-form input,
.disabled-form select,
.disabled-form textarea {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}
.btn-gray {
    background: #95a5a6;
    color: white;
    cursor: not-allowed;
}




/* ========================================
   تنسيق الشريط الجانبي
   ======================================== */

.widget-area {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

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

.widget ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.widget ul li a {
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

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

body.rtl .widget ul li a:hover {
    padding-right: 0;
    padding-left: 5px;
}

/* إخفاء العناصر غير المرغوب فيها */
.widget_meta,
.widget_pages,
.widget_calendar,
.widget_archive {
    display: none;
}




/* ========================================
   الحل النهائي لمشكلة القائمة في الجوال
   ======================================== */

/* إخفاء القائمة الثابتة تماماً في الجوال */
@media (max-width: 768px) {
    .main-navigation,
    .desktop-nav,
    header .main-navigation,
    header .desktop-nav,
    .site-header .main-navigation,
    .site-header .desktop-nav,
    nav.main-navigation,
    nav.desktop-nav {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
    }
}

/* التأكد من أن القائمة المنبثقة فقط هي التي تعمل */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    z-index: 999999;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 80px 20px 30px;
    visibility: visible;
}

.mobile-menu.active {
    right: 0;
    visibility: visible;
}

/* دعم اللغة الإنجليزية */
html:not(.rtl) .mobile-menu {
    right: auto;
    left: -100%;
}

html:not(.rtl) .mobile-menu.active {
    left: 0;
    right: auto;
}

/* زر البرغر */
.menu-toggle {
    display: none !important;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 999999;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #2c3e50;
    border-radius: 3px;
    left: 0;
    transition: 0.25s ease-in-out;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 20px; }

.menu-toggle.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu-toggle.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* إظهار زر البرغر في الجوال فقط */
@media (max-width: 768px) {
    .menu-toggle {
        display: block !important;
    }
}

/* إخفاء زر البرغر في سطح المكتب */
@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
}