:root {
  /* Основні кольори з брифу */
  --bg-main: #f8f5f0;
  --text-main: #292929;
  --header-footer-bg: #292929;
  --accent-orange: #ffba86;
  --accent-green: #0c2906;
  --card-bg-light: #fffcf6;
  --card-bg-white: #fff;
  
  /* Додаткові кольори для варіацій */
  --text-muted: #666;
  --border-light: #e0e0e0;
  --overlay-dark: rgba(0, 0, 0, 0.7);
}

/* Загальні стилі */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Nunito", serif !important;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* Header стилі */
.navbar {
  background-color: var(--header-footer-bg) !important;
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
}

.navbar-brand {
  color: white !important;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-orange) !important;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Hero секція */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay-dark);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn-primary-custom {
  background-color: var(--accent-orange);
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 0.75rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  background-color: #ff9a5c;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 186, 134, 0.3);
}

/* Внутрішні сторінки hero */
.inner-hero {
  min-height: 60vh;
  background-color: var(--header-footer-bg);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.inner-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.inner-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Дисклеймер */
.disclaimer {
  background-color: var(--accent-green);
  color: white;
  padding: 1rem 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
}

/* Основні секції */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-main);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Картки */
.card-custom {
  background-color: var(--card-bg-white);
  border: none;
  border-radius: 0.75rem;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.card-custom:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-icon {
  width: 80px;
  height: 80px;
  background-color: var(--accent-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.card-icon i {
  font-size: 2rem;
  color: white;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
}

/* Альтернативні секції */
.section-alt {
  background-color: var(--card-bg-light);
}

.section-dark {
  background-color: var(--accent-green);
  color: white;
}

.section-dark .section-title {
  color: white;
}

/* Картки викладачів */
.teacher-card {
  /* background-color: var(--card-bg-white); */
  border: 1px solid #292929;
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.teacher-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.teacher-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.teacher-position {
  color: var(--accent-orange);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Списки результатів */
.results-list {
  list-style: none;
  padding: 0;
}

.results-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  padding-left: 2rem;
}

.results-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: bold;
}

/* Новини */
.news-card {
  background-color: var(--card-bg-white);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  /* border-left: 4px solid var(--accent-orange); */
}

.news-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Форма */
.form-control {
  border: 2px solid var(--border-light);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 0.2rem rgba(255, 186, 134, 0.25);
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.invalid-feedback {
  display: none;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

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

/* Footer */
footer {
  background-color: var(--header-footer-bg);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-orange);
}

.footer-contact {
  margin-bottom: 1rem;
}

.footer-disclaimer {
  border-top: 1px solid #444;
  padding-top: 1rem;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: #ccc;
}

/* Cookie popup */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--header-footer-bg);
  color: white;
  padding: 1rem;
  z-index: 1040;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-popup.show {
  transform: translateY(0);
}

.cookie-popup .btn-sm {
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
}

/* Адаптивність */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 1.7rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .card-custom {
    padding: 1.5rem;
  }
  
  .teacher-photo {
    width: 120px;
    height: 120px;
  }
  
  .inner-hero h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.7rem;
  }
  
  .btn-primary-custom {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}
