/* Country Section Styling */
.timeline h3,
#countryTitle,
#what-we-offer h3,
.h5 {
  color: #003366;
}
.country-section {
  background-color: #001f3f; /* Navy blue */
  color: #000;
}

.country-container {
  color: #000;
}

.country-container h2 {
  color: #ffffff;
}
.country-box {
  background-color: #ffffff;
  color: #000000;
  max-width: 1000px;
  height: 600px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.country-image {
  width: 50%;
  background-size: cover;
  background-position: center;
}

.country-text {
  width: 50%;
  overflow-y: auto;
}

/* Reusable Gallery Preview Style (for Pilot, Cabin Crew, Ground Ops) */

.section-gallery-preview .gallery-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  background-color: #f8f9fa;
}

.section-gallery-preview .gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.section-gallery-preview h2 {
  font-weight: 700;
  color: #1e293b;
}

.section-gallery-preview .btn {
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  border-radius: 50px;
  transition: all 0.2s ease;
}

.section-gallery-preview .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Responsive Fix */

@media (max-width: 768px) {
  .country-box {
    flex-direction: column;
    height: auto;
  }

  .country-image,
  .country-text {
    width: 100% !important;
  }

  .country-image {
    height: 200px; /* fixed height for mobile image display */
    background-size: cover;
    background-position: center;
  }

  .country-text {
    padding: 1rem;
    max-height: none;
    overflow-y: visible;
  }

  #countryTitle {
    font-size: 1.5rem;
    margin-top: 1rem;
  }

  #countryDescription {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  .section-gallery-preview .gallery-img-wrapper {
    aspect-ratio: 1 / 1;
    margin-bottom: 1rem;
  }
  #what-we-offer article {
    flex-direction: column !important;
  }

  #what-we-offer article .col-md-6 {
    width: 100%;
  }

  #what-we-offer article .col-md-6:nth-child(2) {
    margin-top: 1rem;
  }
}
