/* Clients Section Styles */
.optech-client-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  margin-bottom: 30px;
  height: 100%;
}

.optech-client-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(220, 20, 60, 0.15);
}

.client-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.client-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.optech-client-card:hover .client-card-image img {
  transform: scale(1.05);
}

.client-card-content {
  padding: 25px;
  text-align: center;
}

.client-card-content h5 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
  font-family: 'Sora', sans-serif;
}

.client-count {
  display: inline-block;
  font-size: 32px;
  font-weight: 700;
  color: #dc143c;
  font-family: 'Sora', sans-serif;
}

/* Countries Section Styles */
.optech-countries-map {
  position: relative;
  padding: 20px;
}

.africa-map {
  width: 100%;
  max-width: 450px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.africa-map path {
  fill: #ffcccb;
  stroke: #dc143c;
  stroke-width: 2;
  transition: all 0.3s ease;
}

/* Default country styling - pale red */
.africa-country {
  fill: #ffcccb;
  stroke: #ffffff;
  stroke-width: 1.5;
  transition: all 0.3s ease;
  cursor: pointer;
}

.africa-country:hover {
  fill: #ffb3b3;
  stroke: #dc143c;
  stroke-width: 2;
}

/* Active/highlighted countries - dark red */
.africa-country.africa-active {
  fill: #8b0000;
  stroke: #ffffff;
  stroke-width: 2;
  animation: highlightPulse 2s ease-in-out infinite;
}

.africa-country.africa-active:hover {
  fill: #a01030;
  stroke: #ffffff;
  stroke-width: 2.5;
}

@keyframes highlightPulse {
  0%, 100% {
    fill: #8b0000;
  }
  50% {
    fill: #a52a2a;
  }
}

.country-marker {
  cursor: pointer;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.country-marker:hover {
  r: 10;
  fill: #a01030;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

.optech-countries-content h2 {
  font-size: 48px;
  font-weight: 700;
  color: #003d5b;
  margin-bottom: 20px;
  font-family: 'Sora', sans-serif;
}

.countries-intro {
  font-size: 18px;
  color: #1a1a1a;
  margin-bottom: 15px;
  font-weight: 500;
}

.countries-description {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.7;
}

.countries-base {
  font-size: 16px;
  color: #1a1a1a;
  margin-bottom: 25px;
  font-weight: 500;
}

.optech-countries-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.country-flag-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 120px;
}

.flag-wrapper {
  width: 100px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  background: #f5f5f5;
}

.flag-wrapper:hover {
  transform: scale(1.05);
}

.flag-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.country-flag-item span {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
  font-family: 'Sora', sans-serif;
  letter-spacing: 0.5px;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .optech-countries-map {
    margin-bottom: 40px;
    text-align: center;
  }

  .africa-map {
    max-width: 400px;
  }

  .optech-countries-content h2 {
    font-size: 36px;
  }

  .optech-countries-flags {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .client-card-image {
    height: 200px;
  }

  .client-card-content h5 {
    font-size: 18px;
  }

  .client-count {
    font-size: 28px;
  }

  .optech-countries-content h2 {
    font-size: 32px;
  }

  .countries-intro,
  .countries-description,
  .countries-base {
    font-size: 15px;
  }

  .flag-wrapper {
    width: 80px;
    height: 56px;
  }

  .country-flag-item {
    min-width: 100px;
  }

  .country-flag-item span {
    font-size: 12px;
  }
}
