/* transport.css — صفحة المواصلات محسّنة */
.transport-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 5px solid #667eea;
    position: relative;
    overflow: hidden;
}
.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(46, 125, 50, 0.1);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #9feeec;
    font-weight: 500;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}
.main-page-header {
    padding: 140px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 5px solid #667eea;
    position: relative;
    overflow: hidden;
}

.main-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(13, 71, 161, 0.03) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.page-main-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(46, 125, 50, 0.1);
}

.page-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #9feeec;
    font-weight: 500;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}


.car-marquee-wrapper {
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-light) 0%, #f8f9fa 100%);
  border-top: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding: 20px 0;
  position: relative;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  justify-content: center;
}

.car-marquee-content {
  display: flex;
  width: fit-content;
  animation: scroll-infinite 40s linear infinite;
  gap: 0; /* إزالة أي فراغ بين المسارين */
}

.marquee-track {
  display: flex;
  gap: 60px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  white-space: nowrap;
  animation: gentle-wobble 4s ease-in-out infinite alternate;
  padding: 0 30px;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}


/* Animation تتحرك للنصف بالضبط لأن المحتوى مكرر مرتين */
@keyframes scroll-infinite {
  0% { 
    transform: translateX(0); 
  }
  100% { 
    transform: translateX(-50%); 
  }
}

/* ==================== محتوى الصفحة الرئيسي (السيارات) ==================== */

.transport-main-content {
  display: block;
  padding: 60px 0;
}

.booking-section { display: none; } 

.vehicles-grid {
  display: grid;
  grid-template-columns: 1fr; 
  gap: 30px;
  max-width: 900px;
  margin: 30px auto 50px;
}

.vehicle-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
  display: flex;
  flex-direction: row-reverse;
  height: 320px;
  overflow: hidden;
  position: relative;
}

.vehicle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.vehicle-card:hover::before {
  transform: scaleX(1);
}

.vehicle-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border-color: var(--primary-color);
}

.vehicle-image-wrap {
  flex: 0 0 45%;
  height: 100%;
  border-radius: 0 16px 16px 0; 
  overflow: hidden;
}
.vehicle-card:nth-child(even) .vehicle-image-wrap {
    border-radius: 16px 0 0 16px;
    order: 2; 
}

.vehicle-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 0.4s ease;
}

.vehicle-details {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vehicle-details h3 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.vehicle-meta {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 10px;
  display: block;
}

.vehicle-meta .category-tag {
  font-size: 0.95rem;
  padding: 6px 14px;
}

.vehicle-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.feature-item {
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
}

.feature-item i {
  font-size: 1.1rem;
}

.price-tag { display: none; } 

.btn-book-now {
  background-color: var(--primary-color);
  color: #fff;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: var(--font-weight-bold);
  max-width: 300px;
  align-self: flex-start;
  text-decoration: none;
  text-align: center;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}
.btn-book-now:hover {
  background-color: var(--primary-dark);
}

.vehicles-grid .vehicle-card:nth-child(2) .btn-book-now {
    display: none;
}

.whatsapp-cta-fixed {
    max-width: 600px;
    margin: 50px auto 50px;
    text-align: center;
}
.btn-whatsapp-cta {
    display: inline-block;
    background-color: #25d366;
    color: #fff;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp-cta:hover {
    background-color: #128c7e;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}
.btn-whatsapp-cta i {
    margin-left: 10px;
}

/* 🚀 قسم المميزات المحسّن 🚀 */
.features-section { 
    padding: 80px 0; 
    background: var(--bg-section); 
}
.features-grid { 
    max-width: 1100px;
    margin: 50px auto 0; 
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 40px; 
}
.feature { 
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 16px; 
    text-align: right; 
    
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.04); 
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.feature:hover::before {
    transform: scaleX(1);
}

.feature:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15),
                0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.feature i { 
    font-size: 3rem; 
    display: block;
    margin-bottom: 20px;
    color: var(--primary-color);
    
    width: 80px;
    height: 80px;
    line-height: 80px;
    margin-right: auto;
    margin-left: auto;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 193, 7, 0.1));
    border-radius: 50%;
    
    transition: all 0.4s ease;
}

.feature:hover i {
    transform: scale(1.15) rotate(5deg);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 193, 7, 0.2));
}

.feature h4 { 
    font-size: 1.3rem; 
    color: var(--primary-dark); 
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 700;
}
.feature p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* قسم الأسئلة الشائعة المحسّن */
.faq-section { 
    padding: 80px 0;
    background: var(--bg-section);
}

.faq-grid { 
    max-width: 900px; 
    margin: 30px auto 0; 
}

.faq-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateX(-5px);
}

.faq-item.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.faq-item h4 {
  color: var(--primary-dark);
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
}

.faq-item h4 i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.faq-item.active h4 i {
    transform: rotate(180deg);
}

.faq-item p {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px dotted var(--primary-color);
  display: none;
  color: var(--text-medium);
  line-height: 1.8;
  font-size: 1rem;
}

.faq-item.active p {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== Responsive adjustments ==================== */

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

    
  .vehicle-card {
      flex-direction: column;
      height: auto;
  }

  .vehicle-image-wrap {
      flex: none;
      width: 100%;
      height: 200px;
      border-radius: 16px 16px 0 0 !important; 
      order: 0 !important;
  }
  
  .vehicle-details {
      padding: 20px;
  }

  .btn-book-now {
      max-width: 100%;
  }
    
  .features-grid {
      grid-template-columns: 1fr;
      gap: 25px; 
  }

  .car-marquee-item {
      font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
    .vehicle-features {
        gap: 15px;
    }
}

@keyframes gentle-wobble {
  0% {
    transform: translateX(-150px);
  }
  100% {
    transform: translateX(150px);
  }
}