/*
Theme Name: In the Ring of Fire
Theme URI: https://example.com
Author: Yarek Web
Description: Custom documentary theme. No builders. ACF based.
Version: 1.0
Text Domain: ringoffire
*/

:root {
  --black: #111111;
  --red: #a81419;
  --white: #ffffff;
  --gray: #2b2b2b;
  --light-gray: #f3f3f3;
}

/* Reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  /*font-family: Arial, Helvetica, sans-serif; */
  color: var(--gray);
  line-height: 1.6;
  background-color: #f2f2f2; /* світло-сірий як у проєкті */
}

/* Основний шрифт сайту для ВСІХ мов і екранів */
body {
    font-family: 'Inter', Arial, sans-serif;
}



/* =========================
   TYPOGRAPHY SYSTEM
   ========================= */

/* Базовий текст — Inter */
body {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 400;
}

/* Заголовки — Inter Tight */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-weight: 900;
}




/* Header */
.site-header {
  background: var(--black);
  color: var(--white);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
}

/* CTA Button */
.header-cta {
  background: var(--red);
  color: var(--white);
  padding: 10px 18px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
}

/* =========================
   HERO — VISUAL TUNING
   ========================= */

.hero {
    position: relative;
     overflow: hidden;
    min-height: 640px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -2px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 2;
}


/* Світліший, кінематографічний overlay */
/* Hero overlay — підвищення контрасту для читабельності */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.75)
    );
    z-index: 1;
}

/* Контент по центру */
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
    margin-top: 60px;
    
}

/* Заголовок як у макеті */
.hero-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    text-transform: uppercase;
    color: #c4161c; /* червоний як у макеті */
    line-height: 1.15;
    margin-bottom: 20px;
     position: relative;
    padding-bottom: 18px;
      text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}


.hero-title::after {
    content: "";
    display: block;
    width: 160px;
    height: 3px;
    background-color: #c4161c;
    margin: 16px auto 0;
}


/* Підзаголовок */
.hero-subtitle {
    font-size: 18px;
    color: #e0e0e0;
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* CTA кнопка */
.hero-btn {
    display: inline-block;
    background-color: #c4161c;
    color: #ffffff;
    padding: 14px 34px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.25s ease;
    margin-top: 24px;
}

/* Hover */
.hero-btn:hover {
    background-color: #a81217;
    transform: translateY(-2px);
}

/* =========================
   HERO — RESPONSIVE
   ========================= */

@media (max-width: 1024px) {
    .hero {
        min-height: 520px;
    }

    .hero-title {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 460px;
        padding: 40px 0;
    }

    .hero-inner {
        margin-top: 0;
        padding: 0 16px;
    }

    .hero-title {
        font-size: 36px;
        line-height: 1.2;
    }
    
    
    /* =========================
   CONTENT BACKGROUND
   ========================= */



/* Мобільний */
@media (max-width: 768px) {
    .layout {
        padding-top: 40px;
        padding-bottom: 60px;
        margin-bottom: 60px;
    }
}



    .hero-title::after {
        width: 100px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .hero-btn {
        padding: 12px 28px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 420px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-btn {
        width: 100%;
        max-width: 260px;
    }
}



@media (max-width: 1024px) {
    .layout {
        flex-wrap: wrap;
    }

    .content,
    .sidebar {
        width: 100%;
    }

    .sidebar {
        margin-top: 40px;
    }
}



.content {
  font-size: 16px;
}

.sidebar .widget {
  margin-bottom: 40px;
}

.widget-title {
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ===== SINGLE POST ===== */

.post-title {
  font-size: 32px;
  margin-bottom: 12px;
}

.post-meta {
  font-size: 13px;
  color: #777;
  margin-bottom: 24px;
}

.post-content {
  line-height: 1.8;
}

/* ===== HEADER MENU ===== */

.main-nav ul li {
  position: relative;
}

.main-nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #111;
  padding: 12px 0;
  min-width: 220px;
  z-index: 1000;
}

.main-nav ul li:hover > ul {
  display: block;
}

.main-nav ul li ul li {
  padding: 0;
}

.main-nav ul li ul a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: #fff;
  text-transform: none;
}

.main-nav ul li ul a:hover {
  background: #222;
}


/* Active menu item */
.main-nav .current-menu-item > a,
.main-nav .current-menu-parent > a {
  color: var(--red);
}

.site-header {
  border-bottom: 1px solid #222;
}

/* ===== LANGUAGE SWITCHER ===== */

.lang-switcher {
  margin-left: 24px;
  display: flex;
  align-items: center;
}

.lang-switcher ul {
  list-style: none !important;
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.lang-switcher li {
  list-style: none !important;
  margin: 0;
  padding: 5px;
  opacity: 0.5;
}

.lang-switcher li.current-lang {
  opacity: 1;
}

.lang-switcher img {
  width: 20px;
  height: auto;
  display: block;
}



.main-nav a {
  color: #fff;
}

.main-nav .current-menu-item > a,
.main-nav .current-menu-parent > a,
.main-nav .current_page_item > a,
.main-nav .current_page_parent > a,
.main-nav .current-menu-ancestor > a {
  color: var(--red) !important;
}

/* CTA only for top-level menu item */
.main-nav > ul > li:last-child > a {
  background: var(--red);
  padding: 10px 18px;
  font-size: 13px;
  text-transform: uppercase;
}

.main-nav > ul > li:last-child > a:hover {
  opacity: 0.9;
}




/* Планшет і мобільний — колонки стають одна під одною */
@media (max-width: 1024px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        margin-top: 40px;
    }
}





/* ===== FORCE SIDEBAR VISIBILITY ON PAGES ===== */

/* Десктоп: контент + сайдбар */
.page .layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.page .sidebar {
    display: block;
    width: 100%;
}

/* Планшет і мобільний: сайдбар під контентом */
@media (max-width: 1024px) {
    .page .layout {
        grid-template-columns: 1fr;
    }

    .page .sidebar {
        display: block;
        margin-top: 40px;
    }
}

/* ===== FINAL LAYOUT FIX ===== */

.layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    column-gap: 40px;
}

/* Sidebar завжди праворуч */
.sidebar {
    justify-self: stretch;
}

/* Мобільні — одна колонка */
@media (max-width: 1024px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        margin-top: 40px;
    }
}

