/* -----------------------------------------------
   EMERGENCY FIXES - Keep at top
   ----------------------------------------------- */
.row.justify-content-around.gy-4 {
  scroll-margin-top: 170px !important;
}
html {
  scroll-padding-top: 170px !important;
}

/* -----------------------------------------------
   BASE STYLES – Shared between sections
   ----------------------------------------------- */
:root {
  --primary: #388da8;
  --secondary: #7c3aed;
  --dark: #1e293b;
  --gray: #64748b;
  --light-bg: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.why-choose-section,
.more-features {
  background: var(--light-bg);
  padding: 80px 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* -----------------------------------------------
   HEADINGS
   ----------------------------------------------- */
h2 {
  color: var(--dark);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

/* Underline variations per section */
.why-choose-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.more-features h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

h4 {
  color: var(--dark);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

h5 {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 1.5rem 0 1rem;
}

/* -----------------------------------------------
   KEYFRAMES (shared)
   ----------------------------------------------- */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* -----------------------------------------------
   COMPONENTS – why-choose-section
   ----------------------------------------------- */
.feature-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.8rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  border: 1px solid rgba(56, 141, 168, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(56, 141, 168, 0.1);
  border-color: rgba(56, 141, 168, 0.3);
}
.feature-icon {
  font-size: 2.5rem;
  color: var(--primary);
  background: rgba(56, 141, 168, 0.1);
  padding: 1rem;
  border-radius: 14px;
  line-height: 1;
  min-width: 70px;
  text-align: center;
}
.feature-content h4 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
.feature-content p {
  color: var(--gray);
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 0;
}

.image-container {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 30px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.image-container::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}
.image-container img {
  max-width: 100%;
  height: auto;
  max-height: 280px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
}

.intro-highlight {
  background: var(--primary);
  color: white;
  padding: 2rem;
  border-radius: 20px;
  margin-bottom: 2rem;
  text-align: center;
}
.intro-highlight h4 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.intro-highlight p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 0;
}

.stats-wrapper {
  display: flex;
  justify-content: space-around;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(56, 141, 168, 0.2);
  border-bottom: 1px solid rgba(56, 141, 168, 0.2);
}
.stat-block {
  text-align: center;
}

.service-badge {
  display: inline-block;
  background: rgba(56, 141, 168, 0.1);
  color: var(--primary);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(56, 141, 168, 0.2);
}

.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: white;
}
.cta-box i {
  font-size: 3rem;
  color: white;
}
.cta-box h4 {
  color: white;
  margin-bottom: 0.5rem;
}
.cta-box p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

/* -----------------------------------------------
   COMPONENTS – more-features
   ----------------------------------------------- */
.icon-box {
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  border: 1px solid rgba(79, 70, 229, 0.1);
}
.icon-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.2);
}
.icon-box i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-right: 1.5rem;
  transition: all 0.3s ease;
  padding: 12px;
  border-radius: 12px;
}
.icon-box:hover i {
  transform: scale(1.1);
  color: #ffffff;
}
.icon-box h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}
.icon-box p {
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 0;
  font-size: 0.95rem;
}
.icon-box ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
  color: var(--gray);
}
.icon-box li {
  margin-bottom: 0.5rem;
  line-height: 2.6;
}
.icon-box li strong {
  color: var(--primary);
}

.features-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.features-image::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}
.features-image img {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
  transition: all 0.5s ease;
}
.features-image:hover img {
  transform: scale(1.05);
}

.intro-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
  color: white;
  padding: 2rem;
  border-radius: 20px;
  margin-bottom: 2rem;
  box-shadow: 0 20px 30px rgba(79, 70, 229, 0.2);
}
.intro-text h4 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.intro-text strong {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}
.intro-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.7;
}

.section-divider {
  margin: 3rem 0;
  text-align: center;
}
.section-divider span {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.service-tag {
  display: inline-block;
  background: rgba(56, 141, 168, 0.1);
  color: var(--primary);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.stats-row {
  display: flex;
  justify-content: space-around;
  margin-top: 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(79, 70, 229, 0.1);
  border-bottom: 1px solid rgba(79, 70, 229, 0.1);
}
.stat-item {
  text-align: center;
}

/* -----------------------------------------------
   SHARED STATS (used in both sections)
   ----------------------------------------------- */
.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* -----------------------------------------------
   RESPONSIVE MEDIA QUERIES (combined)
   ----------------------------------------------- */
@media (max-width: 991px) {
  .why-choose-section,
  .more-features {
    padding: 60px 0;
  }

  h2 {
    font-size: 2rem;
  }

  .why-choose-section h2 {
    text-align: center;
  }
  .why-choose-section h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .more-features h2 {
    text-align: left;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .features-image {
    margin-bottom: 3rem;
    min-height: 400px;
  }

  .icon-box {
    padding: 1.2rem;
  }

  .intro-text,
  .intro-highlight {
    padding: 1.5rem;
  }
  .intro-text h4,
  .intro-highlight h4 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .feature-card {
    flex-direction: column;
    text-align: center;
  }

  .cta-box {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .features-image {
    min-height: 300px;
    padding: 1rem;
  }

  .icon-box i {
    font-size: 2rem;
    padding: 8px;
    margin-right: 1rem;
  }

  h2 {
    font-size: 1.8rem;
  }
}