/* =========================================================
   Autor: RhythmRhythm | Version: 2.0
   Theme Style: Dark Emerald Gold (Playfair + Georgia)
   ========================================================= */

/* ===== Підключення шрифтів ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

/* ===== Глобальні стилі ===== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Georgia, serif;
  background: linear-gradient(to right, #0a0a0a, #003319 50%, #0a0a0a);
  background-attachment: fixed;
  background-size: cover;
  color: #f5e6c8;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== Базові скидання ===== */
body > .site,
body > #page,
.site,
#page {
  background: transparent !important;
  margin: 0;
  padding: 0;
}

/* ===== Прозорі обгортки ===== */
.site-header, .header-wrap, .site-top-bar,
.main-navigation, .site-footer,
.footer-widgets, .widget,
.inside-article, .entry-content,
.container, #primary, #content,
.gb-container, .gb-inside-container,
.wp-block-group, .wp-block-cover {
  background: transparent !important;
  box-shadow: none !important;
}
/* ===== Текстовий логотип (назва сайту) ===== */
.main-title a {
    color: #e8c36a !important; /* <-- золотистий */
}

/* ===== Контент ===== */
.entry-content, .inside-article, .container,
.site-content, #primary, #content {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  text-align: left;
  box-sizing: border-box;
  padding: 0 32px;
}

.entry-content * {
  text-align: left !important;
}

@media (max-width: 1024px) {
  .entry-content, .inside-article, .container,
  .site-content, #primary, #content {
    padding: 0 24px;
  }
}
@media (max-width: 768px) {
  .entry-content, .inside-article, .container,
  .site-content, #primary, #content {
    padding: 0 18px;
    max-width: 100%;
  }
}

/* ===== Заголовки ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif !important;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1, h2 { color: #e8c36a !important; }
h3, h4, h5, h6 { color: #d4ac47 !important; }

/* ===== Текст ===== */
p, li, span, div {
  color: #f5e6c8 !important;
  font-family: Georgia, serif !important;
}

/* ===== Посилання ===== */
a {
  color: #e8c36a;
  text-decoration: underline;
  transition: color 0.25s ease;
}
a:hover {
  color: #f5e6c8;
}

/* ===== Кнопки ===== */
.wp-block-button__link, .btn {
  background-color: #8b1f1f !important;
  color: #f5e6c8 !important;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  font-family: Georgia, serif;
  transition: all 0.3s ease;
}
.wp-block-button__link:hover, .btn:hover {
  background-color: #a32828 !important;
  color: #fff !important;
  transform: translateY(-2px);
}

/* ===== Меню (живі кнопки, компакт по висоті) ===== */
.main-navigation .main-nav ul li a {
  background: linear-gradient(to bottom, #a12e2e, #711a1a);
  color: #f5e6c8 !important;
  padding: 8px 16px; /* менший вертикальний відступ */
  line-height: 1.2; /* робить текст щільнішим */
  font-family: Georgia, serif;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 10px;
  border: 1.5px solid #e53935;
  font-size: 10px;
  letter-spacing: 1px;
  display: inline-block;
  text-decoration: none;
  margin: 3px;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 3px rgba(255,255,255,0.15),
    0 3px 8px rgba(0,0,0,0.4);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.4s ease;
}

/* Ховер */
.main-navigation .main-nav ul li a:hover {
  background: linear-gradient(to bottom, #b52d2d, #8a1c1c);
  box-shadow:
    0 5px 10px rgba(0,0,0,0.55),
    0 0 6px rgba(229,57,53,0.4);
  transform: translateY(-1px);
}

/* Клік */
.main-navigation .main-nav ul li a:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.6) inset;
}

