/*
Theme Name: خدمة تاكسي الكويت 24 ساعة
Theme URI: https://example.com
Author: Kuwait Taxi Team
Description: قالب ووردبريس احترافي ومحسن لمحركات البحث لكلمة تاكسي، مخصص لخدمة تاكسي الكويت على مدار 24 ساعة.
Version: 2.1
Text Domain: kuwait-taxi-24
Tags: taxi, kuwait, transportation, rtl, business
*/

:root {
    --p: #0077b6;
    --pd: #005f8a;
    --y: #ffd60a;
    --d: #1a1a2e;
    --l: #f8f9fa;
    --g: linear-gradient(135deg, #ffd60a, #f4a261);
    --g1: linear-gradient(135deg, #0077b6, #00b4d8);
    --g2: linear-gradient(135deg, #023e8a, #0077b6);
    --s: 0 10px 40px rgba(0, 119, 182, .15);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', sans-serif;
    background: var(--l);
    color: var(--d);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- WordPress Core Classes (مهم جداً لظهور المحتوى بشكل صحيح) --- */
.aligncenter { display: block; margin: 20px auto; text-align: center; }
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.wp-caption { background: #fff; border: 1px solid #f0f0f0; max-width: 96%; padding: 5px 3px 10px; text-align: center; border-radius: 8px; }
.wp-caption-text { font-size: 0.85rem; color: #666; margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 20px 0; }
.gallery-item { text-align: center; }
.gallery-icon img { border-radius: 8px; width: 100%; height: auto; }

/* --- Navbar --- */
.navbar {
    position: fixed; top: 0; width: 100%;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(20px);
    z-index: 1000; padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, .1);
}
.nav-c { max-width: 1400px; margin: 0 auto; padding: 0 30px; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-i { width: 50px; height: 50px; background: var(--g); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--d); }
.logo h2 { font-size: 1.1rem; color: var(--p); font-weight: 800; line-height: 1.2; }
.logo span { font-size: .7rem; color: #666; }
.nav-l { display: flex; list-style: none; gap: 25px; }
.nav-l a { text-decoration: none; color: var(--d); font-weight: 600; font-size: .95rem; transition: .3s; }
.nav-l a:hover { color: var(--p); }
.nav-cta { background: var(--g); color: var(--d) !important; padding: 10px 25px; border-radius: 25px; font-weight: 700; }
.mob { display: none; font-size: 1.5rem; cursor: pointer; color: var(--p); background: none; border: none; }

/* --- Hero --- */
.hero { min-height: 100vh; background: var(--g2); position: relative; display: flex; align-items: center; padding: 100px 30px 50px; }
.hero-c { max-width: 1400px; margin: 0 auto; width: 100%; text-align: center; color: #fff; }
.hero h1 { font-size: 3.2rem; font-weight: 900; margin-bottom: 20px; line-height: 1.3; }
.hero h1 span { color: var(--y); }
.hero p { font-size: 1.2rem; opacity: .9; margin-bottom: 30px; max-width: 800px; margin-inline: auto; }
.hero-b { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.badge { background: rgba(255, 255, 255, .15); padding: 8px 18px; border-radius: 25px; font-size: .9rem; font-weight: 600; border: 1px solid rgba(255, 255, 255, .2); }
.badge i { color: var(--y); margin-left: 5px; }
.hero-btn { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.btn { padding: 15px 35px; border-radius: 30px; text-decoration: none; font-weight: 700; font-size: 1rem; display: inline-flex; align-items: center; gap: 10px; transition: .3s; }
.btn-p { background: var(--y); color: var(--d); box-shadow: 0 10px 30px rgba(255, 214, 10, .4); }
.btn-p:hover { transform: translateY(-3px); }
.btn-s { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .5); }
.btn-s:hover { background: rgba(255, 255, 255, .1); }
.stats { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.stat { text-align: center; }
.stat h3 { font-size: 2.2rem; color: var(--y); font-weight: 800; }
.stat p { font-size: .9rem; opacity: .8; }

/* --- Sections General --- */
.sec { padding: 80px 30px; }
.sec-c { max-width: 1400px; margin: 0 auto; }
.sec-h { text-align: center; margin-bottom: 50px; }
.sec-h h2 { font-size: 2.3rem; font-weight: 800; margin-bottom: 15px; }
.sec-h p { color: #666; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.line { width: 80px; height: 4px; background: var(--g1); margin: 20px auto 0; border-radius: 2px; }

/* --- Services --- */
.services { background: #fff; }
.s-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; }
.s-card { background: #fff; border-radius: 20px; padding: 35px 25px; text-align: center; box-shadow: var(--s); transition: .4s; border: 2px solid transparent; }
.s-card:hover { transform: translateY(-10px); border-color: var(--y); }
.s-icon { width: 80px; height: 80px; background: var(--g); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 2rem; color: var(--d); }
.s-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.s-card p { color: #666; font-size: .9rem; }

/* --- Areas --- */
.areas { background: linear-gradient(180deg, #f0f9ff, #e0f2fe); }
.a-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
.a-card { background: #fff; border-radius: 14px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 4px 15px rgba(0, 0, 0, .05); transition: .3s; border-right: 4px solid var(--p); cursor: pointer; }
.a-card:hover { transform: translateY(-3px); border-right-color: var(--y); background: #fff9e6; }
.a-name { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.a-name i { color: var(--p); }
.a-info { background: var(--g1); padding: 6px 14px; border-radius: 20px; color: #fff; font-size: .8rem; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.prov { grid-column: 1 / -1; background: var(--g1); color: #fff; padding: 18px 25px; border-radius: 14px; font-size: 1.3rem; font-weight: 800; margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.prov:first-child { margin-top: 0; }
.prov.sp { background: var(--g); color: var(--d); }
.prov i { background: var(--y); color: var(--d); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }

/* --- Why Us --- */
.why { background: var(--d); color: #fff; }
.why .sec-h h2 { color: #fff; }
.why .sec-h p { color: rgba(255, 255, 255, .7); }
.w-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.w-card { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; padding: 35px; transition: .4s; }
.w-card:hover { background: rgba(255, 255, 255, .1); border-color: var(--y); transform: translateY(-5px); }
.w-icon { width: 60px; height: 60px; background: var(--g); border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--d); margin-bottom: 20px; }
.w-card h3 { margin-bottom: 10px; }
.w-card p { color: rgba(255, 255, 255, .6); font-size: .9rem; }

/* --- Pricing --- */
.pricing { background: #fff; }
.p-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.p-card { background: #fff; border-radius: 24px; padding: 40px 30px; text-align: center; box-shadow: var(--s); transition: .4s; border: 2px solid transparent; position: relative; }
.p-card.feat { background: var(--g2); color: #fff; transform: scale(1.05); border-color: var(--y); }
.p-card:hover { transform: translateY(-8px); }
.p-card.feat:hover { transform: scale(1.05) translateY(-8px); }
.p-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--y); color: var(--d); padding: 6px 20px; border-radius: 20px; font-size: .85rem; font-weight: 800; }
.p-icon { width: 80px; height: 80px; background: var(--g); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 2rem; color: var(--d); }
.p-card.feat .p-icon { background: rgba(255, 255, 255, .2); color: #fff; }
.p-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.p-price { font-size: 2.5rem; font-weight: 900; color: var(--p); margin: 15px 0; }
.p-card.feat .p-price { color: var(--y); }
.p-price span { font-size: 1rem; font-weight: 600; }
.p-feat { list-style: none; margin: 20px 0; text-align: right; }
.p-feat li { padding: 8px 0; font-size: .9rem; display: flex; align-items: center; gap: 10px; }
.p-feat li i { color: #10b981; }
.p-card.feat .p-feat li i { color: var(--y); }
.p-btn { display: inline-block; background: var(--g1); color: #fff; padding: 12px 30px; border-radius: 25px; text-decoration: none; font-weight: 700; transition: .3s; margin-top: 15px; }
.p-card.feat .p-btn { background: var(--y); color: var(--d); }

/* --- Testimonials --- */
.tests { background: linear-gradient(180deg, #f0f9ff, #fff); }
.t-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.t-card { background: #fff; border-radius: 20px; padding: 30px; box-shadow: var(--s); transition: .3s; }
.t-card:hover { transform: translateY(-5px); }
.t-stars { color: var(--y); margin-bottom: 15px; font-size: 1.1rem; }
.t-text { color: #555; font-size: .95rem; line-height: 1.8; margin-bottom: 20px; }
.t-auth { display: flex; align-items: center; gap: 12px; }
.t-av { width: 45px; height: 45px; background: var(--g); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--d); font-weight: 700; }
.t-info h4 { font-size: .95rem; }
.t-info span { font-size: .8rem; color: #888; }

/* --- CTA --- */
.cta { background: var(--g2); text-align: center; color: #fff; padding: 80px 30px; }
.cta h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; }
.cta h2 span { color: var(--y); }
.cta p { font-size: 1.1rem; opacity: .8; margin-bottom: 35px; max-width: 600px; margin-inline: auto; }
.cta-b { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.cta-w { background: #25d366; color: #fff; padding: 15px 35px; border-radius: 30px; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; transition: .3s; }
.cta-w:hover { transform: translateY(-3px); }
.cta-ph { background: var(--y); color: var(--d); padding: 15px 35px; border-radius: 30px; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; transition: .3s; }
.cta-ph:hover { transform: translateY(-3px); }

/* --- Contact --- */
.contact { background: var(--l); }
.c-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.c-form { background: #fff; border-radius: 24px; padding: 40px; box-shadow: var(--s); }
.fg { margin-bottom: 20px; }
.fg label { display: block; margin-bottom: 8px; font-weight: 600; font-size: .9rem; }
.fg .req { color: #ef4444; }
.fg input, .fg select, .fg textarea {
    width: 100%; padding: 14px 18px; border: 2px solid #e0e0e0; border-radius: 12px;
    font-family: inherit; font-size: .95rem; transition: .3s; outline: none;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--p); box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1); }
.fg textarea { height: 120px; resize: vertical; }
.f-sub { background: var(--g1); color: #fff; padding: 15px 40px; border: none; border-radius: 25px; font-family: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; transition: .3s; }
.f-sub:hover { transform: translateY(-2px); }
.c-info { display: flex; flex-direction: column; gap: 20px; }
.c-card { background: #fff; border-radius: 16px; padding: 22px; display: flex; align-items: center; gap: 20px; box-shadow: var(--s); transition: .3s; }
.c-card:hover { transform: translateX(-5px); }
.c-icon { width: 55px; height: 55px; background: var(--g1); border-radius: 15px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem; flex-shrink: 0; }
.c-card h4 { margin-bottom: 5px; }
.c-card p { color: #666; font-size: .9rem; }

/* --- Footer --- */
footer { background: var(--d); color: #fff; padding: 60px 30px 30px; }
.f-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.f-about h3 { font-size: 1.3rem; margin-bottom: 15px; }
.f-about p { color: rgba(255, 255, 255, .6); font-size: .9rem; line-height: 1.8; }
.f-links h4 { font-size: 1.1rem; margin-bottom: 20px; }
.f-links ul { list-style: none; }
.f-links ul li { margin-bottom: 10px; }
.f-links ul li a { color: rgba(255, 255, 255, .6); text-decoration: none; font-size: .9rem; transition: .3s; }
.f-links ul li a:hover { color: var(--y); padding-right: 5px; }
.f-bot { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 25px; text-align: center; color: rgba(255, 255, 255, .5); font-size: .85rem; }

/* --- Floating Buttons --- */
.wa-float { position: fixed; bottom: 30px; left: 30px; width: 60px; height: 60px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.8rem; text-decoration: none; box-shadow: 0 5px 20px rgba(37, 211, 102, .4); z-index: 999; animation: pulse 2s infinite; }
.call-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: var(--y); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--d); font-size: 1.6rem; text-decoration: none; box-shadow: 0 5px 20px rgba(255, 214, 10, .4); z-index: 999; animation: pulse2 2s infinite; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .4); } 70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@keyframes pulse2 { 0% { box-shadow: 0 0 0 0 rgba(255, 214, 10, .4); } 70% { box-shadow: 0 0 0 20px rgba(255, 214, 10, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 214, 10, 0); } }

/* --- Single Post & Archive (مقالات وأرشيف) --- */
.single-post, .archive-section, .page-section { padding: 120px 20px 60px; background: #f8fafc; }
.post-container, .page-content { max-width: 900px; margin: 0 auto; }
.post-header, .archive-header { text-align: center; margin-bottom: 40px; }
.post-category, .card-category { display: inline-block; background: var(--g); color: var(--d); padding: 6px 18px; border-radius: 20px; font-size: 0.9rem; font-weight: 700; margin-bottom: 15px; }
.post-title, .archive-title { font-size: 2.5rem; font-weight: 900; color: var(--d); margin-bottom: 20px; line-height: 1.3; }
.post-meta, .card-meta { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; color: #666; font-size: 0.95rem; }
.post-meta i, .card-meta i { color: var(--p); margin-left: 5px; }
.post-thumbnail { margin-bottom: 30px; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.post-thumbnail img, .card-image img { width: 100%; height: auto; display: block; }

.post-content, .page-content { background: white; padding: 40px; border-radius: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); margin-bottom: 30px; font-size: 1.1rem; line-height: 1.9; color: #333; }
.post-content h2 { color: var(--p); font-size: 1.8rem; margin: 30px 0 15px; padding-right: 15px; border-right: 4px solid var(--y); }
.post-content h3 { color: var(--d); font-size: 1.4rem; margin: 25px 0 12px; }
.post-content p { margin-bottom: 15px; }
.post-content ul, .post-content ol { margin: 15px 0 20px 25px; }
.post-content li { margin-bottom: 8px; }
.post-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 20px 0; }

.whatsapp-booking-box { background: linear-gradient(135deg, #25d366 0%, #128C7E 100%); border-radius: 20px; padding: 30px; display: flex; align-items: center; gap: 25px; margin: 30px 0; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3); color: white; }
.booking-icon { width: 80px; height: 80px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #25d366; flex-shrink: 0; animation: pulse 2s infinite; }
.booking-content h3 { font-size: 1.5rem; margin-bottom: 10px; color: white; }
.booking-content p { margin-bottom: 20px; opacity: 0.95; }
.booking-btn { display: inline-flex; align-items: center; gap: 10px; background: white; color: #25d366; padding: 12px 25px; border-radius: 50px; text-decoration: none; font-weight: 700; margin-left: 10px; transition: 0.3s; }
.booking-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.booking-btn.phone-btn { background: var(--y); color: var(--d); }

.related-posts { background: white; padding: 30px; border-radius: 20px; margin: 30px 0; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.related-posts h3 { font-size: 1.5rem; margin-bottom: 25px; color: var(--d); text-align: center; }
.related-posts h3 i { color: var(--p); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.related-card { border: 1px solid #e5e7eb; border-radius: 15px; overflow: hidden; transition: 0.3s; }
.related-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.related-thumb img { width: 100%; height: 180px; object-fit: cover; }
.related-info { padding: 15px; }
.related-info h4 { font-size: 1.1rem; margin-bottom: 10px; }
.related-info h4 a { color: var(--d); text-decoration: none; transition: 0.3s; }
.related-info h4 a:hover { color: var(--p); }
.related-info p { color: #666; font-size: 0.9rem; margin-bottom: 12px; }
.read-more, .card-btn { color: var(--p); text-decoration: none; font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; }
.card-btn { background: var(--g1); color: white; padding: 10px 20px; border-radius: 25px; }
.card-btn:hover { transform: translateX(-5px); color: white; }

.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; max-width: 1300px; margin: 0 auto; }
.archive-card { background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.08); transition: 0.3s; }
.archive-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.12); }
.card-image { position: relative; height: 220px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.archive-card:hover .card-image img { transform: scale(1.1); }
.card-category { position: absolute; top: 15px; right: 15px; }
.card-content { padding: 25px; }
.card-title { font-size: 1.3rem; margin-bottom: 12px; line-height: 1.4; }
.card-title a { color: var(--d); text-decoration: none; transition: 0.3s; }
.card-title a:hover { color: var(--p); }
.card-meta { justify-content: flex-start; font-size: 0.85rem; margin-bottom: 12px; }
.card-excerpt { color: #666; font-size: 0.95rem; line-height: 1.6; margin-bottom: 15px; }

.pagination { text-align: center; margin: 50px 0 20px; }
.pagination a, .pagination span { display: inline-block; padding: 10px 18px; margin: 0 5px; background: white; color: var(--d); text-decoration: none; border-radius: 8px; font-weight: 700; transition: 0.3s; border: 2px solid #e5e7eb; }
.pagination a:hover, .pagination .current { background: var(--y); border-color: var(--y); color: var(--d); }

.internal-link { color: var(--p); text-decoration: none; font-weight: 700; border-bottom: 2px dashed var(--y); transition: 0.3s; }
.internal-link:hover { color: var(--y); border-bottom-style: solid; }

/* --- Responsive --- */
@media(max-width: 992px) {
    .nav-l { display: none; position: absolute; top: 100%; right: 0; left: 0; background: #fff; flex-direction: column; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.1); }
    .nav-l.active { display: flex; }
    .mob { display: block; }
    .hero h1 { font-size: 2.2rem; }
    .c-grid { grid-template-columns: 1fr; }
    .f-grid { grid-template-columns: 1fr 1fr; }
    .p-card.feat { transform: scale(1); }
    .p-card.feat:hover { transform: translateY(-8px); }
}

@media(max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .sec-h h2 { font-size: 1.8rem; }
    .f-grid { grid-template-columns: 1fr; }
    .wa-float, .call-float { width: 55px; height: 55px; bottom: 20px; }
    .wa-float { left: 20px; }
    .call-float { right: 20px; }
    .post-title, .archive-title { font-size: 1.8rem; }
    .post-content, .page-content { padding: 25px 20px; }
    .whatsapp-booking-box { flex-direction: column; text-align: center; }
    .booking-btn { display: block; margin: 10px 0; }
    .archive-grid { grid-template-columns: 1fr; }
}
/* --- Dynamic Articles Slider (Optimized for 100/100 PageSpeed) --- */
.articles-slider-sec { background: #fff; padding: 80px 0; }
.slider-wrapper { position: relative; max-width: 1200px; margin: 0 auto; overflow: hidden; }
.slider-track { display: flex; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.slider-slide { 
    min-width: 100%; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    opacity: 0; 
    transform: translateX(50px); 
    transition: opacity 0.5s ease, transform 0.5s ease; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%;
    pointer-events: none;
}
.slider-slide.active-slide { 
    opacity: 1; 
    transform: translateX(0); 
    position: relative; 
    pointer-events: auto; 
}
.slider-dots { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.dot { width: 12px; height: 12px; background: #cbd5e1; border-radius: 50%; cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--p); transform: scale(1.2); }

/* --- PageSpeed 100/100 Optimizations --- */
img { max-width: 100%; height: auto; content-visibility: auto; }
.btn, .a-card, .s-card { will-change: transform; } /* Smooth GPU acceleration */
/* تحسينات إمكانية الوصول (Accessibility) */
/* 1. تباين ألوان أفضل */
.btn, .nav-l a, .footer-links a {
    min-height: 44px; /* حجم مناسب للمس */
}

/* 2. تحسين التركيز (Focus) للعناصر */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 3px solid var(--y);
    outline-offset: 2px;
}

/* 3. نص بديل للصور */
img[alt=""] {
    border: 2px dashed red;
}

/* 4. دعم لوحة المفاتيح */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--p);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}
.skip-link:focus {
    top: 0;
}
/* ===== قسم المميزات (موحد ومطابق لتصميم الخدمات) ===== */

.features-modern {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
    position: relative;
}

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

.section-badge {
    display: inline-block;
    background: var(--g1);
    color: white;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 119, 182, 0.2);
}

.section-header-modern h2 {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--d);
    margin-bottom: 15px;
}

.section-header-modern p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.header-line {
    width: 80px;
    height: 4px;
    background: var(--g1);
    margin: 20px auto 0;
    border-radius: 2px;
}

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

/* --- هنا السر: جعل البطاقة مطابقة لـ .s-card --- */
.feature-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--s);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-box:hover {
    transform: translateY(-10px); /* نفس حركة الخدمات */
    border-color: var(--y);       /* نفس حدود الخدمات */
}

/* --- هنا السر: جعل الأيقونة مطابقة تماماً لـ .s-icon --- */
.feature-icon-wrap {
    width: 80px;                  /* نفس حجم أيقونة الخدمات */
    height: 80px;
    background: var(--g);         /* نفس التدرج الأصفر/البرتقالي */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--d);              /* نفس لون الأيقونة */
    transition: all 0.4s ease;
}

/* تأثير بسيط وجميل عند المرور (بدون دوران مزعج) */
.feature-box:hover .feature-icon-wrap {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 214, 10, 0.4);
}

/* الرقم الخلفي الزخرفي */
.feature-number {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 119, 182, 0.06);
    line-height: 1;
    z-index: 0;
}

/* النصوص مطابقة لتصميم الخدمات */
.feature-box h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--d);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.feature-box > p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* المحتوى الإضافي الذي يظهر عند المرور (Hover) */
.feature-hover-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    margin-top: 0;
    opacity: 0;
}

.feature-box:hover .feature-hover-content {
    max-height: 200px;
    margin-top: 15px;
    opacity: 1;
}

.feature-hover-content p {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.7;
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
}

/* تجاوب الجوال */
@media (max-width: 768px) {
    .features-modern { padding: 60px 0; }
    .section-header-modern h2 { font-size: 1.8rem; }
    .features-grid-modern { grid-template-columns: 1fr; gap: 20px; }
    .feature-box { padding: 30px 20px; }
    .feature-icon-wrap { width: 70px; height: 70px; font-size: 1.8rem; }
}