/* Spacing and Overflow Fixes */

/* Fix for numbers overflowing cards */
.advantage-card .badge,
.testimonial-card .badge {
  white-space: normal;
  max-width: 100%;
  display: inline-block;
}

/* Improve team cards */
.testimonial-card .card-body {
  padding-top: 4rem !important; /* More space for avatar */
}

.team-avatar-container {
  top: 95%; /* Adjust avatar position */
}

/* Card content spacing */
.advantage-card .advantage-text {
  min-height: 4.8rem; /* Consistent height for card text */
  overflow: hidden;
}

/* Fixed spacing for numbers in badges */
.badge .fas,
.badge .fab {
  margin-right: 0.35rem;
}

/* Social media icons - fixed width */
.footer .social-links a i {
  width: 1.5rem;
  text-align: center;
}

/* Consistent padding in cards */
.advantage-card {
  padding: 1.5rem !important;
}

/* Fix for portfolio grid spacing */
.portfolio-grid .row {
  margin-bottom: 1.5rem;
}

/* Fix advisor alignment */
.advisor-position {
  line-height: 1.4;
}

/* Fix hero stats section overflow */
.hero-section .stat-icon {
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section .col-4 h3 {
  font-size: 1.25rem !important;
  word-break: keep-all;
  white-space: nowrap;
  overflow: visible;
}

.hero-section .col-4 .d-flex {
  margin-bottom: 10px;
}

/* Fix stat numbers being outside blue boxes */
.hero-section .stat-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure numbers stay inside their containers */
.text-gradient {
  display: inline-block;
}

/* Add proper spacing between sections */
.resources-section {
  padding-top: 5rem !important;
}

.resources-section .badge {
  margin-top: 1rem;
}

/* Add proper spacing between portfolio cards */
.advantages-section .portfolio-grid .row {
  margin-bottom: 1.5rem;
}

/* Improve spacing in testimonials section */
.testimonials-section {
  padding-top: 5rem !important;
}

/* Fix modal overflow */
.modal-content {
  overflow: hidden;
}

/* Fix card padding consistency */
.card .card-body {
  padding: 1.75rem;
}

/* Fix contact form city icons */
.city-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(74, 111, 255, 0.1);
  border-radius: 50%;
}

/* Consistent section spacing */
section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-6 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

/* Fix mobile spacing */
@media (max-width: 767.98px) {
  .team-avatar-container {
    top: 90%;
  }
  
  .testimonial-card .card-body {
    padding-top: 3.5rem !important;
  }
  
  .advantage-card .advantage-text {
    min-height: auto;
  }
  
  .hero-section .col-4 {
    padding: 0 8px;
  }
  
  .hero-section .col-4 h3 {
    font-size: 1rem !important;
  }
  
  /* Better spacing on mobile */
  .section-title {
    margin-top: 0.75rem;
  }
  
  .badge {
    margin-top: 0.5rem !important;
  }
  
  /* Fix hero stats on mobile */
  .hero-section .stat-icon {
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
  }
  
  .hero-section .col-4 .d-flex {
    margin-bottom: 15px;
  }
  
  /* Fix section spacing on mobile */
  .py-6 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}