@import url('variables.css');

/* ==========================================================================
   Minimalist Centered Hero Banner Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 45px 0 110px 0;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  width: 100%;
}

.hero-section .container-premium {
  width: 100%;
}

/* Centered Minimalist Content Header */
.hero-minimalist-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 30px auto;
}

.hero-top-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EEF3FF;
  color: #265DF5;
  border: 1px solid rgba(38, 93, 245, 0.2);
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(38, 93, 245, 0.06);
}

.hero-main-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  color: #0F172A;
  line-height: 1.22;
  letter-spacing: -0.8px;
  margin-bottom: 18px;
}

.hero-main-title span.title-gradient {
  background: linear-gradient(135deg, #265DF5 0%, #17368E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-main-desc {
  font-size: clamp(0.975rem, 1.25vw, 1.15rem);
  color: #475569;
  line-height: 1.65;
  max-width: 730px;
  margin: 0 auto 28px;
  font-weight: 400;
}

/* Primary Action Buttons Group */
.hero-actions-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn-hero-primary {
  background: #265DF5 !important;
  color: #FFFFFF !important;
  font-weight: 700;
  padding: 14px 34px;
  border-radius: 50px;
  font-size: 1.025rem;
  border: none;
  box-shadow: 0 10px 25px rgba(38, 93, 245, 0.25);
  transition: all 0.25s ease;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-hero-primary:hover {
  background: #194AD1 !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(38, 93, 245, 0.35);
}

.btn-hero-secondary {
  background: #FFFFFF !important;
  color: #265DF5 !important;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1.025rem;
  border: 1.5px solid #265DF5 !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
  transition: all 0.25s ease;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-hero-secondary:hover {
  background: #EEF3FF !important;
  color: #194AD1 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(38, 93, 245, 0.15);
}

/* Floating Trust Badges Row */
.hero-trust-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  padding: 7px 16px;
  border-radius: 30px;
  font-size: 0.825rem;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}

.trust-badge-item:hover {
  border-color: #265DF5;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(38, 93, 245, 0.08);
}

/* Slider Container */
.hero-slider-container {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 2600 / 900;
  height: auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(20, 123, 255, 0.08);
  border: 1px solid rgba(20, 123, 255, 0.1);
  background: #ffffff;
}

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

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

/* ==========================================================================
   Banner Card & Graphics
   ========================================================================== */
.hero-banner-card {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  background: transparent;
  color: #ffffff;
  box-sizing: border-box;
}

.hero-banner-card.has-full-img {
  padding: 0;
  display: block;
  background: transparent;
}

.hero-banner-full-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-banner-overlay-content {
  position: absolute;
  top: 50%;
  left: 4%;
  transform: translateY(-50%);
  z-index: 10;
  max-width: 52%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-banner-content {
  max-width: 58%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-banner-badge {
  display: inline-block;
  padding: clamp(2px, 0.5vw, 5px) clamp(6px, 1vw, 14px);
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(0.5rem, 0.9vw, 0.8rem);
  border-radius: 30px;
  margin-bottom: clamp(3px, 0.8vw, 12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-banner-title {
  font-size: clamp(0.85rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: clamp(2px, 0.6vw, 10px);
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-banner-sub {
  font-size: clamp(0.55rem, 1.1vw, 1rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: clamp(4px, 1vw, 15px);
  line-height: 1.35;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.btn-banner-cta {
  position: relative;
  z-index: 5;
  padding: clamp(4px, 0.8vw, 10px) clamp(10px, 2vw, 28px);
  font-size: clamp(0.6rem, 1.1vw, 0.9rem);
  font-weight: 700;
  color: #265DF5 !important;
  background: #ffffff !important;
  border: 1.5px solid #ffffff;
  border-radius: var(--radius-button);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-banner-cta:hover {
  background: #F1F5F9 !important;
  color: #1D4ED8 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.banner-terms {
  font-size: clamp(0.45rem, 0.8vw, 0.78rem);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* CIBIL Banner */
.hero-banner-card.cibil-banner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2.5vw, 36px) clamp(16px, 4vw, 55px);
  background: #eff6ff;
  position: relative;
  box-sizing: border-box;
}

.cibil-banner-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  gap: clamp(12px, 3vw, 40px);
  z-index: 5;
  position: relative;
}

.cibil-card-left {
  flex: 0 0 48%;
  max-width: 520px;
  min-width: 260px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cibil-score-card {
  width: 100%;
  background: transparent;
  border: none !important;
  padding: clamp(6px, 1vw, 14px);
  text-align: center;
  color: #1E293B;
}

.cibil-gauge-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.cibil-score-display {
  margin-top: clamp(-73px, -44.2vw, -30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cibil-score-num {
  font-size: clamp(1.4rem, 3.2vw, 2.7rem);
  font-weight: 800;
  color: #0F172A;
  line-height: 1;
}

.cibil-score-badge {
  font-size: clamp(0.55rem, 0.95vw, 0.85rem);
  font-weight: 700;
  text-transform: uppercase;
  padding: clamp(2px, 0.4vw, 5px) clamp(8px, 1.2vw, 16px);
  border-radius: 14px;
  margin-top: clamp(3px, 0.5vw, 8px);
  display: inline-block;
}

.cibil-score-badge.excellent {
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
}

.cibil-score-badge.good {
  background: rgba(52, 199, 89, 0.15);
  color: #15803D;
}

.cibil-score-badge.fair {
  background: rgba(255, 204, 0, 0.18);
  color: #B45309;
}

.cibil-score-badge.poor {
  background: rgba(255, 59, 48, 0.12);
  color: #DC2626;
}

.cibil-score-badge.default-badge {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.cibil-card-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 48%;
}

.cibil-card-right .hero-banner-title {
  color: #0F172A !important;
  text-shadow: none !important;
}

.cibil-card-right .hero-banner-sub {
  color: #475569 !important;
  text-shadow: none !important;
}

.cibil-card-right .hero-banner-badge {
  background: rgba(38, 93, 245, 0.08);
  color: #265DF5;
  border: 1px solid rgba(38, 93, 245, 0.2);
}

.cibil-card-right .btn-banner-cta {
  background: #265DF5 !important;
  color: #ffffff !important;
  border: 1.5px solid #265DF5;
  box-shadow: 0 4px 14px rgba(38, 93, 245, 0.25);
}

.cibil-card-right .banner-terms {
  color: #64748B !important;
  text-shadow: none !important;
}

.slider-dots {
  position: absolute;
  bottom: clamp(6px, 1.8vw, 22px);
  left: 4%;
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.6vw, 8px);
  z-index: 15;
}

.slider-dot {
  width: clamp(5px, 0.8vw, 10px);
  height: clamp(5px, 0.8vw, 10px);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-dot.active {
  background-color: #ffffff;
  width: clamp(12px, 2vw, 24px);
  border-radius: 6px;
}

/* Skeleton Preloader */
.hero-skeleton-loader {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 36px) clamp(16px, 4vw, 50px);
  background: #ffffff;
}

.hero-skeleton-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  gap: clamp(16px, 3vw, 40px);
}

.hero-skeleton-left {
  flex: 0 0 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-skeleton-circle {
  width: clamp(120px, 20vw, 240px);
  height: clamp(70px, 12vw, 140px);
  border-radius: 120px 120px 0 0;
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite linear;
}

.hero-skeleton-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vw, 12px);
  max-width: 50%;
}

.hero-skeleton-line {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite linear;
  border-radius: 8px;
}

.hero-skeleton-line.badge-skeleton {
  width: clamp(80px, 12vw, 130px);
  height: clamp(14px, 1.8vw, 24px);
  border-radius: 20px;
}

.hero-skeleton-line.title-skeleton {
  width: 85%;
  height: clamp(18px, 2.5vw, 38px);
}

.hero-skeleton-line.sub-skeleton {
  width: 95%;
  height: clamp(12px, 1.5vw, 22px);
}

.hero-skeleton-line.btn-skeleton {
  width: clamp(90px, 14vw, 150px);
  height: clamp(24px, 2.8vw, 44px);
  border-radius: 10px;
  margin-top: 4px;
}

@keyframes skeletonShimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Integrated Hero Bottom Split Ribbon Bar */
.hero-bottom-ribbon-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  margin-top: -2px;
}

.hero-slider-container {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.ribbon-split-container {
  display: flex;
  width: 100%;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.ribbon-block-left {
  flex: 1;
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: #FFFFFF !important;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.ribbon-block-left:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
}

.ribbon-block-right {
  flex: 1;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  color: #FFFFFF !important;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.ribbon-block-right:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
}

.ribbon-block-full {
  width: 100%;
  background: linear-gradient(135deg, #1E40AF 0%, #2563EB 50%, #3B82F6 100%);
  color: #FFFFFF !important;
  padding: 0.95rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none !important;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.ribbon-block-full:hover {
  background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 50%, #2563EB 100%);
}

.ribbon-badge-tag {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ribbon-title-text {
  font-weight: 600;
  font-size: 0.92rem;
  color: #FFFFFF;
  margin-bottom: 0;
  line-height: 1.25;
}

.ribbon-sub-text {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.25;
}

.ribbon-arrow-icon {
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.ribbon-block-left:hover .ribbon-arrow-icon,
.ribbon-block-right:hover .ribbon-arrow-icon,
.ribbon-block-full:hover .ribbon-arrow-icon {
  transform: translateX(4px);
}

@media (max-width: 767.98px) {

  /* 1. Hide description content and Terms & Conditions in banner slider on mobile */
  .hero-banner-sub,
  .banner-terms {
    display: none !important;
  }

  .hero-minimalist-content {
    margin-bottom: 24px;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
  }

  .ribbon-split-container {
    flex-direction: column;
  }

  .ribbon-block-left {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  /* 2. CIBIL Banner mobile layout: content on left, score card graphic on right */
  .cibil-banner-wrapper {
    flex-direction: row-reverse !important;
    gap: 10px !important;
  }

  .cibil-card-right {
    flex: 0 0 55% !important;
    max-width: 55% !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .cibil-card-left {
    flex: 0 0 45% !important;
    max-width: 45% !important;
    min-width: 0 !important;
    justify-content: center !important;
  }

  .cibil-score-card {
    padding: 0 !important;
  }

  .cibil-score-img,
  .cibil-score-question-img {
    max-height: 130px !important;
  }

  /* 3. Ribbon strip on mobile: show only heading and content with link, hide badge & CTA link */
  .hero-bottom-ribbon-wrapper .ribbon-badge-tag {
    display: none !important;
  }


  .hero-bottom-ribbon-wrapper .ribbon-block-full>div:last-child,
  .hero-bottom-ribbon-wrapper .ribbon-block-left>div:last-child,
  .hero-bottom-ribbon-wrapper .ribbon-block-right>div:last-child {
    display: none !important;
  }

  .hero-bottom-ribbon-wrapper .ribbon-block-full,
  .hero-bottom-ribbon-wrapper .ribbon-block-left,
  .hero-bottom-ribbon-wrapper .ribbon-block-right {
    padding: 0.75rem 1rem !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .hero-bottom-ribbon-wrapper .ribbon-block-full>div:first-child,
  .hero-bottom-ribbon-wrapper .ribbon-block-left>div:first-child,
  .hero-bottom-ribbon-wrapper .ribbon-block-right>div:first-child {
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  .hero-bottom-ribbon-wrapper .ribbon-title-text {
    font-size: 0.88rem !important;
    text-align: center !important;
    margin-bottom: 2px;
  }

  .hero-bottom-ribbon-wrapper .ribbon-sub-text {
    font-size: 0.75rem !important;
    text-align: center !important;
  }


  .cibil-score-display {
    margin-top: clamp(-50px, -44.2vw, -30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}