/* Hero Section background with overlay */
.hero-section {
  background: 
  linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
  url("../img/hero-bg.webp") no-repeat center center;
  background-size: cover;
  min-height: 900px;
}

.navbar {
  background: #155294;
}

.btn-custom {
    padding: 0.5rem 3rem;
    font-size: 1.25rem;
    border-radius: 8px;
    color: #fff;
    background-color: #212529;
    display: inline;
    text-align: center;
}

.btn-sm{
    display: inline-flex !important;
    height: fit-content;
    gap: 8px;
}

.logo{
  height: 58px;
}

h1, h2 {
  font-family: 'Oswald', sans-serif;
}

/* Навигация */
.navbar-nav .nav-link {
  font-weight: 500;
  transition: color 0.3s;
  width: 100%;
  display: flex;
  justify-content: center;
}

.navbar-nav .nav-link:hover {
  color: #ffc107; /* Жёлтый при наведении */
}

.btn-custom:hover {
  filter: brightness(1.1);
}

/* Dropdown меню языка */
.dropdown-menu {
  min-width: auto;
}

.dropdown-toggle {
  color: #fff !important;
}

/* Hero заголовок */
.hero-section h1 {
  text-transform: uppercase;
}

/* Hero подзаголовок */
.hero-section p {
  font-size: 1.2rem;
}

/* Кнопка "Подробнее" */
.hero-section .btn {
  font-weight: 500;
}

.news-section .card-img {
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

.news-section .card {
  border-radius: 0.5rem;
  overflow: hidden;
}

.news-section .card h6 {
  font-size: 1rem;
}

.news-content{
  display: flex;
  align-items: center
}

.news-section .card-img-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, 
    rgba(0,0,0,0) 0%, 
    rgba(0,0,0,0) 49%,
    rgba(0,0,0,0.7) 100%);
  z-index: 0;
  border-radius: 0.5rem;
}

/* Чтобы текст и кнопка были поверх градиента */
.news-section .card-img-overlay > * {
  position: relative;
  z-index: 1;
  gap: 8px;
}

.clamp-2-lines {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.about-section {
  background: 
  url("../img/about-bg.webp") no-repeat center center;
  background-size: cover;
}
.about-section h2 {
  line-height: 1.3;
}
.about-section .display-5 {
  font-size: 3rem;
}

.numbers {
  padding-top: 24px;
}

.big-number {
  font-size: 3rem;
  font-family: 'Oswald', sans-serif;
}

/* Ограничение заголовка до 2 строк */
.clamp-2-lines {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tab {
  border: 0px;
}

.events-section {
  background-color: #E7EDF5;
}

.events-section .dropdown-menu {
  background-color: #fff;
  border: none;
  color: #212529;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.events-section .dropdown-menu button {
  color: #212529;
}

.events-section .dropdown-menu button:hover {
  background-color: #f1f1f1;
}

.events-section .dropdown .dropdown-toggle {
  background-color: #fff;
  border: none;
  color: #212529 !important;
}

.events-section .dropdown .dropdown-toggle:focus {
  box-shadow: none;
}

.category-btn.active {
  background-color: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

.category-btn.btn-outline-secondary {
  background-color: #fff;
  border: none;
  color: #212529;
}

/* При наведении — лёгкий оттенок */
.category-btn.btn-outline-secondary:hover {
  background-color: #f1f1f1;
}

.events-section .card-body .fw-bold {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem; /* размер цифр */
  line-height: 1;
  display: block;
  min-width: 60px; /* увеличиваем ширину блока с датой */
  text-align: center; /* выравниваем цифры по центру */
}

.events-section .card-body .data {
  display: block;
  font-size: 1rem;
  text-align: center;
  margin-top: 0.25rem;
}

footer {
  background-color: #155294; 
}

/* Адаптация навигации */
@media (max-width: 991.98px) {

.hero-section {
  min-height: 700px;
}

  .navbar-collapse .d-flex {
    flex-direction: column;
    align-items: stretch;
  }

  .logo{
  height: 32px;
}

.btn-custom {
    display: block;
}

  .navbar-collapse .d-flex .btn,
  .navbar-collapse .d-flex .dropdown {
    width: 100%;
  }

  .hide-mobile {
    display: none !important;
  }
}
