/* ===== قسم التخليص الجمركي ===== */

/* Force remove spacing from previous section */
.solutions-page {
  padding-top: 20px !important; /* Extremely reduced to pull content significantly up */
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  height: auto !important; /* Ensure no fixed height */
}

@media (max-width: 1200px) {
  .solutions-page {
    padding-top: 20px !important;
  }
}

@media (max-width: 768px) {
  .solutions-page {
    padding-top: 10px !important; /* Almost at the top edge for mobile */
  }
}

/* Ensure container has no extra top margin */
.solutions-page .container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.customs-clearance {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  padding: 0 0 40px; /* Removed top padding completely */
  margin-top: 0;
  direction: rtl;
  text-align: right;
}

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

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

.section-header h2 {
  font-size: 2.3rem;
  color: #0a1f44;
  margin-bottom: 10px;
  position: relative;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: #1e3a8a;
  margin: 12px auto 0;
  border-radius: 3px;
}

.section-header p {
  color: #475569;
  font-size: 1.1rem;
}

.intro-text p {
  color: #334155;
  line-height: 1.8;
  margin-bottom: 15px;
  font-size: 1rem;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  padding: 25px 30px;
  margin-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card h3 {
  color: #1e3a8a;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

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

.card ul li {
  margin-bottom: 10px;
  color: #475569;
  line-height: 1.6;
  position: relative;
  padding-right: 20px;
}

.card ul li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: #1e3a8a;
  font-weight: bold;
}

.highlight {
  border-right: 4px solid #1e3a8a;
  background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
}

/* ===== الموبايل ===== */
@media (max-width: 768px) {
  .customs-clearance {
    padding: 0 0 60px; /* Eliminated top padding for mobile */
  }

  /* Center the banner heading on mobile as well */
  .solutions-page .solution-info h3 {
      font-size: 1.2rem !important; /* Slightly smaller on mobile but consistent */
  }

  .section-header {
    margin-bottom: 20px; /* Reduce space below header on mobile */
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .card {
    padding: 20px;
  }

  /* Reduce image height to show next section */
  .solutions-page .solution-card img {
    height: 180px !important;
  }

}

/* ========== New Styles for Enhanced Formatting ========== */

/* Banner Heading Override */
.solutions-page .solution-info h3 {
    text-align: center !important;
    color: #1e3a8a !important; /* Match section-subtitle color only */
    margin-bottom: 15px;
    width: 100%;
    display: block;
}

/* Scope Section */
.service-scope-section {
  margin-bottom: 60px;
  text-align: center; /* Center content within this section */
}

.section-intro {
  text-align: center;
  font-size: 1.1rem !important; /* Force match with section-header p */
  color: #475569;
  margin-top: 0; 
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .section-intro {
    font-size: 0.95rem;
    margin-top: 0;
    margin-bottom: 30px;
    padding: 0 10px;
  }
}

.section-subtitle {
  text-align: center;
  font-size: 1.8rem;
  color: #1e3a8a;
  margin-bottom: 20px; /* Reduced from 40px to pull intro closer */
  position: relative;
  display: inline-block;
  /* Removed absolute centering hack to rely on parent text-align */
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  text-align: right; /* Reset text align for cards */
}

.scope-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.scope-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: #1e3a8a;
}

.icon-box {
  background: #f0f4ff;
  color: #1e3a8a;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.card-content {
  flex: 1;
}

.card-content h4 {
  color: #0f172a;
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.details-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100% !important; /* Full width for easier clicking */
  padding: 12px 16px !important; /* Sufficient height for thumb */
  margin-top: 15px;
  background-color: #f8fafc !important; /* Light background */
  border: 1px solid #cbd5e1 !important; /* Clear border */
  border-radius: 8px !important;
  color: #1e3a8a !important;
  font-size: 0.95rem !important;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.3s ease;
  cursor: pointer;
}

.details-link:hover {
  background-color: #e2e8f0;
  border-color: #94a3b8;
  color: #1e3a8a;
  transform: translateY(-2px);
}

.details-link i,
.details-link .arrow-icon {
  transition: transform 0.3s;
  display: inline-block; /* To allow transform on span */
}

.details-link:hover i,
.details-link:hover .arrow-icon {
  transform: translateX(-3px);
}

/* Info Grid (Documents & Why Us) */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

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

.custom-list {
  list-style: none;
  padding: 0;
}

.custom-list li {
  position: relative;
  padding-right: 0;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #475569;
  font-size: 1.05rem;
}

.custom-list li::before {
  content: none; /* Reset default dot */
}

.custom-list li i {
  color: #1e3a8a;
  font-size: 1.2rem;
  width: 25px;
  text-align: center;
}

.cta-container {
  margin-top: 30px;
  text-align: center;
}

/* New Special Style for Contact CTA Button */
a.custom-purple-cta,
.custom-purple-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  
  /* Purple Gradient (User Specified #4f007d) */
  background: linear-gradient(90deg, #4f007d 0%, #70259b 100%) !important;
  color: #ffffff !important;
  
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  padding: 12px 60px !important;
  min-width: 220px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  position: relative;
  overflow: visible !important;
  white-space: nowrap !important; /* Ensure text stays on one line */
  
  /* Thick white border and pulse */
  border: 6px solid #ffffff !important;
  box-shadow: 0 10px 20px rgba(79, 0, 125, 0.3) !important;
  animation: pulse-border-purple 2s infinite !important;
  
  /* Ensure centering */
  text-align: center;
  max-width: 90vw; /* Prevent overflow on small screens */
}

@keyframes pulse-border-purple {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 0, 125, 0.7), 0 10px 20px rgba(79, 0, 125, 0.2);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(79, 0, 125, 0), 0 10px 20px rgba(79, 0, 125, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(79, 0, 125, 0), 0 10px 20px rgba(79, 0, 125, 0.2);
    }
}

