/* Why Choose Section CSS - Prefix: .why-choose- */

.why-choose-section {
  padding: 80px 0; /* Mobile padding */
  font-family: 'Inter', sans-serif;
  position: relative;
  z-index: 2;
  margin-top: -100vh;
  background-color: #F8FAFC;
  background-image: 
    radial-gradient(at 0% 0%, rgba(163, 29, 36, 0.06) 0px, transparent 60%),
    radial-gradient(at 100% 100%, rgba(163, 29, 36, 0.08) 0px, transparent 60%),
    linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  overflow: hidden;
}

@media (min-width: 992px) {
  .why-choose-section {
    height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.why-choose-container {
  max-width: 1280px;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 24px;
  padding-left: 24px;
  position: relative;
  z-index: 1;
  /* Ensure container doesn't overflow 100vh */
  max-height: 95vh; 
  overflow-y: auto; /* Fallback if it somehow still overflows on extremely tiny screens */
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.why-choose-container::-webkit-scrollbar {
  display: none;
}

.why-choose-header {
  text-align: center;
  max-width: 700px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 24px; /* Reduced aggressively */
}

.why-choose-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 11px; /* Smaller */
  font-weight: 700;
  text-transform: uppercase;
  color: #A31D24;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: inline-block;
  background: rgba(163, 29, 36, 0.1);
  padding: 4px 12px;
  border-radius: 50px;
}

.why-choose-title {
  font-family: 'Outfit', sans-serif;
  font-size: 32px; /* Reduced aggressively */
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
  margin-bottom: 8px;
}

.why-choose-subtitle {
  font-size: 14px; /* Smaller */
  line-height: 1.5;
  color: #64748B;
  margin: 0;
}

/* Card Grid Layout */
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px; /* Reduced gap aggressively */
  counter-reset: why-choose-counter;
}

.why-choose-card {
  counter-increment: why-choose-counter;
  background-color: #FFFFFF;
  border-radius: 12px; /* Slightly less rounded to save space */
  padding: 20px 16px; /* Aggressive padding reduction */
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(226, 232, 240, 0.6);
  z-index: 1;
}

.why-choose-card-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Watermark Number using CSS Counter */
.why-choose-card::before {
  content: counter(why-choose-counter, decimal-leading-zero);
  position: absolute;
  top: 5px;
  right: 15px;
  font-size: 60px; /* Reduced */
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: rgba(163, 29, 36, 0.04);
  z-index: -1;
  transition: all 0.5s ease;
  line-height: 1;
}

.why-choose-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.06);
  border-color: rgba(163, 29, 36, 0.15);
}

.why-choose-card:hover::before {
  color: rgba(163, 29, 36, 0.08);
  transform: scale(1.05) translate(-2px, 2px);
}

.why-choose-icon-wrapper {
  width: 36px; /* Aggressively reduced */
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #A31D24 0%, #dc2626 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px; /* Reduced */
  transition: all 0.4s ease;
  box-shadow: 0 5px 10px rgba(163, 29, 36, 0.15);
}

.why-choose-card:hover .why-choose-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 15px rgba(163, 29, 36, 0.25);
}

.why-choose-icon {
  font-size: 16px; /* Smaller */
  color: #FFFFFF;
  display: flex;
  align-items: center;
}

.why-choose-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px; /* Smaller */
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
}

.why-choose-card-desc {
  font-size: 12.5px; /* Smaller */
  line-height: 1.4;
  color: #475569;
  margin: 0;
}

/* Responsiveness adjustments */
@media (max-width: 991.98px) {
  .why-choose-section {
    padding: 80px 0;
    margin-top: 0;
    overflow: visible; /* Allow section to grow naturally with content */
  }
  .why-choose-container {
    max-height: none; /* Remove height restrictions on tablets/mobile */
    overflow: visible;
  }
  .why-choose-title {
    font-size: 34px;
  }
  .why-choose-grid {
    gap: 20px;
  }
}

@media (max-width: 767.98px) {
  .why-choose-card {
    padding: 30px 24px;
  }
  .why-choose-card::before {
    font-size: 80px;
    top: 15px;
    right: 15px;
  }
}

@media (min-width: 1200px) {
  .why-choose-card:nth-child(5) {
    grid-column-start: 2;
  }
}
