/* Language Switcher Integration with Mobirise */
.tgp-language-switcher {
  display: flex;
  align-items: center;
  margin-left: 15px;
  margin-right: 20px;
  font-family: inherit;
  z-index: 1050;
  gap: 6px; /* Space between separate buttons */
}

/* Individual Language Button Styles */
.tgp-lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(27, 67, 50, 0.9);
  border: 2px solid #40916C;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none !important;
  color: #F8F9FA !important;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  min-width: 60px;
  justify-content: center;
}

/* Individual hover effects for each button */
.tgp-lang-btn:hover {
  background: #40916C;
  border-color: #F77F00;
  text-decoration: none !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(247, 127, 0, 0.4);
}

/* Active state styling */
.tgp-lang-btn.active {
  background: #40916C;
  border-color: #F77F00;
  box-shadow: 0 2px 10px rgba(247, 127, 0, 0.3);
}

.tgp-lang-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: #F77F00;
  border-radius: 2px;
}

.tgp-flag {
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.3));
}

.tgp-lang-text {
  color: #F8F9FA !important;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile Dropdown Version */
.tgp-mobile-dropdown {
  position: relative;
  display: none;
}

.tgp-dropdown-btn {
  background: #1B4332;
  border: 2px solid #40916C;
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #F8F9FA;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tgp-dropdown-btn:hover {
  background: #40916C;
  border-color: #F77F00;
}

.tgp-dropdown-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.tgp-lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 2px solid #40916C;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  margin-top: 8px;
  overflow: hidden;
}

.tgp-lang-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tgp-lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  text-decoration: none !important;
  color: #343A40 !important;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(64, 145, 108, 0.1);
}

.tgp-lang-option:last-child {
  border-bottom: none;
}

.tgp-lang-option:hover {
  background: #F8F9FA;
  color: #1B4332 !important;
  text-decoration: none !important;
  transform: translateX(3px);
}

.tgp-lang-option.current {
  background: #40916C;
  color: white !important;
  pointer-events: none;
}

.tgp-lang-option.current::after {
  content: "✓";
  margin-left: auto;
  color: #F77F00;
  font-weight: bold;
}

/* Responsive Integration */
@media (max-width: 991px) {
  .tgp-language-switcher .tgp-lang-btn {
    display: none;
  }
  
  .tgp-mobile-dropdown {
    display: block;
  }
}

@media (max-width: 767px) {
  .tgp-language-switcher {
    margin-left: 10px;
  }
  
  .tgp-dropdown-btn {
    padding: 5px 10px;
    font-size: 11px;
  }
  
  .tgp-flag {
    font-size: 14px;
  }
}

/* Animation Effects */
@keyframes tgpFlagWave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

.tgp-flag:hover {
  animation: tgpFlagWave 0.5s ease-in-out;
}

/* Mobirise Navbar Integration */
.navbar .tgp-language-switcher {
  order: 3;
}
.navbar-nav {
  order: 1;
}
.icons-menu {
  order: 2;
}
.navbar-buttons {
  order: 4;
}