html {
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

/* ===== ПРИБИРАЄМО ЧЕРВОНЕ ПІДСВІЧУВАННЯ ===== */
/* Прибираємо стандартний outline/focus для всіх елементів */
*:focus,
*:active,
*:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Для кнопок */
button:focus,
button:active,
.btn:focus,
.btn:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Для посилань */
a:focus,
a:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Для input/textarea */
input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Для Bootstrap елементів */
.form-control:focus,
.form-select:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #E7685D !important;
}

/* Для навігації */
.nav-link:focus,
.nav-link:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Для карток */
.card:focus,
.card:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Прибираємо tap highlight на мобільних */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Дозволяємо виділення тексту в контенті */
p, span, h1, h2, h3, h4, h5, h6, li, td, th, div {
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* ===== БАЗОВІ СТИЛІ ===== */

/* Запобігання горизонтальному скролу */
.container,
.container-fluid,
.row {
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* Прибираємо негативні margin з row */
.row {
    margin-left: 0;
    margin-right: 0;
}

/* ===== NAVBAR ===== */

header#mainHeader {
    background: transparent;
    position: relative;
    z-index: 100;
}

.navbar {
    background: transparent;
    min-height: 90px;
    box-shadow: 0 2px 4px rgba(0,0,0,0);
    transition: all 0.3s ease;
}

.navbar-container {
    max-width: 1360px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 30px;
    box-sizing: border-box;
}

@media (max-width: 576px) {
    .navbar-container {
        padding: 12px 20px; /* Збільшили з 15px до 20px */
    }
}

/* Logo - фіксована висота */
.navbar-brand {
    height: 50px;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 50px;
    width: auto;
    transition: opacity 0.3s ease;
}

/* Показуємо logoN1 за замовчуванням */
.logo-transparent {
    display: block;
}

.logo-white {
    display: none;
}

/* Desktop - більший шрифт і відступи */
@media (min-width: 993px) {
    .nav-link {
        color: #ffffff !important;
        font-weight: 600;
        font-size: 18px;
        padding: 10px 20px !important;
    }

    .navbar-nav .nav-item {
        margin: 0 8px;
    }
}

/* Mobile */
@media (max-width: 992px) {
    .nav-link {
        color: #ffffff !important;
        font-weight: 600;
        font-size: 16px;
    }
}

.language-icon img {
    width: 24px;
}

/* Desktop - білий при скролі */
@media (min-width: 993px) {
    .navbar.scrolled {
        background: #ffffff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    }

    /* При скролі посилання коралові */
    .navbar.scrolled .nav-link {
        color: #e7685d !important;
    }

    .navbar.scrolled .nav-link:hover {
        color: #d45648 !important;
    }

    /* При скролі показуємо logoN2 замість logoN1 */
    .navbar.scrolled .logo-transparent {
        display: none !important;
    }

    .navbar.scrolled .logo-white {
        display: block !important;
    }
}

/* Mobile */
@media (max-width: 992px) {
    /* Початковий стан - прозорий */
    header#mainHeader {
        background: transparent;
        transition: all 0.3s ease;
        width: 100%;
    }

    .navbar {
        background: transparent;
        min-height: 70px;
        box-shadow: 0 2px 4px rgba(0,0,0,0);
        transition: all 0.3s ease;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .navbar-container {
        width: 100%;
        max-width: 100%;
        padding: 12px 30px;
    }

    /* При скролі - білий фон */
    header#mainHeader.scrolled {
        background: #ffffff !important;
    }

    .navbar.scrolled {
        background: #ffffff !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    }

    /* При скролі посилання коралові */
    .navbar.scrolled .nav-link {
        color: #e7685d !important;
    }

    .navbar.scrolled .nav-link:hover {
        color: #d45648 !important;
    }

    /* При скролі показуємо logoN2 */
    header#mainHeader .navbar.scrolled .logo-transparent,
    .navbar.scrolled .logo-transparent {
        display: none !important;
    }

    header#mainHeader .navbar.scrolled .logo-white,
    .navbar.scrolled .logo-white {
        display: block !important;
    }

    .navbar-logo {
        height: 40px;
    }

    .navbar-toggler {
        background: transparent;
        border: 2px solid rgba(255,255,255,0.9);
    }

    /* Dropdown меню - білий фон ЗАВЖДИ (навіть під час анімації) */
    #mainNavbar {
        text-align: center;
    }

    #mainNavbar.collapsing {
        background: #ffffff !important;
        padding: 20px;
        text-align: center;
    }

    #mainNavbar.show {
        background: #ffffff !important;
        padding: 20px;
        text-align: center;
    }

    #mainNavbar .navbar-nav {
        text-align: center;
    }

    #mainNavbar .nav-item {
        text-align: center;
    }

    /* ОДРАЗУ коралові посилання при відкритті меню - БЕЗ ЗАТРИМКИ */
    #mainNavbar.collapsing .nav-link,
    #mainNavbar.show .nav-link {
        color: #e7685d !important;
        transition: none !important;
    }
}