a.custom-purple-cta:hover,
.custom-purple-cta:hover {
    transform: translateY(-3px) !important;
    background: linear-gradient(90deg, #70259b 0%, #4f007d 100%) !important;
    box-shadow: 0 15px 35px rgba(79, 0, 125, 0.4), 0 0 0 6px rgba(79, 0, 125, 0.2) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    animation: none !important;
}


/* Responsive Adjustments for Mobile */
@media (max-width: 768px) {
  a.custom-purple-cta,
  .custom-purple-cta {
    padding: 12px 20px !important; /* Significantly reduced horizontal padding */
    font-size: 1rem !important; /* Slightly smaller font */
    min-width: auto !important; /* Allow button to shrink */
    width: auto !important;
    max-width: 100% !important;
    white-space: normal !important; /* Allow wrapping on very small screens if absolutely needed, or keep nowrap if preferred */
  }
}

/* ===== الفوتر ===== */
.footer {
    background: #fff !important; /* خلفية بيضاء */
    padding: 60px 0 20px;
    display: block !important;
    position: relative;
}

.footer::after {
    display: none !important; /* Remove background image from main style */
}

.footer::before {
    display: none !important; /* Remove top gradient border if needed for pure white look */
}

/* محتوى الفوتر */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* الفقرات */
.footer-content p {
    color: #4F007D !important; /* بنفسجي */
}

/* العناوين */
.footer-section h4 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #4F007D !important; /* بنفسجي صريح */
    background: none !important; 
    -webkit-text-fill-color: #4F007D !important;
}

/* القوائم */
.footer-section ul li a {
    color: #333 !important; /* لون داكن للروابط في الفوتر الأبيض */
}

.footer-section ul li a:hover {
    color: #4F007D !important;
}

/* Mobile Overrides (placed at end to ensure precedence) */
@media (max-width: 768px) {
  .section-subtitle {
    font-size: 1.2rem; /* Readable size for short text */
    white-space: nowrap;
    line-height: 1.4;
    width: 100%;
    display: block;
  }
}

/* Ensure mobile positioning is correct */
@media (max-width: 768px) {
  .floating-contact {
    left: 20px !important; /* Keep on left */
    bottom: 20px !important; /* Align with WhatsApp button which is at bottom 20px */
  }
  
  .contact-btn {
    width: 60px; /* Match WhatsApp button size */
    height: 60px;
    font-size: 24px;
  }
}
