/* Custom styles for company logo grid - Pure CSS without Bootstrap */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f9fa;
  line-height: 1.6;
}

/* Added container and header styles to replace Bootstrap */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e9ecef;
  padding: 20px 0;
}

.header-title {
  font-size: 1.75rem;
  font-weight: bold;
  color: #333;
  margin: 0;
}

/* Updated section styling to replace Bootstrap classes */
.companies-section {
  padding: 80px 0;
  text-align: center;
  background-color: #f8f9fa;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 2rem;
}

.section-description {
  font-size: 1.125rem;
  color: #666;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Added grid layout for company categories */
.companies-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.company-category {
  width: 100%;
}

.company-category-title {
  color: #333;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Updated logo container to use flexbox instead of Bootstrap classes */
.company-logos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  min-height: 80px; /* Increased min-height for larger logos */
}

/* Increased logo dimensions for better visibility */
.company-brand-logo {
  height: 60px; /* Increased from 40px */
  width: auto;
  max-width: 120px; /* Increased from 80px */
  object-fit: contain;
  /* filter: grayscale(100%); */
  opacity: 0.7;
  transition: all 0.3s ease;
  cursor: pointer;
}

.company-brand-logo:hover {
  /* filter: grayscale(0%); */
  opacity: 1;
  transform: scale(1.05);
}

/* Animation classes */
.companies-fade-in {
  animation: fadeIn 0.8s ease-in-out;
}

.companies-fade-in-delay-1 {
  animation: fadeIn 0.8s ease-in-out 0.2s both;
}

.companies-fade-in-delay-2 {
  animation: fadeIn 0.8s ease-in-out 0.4s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced spacing and improved font sizes for Recent Success section */
.recent-success-section {
  background-color: #f8f9fa;
  padding: 60px 0; /* Reduced from 80px */
}

.success-cards-container {
  display: flex;
  justify-content: center;
  gap: 15px; /* Reduced from 20px */
  margin-top: 30px; /* Reduced from 50px */
  flex-wrap: nowrap;
}

.success-card {
  background: white;
  border: 2px solid #007bff;
  border-radius: 12px;
  padding: 20px 18px; /* Increased padding */
  width: 260px; /* Increased width */
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  flex-shrink: 0;
}

.success-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
}

/* Increased logo size and spacing in success cards */
.success-logo {
  margin-bottom: 15px; /* Increased margin */
  height: 60px; /* Increased height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-logo img {
  max-height: 55px; /* Increased logo size significantly */
  max-width: 120px; /* Increased max width */
  object-fit: contain;
}

/* Increased font sizes throughout the card */
.success-company-name {
  font-size: 1.4rem; /* Increased from 1.3rem */
  font-weight: 600;
  color: #333;
  margin-bottom: 18px; /* Increased margin */
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 12px; /* Increased padding */
}

.success-details {
  text-align: left;
}

.success-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px; /* Increased margin */
  padding: 5px 0; /* Increased padding */
  border-bottom: 1px solid #f8f9fa;
}

.success-detail-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Increased font sizes for better readability */
.success-label {
  font-weight: 500;
  color: #666;
  font-size: 0.95rem; /* Increased from 0.85rem */
}

.success-value {
  font-weight: 600;
  color: #333;
  font-size: 1rem; /* Increased from 0.9rem */
}

.success-return {
  color: #28a745;
  font-weight: 700;
  font-size: 1.1rem; /* Increased from 1rem */
}

/* Updated partner logo styles to match company-brand-logo */
.partner-logo {
  height: 60px; /* Increased from 40px */
  width: auto;
  max-width: 120px; /* Increased from 80px */
  object-fit: contain;
  /* filter: grayscale(100%); */
  opacity: 0.7;
  transition: all 0.3s ease;
  cursor: pointer;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.section-padding {
  padding: 80px 0;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-in-out;
}

.animate-fade-in-delay-1 {
  animation: fadeIn 0.8s ease-in-out 0.2s both;
}

.animate-fade-in-delay-2 {
  animation: fadeIn 0.8s ease-in-out 0.4s both;
}

/* Updated responsive design for larger cards */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .companies-section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .company-logos-container {
    gap: 1.5rem;
    min-height: 70px; /* Increased for larger mobile logos */
  }

  /* Increased mobile logo sizes */
  .company-brand-logo {
    height: 50px; /* Increased from 35px */
    max-width: 100px; /* Increased from 70px */
  }

  .partner-logo {
    height: 50px; /* Increased from 35px */
    max-width: 100px; /* Increased from 70px */
  }

  .recent-success-section {
    padding: 50px 0; /* Reduced spacing */
  }

  .success-cards-container {
    flex-wrap: wrap;
    gap: 12px; /* Reduced gap */
    margin-top: 25px; /* Reduced margin */
  }

  .success-card {
    width: 220px; /* Increased mobile width */
    padding: 18px 15px; /* Adjusted padding */
  }

  .success-company-name {
    font-size: 1.25rem; /* Increased mobile font size */
  }

  .success-label {
    font-size: 0.9rem; /* Increased mobile font size */
  }

  .success-value {
    font-size: 0.95rem; /* Increased mobile font size */
  }
}

@media (max-width: 576px) {
  .companies-section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .company-logos-container {
    gap: 1rem;
    min-height: 60px; /* Increased for small mobile */
  }

  /* Increased small mobile logo sizes */
  .company-brand-logo {
    height: 45px; /* Increased from 30px */
    max-width: 90px; /* Increased from 60px */
  }

  .partner-logo {
    height: 45px; /* Increased from 30px */
    max-width: 90px; /* Increased from 60px */
  }

  .recent-success-section {
    padding: 40px 0;
  }

  .success-cards-container {
    flex-direction: column;
    align-items: center;
    margin-top: 20px; /* Reduced margin */
  }

  .success-card {
    width: 100%;
    max-width: 320px; /* Increased max width for mobile */
    padding: 20px 18px; /* Increased mobile padding */
  }

  .success-company-name {
    font-size: 1.2rem; /* Increased mobile font size */
  }
}