/* When mobile menu is opened, show white bg and brand-colored links (applies site-wide) */
.navbar-collapse.show,
.navbar-collapse.collapsing,
#mainNavbar.show,
#mainNavbar.collapsing {
    background: #ffffff !important;
    padding: 20px !important;
}

/* ОДРАЗУ коралові посилання - найвищий пріоритет, БЕЗ transition */
.navbar-collapse.show .nav-link,
.navbar-collapse.collapsing .nav-link,
#mainNavbar.show .nav-link,
#mainNavbar.collapsing .nav-link {
    color: #e7685d !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    transition: none !important; /* Прибираємо transition для миттєвої зміни */
}

.navbar-collapse.show .nav-link:hover,
.navbar-collapse.collapsing .nav-link:hover,
#mainNavbar.show .nav-link:hover,
#mainNavbar.collapsing .nav-link:hover {
    color: #d45648 !important;
}

/* Remove text-shadow on nav links globally to avoid visual noise */
.nav-link {
    text-shadow: none !important;
}

/* Stronger override for collapsed/open mobile menu to ensure brand color is applied
   even if page-level styles set different colors with !important. */
header#mainHeader .navbar-collapse.show .nav-link,
header#mainHeader .navbar-collapse.collapsing .nav-link,
header#mainHeader #mainNavbar.show .nav-link,
header#mainHeader #mainNavbar.collapsing .nav-link,
.navbar .navbar-collapse.show .nav-link,
.navbar .navbar-collapse.collapsing .nav-link {
    color: var(--primary-color) !important;
    text-shadow: none !important;
}

header#mainHeader .navbar-collapse.show .nav-link:hover,
header#mainHeader .navbar-collapse.collapsing .nav-link:hover,
header#mainHeader #mainNavbar.show .nav-link:hover,
header#mainHeader #mainNavbar.collapsing .nav-link:hover,
.navbar .navbar-collapse.show .nav-link:hover,
.navbar .navbar-collapse.collapsing .nav-link:hover {
    color: var(--primary-hover) !important;
}

/* Fallback: when JS toggles .mobile-open on header, ensure links are brand-colored */
header#mainHeader.mobile-open .nav-link {
    color: var(--primary-color) !important;
}
header#mainHeader.mobile-open .nav-link:hover {
    color: var(--primary-hover) !important;
}

/* Remove default breadcrumb separator (some fonts may show garbled character) and style custom separator */
.breadcrumb-item + .breadcrumb-item::before {
    content: none !important;
}
.breadcrumb-sep i {
    color: rgba(0,0,0,0.45);
}

/* ВИПРАВЛЕННЯ MOBILE DROPDOWN MENU */
@media (max-width: 992px) {
    #mainNavbar,
    #mainNavbar.collapsing,
    #mainNavbar.show {
        background: #ffffff !important;
        padding: 20px !important;
    text-align: center !important;
 }

    #mainNavbar .navbar-nav,
    #mainNavbar .nav-item {
        text-align: center !important;
        justify-content: center !important;
    }

    /* Кнопки в navbar на mobile */
    #mainNavbar .btn,
    #mainNavbar .btn-outline-danger {
  background-color: #e7685d !important;
        border-color: #e7685d !important;
  color: #ffffff !important;
    }

    /* Головна — мобільне відкрите меню: посилання коралові */
    body.home-page #mainNavbar.show .nav-link,
    body.home-page #mainNavbar.collapsing .nav-link {
        color: #e7685d !important;
    }

    /* Головна — мобільне відкрите меню: кнопка коралова */
    body.home-page #mainNavbar.show .btn-outline-danger,
    body.home-page #mainNavbar.collapsing .btn-outline-danger {
        background-color: #e7685d !important;
        border-color: #e7685d !important;
        color: #ffffff !important;
    }
}

