/*
Theme Name: Alfaris Turk - الفارس ترك للسياحة والاستيراد
Description: قالب احترافي مخصص لشركة الفارس ترك، شركة عربية مقرها اسطنبول متخصصة في السياحة والاستيراد والتصدير من تركيا. يتميز بتصميم أزرق كحلي أنيق ومريح للعين.
Author: Alfaris Turk
Author URI: https://alfaris-turk.com
Version: 1.0.0
Text Domain: alfaristurk
*/

:root {
  --primary-color: #1a3a6b;
  --primary-hover: #122d55;
  --primary-light: #2a5298;
  --primary-gradient: linear-gradient(135deg, #1a3a6b 0%, #2a5298 100%);
  --accent-color: #4a90d9;
  --secondary-color: #3d5a80;
  --text-dark: #1a2332;
  --text-light: #5a6a7e;
  --bg-gray: #f4f7fb;
  --bg-blue-soft: #eef3fa;
  --border-color: #c8d8ee;
  --white: #ffffff;
  --navy-soft: #d0dff0;
  --navy-bg: #e8f0fa;
  --gold-bg: #e8f0fa;
}

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

body {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  direction: rtl;
  text-align: right;
  overflow-x: hidden !important;
  background-color: var(--bg-gray);
  max-width: 100%;
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .container { padding: 0 1.25rem; }
  .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  * { box-sizing: border-box; }
  
  .container { padding: 0 1rem; }
  h1 { font-size: 1.8rem !important; }
  .grid-cols-4, .grid-cols-3, .grid-cols-2 { grid-template-columns: 1fr !important; }
  .hero-border-box { padding: 1.5rem !important; border-radius: 1rem !important; }
  .contact-form div { grid-template-columns: 1fr !important; }
  input, select, textarea { width: 100% !important; max-width: 100%; }
  .hero-title { font-size: 1.6rem !important; }
  .hero-subtitle { font-size: 0.95rem !important; }
  .hero-buttons { flex-direction: column; gap: 0.75rem; width: 100%; }
  .hero-buttons a { width: 100%; text-align: center; margin: 0 !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .why-grid { grid-template-columns: 1fr !important; }
  .services-strip-inner { gap: 1rem; flex-direction: column; }
  .service-strip-item { width: 100%; padding: 0.5rem; }
  .top-bar-inner { flex-direction: column; gap: 0.8rem; justify-content: center; text-align: center; }
  .top-bar-inner > div { justify-content: center; width: 100%; }
  
  /* إصلاح الهيدر على الجوال */
  .site-header { position: sticky; top: 0; }
  .header-content { flex-wrap: wrap; padding: 0.6rem 0; gap: 0.5rem; }
  .site-logo { min-width: auto; flex: 1; }
  .site-logo h1 { font-size: 1.1rem !important; }
  .site-logo a { gap: 0.3rem !important; }
  .site-logo span { font-size: 0.9rem !important; }
  .site-logo img { max-height: 45px; }
  
  .main-navigation { flex: none; width: auto; order: 3; }
  .menu-toggle { display: block !important; padding: 0.4rem; }
  .nav-menu-container { 
    display: none; 
    position: absolute; 
    top: 100%; 
    right: 0; 
    left: 0; 
    width: 100%; 
    background: white; 
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 999;
  }
  .nav-menu-container.active { display: block; }
  .nav-menu { flex-direction: column; gap: 0; width: 100%; }
  .nav-menu li { border-bottom: 1px solid #f0f0f0; width: 100%; }
  .nav-menu a { display: block; padding: 1rem; text-align: right; width: 100%; }
  
  .header-contact { order: 2; margin-right: auto; flex: 0; }
  .header-contact a { padding: 0.4rem 0.8rem !important; font-size: 0.8rem !important; white-space: nowrap; }
  .header-contact .hide-mobile { display: none; }
  
  /* شريط البحث */
  .search-bar-wrapper { padding: 0.6rem 0; }
  .search-bar-container { max-width: 100% !important; width: 100% !important; }
  .search-bar-container input { font-size: 16px; padding: 0.5rem 1rem !important; }
  .search-bar-container button { padding: 0.5rem 1rem !important; }
  
  /* شريط التواصل العلوي */
  .top-bar { padding: 0.4rem 0; }
  .top-bar a span { display: none; }
  .top-bar a i { font-size: 1.1rem; }
  .top-bar-inner > div:first-child { justify-content: center; gap: 1.2rem !important; }
  
  /* الأقسام والمحتوى */
  .section { padding: 2.5rem 0; }
  .section-title { font-size: 1.5rem !important; }
  .card-image { height: 160px; }
  .single-post { padding: 1rem 0; }
  .post-title { font-size: 1.6rem !important; }
  .post-meta { gap: 0.8rem !important; font-size: 0.85rem !important; }
  .post-content { font-size: 1rem !important; }
  .social-share > div { gap: 0.5rem !important; }
  .social-share a { padding: 0.6rem 1rem !important; font-size: 0.8rem !important; }
}

@media (max-width: 480px) {
  .container { padding: 0 0.75rem; }
  .site-logo h1 { font-size: 1rem !important; }
  .site-logo img { max-height: 35px; }
  .header-contact a { padding: 0.3rem 0.6rem !important; font-size: 0.75rem !important; }
  .stat-number { font-size: 1.8rem !important; }
  .stat-label { font-size: 0.85rem !important; }
}

/* منع الانحراف العام */
img, video, iframe, table { max-width: 100%; height: auto; }
.main-content, .site-header, .top-bar, .search-bar-wrapper, .section, .footer { overflow: hidden; width: 100%; }
table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }


.highlight-paragraphs p {
  padding: 1.2rem;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  background: var(--white);
  transition: all 0.3s ease;
}

.highlight-paragraphs p:hover {
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(26, 58, 107, 0.1);
}

.btn-gradient {
  background: var(--primary-gradient) !important;
  color: white !important;
  border: none !important;
  padding: 0.8rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(26, 58, 107, 0.35);
}

/* ===== شريط علوي ===== */
.top-bar {
  background: var(--primary-color);
  padding: 0.4rem 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
}

.top-bar a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

.top-bar a:hover { color: white; }

/* ===== رأس الصفحة ===== */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(26, 58, 107, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--primary-color);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  flex-wrap: nowrap;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.site-logo {
  flex-shrink: 0;
  min-width: auto;
}

.site-logo img { max-height: 60px; max-width: 100%; }

.main-navigation {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  padding: 0.5rem;
}

.nav-menu-container {
  display: flex;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  list-style: none;
}

.main-navigation a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1rem;
  transition: color 0.3s ease;
  white-space: nowrap;
}

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

/* ===== قائمة الجوال ===== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-menu-container {
  display: flex;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  list-style: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block !important;
  }
  
  .nav-menu-container {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    flex-direction: column;
    width: 100%;
    z-index: 999;
  }
  
  .nav-menu-container.active {
    display: flex;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  
  .nav-menu li {
    border-bottom: 1px solid #f0f0f0;
  }
  
  .nav-menu a {
    display: block;
    padding: 1rem;
  }
}

/* ===== شريط البحث ===== */
.search-bar-wrapper {
  background: var(--navy-bg);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-color);
}

