/* ========================================
   نخبة المنافذ - Ports Elite
   صفحة: تخليص جمركي مطار الملك خالد – الرياض
   تصميم احترافي (Royal & Professional) - Consolidated
   ======================================== */

:root {
    --royal-gold: #c5a059;       /* لون ذهبي للفخامة */
    --royal-gold-light: #e6c88a; /* ذهبي فاتح */
    --royal-blue: #1a2b4a;       /* كحلي غامق */
    --brand-purple: #5458a2;     /* لون الهوية الأساسي */
    --brand-dark: #3d4172;       /* لون الهوية الغامق */
    --bg-light: #f9f9fb;         /* خلفية فاتحة */
    --text-main: #333333;        /* نص رئيسي */
    --text-muted: #666666;       /* نص ثانوي */
    --white: #ffffff;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease-in-out;
}

/* ========================================
   Hero Section - Consolidated
   ======================================== */
.hero-section {
    position: relative;
    /* Default height for desktop */
    min-height: 100vh;
    background-image: url('../images/custom-clearance.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-start; /* Changed from center to flex-start to remove vertical gap */
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 75px; /* Slightly less than header height (85px) to pull title up */
}

/* Match header height breakpoint from style.css */
@media (max-width: 1200px) {
    .hero-section {
        padding-top: 70px; /* Slightly less than header height (80px) */
    }
}

/* طبقة تغطية متدرجة */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(61, 65, 114, 0.95) 0%, rgba(26, 43, 74, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 0 20px; /* Removed top padding completely */
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Changed from center to flex-start */
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
}

/* Text Styles */
.hero-text {
    margin-bottom: 40px;
    max-width: 800px;
    margin-top: 0; /* Ensure no top margin */
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    margin-top: 0; /* Ensure no top margin */
    line-height: 1.3;
    color: var(--white);
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-title span {
    display: block;
    font-size: 2.2rem;
    margin-top: 5px;
    font-weight: 800; /* Extra Bold */
    color: var(--white); /* Changed to white */
}

.hero-subtitle {
    font-weight: 800; /* Extra Bold */
    color: #ffffff !important; /* Force White */
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

/* Services Styles (Consolidated in Hero) */
.hero-services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin-bottom: 40px;
}

.service-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 25px 20px;
    width: calc(33.333% - 14px);
    min-width: 250px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--royal-gold);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--royal-gold);
    margin-bottom: 15px;
}

.service-text {
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 500;
    line-height: 1.5;
}