/* ===== RESET SIDEBAR SPACING ===== */

.sidebar * {
    box-sizing: border-box;
}

.sidebar {
    padding: 0;
    margin: 0;
}

.sidebar .widget {
    margin-bottom: 30px;
}

/* ===== BURGER MENU ===== */

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.burger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #ffffff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile */
@media (max-width: 768px) {
    .burger {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #000;
        padding: 20px 0;
        z-index: 999;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}






/* ===== MOBILE WIDTH FIX ===== */

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.site-header,
.header-inner,
.layout {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }
}

/* ===== DESKTOP HEADER RESET ===== */

@media (min-width: 769px) {
    .main-nav {
        position: static;
        display: block;
        width: auto;
        background: transparent;
        padding: 0;
    }

    .main-nav ul {
        display: flex;
        flex-direction: row;
        gap: 24px;
    }
}




.burger {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 99999 !important;
}

@media (min-width: 769px) {
    .header-inner {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .main-nav {
        width: auto !important;
    }
}



/* === ABSOLUTE MENU ANCHOR FIX === */

.site-header {
    position: relative !important;
}

/* ===== MOBILE MENU OVERLAY ===== */

.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 900;
}

/* коли меню відкрите */
.menu-open .menu-overlay {
    display: block;
}

/* ===== LOCK SCROLL WHEN MENU OPEN ===== */

.menu-open {
    overflow: hidden;
}

/* =========================
   LANGUAGE SWITCHER — MOBILE
   ========================= */

/* Desktop — як було */
@media (min-width: 769px) {
    .lang-switcher {
        display: flex;
        align-items: center;
    }
}

