@charset "UTF-8";
/* =============================================================================
   Legacy blog styles (blog contexts only: home / archive / single post)
   Combines three CodeKit blocks, ported verbatim (only trailing
   sourceMappingURL / @charset lines stripped — Dart Sass re-emits @charset):

     Section A — block 2480: Divi Blog module layouts (.dm-blog-*)
     Section B — block 2317: WP-PageNavi pagination (.wp-pagenavi)
     Section C — block 2503: Easy TOC container (#ez-toc-container)

   Class names / IDs are load-bearing (live Divi + plugin markup depends on
   them) — do NOT rename. TOC relocation JS lives in js/legacy-toc.js (3328).
   ============================================================================= */
/* =============================================================================
   SECTION A — CodeKit 2480 — Divi Blog module layouts (.dm-blog-*)
   ============================================================================= */
/* BLOG MAIN POST */
/*
Horizontal blog layout
for desktop: grid-based
structure with image on the left
and content stacked on the right
*/
@media (min-width: 981px) {
  .dm-blog-horizontal .et_pb_post {
    display: grid;
    grid-template-columns: 66% 1fr;
    grid-template-rows: auto auto 1fr;
    grid-column-gap: 16px;
    border: none;
  }
  .dm-blog-horizontal .et_pb_post {
    margin-bottom: 0;
  }
  .dm-blog-horizontal .entry-featured-image-url img {
    height: 380px !important;
  }
  .dm-blog-horizontal .entry-featured-image-url {
    grid-column: 1;
    grid-row: 1/span 3;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    overflow: hidden;
  }
  .dm-blog-horizontal .entry-featured-image-url img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .dm-blog-horizontal .post-meta {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 16px !important;
    text-transform: uppercase;
  }
  .dm-blog-horizontal .entry-title {
    grid-column: 2;
    grid-row: 2;
    margin: 0 0 12px 0 !important;
    padding: 0;
  }
  .dm-blog-horizontal .post-content {
    grid-column: 2;
    grid-row: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    height: 100%;
  }
  .dm-blog-horizontal .post-content p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 20px;
  }
  .dm-blog-horizontal .more-link {
    display: inline-flex;
    margin: 0 !important;
    background-color: #0D1317;
    padding: 15px 24px;
    gap: 8px;
    transition: all 0.3s ease;
    width: fit-content;
    line-height: 1em;
  }
}
@media (max-width: 980px) {
  .dm-blog-horizontal .et_pb_post {
    display: flex;
    flex-direction: column;
  }
  .dm-blog-horizontal .entry-featured-image-url {
    order: 1;
  }
  .dm-blog-horizontal .post-meta {
    order: 2;
  }
  .dm-blog-horizontal .entry-title {
    order: 3;
  }
  .dm-blog-horizontal .entry-title a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dm-blog-horizontal .post-content {
    order: 4;
  }
  .dm-blog-horizontal .post-content p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 24px;
  }
  .dm-blog-horizontal .more-link {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #0D1317;
    padding: 15px 24px;
    gap: 8px;
    line-height: 1em;
  }
}
/* BLOG LIST (9) */
/*
Blog card layout styling: fixed height,
ordered elements, hidden excerpt,
and bottom-aligned CTA button
*/
.dm-blog-list .et_pb_post {
  min-height: 450px !important;
  display: flex;
  flex-direction: column;
  border: none;
  padding: 0 !important;
  background: transparent;
  position: relative;
}

.column.size-1of3 {
  margin-right: 16px !important;
  width: calc((100% - 32px) / 3) !important;
}

.column.size-1of3:nth-child(3n) {
  margin-right: 0 !important;
}

.column.size-1of2 {
  margin-right: 16px !important;
  width: calc((100% - 16px) / 2) !important;
}

.column.size-1of2:nth-child(2n) {
  margin-right: 0 !important;
}

.dm-blog-list .column article {
  margin-bottom: 40px !important;
}

.dm-blog-list .column article:last-child {
  margin-bottom: 0 !important;
}

.dm-blog-list .et_pb_image_container {
  order: 1;
  margin: 0 0 16px 0 !important;
  width: 100%;
  line-height: 0;
  padding: 0;
  height: 280px;
}

.dm-blog-list .entry-featured-image-url img {
  width: 100%;
  height: 280px;
}

.dm-blog-list .post-meta {
  order: 2;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  width: 100%;
  line-height: 1;
}

.dm-blog-list .entry-title {
  order: 3;
  padding: 0 !important;
  width: 100%;
  max-width: 100% !important;
  clear: none !important;
  flex-grow: 1;
}

.dm-blog-list .entry-title a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 4.2em;
}

.dm-blog-list .post-content {
  order: 4;
  padding: 0 !important;
  width: 100%;
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding-top: 32px !important;
}

.dm-blog-list .post-content p {
  display: none !important;
}

