/* styles.css */

.language-switcher {
    transition: all 0.3s ease;
}

.language-switcher.active {
    background-color: #0057B7;
    color: white;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.slider-container {
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    animation: slide 20s linear infinite;
}

.slider-track:hover {
    animation-play-state: paused;
}

.map-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .mobile-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    .mobile-menu.open {
        max-height: 500px;
    }
}

/* Точечный fallback для эмодзи в блоке новостей */
.emoji-text {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

/* Активная страница (основное меню) */
a.active {
  background-color: #FFD700; /* жёлтый фон */
  color: #1e40af;           /* синий текст */
  font-weight: bold;
  border-radius: 0.25rem;
  padding-right: 1.5rem; /* смещение текста влево */
}

/* Родительский пункт меню */
.active-parent > a {
  color: #1d4ed8; /* синий текст */
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.7s ease-out forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes modalFadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

.modal-enter {
  animation: modalFadeIn 0.3s ease-out forwards;
}

.modal-leave {
  animation: modalFadeOut 0.2s ease-in forwards;
}

.goverlay { background: rgba(17, 24, 39, 0.95) !important; } /* gray-900 з opacity */
.gslide-description { color: white; font-family: 'Roboto', sans-serif; }
.gclose, .gnext, .gprev { filter: drop-shadow(0 0 8px rgba(0,0,0,0.6)); }

/* For Calendar Page */
/* Скрытие скроллбара для табов, сохраняя функционал прокрутки */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.fade-in { animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.current-day {
  background-color: var(--tw-bg-calendar-accent); /* цвет из tailwind.config.js */
  color: #ffffff;
  border-radius: 9999px; /* rounded-full */
}

.selected-day {
  background-color: var(--tw-bg-calendar-main);
  color: #ffffff;
  border-radius: 9999px;
}

.calendar-cell:hover {
  background-color: var(--tw-bg-calendar-hover);
  color: #ffffff;
  border-radius: 9999px;
}
