/*
Theme Name: Go-Taxi-Kw
Version: 1.0
*/

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

body {
    font-family: 'Cairo', 'Tahoma', sans-serif;
    direction: rtl;
    text-align: right;
    background: #f5f5f5;
    line-height: 1.6;
}

/* الحاوية الرئيسية - مهمة جداً */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* الأقسام */
section {
    padding: 60px 20px;
}

/* العناوين */
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #111827;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #FFC107;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* شبكة المناطق - هذا هو الكود المهم */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

/* بطاقة المنطقة */
.area-card {
    background: white;
    padding: 12px 15px;
    border-radius: 6px;
    text-align: center;
    color: #111827;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid #e5e5e5;
    transition: all 0.3s ease;
    display: block;
}

.area-card:hover {
    background: #FFC107;
    border-color: #FFC107;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* مجموعات المناطق */
.area-group {
    margin-bottom: 40px;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.area-group-title {
    font-size: 1.3rem;
    color: #111827;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #FFC107;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.9)), url('https://images.unsplash.com/photo-1549317661-bd32c8ce0db2?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #FFC107;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #FFC107;
    color: #111827;
}

.btn-wa {
    background: #25D366;
    color: white;
}

/* Stats */
.stats-section {
    background: #111827;
    color: white;
    padding: 40px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #FFC107;
}

/* Features */
.features-section {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    color: #FFC107;
    margin-bottom: 15px;
}

/* Booking */
.booking-section {
    background: #f5f5f5;
}

.booking-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #111827;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    font-family: inherit;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Services */
.services {
    background: white;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 8px;
    border-top: 4px solid #FFC107;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Blog */
.blog-section {
    background: #f5f5f5;
}

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

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.blog-content {
    padding: 20px;
}

.read-more {
    color: #FFC107;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

/* Footer */
.site-footer {
    background: #111827;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.footer-phone {
    font-size: 1.5rem;
    color: #FFC107;
    font-weight: bold;
    margin: 15px 0;
    display: block;
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mobile-sticky-bar a {
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.sticky-call { background: #111827; }
.sticky-wa { background: #25D366; }

/* Responsive */
@media (max-width: 768px) {
    .mobile-sticky-bar {
        display: grid;
    }
    
    body {
        padding-bottom: 70px;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .area-card {
        padding: 10px;
        font-size: 0.9rem;
    }
}
/* ========== تحسينات المقالات المتقدمة ========== */

/* الحاوية الرئيسية */
.single-post-wrapper {
    background: #ffffff;
    min-height: 100vh;
}

/* البطل (Hero Section) */
.single-post-hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.featured-image {
    position: relative;
    width: 100%;
    height: 100%;
}

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.9));
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 0;
    color: white;
}

.post-category {
    display: inline-block;
    background: var(--primary);
    color: var(--dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
}

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

.post-meta-hero {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    opacity: 0.9;
}

.post-meta-hero span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* تخطيط المحتوى */
.post-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    padding: 40px 0;
}

/* جدول المحتويات */
.table-of-contents {
    background: var(--light);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border-right: 4px solid var(--primary);
}

.table-of-contents h3 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 1.2rem;
}

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

.toc-content li {
    margin-bottom: 8px;
    padding-right: 15px;
    border-right: 2px solid transparent;
    transition: all 0.3s;
}

.toc-content li:hover {
    border-right-color: var(--primary);
    padding-right: 20px;
}

.toc-content a {
    color: var(--text);
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.3s;
}

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

.toc-h3 {
    padding-right: 20px;
    font-size: 0.95rem;
}

/* محتوى المقال */
.post-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text);
}

.post-content h2 {
    font-size: 1.8rem;
    color: var(--dark);
    margin: 35px 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

.post-content h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin: 30px 0 15px;
}

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

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

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

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

/* الوسوم */
.post-tags {
    margin: 30px 0;
    padding: 20px;
    background: var(--light);
    border-radius: 8px;
}

.post-tags strong {
    color: var(--dark);
    margin-left: 10px;
}

.post-tags a {
    display: inline-block;
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
    margin: 5px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
}

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

/* المشاركة */
.share-section {
    margin: 40px 0;
    padding: 30px;
    background: var(--light);
    border-radius: 12px;
    text-align: center;
}

.share-section h3 {
    margin-bottom: 20px;
    color: var(--dark);
}

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

.share-btn {
    padding: 12px 25px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.linkedin { background: #0A66C2; }

/* صندوق الكاتب */
.author-box {
    background: white;
    border: 2px solid var(--light);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    display: flex;
    gap: 25px;
    align-items: center;
}

.author-avatar img {
    border-radius: 50%;
    border: 4px solid var(--primary);
}

.author-info h4 {
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.author-info p {
    color: #666;
    margin-bottom: 15px;
}

.author-social a {
    display: inline-flex;
    width: 35px;
    height: 35px;
    background: var(--light);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--text);
    margin-left: 8px;
    transition: all 0.3s;
}

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

/* مقالات ذات صلة */
.related-posts {
    margin: 50px 0;
}

.related-posts h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
}

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

.related-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

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

.related-content {
    padding: 15px;
}

.related-content h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

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

.related-content span {
    font-size: 0.85rem;
    color: #666;
}

/* الشريط الجانبي */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

/* المقالات الشائعة */
.popular-post {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light);
}

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

.popular-thumb img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

.popular-info h5 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.popular-info h5 a {
    color: var(--dark);
    text-decoration: none;
}

.popular-info span {
    font-size: 0.85rem;
    color: #666;
}

/* قائمة التصنيفات */
.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: var(--light);
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
}

.category-list a:hover {
    background: var(--primary);
    color: var(--dark);
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, var(--dark) 0%, #1f2937 100%);
    color: white;
    text-align: center;
}

.cta-widget h3 {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.cta-widget p {
    margin-bottom: 20px;
    opacity: 0.9;
}

/* التجاوب مع الجوال */
@media (max-width: 968px) {
    .post-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .single-post-hero {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}