/* Кнопки в navbar на всіх екранах */
.navbar .btn,
.navbar .btn-outline-danger,
#mainNavbar .btn,
#mainNavbar .btn-outline-danger {
    background-color: #e7685d !important;
    border-color: #e7685d !important;
    color: #ffffff !important;
}

/* Виключення для головної — до скролу кнопка прозора з білою рамкою */
body.home-page #mainHeader .navbar:not(.scrolled) .btn-outline-danger,
body.home-page #mainNavbar:not(.scrolled-parent) .btn-outline-danger {
  background-color: transparent !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}
body.home-page #mainHeader .navbar:not(.scrolled) .btn-outline-danger:hover {
  background-color: #ffffff !important;
    border-color: #ffffff !important;
 color: #e7685d !important;
}

/* Кнопки в cards та на всіх сторінках */
.card .btn,
.card .btn-primary,
.container .btn,
.container .btn-primary,
.container-fluid .btn-primary,
.btn-primary {
    background-color: #e7685d !important;
    border-color: #e7685d !important;
    color: #ffffff !important;
}

/* Кнопки видалення в адмінці - малиновий колір */
.container-fluid .btn-danger,
.container .btn-danger,
table .btn-danger {
    background-color: #E7685D !important;
    border-color: #E7685D !important;
    color: #ffffff !important;
}

/* ЗАБЕЗПЕЧУЄ ВІДСУТНІСТЬ ВІДСТУПІВ МІЖ ХЕДЕРОМ ТА БАНЕРОМ */
#mainHeader {
    margin-bottom: 0 !important;
}

/* --- ПОЧАТОК СТИЛІВ ШРИФТІВ --- */
:root {
  --heading-font: 'Manrope', sans-serif;
  --body-font: 'Onest', sans-serif;
  --primary-color: #e7685d;
  --primary-hover: #d45648;
}

/* Base Body Styles */
body {
    font-family: var(--body-font);
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
    color: #333;
}

/* Desktop - оптимальний розмір */
@media (min-width: 993px) {
    body {
        font-size: 18px;
    }
}

/* Mobile - трохи менший */
@media (max-width: 992px) {
    body {
        font-size: 16px;
        line-height: 1.5;
    }
}

/* Кнопки - глобальні стилі (Inter 14-16px, 500 weight, UPPERCASE) */
/* Всі кнопки з класом btn отримують основний колір */
.btn,
.btn-primary,
.btn-outline-danger,
button.btn,
input[type="submit"].btn,
input[type="button"].btn {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

/* Кнопка видалення - малиновий колір #E7685D */
.btn-danger,
button.btn-danger {
    background-color: #E7685D !important;
    border-color: #E7685D !important;
    color: #ffffff !important;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
button.btn-danger:hover,
button.btn-danger:focus,
button.btn-danger:active {
    background-color: #d45648 !important;
    border-color: #d45648 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 104, 93, 0.3);
}

/* Mobile - менший розмір кнопок */
@media (max-width: 992px) {
    .btn,
    .btn-danger,
    .btn-primary,
    .btn-outline-danger {
        font-size: 14px;
        padding: 10px 24px;
    }
}

.btn:hover,
.btn:focus,
.btn:active,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger:active,
button.btn:hover,
input[type="submit"].btn:hover,
input[type="button"].btn:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 104, 93, 0.3);
}

/* Маленькі кнопки для таблиць в адмінці */
.btn-sm,
button.btn-sm {
    font-size: 14px !important;
    padding: 6px 12px !important;
    font-weight: 500;
}

/* Headings - сучасна типографіка згідно з трендами 2026 */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: #111;
  margin-bottom: 1rem;
}