/* ===== قسم الهيرو ===== */
.hero-section {
  background: linear-gradient(135deg, rgba(26, 58, 107, 0.93) 0%, rgba(42, 82, 152, 0.88) 100%),
              url('https://images.unsplash.com/photo-1524231757912-21f4fe3a7200?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  padding: 7rem 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--bg-gray);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.hero-title {
  font-size: 3.2rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.9);
  max-width: 800px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== شريط الخدمات السريع ===== */
.services-strip {
  background: var(--primary-color);
  padding: 1.2rem 0;
  color: white;
}

.services-strip-inner {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: center;
}

.service-strip-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.service-strip-item i {
  font-size: 1.2rem;
  color: #7ab8f5;
}

/* ===== الأقسام ===== */
.section { padding: 5rem 0; }

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  position: relative;
  font-weight: 800;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-gradient);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

.grid { display: grid; gap: 2.5rem; }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }

/* ===== البطاقات ===== */
.card {
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(26, 58, 107, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(26, 58, 107, 0.15);
  border-color: var(--primary-color);
}

.card-image { width: 100%; height: 220px; object-fit: cover; }
.card-content { padding: 1.8rem; }
.card-title { font-size: 1.3rem; margin-bottom: 0.8rem; color: var(--primary-color); font-weight: 700; }
.card-text { color: var(--text-light); font-size: 0.95rem; margin-bottom: 1.5rem; }

.card-category {
  display: inline-block;
  background: var(--navy-bg);
  color: var(--primary-color);
  padding: 0.2rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

/* ===== بطاقات الخدمات ===== */
.service-card {
  background: white;
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 8px 25px rgba(26, 58, 107, 0.07);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(26, 58, 107, 0.15);
  border-color: var(--primary-color);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--navy-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--primary-gradient);
  color: white;
}

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
}

.service-text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== قسم الإحصائيات ===== */
.stats-section {
  background: var(--primary-gradient);
  padding: 4rem 0;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: white;
  display: block;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-top: 0.3rem;
}

/* ===== قسم لماذا الفارس ترك ===== */
.why-section {
  background: var(--bg-blue-soft);
  padding: 5rem 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.why-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: white;
  padding: 1.8rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.why-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 25px rgba(26, 58, 107, 0.1);
}

.why-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--primary-gradient);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
}

.why-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.why-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== شريط الاتصال ===== */
.contact-strip {
  background: var(--primary-color);
  padding: 2.5rem 0;
  color: white;
  text-align: center;
}

.contact-strip h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.contact-strip p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
}

.contact-strip-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.8rem;
  border-radius: 3rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-btn-whatsapp {
  background: #25d366;
  color: white;
}

.contact-btn-phone {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ===== تذييل الصفحة ===== */
.site-footer {
  background: #0d1f3c;
  color: white;
  padding: 5rem 0 2rem;
  border-top: 5px solid var(--primary-light);
}

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

.footer-widget h3 {
  color: #7ab8f5;
  margin-bottom: 1.8rem;
  font-size: 1.2rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-widget h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background: #7ab8f5;
}

.footer-widget p { color: #a0b4cc; line-height: 1.8; font-size: 0.95rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 1rem; }
.footer-section a { color: #a0b4cc; text-decoration: none; transition: color 0.3s ease; }
.footer-section a:hover { color: #7ab8f5; }

/* ===== زر واتساب عائم ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ===== صفحة المقال ===== */
.post-content h2 {
  color: var(--primary-color);
  font-size: 1.6rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--navy-bg);
}

.post-content h3 {
  color: var(--primary-light);
  font-size: 1.3rem;
  margin: 1.5rem 0 0.8rem;
}

.post-content a {
  color: var(--primary-light);
  text-decoration: underline;
}

.post-content ul, .post-content ol {
  padding-right: 2rem;
  margin-bottom: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

/* ===== روابط اقرأ المزيد ===== */
.read-more-link {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.3s ease;
}

.read-more-link:hover { gap: 0.6rem; }

/* ===== صفحة البحث ===== */
.search-results-header {
  background: var(--primary-gradient);
  padding: 3rem 0;
  color: white;
  text-align: center;
  margin-bottom: 3rem;
}