/* Mobile — всередині меню */
@media (max-width: 768px) {

    /* Ховаємо мовний блок у хедері */
    .site-header > .lang-switcher,
    .header-inner > .lang-switcher {
        display: none;
    }

    /* Показуємо його в меню */
    .main-nav .lang-switcher {
        display: block;
        margin-top: 24px;
    }

    .main-nav .lang-switcher ul {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .main-nav .lang-switcher {
        border-top: 1px solid #333;
        padding-top: 16px;
    }
}

/* ===== DESKTOP NAV ALIGN FIX ===== */

@media (min-width: 769px) {

    .main-nav {
        display: flex;
        align-items: center;
        gap: 24px;
    }

    .main-nav > ul {
        display: flex;
        align-items: center;
        gap: 24px;
    }

    .main-nav .lang-switcher {
        margin-left: 16px;
        display: flex;
        align-items: center;
    }
}

/* =========================
   FOOTER — PROJECT STYLE
   ========================= */

.site-footer {
    background: var(--red); /* ключовий момент */
    color: #ffffff;
    padding: 80px 20px 30px;
    font-size: 15px;
    line-height: 1.7;
    border-top: var(--black) solid 6px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}

/* Заголовки */
.footer-col h4 {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Текст */
.footer-col p {
    margin: 0 0 14px;
    max-width: 420px;
    color: rgba(255,255,255,0.9);
}

/* Посилання */
.footer-col a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-col a:hover {
    opacity: 0.8;
}

/* Footer menu */
.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

/* Кнопка підтримки — інверсія */
.footer-support {
    display: inline-block;
    margin-top: 16px;
    background: #ffffff;
    color: var(--red);
    padding: 10px 22px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
    
 .footer-support,
 .footer-support:hover {
     
     color: var(--red) !important;
     
 }



/* Мови */
.footer-lang ul {
    display: flex;
    gap: 14px;
}

.footer-lang img {
    filter: none;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.footer-lang img:hover {
    opacity: 1;
}

/* Нижня лінія */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.25);
    margin-top: 60px;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}

/* Mobile */
@media (max-width: 768px) {
    .site-footer {
        padding: 60px 20px 20px;
        text-align: center;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-col p {
        max-width: none;
    }

    .footer-lang ul {
        justify-content: center;
    }
}


/* ===== FOOTER QUOTE ===== */

.footer-quote {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
}

.footer-quote blockquote {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin: 0;
}





/* ===============================
   FOOTER SOCIAL LINKS
   Facebook + YouTube
   =============================== */

/* Контейнер соціальних кнопок */
.footer-socials {
    display: flex;          /* Розташовуємо кнопки в ряд */
    gap: 20px;              /* Відступ між іконками */
    align-items: center;    /* Вертикальне вирівнювання */
}

/* Загальні стилі для посилань */
.footer-socials a {
    display: inline-flex;   /* Дає контроль над іконкою */
    align-items: center;
    color: #ffffff;         /* Білий колір іконок */
    text-decoration: none;
}

/* Прихований текст для доступності (screen readers) */
.footer-socials .sr-only {
    position: absolute;
    left: -9999px;
}

/* ===============================
   FACEBOOK ICON
   =============================== */
.footer-socials a[href*="facebook"]::before {
    content: "";
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M22 12a10 10 0 1 0-11.5 9.9v-7h-2v-3h2V9.5c0-2 1.2-3.1 3-3.1.9 0 1.8.1 1.8.1v2h-1c-1 0-1.3.6-1.3 1.2V12h2.3l-.4 3h-1.9v7A10 10 0 0 0 22 12z'/%3E%3C/svg%3E")
        no-repeat center;
    background-size: contain;
}

/* ===============================
   YOUTUBE ICON
   =============================== */
.footer-socials a[href*="youtube"]::before {
    content: "";
    width: 22px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M23.5 6.2s-.2-1.7-.9-2.4c-.8-.9-1.7-.9-2.1-1C17.7 2.5 12 2.5 12 2.5s-5.7 0-8.5.3c-.4.1-1.3.1-2.1 1-.7.7-.9 2.4-.9 2.4S0 8.1 0 10v1.9c0 1.9.2 3.8.2 3.8s.2 1.7.9 2.4c.8.9 1.9.9 2.4 1 1.7.2 7.5.3 8.5.3s5.7 0 8.5-.3c.4-.1 1.3-.1 2.1-1 .7-.7.9-2.4.9-2.4s.2-1.9.2-3.8V10c0-1.9-.2-3.8-.2-3.8zM9.6 14.6V7.4l6.4 3.6-6.4 3.6z'/%3E%3C/svg%3E")
        no-repeat center;
    background-size: contain;
}





/* =========================
   HERO → CONTENT SPACING
   ========================= */

/* Відступ після Hero */
.hero + .layout,
.hero + .content,
.hero + main {
    margin-top: 80px;
}

/* Мобільний — менше */
@media (max-width: 768px) {
    .hero + .layout,
    .hero + .content,
    .hero + main {
        margin-top: 48px;
    }
}

/* =========================
   CONTENT TYPOGRAPHY
   ========================= */

.content {
    max-width: 760px;          /* ключове: читабельна ширина */
    margin: 0 auto;
}

/* Заголовки */
.content h1 {
    font-size: 36px;
    line-height: 1.25;
    margin: 0 0 32px;
}

.content h2 {
    font-size: 26px;
    margin: 48px 0 20px;
}

.content h3 {
    font-size: 20px;
    margin: 36px 0 16px;
}

/* Текст */
.content p {
    font-size: 17px;
    line-height: 1.8;
    margin: 0 0 20px;
}

/* Цитати */
.content blockquote {
    margin: 40px 0;
    padding-left: 24px;
    border-left: 4px solid var(--red);
    font-style: italic;
    color: #555;
}

/* Списки */
.content ul,
.content ol {
    margin: 24px 0 24px 24px;
}

.content li {
    margin-bottom: 10px;
}

/* Мобільний */
@media (max-width: 768px) {
    .content {
        max-width: 100%;
        padding: 0 16px;
    }

    .content h1 {
        font-size: 28px;
    }

    .content h2 {
        font-size: 22px;
    }

    .content p {
        font-size: 16px;
    }
}



/* =========================
   BLOG LIST (ARCHIVE)
   ========================= */

.blog-list {
    max-width: 760px;
    margin: 0 auto;
}

.blog-item {
    margin-bottom: 60px;
}

.blog-item time {
    font-size: 13px;
    color: #777;
    display: block;
    margin-bottom: 8px;
}

.blog-item h2 {
    font-size: 26px;
    margin: 0 0 12px;
}

.blog-item p {
    font-size: 16px;
    color: #444;
}

/* =========================
   FINAL PAGE LAYOUT
   ========================= */

.layout {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
     margin-bottom: 120px;

    background: #ffffff;
    padding: 60px 24px 80px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    column-gap: 40px;
}

/* Планшет і мобільний */
@media (max-width: 1024px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .layout {
        margin-bottom: 80px;
    }
}

/* =========================
   SINGLE POST
   ========================= */

.single-post .content {
    max-width: 720px;        /* трохи вужче, ніж pages */
    margin: 0 auto;
}

/* Дата */
.post-date {
    font-size: 13px;
    color: #777;
    display: block;
    margin-bottom: 12px;
}

/* Заголовок */
.post-title {
    font-size: 38px;
    line-height: 1.2;
    margin: 0 0 40px;
}

/* Текст */
.post-content p {
    font-size: 17px;
    line-height: 1.85;
    margin-bottom: 22px;
}

/* Підзаголовки */
.post-content h2 {
    font-size: 26px;
    margin: 56px 0 20px;
}

.post-content h3 {
    font-size: 21px;
    margin: 40px 0 16px;
}

/* Цитати */
.post-content blockquote {
    margin: 48px 0;
    padding-left: 28px;
    border-left: 4px solid var(--red);
    font-style: italic;
    font-size: 18px;
    color: #444;
}

/* Мобільний */
@media (max-width: 768px) {

    .post-title {
        font-size: 28px;
    }

    .post-content p {
        font-size: 16px;
    }

    .post-content h2 {
        font-size: 22px;
    }
}
Ви надіслали
/* =========================
   SIDEBAR — SINGLE POST
   ========================= */

.single-post .sidebar {
    font-size: 14px;
    color: #555;
}

.single-post .sidebar .widget {
    margin-bottom: 48px;
}

.single-post .sidebar .widget-title {
    font-size: 13px;
    letter-spacing: 0.05em;
}


/* =========================
   FRONT PAGE — NO SIDEBAR
   ========================= */

.home .layout,
.front-page .layout {
    grid-template-columns: 1fr;
}

/* =========================
   SUBFOOTER PANORAMA — FIX
   ========================= */

.subfooter {
    background: #f2f2f2;
}

.subfooter-inner {
    width: 100%;              /* 🔑 ОЦЕ ГОЛОВНЕ */
    margin: 0 auto 0px;

    aspect-ratio: 21 / 6;     /* або 21/7 — можна міняти */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


  


/* Тонкий затемнюючий шар */
.subfooter-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15),
        rgba(0,0,0,0.35)
    );
}

/* Мобільний */
@media (max-width: 768px) {
    .subfooter-inner {
        height: 200px;
        margin-bottom: 0px;
    }
}

.layout,
.subfooter,
footer {
    position: relative;
    z-index: 5;
}

/* =========================
   BLOG ARCHIVE
   ========================= */

.blog .content {
    max-width: 760px;
    margin: 0 auto;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.blog-item time {
    font-size: 13px;
    color: #777;
    display: block;
    margin-bottom: 6px;
}

.blog-item h2 {
    font-size: 28px;
    margin: 0 0 14px;
}

.blog-item h2 a {
    color: #111;
    text-decoration: none;
}

.blog-item h2 a:hover {
    color: var(--red);
}

.blog-item p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

/* Мобільний */
@media (max-width: 768px) {
    .blog-item h2 {
        font-size: 22px;
    }
}

/* =========================
   BLOG THUMBNAILS
   ========================= */

.blog-thumb {
    margin-bottom: 20px;
}

.blog-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================
   BLOG PAGINATION
   ========================= */

.blog-pagination {
    margin-top: 80px;
    text-align: center;
}

.blog-pagination .page-numbers {
    display: inline-block;
    margin: 0 6px;
    padding: 8px 14px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #111;
    font-size: 14px;
}

.blog-pagination .current {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

/* =========================
   FRONT PAGE MODULES
   ========================= */

.front-modules {
    margin: 100px 0;
}

.front-modules-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* Заголовки */
.front-module-title {
    font-size: 24px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

/* Списки */
.front-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.front-list li {
    margin-bottom: 20px;
}

/* Події */
.front-events time {
    font-size: 13px;
    color: #777;
    display: block;
    margin-bottom: 4px;
}

/* Відгуки */
.front-reviews blockquote {
    margin: 0 0 8px;
    font-style: italic;
}

.review-author {
    font-size: 13px;
    color: #555;
}

/* Мобільний */
@media (max-width: 768px) {
    .front-modules-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* =========================
   FRONT PAGE WIDGETS
   ========================= */

.front-widget {
    margin-bottom: 20px;
}

.front-widget-title {
    font-size: 16px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.front-events-widget img {
    width: 100%;
    height: auto;
    margin-bottom: 8px;
}

.front-events-widget a {
    text-decoration: none;
    color: #111;
}

.front-events-widget a:hover {
    color: var(--red);
}

/* =========================
   EVENTS WIDGET — CUSTOM STYLE
   (Recent Posts Widget With Thumbnails)
   ========================= */

.front-events-widget .recent-posts-widget-with-thumbnails {
    list-style: none;
    margin: 0;
    padding: 0;
}

.front-events-widget
.recent-posts-widget-with-thumbnails li {
    display: grid;
    grid-template-columns: 80px 1fr;
    column-gap: 16px;
    align-items: start;

    margin-bottom: 20px;
}

/* Thumbnail */
.front-events-widget .rpwwt-post-thumbnail {
    display: block;
}

.front-events-widget .rpwwt-post-thumbnail img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    display: block;
}

/* Title */
.front-events-widget .rpwwt-post-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 4px;
}

.front-events-widget .rpwwt-post-title:hover {
    color: var(--red);
}

/* Date */
.front-events-widget .rpwwt-post-date {
    font-size: 12px;
    color: #777;
    display: block;
}

/* Mobile */
@media (max-width: 768px) {
    .front-events-widget
    .recent-posts-widget-with-thumbnails li {
        grid-template-columns: 64px 1fr;
    }

    .front-events-widget .rpwwt-post-thumbnail img {
        width: 64px;
        height: 48px;
    }
}

.external-captcha {
  margin: 30px 0;
}

/* ===== REVIEWS LIST ===== */

.reviews-list {
    display: grid;
    gap: 32px;
    margin: 40px 0;
}

.review-item {
    background: #f3f3f3;
    padding: 20px 24px;
    border-left: 5px solid #b11217; /* фірмовий червоний */
}

.review-content {
    font-size: 16px;
    line-height: 1.7;
    color: #2b2b2b;
    margin-bottom: 18px;
}

.review-author {
    font-weight: 750;
    text-align: right;
    color: #111;
    text-transform: uppercase;
    font-size: 11px;
}

/* ===== PAGINATION ===== */

.reviews-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 40px 0;
}

.reviews-pagination a,
.reviews-pagination span {
    padding: 8px 14px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #111;
    font-size: 14px;
}

.reviews-pagination .current {
    background: #b11217;
    color: #fff;
    border-color: #b11217;
}

/* ===== REVIEW FORM ===== */

.review-form {
    background: #f9f9f9;
    padding: 32px;
    margin-top: 60px;
}

.review-form p {
    margin-bottom: 20px;
}

.review-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.review-form input,
.review-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.review-form button {
    background: #b11217;
    color: #fff;
    padding: 14px 32px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
}

.review-form button:hover {
    opacity: 0.9;
}

.review-success {
    background: #e6f4ea;
    border-left: 4px solid #2e7d32;
    padding: 16px 20px;
    margin-top: 20px;
}



.entry-content {
    overflow-wrap: break-word;
}


/* === GLOBAL OVERFLOW FIX === */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* === CLASSIC EDITOR MOBILE FIX (FINAL) === */
@media (max-width: 768px) {

  .content,
  .page .content,
  .page .entry-content {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
    overflow-x: hidden;
  }


}



/* === CLASSIC EDITOR IMAGE NORMALIZED === */

.ce-image {
    margin: 24px auto;
    text-align: center;
    max-width: 100%;
}

.ce-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Обтікання через клас */
.ce-image.alignleft {
    float: left;
    margin: 0 24px 24px 0;
}

.ce-image.alignright {
    float: right;
    margin: 0 0 24px 24px;
}

/* Мобільний */
@media (max-width: 768px) {
    .ce-image.alignleft,
    .ce-image.alignright {
        float: none;
        margin: 24px auto;
    }
}

/* === CLASSIC EDITOR IMAGE NORMALIZED (PAGES + POSTS) === */

.entry-content .ce-image {
    margin: 24px auto;
    text-align: center;
    max-width: 100%;
}

.entry-content .ce-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Обтікання */
.entry-content .ce-image.alignleft {
    float: left;
    margin: 0 24px 24px 0;
}

.entry-content .ce-image.alignright {
    float: right;
    margin: 0 0 24px 24px;
}

/* Мобільний — без обтікання */
@media (max-width: 768px) {
    .entry-content .ce-image.alignleft,
    .entry-content .ce-image.alignright {
        float: none;
        margin: 24px auto;
    }
}

.read-more {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 20px;
    background-color: var(--red);
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.read-more:hover {
    background-color: #a81217;
}

.single-thumb {
    margin: 24px 0 32px;
}

.single-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* === POST GALLERY (DESIGN VERSION) === */

.entry-content .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.entry-content .gallery-item {
    margin: 0 !important;
}

.entry-content .gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

/* Мобільний — крупніше */
@media (max-width: 768px) {
    .entry-content .gallery {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
}

/* === LIGHTBOX === */

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    height: auto;
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
}

.lightbox-overlay::after {
    content: "✕";
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
}

/* === SINGLE POST MOBILE OVERFLOW FIX === */

.single .entry-content,
.single .entry-content * {
    max-width: 100%;
}

.single .entry-content img,
.single .entry-content iframe,
.single .entry-content video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Центруємо медіа */
.single .entry-content img,
.single .entry-content figure {
    margin-left: auto;
    margin-right: auto;
}

/* =========================
   MOBILE BURGER MENU (FINAL)
   ========================= */

/* Burger button */
.burger {
    display: none;
    width: 32px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Burger lines */
.burger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile only */
@media (max-width: 768px) {

    .site-header {
        position: relative;
        z-index: 1000;
    }

    .burger {
        display: block;
        position: relative;
        z-index: 1002;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #111;
        z-index: 1001;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 20px 0;
    }
}

/* Burger animation */
.burger.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
    opacity: 0;
}

.burger.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================
   PAGE / ARCHIVE HEADER
   ========================= */

.page-header {
    max-width: 1200px;
    margin: 40px auto 32px;
    padding: 0 20px;
    text-align: left;
}

.page-header h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    text-transform: uppercase;
    color: #c4161c; /* фірмовий червоний */
    margin: 0;
    position: relative;
    padding-bottom: 14px;
}

.page-header h1::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    background: #c4161c;
    margin-top: 12px;
}

/* =========================
   QUOTES
   ========================= */

.quote {
    border-left: 4px solid #c4161c;
    padding: 20px 24px;
    margin: 32px 0;
    background: #f6f6f6;
}

.quote-text {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 12px;
}

.quote-footer {
    font-size: 14px;
    color: #555;
}

.quote-author {
    display: block;
    font-weight: 700;
    color: #111;
}

.quote-role {
    font-style: italic;
}

.contact-row {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.contact-label {
    font-weight: 600;
    color: #b11217;
    min-width: 160px;
}

.contact-value a {
    color: #111;
    text-decoration: none;
}

.contact-value a:hover {
    text-decoration: underline;
}

.contacts-block p {
    margin-bottom: 10px;
}

.contacts-block strong {
    color: #b11217;
    font-weight: 700;
}

.contact-form {
    margin-top: 50px;
    max-width: 520px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
}

.contact-form button {
    background: #b11217;
    color: #fff;
    border: none;
    padding: 12px 28px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
}

.form-success {
    margin: 20px 0;
    padding: 14px 18px;
    background: #f3f3f3;
    border-left: 4px solid #b11217;
    font-weight: 600;
}

.form-success {
    margin: 20px 0;
    padding: 14px 18px;
    background: #f3f3f3;
    border-left: 4px solid #b11217;
    font-weight: 600;
}

.breadcrumbs {
    max-width: 1200px;
    margin: 20px auto 30px;
    padding: 0 24px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.breadcrumbs a {
    color: #777;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #b11217;
}

.breadcrumbs .sep {
    margin: 0 8px;
    color: #aaa;
}

.breadcrumbs span {
    color: #111;
    font-weight: 600;
}

/* Кореневі пункти меню з підменю — заглушки */
.main-nav .menu-item-has-children > a {
    pointer-events: none;
    cursor: default;
}

/* ===== 404 PAGE ===== */

.error-404 {
    padding: 120px 20px;
    background: #f3f3f3;
    text-align: center;
}

.error-title {
    font-size: 120px;
    font-weight: 900;
    color: var(--red);
    margin-bottom: 20px;
}

.error-text {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 40px;
    color: #333;
}

.error-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--red);
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
}

.error-btn:hover {
    opacity: 0.9;
}


/* === FIX: images inside content never overflow === */

/* Блог + сторінки */
.entry-content img,
.post-content img,
.content img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Центрування для aligncenter */
.entry-content .aligncenter,
.post-content .aligncenter {
    margin-left: auto;
    margin-right: auto;
}

/* === BLOG IMAGE OVERFLOW FIX (FINAL) === */

.single .entry-content,
.blog .content,
.archive .content {
    max-width: 100%;
    overflow-x: hidden;
}

.entry-content img,
.post-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

.entry-content a {
    display: block;
}


/* === ABSOLUTE IMAGE OVERFLOW KILLER === */

/* Будь-яке зображення всередині контенту */
.content img,
.content p img,
.content a img,
.blog-item img,
article img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
}

/* Забороняємо будь-якому контейнеру тягнути ширину */
.content,
article,
.blog-item,
.blog-item * {
    max-width: 100%;
    box-sizing: border-box;
}

/* === DESKTOP CONTENT COLUMN HARD LIMIT === */

/* Обмежуємо ширину текстового контенту */
@media (min-width: 1025px) {

    .layout {
        align-items: flex-start;
    }

    .layout .content {
        max-width: calc(100% - 360px); /* sidebar + gap */
        width: 100%;
        overflow-x: hidden;
    }

}




/* === HARD RESET: CONTENT WIDTH FIX === */

.layout {
    max-width: 1200px !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.layout .content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
}

.entry-content {
    width: 100%;
    max-width: 100%;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}


/* =========================
   LIGHTBOX
   ========================= */

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
}

.lightbox-overlay img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
}

/* =========================
   LIGHTBOX NAV + CAPTION
   ========================= */

.lightbox-caption {
    color: #ddd;
    font-size: 14px;
    margin-top: 12px;
    text-align: center;
    max-width: 90vw;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 42px;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    user-select: none;
    opacity: 0.7;
}

.lightbox-arrow:hover {
    opacity: 1;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ================================
   FIX WP-CAPTION WIDTH LIMIT
   Safe override (can be removed)
   ================================ */

.wp-caption {
    max-width: 100% !important;
    width: auto !important;
}

.wp-caption img {
    width: 100% !important;
    height: auto;
}

/* ================================
   WP-CAPTION SPACING TWEAK
   Optional – purely cosmetic
   ================================ */

.wp-caption {
    margin: 1.5em auto;
}

.wp-caption-text {
    margin-top: 0.5em;
    font-size: 0.9em;
    opacity: 0.85;
}