/* H1 - Головний заголовок (Hero Typography) */
h1 { 
    font-family: 'Manrope', sans-serif;
    font-size: 64px; 
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

/* H2 - Розділи сторінки */
h2 { 
    font-family: 'Manrope', sans-serif;
    font-size: 48px; 
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

/* H3 - Картки послуг */
h3 { 
    font-family: 'Onest', sans-serif;
    font-size: 28px; 
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* H4 - Підзаголовки */
h4 { 
    font-family: 'Onest', sans-serif;
    font-size: 24px; 
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
}

/* H5 - Акценти */
h5 { 
    font-family: 'Onest', sans-serif;
    font-size: 20px; 
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

/* H6 - Дрібні заголовки (uppercase для акценту) */
h6 { 
    font-family: 'Inter', sans-serif;
    font-size: 16px; 
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

/* Адаптивність заголовків для mobile */
@media (max-width: 992px) {
    h1 { 
        font-size: 48px;
        line-height: 1.15;
    }
    
    h2 { 
        font-size: 36px;
        line-height: 1.25;
    }
    
    h3 { 
        font-size: 24px;
    }
    
    h4 { 
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    h1 { 
        font-size: 40px;
        line-height: 1.2;
    }
    
    h2 { 
        font-size: 32px;
    }
    
    h3 { 
        font-size: 22px;
    }
}

/* Стилі меню — білий текст за замовчуванням (на прозорому фоні) */
.navbar .nav-link {
    color: #ffffff !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: rgba(255,255,255,0.85) !important;
}

/* При скролі — кораловий текст на білому фоні (на ВСІХ сторінках) */
.navbar.scrolled .nav-link {
    color: #e7685d !important;
}

.navbar.scrolled .nav-link:hover {
    color: #d45648 !important;
}

/* Головна — до скролу посилання: білі посилання */
body.home-page #mainHeader .navbar:not(.scrolled) .nav-link {
    color: #ffffff !important;
}
body.home-page #mainHeader .navbar:not(.scrolled) .nav-link:hover {
    color: rgba(255,255,255,0.85) !important;
}

/* Головна — при скролі посилання: коралові */
body.home-page #mainHeader .navbar.scrolled .nav-link {
    color: #e7685d !important;
}
body.home-page #mainHeader .navbar.scrolled .nav-link:hover {
    color: #d45648 !important;
}

/* Paragraphs */
p {
  margin-bottom: 1rem;
  font-family: var(--body-font);
  font-size: inherit;
  line-height: inherit;
}

/* Navigation (Меню / Кнопки - Inter 14-16px 500 weight) */
.navbar-nav .nav-item .nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Desktop - більший розмір меню */
@media (min-width: 993px) {
    .navbar-nav .nav-item .nav-link {
        font-size: 16px;
    }
}

/* Mobile - менший розмір */
@media (max-width: 992px) {
    .navbar-nav .nav-item .nav-link {
        font-size: 14px;
    }
}

nav li {
    font-size: initial;
    font-weight: initial;
    text-transform: initial;
}

/* Breadcrumbs - глобальний стиль для всіх сторінок */
.breadcrumb-section {
    padding: 20px 0;
    margin-top: 0;
}

.breadcrumb-wrapper {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.breadcrumb-item a {
    color: #e7685d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #d45648;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #666;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #999;
    padding: 0 8px;
}

/* Mobile breadcrumbs */
@media (max-width: 576px) {
    .breadcrumb-section {
        padding: 15px 0;
    }

    .breadcrumb-wrapper {
        padding: 12px 15px;
        border-radius: 6px;
    }

    .breadcrumb-item {
        font-size: 13px;
    }
}




/* UI Підписи (12px для дрібних деталей) */
.small-text,
.caption,
.meta-info,
.card-text-small {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: #808080;
}

/* Час публікації, автор, дати */
.post-meta,
.date-label,
time {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #999;
}

/* Blockquote */
blockquote {
  font-family: var(--body-font);
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  padding-left: 20px;
  border-left: 4px solid var(--primary-color);
  margin: 2rem 0;
  line-height: 1.5;
  color: #333;
}
/* --- КІНЕЦЬ СТИЛІВ ШРИФТІВ --- */


/* СТИЛІ ДЛЯ БАНЕРА НА СТОРІНЦІ НОВИН */
.news-hero-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 450px;
    display: flex;
    align-items: center;
    background-repeat: no-repeat;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.news-hero-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.news-hero-banner .container {
    position: relative;
    z-index: 2;
}

.news-hero-banner h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}


/* --- СТИЛІ ДЛЯ ВМІСТУ СТАТТІ З РЕДАКТОРА (article-body) --- */
.article-body p,
.article-body ul,
.article-body ol,
.article-body li,
.article-body blockquote,
.article-body strong,
.article-body em,
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  box-sizing: border-box !important;
  font-family: var(--body-font) !important;
  font-weight: 400 !important;
  font-style: normal !important;
  color: #333 !important;
  font-size: 18px !important;
  line-height: 1.6 !important;
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
  letter-spacing: normal !important;
  text-align: start !important;
  text-indent: 0 !important;
  text-transform: none !important;
  background-color: transparent !important;
  white-space: normal !important;
}

.article-body p {
  margin-top: 0;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  font-family: var(--heading-font) !important;
  color: #111 !important;
  margin-bottom: 1rem !important;
  margin-top: 1.5rem !important;
  letter-spacing: initial !important;
  text-transform: initial !important;
}

.article-body h1 {
  font-size: 64px !important; font-weight: 800 !important; line-height: 1.1 !important; letter-spacing: -0.02em !important;
}
.article-body h2 {
  font-size: 48px !important; font-weight: 700 !important; line-height: 1.2 !important; letter-spacing: -0.01em !important;
}
.article-body h3 {
  font-size: 32px !important; font-weight: 700 !important; line-height: 1.3 !important;
}
.article-body h4 {
  font-size: 24px !important; font-weight: 600 !important; line-height: 1.4 !important;
}
.article-body h5 {
  font-size: 20px !important; font-weight: 600 !important; line-height: 1.4 !important;
}
.article-body h6 {
  font-size: 16px !important; font-weight: 600 !important; line-height: 1.5 !important; letter-spacing: 0.05em !important; text-transform: uppercase !important;
}

.article-body blockquote {
    padding-left: 20px !important;
    border-left: 4px solid var(--primary-color) !important;
    margin: 2rem 0 !important;
    font-style: italic !important;
    font-size: 22px !important;
    line-height: 1.5 !important;
    color: #333 !important;
}

.article-body img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 1rem 0 !important;
    box-sizing: border-box !important;
}