/* CTA Styles */
.hero-cta {
    margin-top: 10px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(90deg, #2ECC71 0%, #1CB5E0 100%); /* Green to Blue Gradient */
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 800; /* Bolder text */
    padding: 12px 60px; /* Adjusted padding to compensate for border */
    min-width: 220px; /* Minimum width for presence */
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* Soft outer shadow */
    letter-spacing: 0.5px;
    position: relative;
    overflow: visible; /* Visible for outer glow/pulse */
    border: 6px solid #ffffff; /* Thick white border */
    animation: pulse-border 2s infinite; /* Attention-grabbing pulse */
}

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

.cta-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(90deg, #1CB5E0 0%, #2ECC71 100%); /* Reverse gradient on hover */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 0 6px rgba(255, 255, 255, 0.2); /* Enhanced shadow on hover */
    color: var(--white);
    border-color: #ffffff; /* Keep border white on hover */
    animation: none; /* Stop pulse on hover */
}

.cta-btn:hover .arrow-icon {
    transform: translateX(-5px); /* Move arrow to the left on hover */
}

/* ========================================
   Responsive Mobile Optimization
   ======================================== */
@media (max-width: 1024px) {
    
    .hero-section {
        min-height: auto; /* Allow auto height on mobile/tablet */
        padding-top: 50px !important; /* Aggressively reduced for mobile header - forcing title up */
        padding-bottom: 30px; /* Space at bottom */
        height: auto; /* Reset fixed height */
        align-items: flex-start; /* Align content to top */
    }

    .hero-content {
        padding: 0 20px; /* Minimal padding */
        justify-content: flex-start;
        margin-top: -10px; /* Pull content up even further */
    }

    .hero-text {
        margin-bottom: 15px;
        margin-top: 0;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 5px;
        margin-top: 0;
        line-height: 1.1; /* Tighter line height */
    }


    .hero-title span {
        font-size: 1.4rem;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.6; /* Increased line height for better readability over 3 lines */
        width: 100%; /* Ensure it uses available width */
        padding: 0 10px; /* Add slight padding to force breaks naturally */
    }

    /* Stack services vertically and compact */
    .hero-services {
        flex-direction: column;
        gap: 6px; /* Further reduced gap */
        margin-bottom: 15px; /* Further reduced margin */
    }

    .service-item {
        width: 100%;
        flex-direction: row; /* Horizontal layout */
        text-align: right;
        padding: 6px 10px; /* Further reduced padding for minimal height */
        align-items: center; /* Center align items vertically */
        min-width: auto;
        border-radius: 8px; /* Slightly smaller radius for compact look */
        justify-content: flex-start; /* Align content to the start (right in RTL) */
    }

    .service-icon {
        font-size: 0.9rem; /* Smaller icon inside circle */
        margin-bottom: 0;
        margin-left: 10px; /* Space between icon and text */
        margin-right: 0; /* No margin on the right */
        width: 25px; /* Small circle width */
        height: 25px; /* Small circle height */
        min-width: 25px; /* Ensure width doesn't shrink */
        text-align: center;
        background-color: #ffffff; /* White background */
        border-radius: 50%; /* Make it a circle */
        display: flex;
        align-items: center;
        justify-content: center;
        color: #c5a059 !important; /* Royal Gold - Same as King Khalid Airport text - FORCED */
        flex-shrink: 0; /* Prevent icon from shrinking */
        align-self: center; /* Ensure icon is vertically centered */
        margin-top: 2px; /* Slight optical adjustment if needed */
    }

    .service-icon i {
        color: #c5a059 !important; /* Ensure icon itself takes the color */
    }

    .service-text {
        font-size: 0.85rem; /* Slightly smaller text */
        text-align: right;
        margin: 0;
        line-height: 1.3;
    }

    .cta-btn {
        width: 100%;
        padding: 14px;
        font-size: 1.1rem;
        box-shadow: 0 8px 20px rgba(197, 160, 89, 0.3);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure Footer is visible and styled correctly */
footer, .footer {
    background-color: #fff !important; 
    text-align: right;
    position: relative;
    z-index: 10;
    display: block !important;
}

/* Restore Header visibility */
.header-actions {
    display: flex !important;
}



















.intl-shipping-section {
  background-color: #f9fafb;
  padding: 50px 15px 60px;
}

.container-intl {
  max-width: 900px;
  margin: 0 auto;
}

.intl-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1f2933;
  text-align: center;
  margin-bottom: 15px;
}

.intl-lead {
  text-align: center;
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 auto 30px;
  max-width: 720px;
}

.intl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.intl-block {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 16px 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
}

.intl-block h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.intl-block p {
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 6px;
}

.intl-block p strong {
  font-weight: 600;
  color: #1f2937;
}

.intl-cta-wrap {
  text-align: center;
  margin-top: 35px;
}

.intl-cta-wrap a:hover {
  transform: translateY(-3px);
  background: linear-gradient(90deg, #1CB5E0 0%, #2ECC71 100%);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 0 6px rgba(255, 255, 255, 0.2);
}

/* موبايل */
@media (max-width: 1024px) {
  .intl-cta-wrap a {
    width: calc(100% - 40px) !important;
    padding: 14px 20px !important;
    font-size: 1.1rem !important;
  }
}


/* موبايل */
@media (max-width: 768px) {
  .intl-shipping-section {
    padding: 35px 15px 40px;
  }

  .intl-grid {
    grid-template-columns: 1fr;
  }

  .intl-block {
    padding: 16px 14px;
  }

  .intl-title {
    font-size: 1.5rem;
  }

  .intl-lead {
    font-size: 0.95rem;
  }
}



.intl-cta-wrap a:hover {
  transform: translateY(-3px) !important;
  background: linear-gradient(90deg, #1CB5E0 0%, #2ECC71 100%) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 0 6px rgba(255, 255, 255, 0.2) !important;
}





















/* ========================================
   إصلاح تنسيق بطاقات الخدمات
======================================== */

/* Services Styles (Desktop) */
.hero-services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin-bottom: 40px;
}

.service-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 30px 20px; /* زيادة padding للتوازن */
  
  /* إصلاح العرض */
  width: calc(33.333% - 14px);
  min-width: 280px; /* زيادة min-width */
  max-width: 350px; /* إضافة حد أقصى */
  
  /* إصلاح الارتفاع */
  min-height: 180px; /* تحديد ارتفاع ثابت */
  
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* توسيط عمودي */
  text-align: center; /* توسيط النص */
}

.service-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--royal-gold);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--royal-gold);
  margin-bottom: 15px;
  
  /* ضمان توسيط الأيقونة */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.service-text {
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 500;
  line-height: 1.6; /* زيادة line-height */
  text-align: center;
  margin: 0;
  
  /* ضمان توزيع النص بشكل متساوي */
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1; /* يسمح للنص بأخذ المساحة المتبقية */
}

/* ========================================
   إصلاح النسخة المحمولة
======================================== */

@media (max-width: 1024px) {
  /* Stack services vertically */
  .hero-services {
    flex-direction: column;
    gap: 10px; /* زيادة المسافة قليلاً */
    margin-bottom: 20px;
  }

  .service-item {
    width: 100%;
    max-width: 100%;
    flex-direction: row; /* عرض أفقي */
    text-align: right;
    padding: 12px 15px; /* زيادة padding */
    
    /* ارتفاع موحد */
    min-height: 70px;
    height: auto;
    
    align-items: center; /* محاذاة عمودية */
    justify-content: flex-start; /* البداية من اليمين */
    gap: 12px; /* مسافة بين الأيقونة والنص */
  }

  .service-icon {
    font-size: 1rem; /* حجم أصغر داخل الدائرة */
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    
    /* دائرة بيضاء ثابتة الحجم */
    width: 40px;
    height: 40px;
    min-width: 40px;
    flex-shrink: 0;
    
    background-color: #ffffff;
    border-radius: 50%;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    color: #c5a059 !important; /* اللون الذهبي */
  }

  .service-icon i {
    color: #c5a059 !important;
  }

  .service-text {
    font-size: 0.95rem; /* حجم أكبر قليلاً */
    text-align: right;
    line-height: 1.5;
    margin: 0;
    flex: 1; /* يأخذ المساحة المتبقية */
    
    /* توسيط النص عمودياً */
    display: flex;
    align-items: center;
  }
}

/* تحسين إضافي للشاشات الصغيرة جداً */
@media (max-width: 480px) {
  .service-item {
    padding: 10px 12px;
    min-height: 65px;
  }
  
  .service-icon {
    width: 35px;
    height: 35px;
    min-width: 35px;
    font-size: 0.9rem;
  }
  
  .service-text {
    font-size: 0.88rem;
  }
}