.dm-blog-list .more-link {
  display: inline-flex;
  margin: 0 !important;
  background-color: #0D1317;
  padding: 15px 24px;
  gap: 8px;
  transition: all 0.3s ease;
  width: fit-content;
  line-height: 1em;
}

.dm-blog-list .more-link:hover {
  opacity: 0.9;
  text-decoration: none;
}

@media (max-width: 980px) {
  .dm-blog-list .column.size-1of3 {
    width: calc((100% - 16px) / 2) !important;
    margin-right: 16px !important;
  }
  .dm-blog-list .column.size-1of3:nth-child(3n) {
    margin-right: 16px !important;
  }
  .dm-blog-list .column.size-1of3:nth-child(2n) {
    margin-right: 0 !important;
  }
  .dm-blog-list .more-link {
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .dm-blog-list .column.size-1of3, .dm-blog-list .column.size-1of2 {
    width: calc((100% - 16px) / 2) !important;
    margin-right: 16px !important;
  }
  .dm-blog-list .column.size-1of3:nth-child(2n), .dm-blog-list .column.size-1of2:nth-child(2n) {
    margin-right: 0 !important;
  }
}
/* Blog Post Page */
/*
Blog card layout with fixed height,
ordered elements, controlled spacing,
and reserved space for bottom-aligned CTA
*/
.dm-blog-on-blog-page .et_pb_post {
  min-height: 450px !important;
  display: flex;
  flex-direction: column;
  border: none;
  background: transparent;
  margin-bottom: 30px;
  position: relative !important;
  padding: 0 0 60px 0 !important;
  box-sizing: border-box;
}

.dm-blog-on-blog-page .et_pb_image_container {
  order: 1;
  margin: 0 !important;
  width: 100%;
  line-height: 0;
  flex-shrink: 0;
}

.dm-blog-on-blog-page .entry-featured-image-url img {
  width: 100%;
}

.dm-blog-on-blog-page .post-meta {
  order: 2;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  width: 100%;
  line-height: 1;
  flex-shrink: 0;
}

.dm-blog-on-blog-page .entry-title {
  order: 3;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  max-width: 100% !important;
  clear: none !important;
}

.dm-blog-on-blog-page .post-content {
  order: 4;
  padding: 0 !important;
  width: 100%;
  margin: 0 !important;
}

.dm-blog-on-blog-page .entry-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-blog-on-blog-page .more-link {
  position: absolute;
  bottom: 0;
  left: 0;
  display: inline-flex;
  margin: 0 !important;
  background-color: #0D1317;
  padding: 15px 24px;
  gap: 8px;
  transition: all 0.3s ease;
  line-height: 1em;
}

@media (max-width: 980px) {
  /* Робимо 1 колонку */
  /* Кнопка на всю ширину з текстом по центру */
  .dm-blog-on-blog-page .column, .dm-blog-on-blog-page .column.size-1of3, .dm-blog-on-blog-page .column.size-1of2 {
    width: 100% !important;
    margin-right: 0 !important;
  }
  .dm-blog-on-blog-page .et_pb_post {
    min-height: auto !important;
  }
  .dm-blog-on-blog-page .more-link {
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
  }
}
/* =============================================================================
   SECTION B — CodeKit 2317 — WP-PageNavi pagination (.wp-pagenavi)
   ============================================================================= */
.wp-pagenavi {
  width: 100% !important;
  display: flex !important;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  /*margin-top: 40px !important;*/
  padding-top: 64px !important;
  clear: both !important;
  position: relative !important;
  border: none !important;
}

.wp-pagenavi a, .wp-pagenavi span {
  display: flex !important;
  justify-content: center;
  align-items: center;
  width: 48px !important;
  height: 48px !important;
  background-color: transparent;
  color: #0D1317 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-sizing: border-box;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.wp-pagenavi span.current {
  background-color: #1A516C !important;
  border: 1px solid #1A516C !important;
  color: #FFFFFF !important;
}

.wp-pagenavi .previouspostslink, .wp-pagenavi .nextpostslink {
  border: 1px solid #0D1317 !important;
  font-size: 0 !important;
  color: transparent !important;
  background-repeat: no-repeat;
  background-position: center;
}

.wp-pagenavi .previouspostslink {
  background-image: url("data:image/svg+xml,%3Csvg width='15' height='14' viewBox='0 0 15 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='1'%3E%3Cpath d='M13.1973 6.91602L2.19727 6.91601' stroke='%230D1317' stroke-width='2' stroke-linecap='square' stroke-linejoin='round'/%3E%3Cpath d='M6.91406 12.4141L1.41406 6.91406L6.91406 1.41406' stroke='%230D1317' stroke-width='2' stroke-linecap='square'/%3E%3C/g%3E%3C/svg%3E");
}

.wp-pagenavi .nextpostslink {
  background-image: url("data:image/svg+xml,%3Csvg width='15' height='14' viewBox='0 0 15 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='1'%3E%3Cpath d='M1 6.91211L12 6.91211' stroke='%230D1317' stroke-width='2' stroke-linecap='square' stroke-linejoin='round'/%3E%3Cpath d='M7.2832 1.41406L12.7832 6.91406L7.2832 12.4141' stroke='%230D1317' stroke-width='2' stroke-linecap='square'/%3E%3C/g%3E%3C/svg%3E");
}

.wp-pagenavi a:hover {
  background-color: transparent !important;
}

.wp-pagenavi:not(:has(.previouspostslink))::before {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  border: 1px solid #0D1317;
  order: -1;
  background-image: url("data:image/svg+xml,%3Csvg width='15' height='14' viewBox='0 0 15 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='1'%3E%3Cpath d='M13.1973 6.91602L2.19727 6.91601' stroke='%230D1317' stroke-width='2' stroke-linecap='square' stroke-linejoin='round'/%3E%3Cpath d='M6.91406 12.4141L1.41406 6.91406L6.91406 1.41406' stroke='%230D1317' stroke-width='2' stroke-linecap='square'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  box-sizing: border-box;
  cursor: default;
}

.wp-pagenavi:not(:has(.nextpostslink))::after {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  border: 1px solid #0D1317;
  order: 99;
  background-image: url("data:image/svg+xml,%3Csvg width='15' height='14' viewBox='0 0 15 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='1'%3E%3Cpath d='M1 6.91211L12 6.91211' stroke='%230D1317' stroke-width='2' stroke-linecap='square' stroke-linejoin='round'/%3E%3Cpath d='M7.2832 1.41406L12.7832 6.91406L7.2832 12.4141' stroke='%230D1317' stroke-width='2' stroke-linecap='square'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  box-sizing: border-box;
  cursor: default;
}

.wp-pagenavi .pages {
  display: none !important;
}

/* =============================================================================
   SECTION C — CodeKit 2503 — Easy TOC container (#ez-toc-container)
   ============================================================================= */
/* --- 1. Основний контейнер --- */
#ez-toc-container {
  background: #F7F8F9 !important;
  padding: 24px !important;
  border: none !important;
  box-shadow: none !important;
  width: 100% !important;
}

/* --- 2. Заголовок "TABLE OF CONTENT" --- */
#ez-toc-container .ez-toc-title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px !important;
  border-bottom: none !important;
  padding: 0 !important;
}

#ez-toc-container .ez-toc-title {
  font-family: inherit;
  font-size: 14px !important;
  line-height: 1.7em !important;
  text-transform: uppercase;
  color: #1A516C !important;
  font-weight: 600 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#ez-toc-container .ez-toc-title-toggle {
  display: none !important;
}

