/* ==========================================================================
   Loan Details Custom Hero Banner Card UI
   ========================================================================== */
.hero-section-loan-details {
  position: relative;
  padding: 24px 0 32px 0;
  background: #ffffff;
  width: 100%;
}

.hero-slider-container-details {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 auto;
  border-radius: 28px !important;
  /* Equal top & bottom border radius */
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(20, 123, 255, 0.12);
  border: 1px solid rgba(20, 123, 255, 0.15);
  /* background: #0f172a; */
}

.loan-detail-hero-banner-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px 60px !important;
  /* Custom generous padding */
  border-radius: 28px !important;
  /* Equal top & bottom border radius */
  overflow: hidden;
  box-sizing: border-box;
}

.loan-detail-hero-banner-card .hero-banner-content {
  max-width: 65%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 20px;
}

.loan-detail-hero-banner-card .hero-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  background: rgba(20, 123, 255, 0.25);
  color: #6FC3FF;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50px;
  margin-bottom: 18px;
  border: 1px solid rgba(111, 195, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
}

.loan-detail-hero-banner-card .hero-banner-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.loan-detail-hero-banner-card .hero-banner-sub {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 28px;
  line-height: 1.6;
  max-width: 600px;
}

@media (max-width: 991px) {
  .hero-section-loan-details {
    padding: 16px 0 24px 0;
  }

  .loan-detail-hero-banner-card {
    padding: 28px 24px !important;
    min-height: 340px;
    border-radius: 20px !important;
  }

  .hero-slider-container-details {
    border-radius: 20px !important;
  }

  .loan-detail-hero-banner-card .hero-banner-content {
    max-width: 100%;
    padding-right: 0;
  }

  .loan-detail-hero-banner-card .hero-banner-title {
    font-size: 1.8rem;
  }
}

/* Hero Slider Section */
.loan-hero-section {
  position: relative;
  width: 100%;
  min-height: 480px;
  background-color: #0f172a;
  overflow: hidden;
}

.loan-hero-slider {
  position: relative;
  width: 100%;
  height: 480px;
}

.loan-hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.loan-hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.loan-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.65) 60%, rgba(20, 123, 255, 0.25) 100%);
  display: flex;
  align-items: center;
}

.loan-hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(20, 123, 255, 0.25);
  color: #6FC3FF;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 30px;
  margin-bottom: 16px;
  border: 1px solid rgba(111, 195, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.loan-hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.loan-hero-subtitle {
  font-size: 1.2rem;
  color: #6FC3FF;
  font-weight: 600;
  margin-bottom: 12px;
}

.loan-hero-content {
  font-size: 1rem;
  color: #CBD5E1;
  margin-bottom: 28px;
  max-width: 650px;
  line-height: 1.6;
}

/* Slider Controls */
.loan-hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.loan-hero-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.loan-hero-nav-prev {
  left: 24px;
}

.loan-hero-nav-next {
  right: 24px;
}

.loan-hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}

.loan-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.loan-hero-dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 6px;
}

/* Feature Cards & Animations */
.loan-feature-card {
  height: 100%;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(20, 123, 255, 0.08);
}

.loan-feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(20, 123, 255, 0.12);
  border-color: rgba(20, 123, 255, 0.25);
}

.loan-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(20, 123, 255, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.loan-feature-card:hover .loan-feature-icon {
  background: var(--gradient-primary);
  color: #ffffff;
  transform: scale(1.1) rotate(4deg);
}

/* Overview Metric Badges */
.overview-metric-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(20, 123, 255, 0.08);
  box-shadow: 0 8px 24px rgba(20, 123, 255, 0.04);
  transition: var(--transition-smooth);
}

.overview-metric-card:hover {
  border-color: rgba(20, 123, 255, 0.2);
  transform: translateY(-3px);
}

.overview-metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(20, 123, 255, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 12px;
}

/* Checklist Styling */
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid rgba(20, 123, 255, 0.06);
  margin-bottom: 12px;
  transition: var(--transition-smooth);
}

.checklist-item:hover {
  background: #ffffff;
  border-color: rgba(20, 123, 255, 0.2);
  box-shadow: 0 4px 12px rgba(20, 123, 255, 0.06);
}

/* CTA Apply Banner */
.cta-apply-card {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F2850 100%);
  border-radius: 24px;
  padding: 50px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {

  .loan-hero-slider,
  .loan-hero-section {
    min-height: 420px;
    height: auto;
  }

  .loan-hero-title {
    font-size: 1.85rem;
  }

  .cta-apply-card {
    padding: 30px 24px;
  }
}

/* Responsive Loan Overview Button Group */
.loan-overview-btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 576px) {
  .loan-overview-btn-group {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }

  .loan-overview-btn-group .btn {
    width: auto;
    flex: 0 0 auto;
  }
}

@media (max-width: 575.98px) {
  .loan-overview-btn-group .btn {
    width: 100%;
    text-align: center;
  }
}