/* Visa Services Section Styles */
.visa-services-section {
  background-color: #ffffff;
  padding: 60px 0;
}

.visa-container {
  margin: 0 auto;
}

.visa-header {
  text-align: center;
  margin-bottom: 30px;
}

.visa-title {
  color: var(--bs-primary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.visa-description {
  max-width: 1000px;
  margin: 0 auto 40px;
  text-align: center;
  line-height: 1.8;
  color: #555;
}

.visa-description a {
  color: var(--bs-success);
  text-decoration: none;
  font-weight: 600;
}

.visa-description a:hover {
  text-decoration: underline;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.country-card {
  cursor: pointer;
  border: 1px solid var(--bs-success);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.country-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.flag-container {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flag-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.country-name {
  background-color: var(--bs-primary);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  min-width: 150px;
  text-align: center;
  position: relative; /* Needed for the pseudo-element positioning */
  overflow: hidden; /* To clip the pseudo-element during animation */
  z-index: 1; /* Ensure text is above the pseudo-element */
  transition: color 0.4s ease 0.1s; /* Delay color change slightly for better effect */
}

.country-name::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0; /* Initially hidden */
  height: 100%;
  background-color: var(--bs-success); /* Target background color */
  transition: width 0.4s ease-in-out; /* Animation for the slide */
  z-index: -1; /* Place it behind the text */
  border-radius: 5px; /* Match parent's border-radius */
}

.country-card:hover .country-name::before {
  width: 100%; /* Slide in on hover */
}

/* Responsive styles */
@media (max-width: 992px) {
  .country-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .country-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .visa-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .country-grid {
    grid-template-columns: 1fr;
  }

  .visa-description {
    text-align: left;
  }
}
