/* ExportFinanceInsurance.css - Complete Premium Dashboard Redesign */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.efi-dashboard {
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  width: 100%;
  min-height: 100vh;
  background-color: #f1f5f9;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  animation: dashboardFadeIn 0.6s ease-out;
}

@keyframes dashboardFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   1. HERO SECTION
========================================= */
.efi-hero-banner {
  position: relative;
  width: 100%;
  height: 450px; /* Increased to show more image */
  background-image: url('../../images/premium_global_logistics_bg.avif');
  background-size: cover;
  background-position: center 70%; /* Moved image slightly up */
  background-attachment: fixed; /* Parallax effect */
  display: flex;
  align-items: center;
  justify-content: center;
}

.efi-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.2) 0%, rgba(30, 58, 138, 0.05) 100%);
  z-index: 1;
}

.efi-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 40px;
  max-width: 900px;
}

.efi-hero-content h1 {
  font-size: 2.5rem; /* Reduced from 3.5rem */
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px 0;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.efi-hero-content p {
  font-size: 1.1rem; /* Reduced from 1.25rem */
  font-weight: 500;
  color: #e2e8f0;
  margin: 0;
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* =========================================
   DASHBOARD CONTAINER
========================================= */
.efi-dashboard-container {
  padding: 25px; /* Reduced from 30px */
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
}

/* Background continuation for depth */
.efi-dashboard-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../../images/premium_global_logistics_bg.avif');
  background-size: cover;
  background-position: center 70%; /* Moved image slightly up */
  background-attachment: fixed;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

/* =========================================
   2. INTRO ROW (FINANCE / INSURANCE)
========================================= */
.efi-intro-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px; /* Reduced from 40px */
  margin: -80px auto 40px auto;
  max-width: 850px; /* Decreased content size */
}

.efi-intro-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px; /* Reduced from 20px */
  padding: 25px; /* Reduced from 40px */
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(255, 255, 255, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.efi-intro-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.12);
}

.efi-intro-icon-wrapper {
  width: 60px; /* Reduced from 80px */
  height: 60px;
  border-radius: 18px; /* Reduced from 24px */
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  margin-bottom: 25px;
}

.blue-glow {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.green-glow {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.3);
}

.efi-intro-card h2 {
  font-size: 1.4rem; /* Reduced from 1.75rem */
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 15px 0;
  letter-spacing: 1.5px;
}

.efi-finance-intro h2 { color: #1e3a8a; }
.efi-insurance-intro h2 { color: #064e3b; }

.efi-intro-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 15px 0;
}
.efi-intro-text p:last-child { margin: 0; }

/* =========================================
   COMMON SECTION STYLES
========================================= */
.efi-section {
  position: relative;
  z-index: 2;
  margin: 0 auto 45px auto;
  max-width: 850px; /* Decreased content size */
}

.efi-section-header {
  margin-bottom: 30px; /* Reduced from 40px */
  text-align: center;
}

.efi-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.75rem; /* Reduced from 2.25rem */
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
}

.title-icon {
  padding: 10px;
  border-radius: 12px;
}

.title-icon.blue-icon {
  background: #eff6ff;
  color: #2563eb;
}

.title-icon.green-icon {
  background: #ecfdf5;
  color: #059669;
}

.efi-section-subtitle {
  font-size: 1.15rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

.efi-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15,23,42,0.1), transparent);
  margin: 45px auto;
  max-width: 850px;
  position: relative;
  z-index: 2;
}

/* =========================================
   3. EXPORT FINANCE SOLUTIONS
========================================= */
.efi-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; /* Reduced from 25px */
  margin-bottom: 30px; /* Reduced from 40px */
}

.efi-service-tile {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px; /* Reduced from 25px */
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.efi-service-tile:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1);
  border-color: #bfdbfe;
  background: #f8fafc;
}

.tile-icon-bg {
  width: 56px;
  height: 56px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.efi-service-tile:hover .tile-icon-bg {
  background: #2563eb;
  color: #ffffff;
}

.efi-service-tile h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  line-height: 1.4;
}

