/* ==============================================
   БЛОГ: СТИЛИ КАРТОЧКИ (нативный архив)
   ============================================== */

/* ----- 1. КАРТОЧКА ----- */
#archive-container .loop-entry {
    background: var(--global-palette15, #EAECE9);
    border-radius: 0 !important;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#archive-container .loop-entry:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

#archive-container .entry-content-wrap {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ----- 2. ИЗОБРАЖЕНИЕ (анимация + object-fit) ----- */
#archive-container .post-thumbnail {
    overflow: hidden;
    margin: 0;
    flex-shrink: 0;
}

#archive-container .post-thumbnail .post-thumbnail-inner {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%; /* 2:3 */
    overflow: hidden;
}

#archive-container .post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

#archive-container .loop-entry:hover .post-thumbnail img {
    transform: scale(1.06);
}


/* ==============================================
   ЗАГОЛОВОК
   ============================================== */

.entry-title,
.ddd-post-title {
    margin: 0.5em 0 0.3em 0 !important;
    font-weight: 600;
    line-height: 1.3;
}

.entry-title a,  .ddd-post-title a {   
    color: var(--global-palette3, #052f44);
    text-decoration: none!important;
    font-weight: 600!important;
    text-transform: uppercase;
}

.entry-title a:hover, .ddd-post-title a:hover {
    color: var(--global-palette14,#3BAD0C) !important;
    text-decoration: none;
}


/* ==============================================
   ЗАГОЛОВОК (доп. стили для нативного блога)
   ============================================== */

#archive-container .entry-header {
    margin: 0;
}

 

#archive-container .entry-title a {
    transition: color 0.2s ease;
}

.entry-title a  {   
    color: var(--global-palette3, #052f44);
}

/* ==============================================
   АНОНС
   ============================================== */

.entry-summary,
.ddd-post-excerpt {
    line-height: 1.3;
    color: var(--global-palette3, #052f44) !important;
    margin: 0.5em 0 1em 0;
}

.entry-summary p,
.ddd-post-excerpt p {
    margin: 0;
}


/* ==============================================
   АНОНС (доп. стили для нативного блога)
   ============================================== */

#archive-container .entry-summary {
    flex: 1;
}


/* ==============================================
   КНОПКА "ЧИТАТИ ДАЛІ"
   ============================================== */

.more-link-wrap {
    margin: 0;
    padding-top: 0.6em;
}

.post-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    color: var(--global-palette4, #094C72) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
}

.post-more-link .kadence-svg-iconset {
    transition: transform 0.3s ease;
}

.post-more-link:hover .kadence-svg-iconset {
    transform: translateX(0.25em);
}


/* ==============================================
   КНОПКА "ЧИТАТИ ДАЛІ" (доп. стили для нативного блога)
   ============================================== */

#archive-container .entry-footer,
#archive-container .entry-actions {
    margin: 0;
    padding: 0;
}

#archive-container .post-more-link {
    transition: color 0.3s ease, gap 0.3s ease;
}

#archive-container .post-more-link:hover {
    color: var(--global-palette2, #4abc1a);
    gap: 0.75em;
}


/* ==============================================
   СКРЫВАЕМ ЛИШНЕЕ
   ============================================== */

#archive-container .entry-taxonomies {
    display: none;
}

#archive-container .entry-meta {
    display: none;
}


/* ==============================================
   АДАПТИВНЫЕ РАЗМЕРЫ (через em и медиа-запросы)
   ============================================== */

/* ----- ЗАГОЛОВОК ----- */
.entry-title, .ddd-post-title {    font-size: 18px; }

/* Планшет */
@media (min-width: 768px) and (max-width: 1024px) {
.entry-title, .ddd-post-title {    font-size: 20px; }
}

/* Мобилка */
@media (max-width: 767px) {
.entry-title, .ddd-post-title {    font-size: 22px; }
}

/* ----- АНОНС ----- */
.entry-summary,
.ddd-post-excerpt {
    font-size: 0.95em;
}

