/* Custom CSS for FlyEarthVisas */

/* General body styling */
body {
  scroll-behavior: smooth;
}

/* ===== MOBILE MENU STYLES ===== */
/* Mobile menu - closed state */
#mobile-menu {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
}

/* Mobile menu - open state */
#mobile-menu.menu-open {
  max-height: 600px; /* Adjust based on content */
  opacity: 1;
  visibility: visible;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Mobile services submenu - closed state */
#mobile-services-menu {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
}

/* Mobile services submenu - open state */
#mobile-services-menu.submenu-open {
  max-height: 400px; /* Adjust based on content */
  opacity: 1;
  visibility: visible;
  margin-top: 0.5rem;
}

/* ===== SERVICE CARDS HOVER EFFECTS ===== */
.service-card-hover-effect {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.service-card-hover-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 78, 146, 0.8) 0%,
    rgba(0, 161, 211, 0.4) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 1;
}

.service-card-hover-effect:hover::before {
  opacity: 1;
}

.service-card-hover-effect .card-content {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease-in-out;
}

.service-card-hover-effect:hover .card-content {
  transform: translateY(-10px);
}

.service-card-hover-effect img {
  transition: transform 0.3s ease-in-out;
  object-fit: cover;
}

.service-card-hover-effect:hover img {
  transform: scale(1.05);
}

/* ===== TESTIMONIAL CAROUSEL ===== */
.testimonial-carousel-container {
  overflow: hidden;
  position: relative;
}

.testimonial-carousel-inner {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-carousel-item {
  flex: 0 0 100%;
  padding: 1rem;
  box-sizing: border-box;
}

/* ===== ACCESSIBILITY ===== */
*:focus {
  outline: 2px solid theme("colors.secondary");
  outline-offset: 2px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-down {
  animation: fadeInDown 1s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
}

/* ===== FORM VALIDATION STYLES ===== */
.invalid-feedback {
  display: none;
}

.is-invalid + .invalid-feedback {
  display: block;
}

.is-invalid {
  border-color: #dc3545;
}

.is-valid {
  border-color: #28a745;
}

.was-validated .form-control:invalid {
  border-color: #dc3545;
}

.was-validated .form-control:valid {
  border-color: #28a745;
}

/* ===== SMOOTH TRANSITIONS ===== */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon rotation for dropdowns */
.rotate-180 {
  transform: rotate(180deg);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1023px) {
  /* Ensure mobile menu doesn't cause horizontal scroll */
  #mobile-menu {
    width: 100%;
  }

  /* Better spacing for mobile menu items */
  #mobile-menu ul li a,
  #mobile-menu ul li button {
    font-size: 0.95rem;
  }
}

/* Custom CSS for FlyEarthVisas */

/* General body styling */
body {
  scroll-behavior: smooth;
}

/* ===== MOBILE MENU STYLES ===== */
/* Mobile menu - closed state */
#mobile-menu {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
}

/* Mobile menu - open state */
#mobile-menu.menu-open {
  max-height: 600px; /* Adjust based on content */
  opacity: 1;
  visibility: visible;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Mobile services submenu - closed state */
#mobile-services-menu {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
}

/* Mobile services submenu - open state */
#mobile-services-menu.submenu-open {
  max-height: 400px; /* Adjust based on content */
  opacity: 1;
  visibility: visible;
  margin-top: 0.5rem;
}

/* ===== SERVICE CARDS HOVER EFFECTS ===== */
.service-card-hover-effect {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.service-card-hover-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 78, 146, 0.8) 0%,
    rgba(0, 161, 211, 0.4) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 1;
}

.service-card-hover-effect:hover::before {
  opacity: 1;
}

.service-card-hover-effect .card-content {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease-in-out;
}

.service-card-hover-effect:hover .card-content {
  transform: translateY(-10px);
}

.service-card-hover-effect img {
  transition: transform 0.3s ease-in-out;
  object-fit: cover;
}

.service-card-hover-effect:hover img {
  transform: scale(1.05);
}

/* ===== TESTIMONIAL CAROUSEL ===== */
.testimonial-carousel-container {
  overflow: hidden;
  position: relative;
}

.testimonial-carousel-inner {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-carousel-item {
  flex: 0 0 100%;
  padding: 1rem;
  box-sizing: border-box;
}

/* ===== ACCESSIBILITY ===== */
*:focus {
  outline: 2px solid theme("colors.secondary");
  outline-offset: 2px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-down {
  animation: fadeInDown 1s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
}

/* ===== FORM VALIDATION STYLES ===== */
.invalid-feedback {
  display: none;
}

.is-invalid + .invalid-feedback {
  display: block;
}

.is-invalid {
  border-color: #dc3545;
}

.is-valid {
  border-color: #28a745;
}

.was-validated .form-control:invalid {
  border-color: #dc3545;
}

.was-validated .form-control:valid {
  border-color: #28a745;
}

/* ===== SMOOTH TRANSITIONS ===== */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon rotation for dropdowns */
.rotate-180 {
  transform: rotate(180deg);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1023px) {
  /* Ensure mobile menu doesn't cause horizontal scroll */
  #mobile-menu {
    width: 100%;
  }

  /* Better spacing for mobile menu items */
  #mobile-menu ul li a,
  #mobile-menu ul li button {
    font-size: 0.95rem;
  }
}

@media (min-width: 1024px) {
  /* Hide mobile menu completely on desktop */
  #mobile-menu {
    display: none !important;
  }
}

footer img {
    background: #fff;
    padding: 10px;
}

/* Remove list-style dots specifically for fees-services page */
.fees-page-lists ul {
    list-style-type: none !important;
}