.article-body table {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1rem !important;
    border-collapse: collapse !important;
    box-sizing: border-box !important;
}
.article-body table th,
.article-body table td {
    padding: 0.75rem !important;
    vertical-align: top !important;
    border: 1px solid #dee2e6 !important;
    font-family: var(--body-font) !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: #333 !important;
    box-sizing: border-box !important;
}
.article-body table th {
    font-weight: 600 !important;
    background-color: #f8f9fa !important;
}
/* --- КІНЕЦЬ СТИЛІВ ДЛЯ ВМІСТУ СТАТТІ З РЕДАКТОРА (article-body) --- */

/* --- СТИЛІ ДЛЯ КНОПКИ ПРОКРУЧУВАННЯ ВГОРУ --- */
#scrollToTopBtn {
    display: none; /* Приховано за замовчуванням */
    position: fixed; /* Фіксоване позиціонування */
    bottom: 20px; /* Відступ від низу */
    right: 20px; /* Відступ справа */
    z-index: 1000; /* Перекриття інших елементів */
    width: 50px; /* Ширина кнопки */
    height: 50px; /* Висота кнопки (квадратна) */
    background-color: var(--primary-color); /* Колір Фону вашої студії */
    color: white; /* Колір стрілки */
    border: none; /* Без межі */
    border-radius: 8px; /* Невелике заокруглення кутів */
    cursor: pointer; /* Курсор при наведенні */
    font-size: 24px; /* Розмір стрілки */
    line-height: 50px; /* Центрування стрілки по вертикалі */
    text-align: center; /* Центрування стрілки по горизонталі */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Тінь для кнопки */
    transition: background-color 0.3s, opacity 0.3s; /* Плавний перехід */
    opacity: 0.8;
}

#scrollToTopBtn:hover {
    opacity: 1;
    background-color: #f07e71; /* Трохи світліший колір при наведенні */
}

/* --- КІНЕЦЬ СТИЛІВ ДЛЯ КНОПКИ ПРОКРУЧУВАННЯ ВГОРУ --- */


/* ADDITIONAL GLOBAL STYLES */

/* News/article hero and details container: ensure consistent hero and max width */
.news-hero-banner {
    position: relative;
    height: 600px !important; /* enforce 600px like other pages */
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding-top: 0;
    overflow: hidden;
}

.news-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1;
}

.news-hero-content { position: relative; z-index: 2; text-align: center; padding: 0 20px; max-width: 900px; }
.news-hero-title { font-family: 'Manrope', sans-serif; font-size: 64px; font-weight:700; color:#fff; margin:0; line-height:1.2; text-transform:uppercase; }

@media (max-width: 992px) {
    .news-hero-banner { height: 500px !important; }
    .news-hero-title { font-size: 48px !important; }
}

@media (max-width: 576px) {
    .news-hero-banner { height: 450px !important; }
    .news-hero-title { font-size: 36px !important; }
}

/* Constrain details page content to 1800px */
.details-container { max-width: 1600px !important; margin: 0 auto; padding-left: 15px; padding-right: 15px; }