.efi-solutions-text {
  text-align: center;
  font-size: 1.1rem;
  color: #475569;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Premium CTA */
.efi-cta-container {
  display: flex;
  justify-content: center;
}

.efi-premium-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  border-radius: 16px;
  padding: 30px 40px; /* Reduced from 40x50 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: 100%;
  max-width: 900px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(255,255,255,0.1);
}

.cta-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px 0;
}

.cta-info p {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin: 0;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #38bdf8;
  color: #0f172a;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.cta-btn:hover {
  background: #0ea5e9;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
}

/* =========================================
   4. INSURANCE MODULES
========================================= */
.efi-insurance-modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px; /* Reduced from 30px */
}

.efi-info-module {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 25px; /* Reduced from 35px */
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.efi-long-text-module {
  grid-column: 1 / -1;
  background: linear-gradient(to right, #ffffff, #f8fafc);
  border-left: 4px solid #10b981;
}

.efi-info-module h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #064e3b;
  margin: 0 0 25px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.efi-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.efi-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #334155;
}

.check-icon {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 3px;
}

.efi-article-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #475569;
  margin: 0 0 20px 0;
}

.efi-article-content p:last-child {
  margin-bottom: 0;
}

.highlight-paragraph {
  background: #ecfdf5;
  padding: 20px 25px;
  border-radius: 12px;
  color: #065f46 !important;
  font-weight: 500;
  border-left: 3px solid #10b981;
}

/* =========================================
   5. ECGC PRODUCTS
========================================= */
.efi-product-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.efi-product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  position: relative;
}

.efi-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
  border-color: #a7f3d0;
}

.card-icon-header {
  background: linear-gradient(135deg, #10b981, #047857);
  padding: 20px; /* Reduced from 30px */
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
}

.card-body {
  padding: 20px; /* Reduced from 30px */
  text-align: center;
  position: relative;
}

.card-body h4 {
  font-size: 1rem;
  color: #64748b;
  font-weight: 600;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-body h5 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.card-accent-line {
  width: 40px;
  height: 4px;
  background: #10b981;
  border-radius: 2px;
  margin: 20px auto 0 auto;
  transition: width 0.3s ease;
}

.efi-product-card:hover .card-accent-line {
  width: 80px;
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 1200px) {
  .efi-product-cards-row {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 992px) {
  .efi-hero-content h1 { font-size: 2.8rem; }
  .efi-intro-row { gap: 20px; }
  .efi-intro-card { padding: 30px 20px; }
  .efi-insurance-modules { grid-template-columns: 1fr; }
  
  .efi-premium-cta {
    flex-direction: column;
    text-align: center;
    gap: 25px;
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .efi-hero-banner { height: auto; padding: 80px 20px; }
  .efi-hero-content h1 { font-size: 2.2rem; }
  .efi-dashboard-container { padding: 20px; }
  
  .efi-intro-row {
    grid-template-columns: 1fr;
    margin-top: 20px;
    gap: 30px;
  }
  
  .efi-section-title { font-size: 1.8rem; }
  .efi-service-grid { grid-template-columns: 1fr; }
  
  .efi-info-module { padding: 20px; }
}

/* =========================================
   6. CUSTOM DROPDOWN AND POLICY BUTTON
========================================= */
.efi-product-dropdown-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 40px;
}

.efi-dropdown-fieldset {
  border: 1px solid #3b82f6;
  border-radius: 4px;
  padding: 0;
  margin: 0;
  width: 250px;
  background: transparent;
  position: relative;
}

.efi-dropdown-legend {
  font-size: 14px;
  color: #3b82f6;
  padding: 0 4px;
  margin-left: 8px;
}

.efi-dropdown-select {
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  font-size: 16px;
  color: #1e293b;
  outline: none;
  appearance: none;
  cursor: pointer;
}

.efi-dropdown-select option {
  padding: 12px;
}

/* Custom arrow for select */
.efi-dropdown-fieldset::after {
  content: "▲";
  font-size: 10px;
  color: #64748b;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  pointer-events: none;
}

.efi-policy-btn {
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-transform: capitalize;
  transition: background-color 0.2s;
}

.efi-policy-btn:hover {
  background-color: #2563eb;
}