/* ===== Таблиці ===== */
table {
  width: 100%;
  border-collapse: collapse;
  color: #f5e6c8;
}
table th, table td {
  border: 1px solid #222;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}
table thead th {
  background-color: #0a0a0a;
  color: #e8c36a;
  font-weight: bold;
}
table td {
  background-color: #003319;
}
table tr:nth-child(even) td {
  background-color: #092e1a;
}

/* =========================================================
   CUSTOM FOOTER
   ========================================================= */

.cg-footer {
  background: linear-gradient(to right, #0a0a0a, #003319 50%, #0a0a0a);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.15);
  color: #f5e6c8;
}
.cg-footer .grid-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Колонки */
.cg-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 24px;
}
.cg-col h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #e8c36a;
}
.cg-col ul { list-style: none; margin: 0; padding: 0; }
.cg-col li { margin: 8px 0; }
.cg-col a {
  color: #f5e6c8 !important;
  opacity: 0.9;
  text-decoration: none;
  transition: all 0.25s ease;
}
.cg-col a:hover {
  color: #e8c36a !important;
  opacity: 1;
  text-decoration: underline;
}

/* Контакти */
.cg-contact li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 6px 0;
  color: #f5e6c8;
  opacity: 0.9;
}
.cg-contact a {
  color: #e8c36a;
  text-decoration: none;
}
.cg-contact a:hover {
  color: #f5e6c8;
  text-decoration: underline;
}

/* Соц-кнопки */
.cg-social-btn {
  width: 44px; height: 44px;
  border: 2px solid #e8c36a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e8c36a;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.25s ease;
}
.cg-social-btn:hover {
  background: #e8c36a;
  color: #0a0a0a;
}

/* Нижня смуга футера */
.cg-legal {
  background: linear-gradient(to right, #0a0a0a, #003319 50%, #0a0a0a);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 14px 0;
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 1;
}
.cg-legal .grid-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}
.cg-legal-links a, .cg-copy {
  color: #f5e6c8 !important;
  opacity: 0.9;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.cg-legal-links a:hover {
  color: #e8c36a !important;
  opacity: 1;
  text-decoration: underline;
}
.cg-copy {
  font-size: 14px;
  color: rgba(245,230,200,0.7);
}

/* Адаптивність футера */
@media (max-width: 1024px) {
  .cg-columns { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
  .cg-columns, .cg-badges { grid-template-columns: 1fr; }
}
/* ===== Центрування контенту ===== */
.site-content,
#content,
.container,
#primary,
.entry-content,
.inside-article {
  max-width: 1250px;
  margin-left: auto !important;
  margin-right: auto !important;
  width: auto; /* важливо — не 100%, щоб auto працювало */
  text-align: left !important;
  box-sizing: border-box;
  padding-left: 32px;
  padding-right: 32px;
}

/* адаптив */
@media (max-width: 768px) {
  .site-content,
  #content,
  .container,
  #primary,
  .entry-content,
  .inside-article {
    padding-left: 18px;
    padding-right: 18px;
    width: 100%;
  }
}
/* ===== Кінцеве вирівнювання футера ===== */

/* === УБИРАЄМО ВСІ БІЛІ ПРОМІЖКИ ВНИЗУ === */

/* Фіксуємо фон сторінки */
html, body {
  background: linear-gradient(to right, #0a0a0a, #003319 50%, #0a0a0a) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
}

/* Повна ширина футера */
.cg-footer,
.cg-legal,
.site-footer,
.inside-footer-widgets,
.inside-site-info {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: 0 !important;
  background: linear-gradient(to right, #0a0a0a, #003319 50%, #0a0a0a) !important;
  border: none !important;
  padding: 0 !important;
}

/* Усередині футера нічого не має відступати */
.cg-legal .grid-container,
.cg-footer .grid-container,
.site-footer .grid-container {
  background: transparent !important;
  padding: 10px 0 !important;
  margin: 0 auto !important;
  max-width: 1200px;
  box-sizing: border-box;
}

/* Прибираємо можливі “вставки” теми */
.generatepress .site-info,
.site-info {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Контейнер із копірайтом */
.cg-copy {
  margin: 0 !important;
  padding: 6px 0 !important;
}

/* Гарантовано прибирає нижню білу лінію */
body > div:last-child {
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}
