/*
 * Custom styles for the redesigned "Україна без наркотиків" site.
 *
 * The goal of this stylesheet is to harmonize the bold yellow logo with a
 * more neutral colour palette, use Bootstrap utilities, and apply
 * soft gradients and shadows for a modern, trustworthy feel.
 */

.navbar {
    background: rgba(20, 20, 20, 0.85) !important; /* темний матовий */
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.navbar-brand {
    color: #fff !important;
    font-weight: bold;
}

.navbar-brand:hover {
    color: #ffcc00 !important;
}

.navbar-nav .nav-link {
    color: #f0f0f0 !important;
    transition: color 0.3s ease, background 0.3s ease;
    border-radius: 6px;
    padding: 6px 12px;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 204, 0, 0.15);
    color: #ffcc00 !important;
}

.btn-primary {
    background-color: #ffcc00;
    color: #000;
    font-weight: bold;
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: #e6b800;
    transform: scale(1.05);
}

.hero-content-wrapper {
  margin-top: 30px;
}

/* Відступ між панелями у великих екранах */
@media (min-width: 992px) {
  .left-panel {
    margin-right: 30px; /* або скільки треба */
  }
  .right-panel {
    margin-left: 30px;
  }
}

/* Для мобільних — вертикальний відступ */
@media (max-width: 991px) {
  .left-panel {
    margin-bottom: 20px;
  }
}









/* ПРАВА КОЛОНКА: фото + діяльність — керуємо відступом між ними */
.hero-right-col{
  display:flex;
  flex-direction:column;
  gap:24px;                 /* головний проміжок між правими панелями */
  width:min(520px, 100%);
}

/* Скидаємо будь-які зовнішні марджини, які могли "з’їдати" gap */
.hero-right-col .hero-panel{
  margin:0 !important;
}

/* Щоб панелі точно не злипалися навіть при локальних стилях */
.right-panel{ margin-bottom:0 !important; }
.activity-panel{ margin-top:0 !important; }

/* Загальний проміжок між Лівою панеллю та Правою колонкою */
.hero-content-wrapper{ gap:32px; }

/* Мобільний стек: лишаємо рівномірний відступ між усіма блоками */
@media (max-width: 991.98px){
  .hero-content-wrapper{ gap:20px; }
  .hero-right-col{ width:100%; gap:16px; }
}









/* Відступ між панелями і захист від "прилипання" */
.hero-content-wrapper { gap: 32px; }

/* Права колонка з фіксованою максимальною шириною, щоб не тиснула ліву панель */
.hero-right-col { gap: 20px; width: min(520px, 100%); }

/* Ліва панель тягнеться, але має розумний ліміт */
.left-panel { max-width: 620px; }

/* На мобільному — вертикальний стек із однаковими відступами */
@media (max-width: 991.98px) {
  .hero-content-wrapper { gap: 20px; }
  .left-panel { max-width: 100%; }
  .hero-right-col { width: 100%; }
}












.hero-panel {
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 20px;
  border-radius: 10px;
}

.activity-panel ul li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.activity-panel ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #ffc107; /* Жовта галочка */
}





















/* Override bootstrap primary colour to a calming blue */
:root {
  --bs-primary: #3178c6; /* deep blue for headings and buttons */
}

/* Logo filter: reduce saturation and brightness so the yellow logo blends */
.logo-filter {
  filter: brightness(0.9) saturate(0.8);
}

/* Hero section styling */
.hero-section {
  position: relative;
  min-height: 90vh;
  /* Background image is set inline in HTML for greater flexibility */
  background-size: cover;
  background-position: center;
  color: #fff;
  padding-top: 4rem; /* space for fixed navbar */
}

/* A subtle overlay on hero sections to ensure text is readable without obscuring the watercolour artwork */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* slightly lighter overlay to let the artwork shine */
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

/* Adjust heading spacing on smaller screens */
@media (max-width: 767.98px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }
}

/* Card hover effect */
.card:hover {
  transform: translateY(-4px);
  transition: transform 0.3s ease;
}

/* Modal form spacing */
.modal-body textarea {
  resize: vertical;
}

/* Footer links styling */
footer a {
  color: var(--bs-primary);
}

footer a:hover {
  color: #275a8f;
  text-decoration: underline;
}

.btn-main {
    background-color: #ffcc00; /* жовтий як у логотипі */
    color: #000;
    font-weight: bold;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-main:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* HERO */
.hero-section{
  min-height: 70vh;              /* висота героя */
  background-size: cover;        /* заповнення без спотворення */
  background-position: center;   /* центр кадру */
  background-repeat: no-repeat;
  position: relative;
}
.hero-overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.55) 100%);
}
.hero-section > .container{
  position: relative; z-index: 2;
}
@media (max-width: 576px){
  .hero-section{ min-height: 60vh; background-position: center 30%; }
  .hero-section .display-4{ font-size: 2rem; }
  .hero-section .lead{ font-size: 1rem; }
}





.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1;
}

.hero-panel {
  background: rgba(0,0,0,0.55);
  border-radius: 10px;
  padding: 2rem;
  color: #fff;
  max-width: 500px;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  z-index: 2;
  position: relative;
}

/* Ліва панель виїжджає зліва */
.left-panel {
  transform: translateX(-50px);
}

/* Права панель виїжджає справа */
.right-panel {
  transform: translateX(50px);
}

/* Активні стани */
.hero-overlay.show {
  opacity: 1;
}

.hero-panel.show {
  opacity: 1;
  transform: translateX(0);
}

/* Адаптив */
@media (max-width: 991px) {
  .hero-panel {
    max-width: 100%;
    margin-bottom: 20px;
  }
}













/* Встав у css/custom.css */
:root{
  --nav-h: 25px;          /* реальна висота твого navbar */
  --extra-offset: 0px;   /* скільки “не доїжджати” */
}

/* плавний скрол і глобальний відступ для переходів по #якорях */
html{
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--extra-offset));
}

/* підстраховка для конкретних цільових блоків з id */
[id]{
  scroll-margin-top: calc(var(--nav-h) + var(--extra-offset));
}