/* Планшет */
@media (min-width: 768px) and (max-width: 1024px) {
    .entry-summary,
    .ddd-post-excerpt {
        font-size: 0.9em;
    }
}

/* Мобилка */
@media (max-width: 767px) {
    .entry-summary,
    .ddd-post-excerpt {
        font-size: 0.85em;
    }
}

/* ==============================================
   КАРУСЕЛЬ ПОХОЖИХ ЗАПИСЕЙ (Kadence Splide)
   ============================================== */


 .entry-related-inner-content  {
    padding:0!important;
  }



/* ----- 1. КАРТОЧКА ----- */
.splide__slide .loop-entry {
    background: var(--global-palette8, #F1F3F8);
    border-radius: 0 !important;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.splide__slide .loop-entry:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.splide__slide .entry-content-wrap {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}


/* ==============================================
   ИЗОБРАЖЕНИЕ: обесцвечивание + оттенок palette5
   ============================================== */

.splide__slide .post-thumbnail {
    position: relative;
    overflow: hidden;
}

.splide__slide .post-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--global-palette5, #3d5e81);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

.splide__slide .post-thumbnail img {
    filter: saturate(0.3) brightness(0.9);
    transition: filter 0.5s ease;
}

.splide__slide .loop-entry:hover .post-thumbnail::after {
    opacity: 0.8;
}

.splide__slide .loop-entry:hover .post-thumbnail img {
    filter: saturate(1) brightness(1);
}


/* ----- 2. ИЗОБРАЖЕНИЕ ----- */
.splide__slide .post-thumbnail {
    overflow: hidden;
    margin: 0;
    flex-shrink: 0;
}

.splide__slide .post-thumbnail .post-thumbnail-inner {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%;
    overflow: hidden;
}

.splide__slide .post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.splide__slide .loop-entry:hover .post-thumbnail img {
    transform: scale(1.06);
}

/* ----- 3. ЗАГОЛОВОК (если <h3> или <div>) ----- */
.splide__slide .entry-header {
    margin: 0;
}

.splide__slide .entry-title {
    margin: 0.5rem 0 0.3rem 0 !important;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-weight: 700;
    line-height: 1.3;
}

.splide__slide .entry-title a {
    color: var(--global-palette4, #094C72);
    text-decoration: none;
    transition: color 0.2s ease;
}

.splide__slide .entry-title a:hover {
    color: var(--global-palette3, #052f44);
    text-decoration: none;
}

/* ----- 4. АНОНС ----- */
.splide__slide .entry-summary {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    line-height: 1.5;
    color: var(--global-palette3, #052f44);
    margin: 0.5rem 0 1rem 0;
    flex: 1;
}

.splide__slide .entry-summary p {
    margin: 0;
}

/* ----- 5. КНОПКА ----- */
.splide__slide .entry-footer {
    margin: 0;
    padding: 0;
}

.splide__slide .entry-actions {
    margin: 0;
}

.splide__slide .more-link-wrap {
    margin: 0;
    padding-top: 10px;
}

.splide__slide .post-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--global-palette4, #094C72);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease, gap 0.3s ease;
}

.splide__slide .post-more-link .kadence-svg-iconset {
    transition: transform 0.3s ease;
}

.splide__slide .post-more-link:hover {
    color: var(--global-palette2, #4abc1a);
    gap: 12px;
}

.splide__slide .post-more-link:hover .kadence-svg-iconset {
    transform: translateX(4px);
}

/* ==============================================
   СТРЕЛКИ КАРУСЕЛИ 
   ============================================== */

.splide .splide__arrow {
    background: var(--global-palette14, #3BAD0C) !important;
    color: #ffffff !important;
    transition: background 0.3s ease;
}

.splide .splide__arrow:hover {
    background: var(--global-palette10, #ff4500) !important;
}

.splide .splide__arrow svg {
    fill: #ffffff !important;
}

 



/* ----- 6. СКРЫВАЕМ ЛИШНЕЕ ----- */
.splide__slide .entry-taxonomies {
    display: none;
}

.splide__slide .entry-meta {
    display: none;
}