#google_translate_element2 {
  font-size: 14px;
  position: fixed;
  bottom: 0;
}

.goog-te-banner-frame {
  display: none !important; /* Hide the banner if needed */
}

.scroll-btn {
  position: fixed;
  bottom: 20px;
  left: -80px; /* Start off-screen */
  display: flex; /* Initially display as flex */
  background-color: #004ba3;
  color: #f0f8ff;
  border: none;
  border-radius: 50%;
  padding: 10px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: right 0.5s ease, opacity 0.5s ease; /* Smooth sliding and fading */
  opacity: 0;
  animation: bounce 1s ease-in-out infinite;
  z-index: 99999;
}

@keyframes bounce {
  0% {
    bottom: 20px;
  }

  25% {
    bottom: 25px;
  }

  75% {
    bottom: 20%;
  }

  75% {
    bottom: 15px;
  }
}

.scroll-btn.show {
  left: 20px; /* Move to visible position */
  opacity: 1; /* Make the button fully visible */
}

.scroll-btn:hover {
  background-color: #004ba3;
  animation: none;
  color: #f0f8ff;
}

/* Container for the progress bar */
#progressContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #f0f0f0; /* Light background for the bar */
  z-index: 9999; /* Ensure the progress bar is above other content */
}

/* The actual progress bar */
#progressBar {
  height: 100%;
  width: 0; /* Start with width 0 */
  background-color: #004ba3; /* Progress bar color */
  transition: width 0.2s ease; /* Smooth transition when the width changes */
}

/* Popups and animation */
#popup-container {
  position: fixed;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  z-index: 9999;
}

.popup {
  background-color: #004ba3;
  color: #f0f8ff;
  /* border: 1px solid #004ba3; */
  padding: 10px;
  margin: 10px;
  border-radius: 8px;
  display: inline-block;
  animation: slideIn 1s ease-out forwards, fadeOut 1s ease-in forwards 4s;
  max-width: 400px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0; /* Start from invisible */
  font-size: 0.85rem;
}

.popup .header {
  color: #232733;
  font-size: 1rem;
  font-weight: 600;
}

@keyframes slideIn {
  0% {
    transform: translateX(-300px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* Cookie Popup Styles */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #333;
  color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 300px;
  display: none; /* Hidden by default */
  z-index: 9999;
}

.cookie-popup p {
  margin: 0 0 10px 0;
  font-size: 14px;
  line-height: 1.5;
}

.accept-button {
  background-color: #005bcc;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.accept-button:hover {
  background-color: #004ba3;
  color: #fff;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 36px;
  margin-bottom: 15px;
  color: var(--secondary-color);
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 15px auto 25px;
}

.section-subtitle {
  color: var(--text-light);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 18px;
}

/* Partners */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  margin-top: 50px;
  align-items: center;
}

.partner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.partner:hover {
  filter: grayscale(0);
  opacity: 1;
}

.partner img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.section-header {
  margin: 1rem auto 2rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}