/* --- 3. RESET LIST --- */
#ez-toc-container nav ul, #ez-toc-container ul.ez-toc-list, #ez-toc-container li {
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  text-indent: 0 !important;
}

#ez-toc-container ul.ez-toc-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#ez-toc-container li::before {
  display: none !important;
}

span.ez-toc-icon-toggle-span {
  display: none !important;
}

/* !!! ТУТ ЗМІНИ !!! */
/* --- 4. Посилання (Контейнер рядка) --- */
#ez-toc-container a.ez-toc-link {
  display: flex !important;
  align-items: flex-start !important;
  /* Вирівнюємо строго по верху */
  padding: 0 !important;
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.5em !important;
  /* Висота рядка ~24px */
  color: #0D1317 !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: color 0.2s ease-in-out;
  position: relative;
  /* Для стабільності */
}

/* --- 5. Стрілка (SVG) --- */
#ez-toc-container a.ez-toc-link::before {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg width='15' height='14' viewBox='0 0 15 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.9'%3E%3Cpath d='M1 6.91211L12 6.91211' stroke='%230D1317' stroke-width='2' stroke-linecap='square' stroke-linejoin='round'/%3E%3Cpath d='M7.2832 1.41406L12.7832 6.91406L7.2832 12.4141' stroke='%230D1317' stroke-width='2' stroke-linecap='square'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  /* Розміри самої картинки */
  height: 14px !important;
  /* FIX: Забороняємо стискання стрілки, якщо текст довгий */
  flex-shrink: 0 !important;
  /* Стан "Спокою" */
  width: 0px;
  margin-right: 0px;
  opacity: 0;
  /* Анімація */
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  /* Оптичне центрування відносно першого рядка тексту */
  /* (Line-height 24px - Arrow 14px) / 2 = 5px */
  margin-top: 5px !important;
}

/* --- 6. Ховер Ефекти --- */
#ez-toc-container a.ez-toc-link:hover {
  font-weight: 600 !important;
  color: #0D1317 !important;
}

#ez-toc-container a.ez-toc-link:hover::before {
  opacity: 1;
  transform: translateX(0);
  width: 15px;
  /* Повна ширина стрілки */
  margin-right: 8px;
  /* Відступ від стрілки до тексту */
}