
/* 
   ЗМІННІ 
   --dm-primary: #5a7a45 (Шавлія)
   --dm-secondary: #f5f0e8 (Пісок)
   --dm-accent: #7ab8c4 (Теракота)
*/

/* =========================================
   ЧАСТИНА 1: СТИЛІ ПЛАГІНА (AIP CORE)
   ========================================= */

/* --- 1. КОНТЕЙНЕРИ ТА КАРТКИ --- */
.entry-content .aip-table-wrapper,
.entry-content .aip-price-table-wrapper,
.entry-content .aip-related-prices-wrapper,
.entry-content .aip-accent-block,
.entry-content .aip-related-posts-block,
.entry-content .aip-author-box {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    margin: 40px 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow-x: auto;
}

.entry-content .aip-table-wrapper:hover,
.entry-content .aip-price-table-wrapper:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.aip-author-box img {
    float: left;
    margin-right: 0px;
}

.aip-author-box {
    padding: 20px 20px 0;
}

/* --- 2. ТАБЛИЦІ --- */
table.aip-table,
table.aip-price-table,
table.aip-related-prices-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: none;
    margin: 0;
}

/* Шапка таблиць */
.entry-content table thead th,
.aip-price-table-caption,
.aip-related-prices-caption {
    background-color: var(--dm-secondary, #f5f0e8);
    color: var(--dm-text-dark, #2C3333);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 20px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    text-align: left;
}

/* Спеціальний заголовок для таблиць цін */
.aip-price-table-caption,
.aip-related-prices-caption {
    background-color: var(--dm-primary, #5a7a45);
    color: #fff;
    text-align: center;
}

/* Комірки */
.entry-content table td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    color: var(--dm-text-light, #555);
    vertical-align: middle;
}

/* Зебра */
.entry-content table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.entry-content table tbody tr:hover td {
    background-color: var(--dm-secondary, #f5f0e8);
}

/* --- 3. ЦІНИ ТА КНОПКИ --- */
.aip-price-table del {
    color: #bbb;
    font-size: 0.9em;
    margin-right: 10px;
}

.aip-price-table ins {
    text-decoration: none;
    color: var(--dm-accent, #2c3e2d);
    font-weight: 700;
    font-size: 1.2em;
}

.aip-price-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
    color: var(--dm-text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.aip-price-btn:hover {
    color: var(--dm-primary);
    transform: translateX(3px);
}

.aip-price-btn .dashicons {
    margin-left: 5px;
    color: var(--dm-primary);
}

/* --- 4. БЕЙДЖІ --- */
table .aip-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    border: 1px solid transparent;
    letter-spacing: 0.5px;
}

.aip-badge.badge-price,
.aip-badge.badge-rating {
    background-color: rgba(230, 0, 0, 0.15);
    color: var(--dm-primary);
}

.aip-badge.badge-sale,
.aip-badge.badge-popular {
    background-color: rgba(17, 17, 17, 0.15);
    color: var(--dm-accent);
}

.aip-badge.badge-new {
    background-color: #f5f0e8;
    color: #666;
}

/* --- 5. ІНФО-БЛОКИ --- */
.entry-content .aip-accent-block {
    border: none;
    border-left: 4px solid;
    padding: 25px 30px;
    position: relative;
    border-radius: 0 16px 16px 0;
}

.aip-tip-block {
    background-color: rgba(230, 0, 0, 0.08);
    border-left-color: var(--dm-primary);
}

.aip-tip-block strong {
    color: var(--dm-primary-dark);
}

.aip-warning-block {
    background-color: rgba(17, 17, 17, 0.08);
    border-left-color: var(--dm-accent);
}

.aip-warning-block strong {
    color: var(--dm-accent);
}

.aip-fact-block {
    background-color: #F9F9F9;
    border-left-color: #999;
}

/* --- 6. БЛОК "ЧИТАЙТЕ ТАКОЖ" --- */
.entry-content .aip-related-posts-block {
    border: 1px solid #eee;
    background: #fff;
    padding: 30px;
}

.aip-related-posts-block .aip-related-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--dm-text-dark);
    border-bottom: 2px solid var(--dm-secondary);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.aip-related-posts-block .aip-related-list li::before {
    content: "→";
    color: var(--dm-accent);
    font-weight: bold;
    font-size: 1.2em;
    top: -2px;
}

/* =========================================
   ЧАСТИНА 2: FLATSOME THEME OVERRIDES
   ========================================= */

/* --- 1. ТАБИ --- */
.woocommerce-tabs ul.tabs li a,
.tabbed-content .nav-pills li a {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    background-color: #f5f5f5;
    color: #555;
    text-transform: uppercase;
    font-size: 12px;
    border: none;
}

.woocommerce-tabs ul.tabs li.active a,
.tabbed-content .nav-pills li.active a {
    background-color: var(--dm-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.4);
}

.woocommerce-tabs .panel,
.tabbed-content .tab-panels .panel {
    background: #fff;
    border: 1px solid #f5f0e8;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    padding: 30px;
}

/* --- 2. КНОПКИ ТА ПОЛЯ --- */
#wrapper .button,
button.submit,
input[type="submit"] {
    border-radius: 25px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

input[type='text'],
input[type='email'],
textarea {
    border-radius: 8px;
    padding: 12px;
    border-color: #e0e0e0;
}

input:focus,
textarea:focus {
    border-color: var(--dm-primary);
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.1);
}

/* --- 3. FOOTER FORM --- */
.footer-form input[type="email"] {
    border-radius: 50px;
    height: 45px;
    background: #fff;
}

.footer-form button {
    border-radius: 50px;
    background: transparent;
    border: 2px solid #000;
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
}

.footer-form button:hover {
    background: #000;
    color: #fff;
}

/* --- 4. 404 PAGE --- */
.error-code {
    font-family: 'DM Sans', sans-serif;
    letter-spacing: -5px;
    color: var(--dm-secondary);
}

.search-404-wrapper .search-field {
    border-radius: 50px;
    height: 55px;
    border: 2px solid #eee;
}

.search-404-wrapper .search-submit {
    border-radius: 50px;
    background-color: var(--dm-text-dark);
}

/* =========================================
   ЧАСТИНА 3: ВІДЕОЗАЛ
   ========================================= */

/* --- 1. КАРТКИ ВІДЕО --- */
.type-aip_video .box {
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.type-aip_video .box-image {
    border-radius: 16px;
    overflow: hidden;
}

/* Кнопка Play */
.type-aip_video .box-image::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #fff;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
}

.type-aip_video .box-image::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent #fff;
    z-index: 6;
    pointer-events: none;
}

.type-aip_video:hover .box-image::after {
    background: var(--dm-accent);
    border-color: var(--dm-accent);
    transform: translate(-50%, -50%) scale(1.2);
}

/* --- 2. СТОРІНКА ВІДЕО --- */
.video-container-clean iframe {
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    aspect-ratio: 16/9;
}

.video-styled-text ul {
    background: var(--dm-secondary);
    border-left: 4px solid var(--dm-primary);
    padding: 20px 20px 20px 40px;
    border-radius: 0 12px 12px 0;
    list-style: none;
}

.video-styled-text ul li::before {
    content: "✔";
    color: var(--dm-primary);
    font-weight: bold;
    position: absolute;
    left: -25px;
}

/* --- 3. ФІЛЬТРИ ВІДЕО --- */
.video-filter-row .filter-btn {
    padding: 8px 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    color: #666;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    background: #fff;
    margin: 0 5px 5px 0;
}

.video-filter-row .filter-btn:hover,
.video-filter-row .filter-btn.active {
    background: var(--dm-primary);
    color: #fff;
    border-color: var(--dm-primary);
}

/* =========================================
   ЧАСТИНА 4: АРХІВИ ТА АВТОРИ
   ========================================= */

/* --- 1. HERO ARCHIVE --- */
.hero-dynamic-wrapper .box-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: 30px;
    z-index: 10;
}

.hero-dynamic-wrapper .post-title,
.hero-dynamic-wrapper .is-xsmall {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* --- 2. AUTHOR HERO --- */
.author-hero-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 6px solid #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.author-hero-name {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--dm-text-dark);
}

/* --- 3. КНОПКИ КАТЕГОРІЙ --- */
.category-filter-row a {
    border-radius: 50px;
    border: 1px solid #e0e0e0;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #555;
    background: #fff;
    transition: all 0.3s;
}

.category-filter-row a:hover,
.category-filter-row a.active {
    background: var(--dm-text-dark);
    color: #fff;
    border-color: var(--dm-text-dark);
}

/* =========================================
   💎 1. ЕСТЕТИЧНІ ЗОБРАЖЕННЯ
   ========================================= */
.entry-content figure,
.wp-caption {
    background-color: #fff;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 40px auto;
    max-width: 100%;
    display: table;
    transition: transform 0.3s ease;
}

.entry-content figure:hover,
.wp-caption:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.entry-content figure img,
.wp-caption img {
    border-radius: 12px;
    display: block;
    height: auto;
    width: 100%;
    box-shadow: none;
    margin-bottom: 0;
}

.entry-content figcaption,
.wp-caption-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--dm-text-light, #777);
    text-align: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-style: italic;
}

.entry-content figcaption::before,
.wp-caption-text::before {
    content: "📷";
    margin-right: 6px;
    opacity: 0.6;
    font-style: normal;
}

/* =========================================
   💎 2. ХОВАЄМО ОПИС ЗВЕРХУ
   ========================================= */
.term-description,
.page-title-inner .category-description,
.archive-page-header .taxonomy-description {
    display: none;
}

.dm-seo-text {
    display: block;
}

/* =========================================
   💎 TAGS BAR
   ========================================= */
.dm-tags-scroll .dm-chip {
    background: transparent;
    border: none;
    padding: 0 10px 0 0;
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
    text-transform: none;
}

.dm-tags-scroll .dm-chip .hash {
    color: var(--dm-accent);
    font-weight: bold;
}

.dm-tags-scroll .dm-chip:hover {
    color: #000;
    transform: none;
    text-decoration: underline;
}

.dm-tags-scroll {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    padding-bottom: 0;
    gap: 5px 15px;
}

@media (max-width: 768px) {
    .dm-tags-scroll {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 10px;
    }

    .dm-tags-scroll::-webkit-scrollbar {
        display: none;
    }
}

/* =========================================
   💎 SIDEBAR FIX
   ========================================= */
.widget-title {
    background-color: var(--dm-secondary);
    color: var(--dm-text-dark);
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

.widget-title span {
    background: transparent;
    padding: 0;
}

.is-divider {
    background-color: var(--dm-primary);
}

.tagcloud a {
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #666;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    padding: 4px 10px;
}

.tagcloud a:hover {
    border-color: var(--dm-primary);
    background: var(--dm-primary);
    color: #fff;
}

/* =========================================
   💎 FOOTER STYLING
   ========================================= */
ul.footer-nav-list {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

ul.footer-nav-list li {
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

ul.footer-nav-list li:last-child {
    border-bottom: none;
}

ul.footer-nav-list a {
    color: #ccc;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

ul.footer-nav-list a:hover {
    color: var(--dm-accent);
    padding-left: 5px;
}

.footer-form input[type="email"] {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
}

.footer-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   💎 NEWS FEED STYLING
   ========================================= */
.col-span-8 .box-blog-post {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.col-span-8 .box-image {
    width: 140px;
    flex-shrink: 0;
    margin-right: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.col-span-8 .box-text {
    padding: 0;
    flex-grow: 1;
}

.col-span-8 .box-text h5 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 700;
}

.col-span-8 .box-text p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #666;
}

.col-span-8 .box-blog-post:last-child {
    border-bottom: none;
}

/* =========================================
   💎 D&M NEWS STYLES
   ========================================= */
.dm-news-grid.dm-news-feed .box {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.dm-news-grid.dm-news-feed .box-image {
    width: 38%;
    flex-shrink: 0;
    margin-right: 25px;
    margin-bottom: 0;
}

.dm-news-grid.home-news-grid .box {
    display: block;
    flex-direction: column;
    border: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.dm-news-grid.home-news-grid .box-image {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
}

.dm-news-grid .post-title {
    font-size: 1.15rem;
    line-height: 1.35;
    margin-bottom: 8px;
    font-weight: 700;
}

.dm-news-grid .box-text {
    padding: 0;
}

.dm-news-grid .badge-simple {
    background: #000;
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    display: block;
    width: auto;
}

.dm-news-feed .badge-simple {
    display: none;
}

.dm-pagination ul.page-numbers {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 40px 0;
    gap: 8px;
}

.dm-pagination ul.page-numbers li {
    margin: 0;
    display: inline-block;
}

.dm-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 50%;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dm-pagination .page-numbers.current,
.dm-pagination .page-numbers:hover {
    background-color: var(--dm-primary);
    color: #fff;
    border-color: var(--dm-primary);
}

@media (max-width: 768px) {
    .dm-news-feed .box {
        flex-direction: column;
    }

    .dm-news-feed .box-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* =========================================
   💎 FIX PACK
   ========================================= */
.dm-pagination ul.page-numbers {
    gap: 10px;
    margin-top: 40px;
}

.dm-pagination ul.page-numbers li {
    margin: 0;
    padding: 0;
}

.dm-pagination .page-numbers {
    width: 45px;
    height: 45px;
    font-size: 1rem;
    border-color: #eee;
}

.dm-news-feed .badge-simple {
    display: block;
    font-size: 9px;
    padding: 2px 6px;
    background: #000;
}

.dm-news-feed .badge-inner {
    position: static;
    display: block;
    line-height: 1;
}

.dm-news-feed .post-date-day {
    font-size: 10px;
    letter-spacing: 1px;
}

.dm-sidebar-video .box-text {
    position: relative;
    background: transparent;
    padding: 15px 0 0 0;
    width: 100%;
    pointer-events: auto;
}

.dm-sidebar-video .post-title {
    color: #fff;
    font-size: 1rem;
    line-height: 1.4;
}

.dm-sidebar-video .box-image {
    border-radius: 8px;
}

.dm-sidebar-video .post-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.dm-sidebar-video .is-xsmall {
    color: var(--dm-accent);
}

.col-inner {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dm-news-feed .col-inner:hover {
    transform: translateX(10px);
}

.dm-news-feed .col-inner:hover .post-title {
    color: var(--dm-accent);
}

.dm-sidebar-video .col-inner:hover {
    transform: translateY(-5px);
}

/* =========================================
   💎 VIDEO HALL STYLING
   ========================================= */
.dm-video-grid .box {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dm-video-grid .col-inner:hover .box {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.dm-video-grid .box-image::after {
    content: "▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.dm-video-grid .col-inner:hover .box-image::after {
    background: var(--dm-accent);
    transform: translate(-50%, -50%) scale(1.1);
    border-color: var(--dm-accent);
}

.dm-video-grid .badge-circle {
    background-color: #000;
    border-radius: 4px;
    width: auto;
    padding: 2px 8px;
    top: 10px;
    left: 10px;
    right: auto;
}

.dm-video-grid .post-date-day {
    font-size: 10px;
    letter-spacing: 1px;
}

.dm-video-grid .box-text {
    padding: 20px;
}

.dm-video-grid .post-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 5px;
}

.dm-video-grid .is-xsmall {
    color: var(--dm-primary);
    font-weight: 700;
    letter-spacing: 1px;
}

/* =========================================
   💎 HOME PAGE NEWS FIX
   ========================================= */
.home-news-grid .box {
    flex-direction: column;
    display: block;
    border: none;
    background: transparent;
}

.home-news-grid .box-image {
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.home-news-grid .image-cover {
    padding-top: 60%;
}

.home-news-grid .badge-simple {
    display: block;
    top: 10px;
    left: 10px;
    background: #000;
    color: #fff;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 9px;
    font-weight: 700;
}

.home-news-grid .box-text {
    padding: 0 5px;
}

.home-news-grid .post-title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 5px;
    font-weight: 700;
}

.home-news-grid .post-date-text {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-news-grid .col-inner:hover {
    transform: translateY(-5px);
}

/* =========================================
   💎 MEGA MENU
   ========================================= */
.menu-editorial {
    font-family: 'DM Sans', sans-serif;
    border-top: 3px solid var(--dm-primary);
}

.editorial-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.editorial-index {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    color: var(--dm-accent);
    font-weight: 700;
    margin-right: 10px;
    opacity: 0.8;
}

.editorial-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dm-text-dark);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.editorial-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    color: var(--dm-primary);
    stroke-width: 1.5px;
}

.editorial-link {
    display: block;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 8px;
    text-decoration: none;
    position: relative;
    padding-left: 15px;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.editorial-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background-color: var(--dm-primary);
    transition: width 0.3s ease;
}

.editorial-link:hover {
    color: var(--dm-primary);
    padding-left: 20px;
}

.editorial-link:hover::before {
    width: 12px;
}

.editorial-link.aip-active-link {
    color: var(--dm-text-dark);
    font-weight: 700;
}

.editorial-link.aip-active-link::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--dm-accent);
}

.editorial-subheader {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.menu-featured-post .box-text {
    padding: 10px 0 0 0;
}

.menu-featured-post .post-title {
    font-size: 1rem;
    line-height: 1.3;
}

/* =========================================
   💎 SLIDER NAV FIX
   ========================================= */
.slider-nav-reveal .flickity-prev-next-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.slider-nav-reveal .flickity-prev-next-button svg {
    margin: 0;
    top: auto;
    left: auto;
    position: relative;
    transform: none;
    width: 30px;
    height: 30px;
    opacity: 1;
    display: block;
}

.slider-nav-reveal .flickity-prev-next-button svg path {
    fill: #2C3333;
    stroke: none;
}

.slider-nav-reveal .flickity-prev-next-button.previous {
    left: 10px;
}

.slider-nav-reveal .flickity-prev-next-button.next {
    right: 10px;
}

.slider:hover .flickity-prev-next-button {
    opacity: 1;
}

.slider-nav-reveal .flickity-prev-next-button:hover {
    background: #2C3333;
    border-color: #2C3333;
}

.slider-nav-reveal .flickity-prev-next-button:hover svg path {
    fill: #fff;
}

.slider-nav-reveal .flickity-prev-next-button::after,
.slider-nav-reveal .flickity-prev-next-button::before {
    display: none;
}

/* =========================================
   📜 LEGAL PAGES
   ========================================= */
.legal-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--dm-secondary);
    color: var(--dm-text-dark);
}

.legal-text ol,
.legal-text ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-text li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--dm-text-light);
}

.legal-text strong {
    color: var(--dm-text-dark);
}

/* =========================================
   💎 404 PAGE
   ========================================= */
.dm-404-number {
    font-family: 'Playfair Display', serif;
    opacity: 0.15;
    letter-spacing: -10px;
    background: linear-gradient(to bottom, var(--dm-primary), transparent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    user-select: none;
}

.dm-quick-links .button {
    margin-bottom: 5px;
}

/* =========================================
   📚 READ ALSO
   ========================================= */
.dm-read-also-box {
    background-color: #F9F8F6;
    border-left: 4px solid var(--dm-primary);
    padding: 25px 30px;
    margin: 40px 0;
    border-radius: 16px;
}

.dm-read-also-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--dm-text-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 15px;
}

.dm-item-title {
    display: block;
    font-weight: 700;
    color: var(--dm-text-dark);
    font-size: 1rem;
    margin-bottom: 4px;
    line-height: 1.4;
    transition: color 0.2s;
}

.dm-read-also-item:hover .dm-item-title {
    color: var(--dm-primary);
}

.dm-item-teaser {
    display: block;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.dm-item-content {
    display: block;
    width: 100%;
}

.dm-read-also-item {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
}

/* =========================================
   ЧАСТИНА 5: МОБІЛЬНА АДАПТАЦІЯ
   ========================================= */
@media (max-width: 768px) {
    /* Таблиці цін у стовпчик */
    .aip-price-table tr {
        display: flex;
        flex-direction: column;
        padding: 15px;
        border-bottom: 1px solid #eee;
    }

    .aip-price-table td {
        border: none;
        padding: 5px 0;
    }

    /* Великі шрифти для заголовків */
    .archive-main-title,
    .entry-title {
        font-size: 2.2rem;
    }

    /* Менші відступи */
    .sewerin-author-header {
        padding: 40px 0;
    }

    .author-hero-img {
        width: 140px;
        height: 140px;
    }

    /* Хедер відео */
    .cinema-hero h1 {
        font-size: 2.5rem;
    }

    /* Кнопки на всю ширину на телефоні */
    .aip-price-btn {
        width: 100%;
        justify-content: center;
        background: var(--dm-secondary);
        border-radius: 8px;
        margin-top: 10px;
    }

    /* МОБІЛЬНА АДАПТАЦІЯ СТРІЧКИ НОВИН */
    a.smstrumyk-card-hover {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        height: auto;
    }

    a.smstrumyk-card-hover > div:first-child {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16/10;
    }

    a.smstrumyk-card-hover > div:last-child {
        padding: 0 5px;
    }

    a.smstrumyk-card-hover h3 {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    /* МЕТА-ДАНІ */
    .sewerin-meta-container {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }

    .sewerin-meta-container .meta-item {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #666;
        font-size: 0.95rem;
        font-weight: 600;
        line-height: 1;
    }

    .sewerin-meta-container .meta-item .post-views,
    .sewerin-meta-container .meta-item p {
        display: inline-block;
        margin: 0;
        padding: 0;
    }

    .sewerin-meta-container .meta-icon {
        width: 18px;
        height: 18px;
        stroke: #5a7a45;
    }

    .sewerin-meta-container .meta-sep {
        color: #ccc;
        font-size: 1.2rem;
        line-height: 1;
    }

    /* СТИЛІ ДЛЯ СТАТЕЙ ТА ВІДЕО-ІНСАЙТІВ */
    .aip-accent-block ul,
    .video-styled-text .aip-tip-block ul {
        background: transparent;
        border: none;
        padding: 0;
        margin: 15px 0 0 0;
        list-style: none;
    }

    .video-styled-text ul {
        list-style: none;
        padding-left: 0;
        margin-left: 0;
    }

    .video-styled-text ul li {
        position: relative;
        padding-left: 35px;
        margin-bottom: 12px;
        line-height: 1.6;
        color: #444;
        font-size: 1.05rem;
    }

    .video-styled-text ul li::before {
        content: "✔";
        color: #5a7a45;
        font-weight: bold;
        position: absolute;
        left: 0;
        top: 0;
        font-size: 1.2rem;
    }

    /* ТАЙМЛАЙН ВІДЕО */
    .video-styled-text h4 {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.3rem;
        font-weight: 800;
        margin-top: 40px;
        margin-bottom: 20px;
        color: #111;
    }

    .video-styled-text p strong {
        color: #5a7a45;
        background: #fcfcfc;
        padding: 2px 6px;
        border-radius: 4px;
        border: 1px solid #eee;
        font-family: monospace;
        font-size: 1.1rem;
        margin-right: 8px;
    }
}

/* SM STRUMYK — Logo System */
.sm-logo-link {
    display: block;
    text-decoration: none;
}

.sm-logo-wrapper {
    width: 260px;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sm-logo-wrapper.sm {
    width: 180px;
}

.sm-logo-wrapper.xs {
    width: 120px;
}

.sm-logo-line {
    fill: none;
    stroke: url(#moss-stream-gradient);
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: filter 0.5s ease, opacity 0.5s ease;
}

.sm-logo-line.thin {
    stroke-width: 1.8;
    opacity: 0.7;
}

.sm-logo-line.extra-thin {
    stroke-width: 1.2;
    opacity: 0.5;
}

.sm-logo-wave {
    fill: none;
    stroke: url(#stream-wave-gradient);
    stroke-width: 2.2;
    stroke-linecap: round;
    transition: filter 0.5s ease, opacity 0.5s ease;
}

.sm-logo-wave.soft {
    stroke-width: 1.4;
    opacity: 0.45;
}

.sm-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 15.5px;
    letter-spacing: 7px;
    fill: #7a8a6a;
    font-weight: 500;
    transition: fill 0.5s ease, opacity 0.5s ease;
}

.sm-logo-text.on-dark {
    fill: #f5f0e8;
}

.sm-logo-prefix {
    font-family: 'Lato', sans-serif;
    font-size: 7.5px;
    letter-spacing: 3.5px;
    fill: #5a7a45;
    font-weight: 400;
    text-transform: uppercase;
    transition: fill 0.5s ease;
}

.sm-logo-prefix.on-dark {
    fill: #7ab8c4;
}

.sm-logo-subtext {
    font-family: 'Lato', sans-serif;
    font-size: 6.5px;
    letter-spacing: 1.8px;
    fill: #7a8a6a;
    font-weight: 300;
    font-style: italic;
    transition: fill 0.5s ease, opacity 0.5s ease;
}

.sm-logo-subtext.on-dark {
    fill: #667a66;
}

body.home .sm-logo-line,
body.home .sm-logo-wave,
body.home .sm-logo-text,
body.home .sm-logo-prefix,
body.home .sm-logo-subtext {
    opacity: 0;
    animation: smReveal 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

body.home .sm-logo-line.roof {
    animation-delay: 0.15s;
}

body.home .sm-logo-line.wall-l {
    animation-delay: 0.30s;
}

body.home .sm-logo-line.wall-r {
    animation-delay: 0.30s;
}

body.home .sm-logo-line.floor {
    animation-delay: 0.45s;
}

body.home .sm-logo-line.door {
    animation-delay: 0.55s;
}

body.home .sm-logo-line.win {
    animation-delay: 0.62s;
}

body.home .sm-logo-wave {
    animation-delay: 0.80s;
}

body.home .sm-logo-wave.soft {
    animation-delay: 0.95s;
}

body.home .sm-logo-prefix {
    animation-delay: 1.30s;
}

body.home .sm-logo-text {
    animation-delay: 1.50s;
}

body.home .sm-logo-subtext {
    animation-delay: 1.85s;
}

@keyframes smReveal {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body:not(.home) .sm-logo-line,
body:not(.home) .sm-logo-wave,
body:not(.home) .sm-logo-text,
body:not(.home) .sm-logo-prefix,
body:not(.home) .sm-logo-subtext {
    opacity: 1;
    transform: translateY(0);
}

.sm-logo-wrapper:hover .sm-logo-line {
    filter: brightness(1.2) drop-shadow(0 0 4px rgba(90, 122, 69, 0.45));
}

.sm-logo-wrapper:hover .sm-logo-wave {
    filter: brightness(1.2) drop-shadow(0 0 5px rgba(122, 184, 196, 0.5));
}

.sm-logo-wrapper:hover .sm-logo-text {
    fill: #1a2e1c;
}

.sm-logo-wrapper:hover .sm-logo-text.on-dark {
    fill: #ffffff;
}

.sm-logo-wrapper:hover .sm-logo-subtext {
    fill: #5a7a45;
}

.sm-logo-wrapper:hover .sm-logo-subtext.on-dark {
    fill: #7ab8c4;
}

.sm-logo-wrapper:hover {
    transform: scale(1.02);
}

@media (max-width: 480px) {
    .sm-logo-wrapper {
        width: 200px;
    }
}

.is-sticky .sm-logo-container {
    display: none;
}

.is-sticky .sm-logo-container-dark {
    display: block;
}

/* DROPDOWN & HEADER FIXES */
.nav-dropdown {
    background-color: var(--dm-primary, #2c3e2d);
    border-top: 3px solid var(--dm-accent, #7ab8c4);
}

.nav-dropdown > li > a {
    color: #f5f0e8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-dropdown > li > a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--dm-accent, #7ab8c4);
    padding-left: 25px;
}

.header-nav > li > a {
    color: #f5f0e8;
}

.header-nav > li > a:hover {
    color: var(--dm-accent, #7ab8c4);
}

.sm-logo-wrapper:hover .sm-logo-text.on-dark {
    fill: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.sm-logo-wrapper:hover .sm-logo-prefix.on-dark {
    fill: #a8d8e4;
}

.sm-logo-wrapper:hover .sm-logo-subtext.on-dark {
    fill: #7ab8c4;
}

.preview-footer-logo:hover svg path,
.preview-footer-logo:hover svg polyline {
    stroke: #7ab8c4;
    filter: drop-shadow(0 0 5px rgba(122, 184, 196, 0.6));
}

#logo a.title-logo {
    display: none !important;
}

#logo img {
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
}

.header-logo {
    min-width: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.sm-logo-wrapper {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.sm-logo-wrapper:hover {
    transform: scale(1.03);
}

.sm-logo-wrapper:hover .sm-logo-text {
    fill: #ffffff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.sm-logo-wrapper:hover .sm-logo-prefix {
    fill: #a8d8e4 !important;
}

.sm-logo-wrapper:hover .sm-logo-subtext {
    fill: #7ab8c4 !important;
}

.stuck .sm-logo-container {
    display: none !important;
}

.stuck .sm-logo-container-dark {
    display: flex !important;
}


/* === SM_STRUMYK_PATCH_2026_03_04 === */

/* ===================================================
   ПАТЧ 2026-03-04 | SM STRUMYK VISUAL FIXES
   =================================================== */

/* ─────────────────────────────────────────────────────
   FIX 1: Приховати текстовий напис "SM Strumyk" в хедері
   DOM: #logo a (текстовий anchor без потрібного класу)
   ───────────────────────────────────────────────────── */
#logo a.title-logo,
#logo > a:not([class]) {
    display: none !important;
}
#logo .logo-tagline {
    display: none !important;
}

/* ─────────────────────────────────────────────────────
   FIX 2: Popularne tematy — стилі для .tag-chip
   В CSS були стилі для .dm-chip, але HTML рендерить .tag-chip
   ───────────────────────────────────────────────────── */
a.tag-chip {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(90, 122, 69, 0.2);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 0.82rem;
    color: #555;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}
a.tag-chip:hover {
    background: var(--dm-primary, #5a7a45);
    color: #fff;
    border-color: var(--dm-primary, #5a7a45);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(90, 122, 69, 0.25);
}
.tags-label, span.tags-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 6px;
}
.tags-scroll-container, div.tags-scroll-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 12px 0 8px;
    margin: 10px 0;
}
@media (max-width: 768px) {
    .tags-scroll-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    .tags-scroll-container::-webkit-scrollbar { display: none; }
}

/* ─────────────────────────────────────────────────────
   FIX 3: Category filter — накладання чіпів (desktop + mobile)
   DOM: .sewerin-subcat-nav .category-filter-row
   ───────────────────────────────────────────────────── */
.sewerin-subcat-nav {
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}
.sewerin-subcat-nav .category-filter-row,
div.category-filter-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 10px !important;
    align-items: center !important;
    width: 100% !important;
    overflow: visible !important;
}
.sewerin-subcat-nav .category-filter-row a,
div.category-filter-row a {
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0 !important;
}
@media (max-width: 768px) {
    .sewerin-subcat-nav .category-filter-row,
    div.category-filter-row {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        padding-bottom: 10px !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .sewerin-subcat-nav .category-filter-row::-webkit-scrollbar,
    div.category-filter-row::-webkit-scrollbar {
        display: none !important;
    }
}

/* ─────────────────────────────────────────────────────
   FIX 4: Мобільне меню — стилі підменю (accordion styling)
   ───────────────────────────────────────────────────── */
.nav-mobile .nav-item-depth-0 > a {
    font-size: 0.78rem !important;
    letter-spacing: 0.1em !important;
    padding: 15px 20px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
    color: #2c3333 !important;
}
.nav-mobile .sub-menu {
    background: rgba(245, 240, 232, 0.6) !important;
    border-left: 3px solid var(--dm-primary, #5a7a45) !important;
    padding: 4px 0 !important;
    margin: 0 !important;
}
.nav-mobile .sub-menu a {
    padding: 10px 20px 10px 28px !important;
    font-size: 0.82rem !important;
    color: #555 !important;
    text-transform: none !important;
    font-weight: 500 !important;
    letter-spacing: 0.03em !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    display: block !important;
    transition: padding-left 0.2s ease, color 0.2s ease;
}
.nav-mobile .sub-menu a:hover {
    color: var(--dm-primary, #5a7a45) !important;
    padding-left: 36px !important;
    background: rgba(90, 122, 69, 0.06) !important;
}
.nav-mobile .sub-menu li:last-child a {
    border-bottom: none !important;
}

/* ─────────────────────────────────────────────────────
   FIX 5: Гліфи мобільного меню (Unicode Variant A)
   Загальний fallback — нейтральний символ
   Специфічні — перевизначають за класом меню-пункту
   ───────────────────────────────────────────────────── */
.nav-mobile .nav-item-depth-0 > a::before {
    content: "◇";
    display: inline-block;
    margin-right: 10px;
    font-size: 16px;
    line-height: 1;
    color: var(--dm-primary, #5a7a45);
    transition: color 0.3s ease, transform 0.3s ease;
    vertical-align: middle;
    opacity: 0.75;
}
.nav-mobile .nav-item-depth-0 > a:hover::before {
    color: var(--dm-accent, #7ab8c4);
    opacity: 1;
    transform: scale(1.2);
}

/* Kategorie-specific glyphs */
.nav-mobile [class*="tekstylia"] > a::before     { content: "〰"; }
.nav-mobile [class*="salon"] > a::before          { content: "◈"; }
.nav-mobile [class*="sprytne"] > a::before,
.nav-mobile [class*="przechowywanie"] > a::before { content: "▦"; }
.nav-mobile [class*="ogrod"] > a::before          { content: "✾"; }
.nav-mobile [class*="inteligentny"] > a::before   { content: "⌾"; }

/* Desktop menu – hover glyphs */
.nav .nav-item-depth-0 > a::before {
    content: "";
    display: inline-block;
    margin-right: 7px;
    font-size: 15px;
    color: var(--dm-primary, #5a7a45);
    transition: color 0.35s ease, transform 0.35s ease;
    opacity: 0;
    vertical-align: middle;
}
.nav .nav-item-depth-0:hover > a::before,
.nav .current-menu-item > a::before,
.nav .current-menu-ancestor > a::before {
    opacity: 1;
    color: var(--dm-accent, #7ab8c4);
    transform: translateY(-2px);
}
.nav [class*="ergonomia"] > a::before    { content: "◈"; }
.nav [class*="kultura"] > a::before      { content: "〰"; }
.nav [class*="living"] > a::before       { content: "✾"; }
.nav [class*="technologie"] > a::before  { content: "⌾"; }
.nav [class*="nature"] > a::before       { content: "▦"; }
.nav [class*="nowiny"] > a::before       { content: "◉"; }
.nav [class*="wideo"] > a::before        { content: "▷"; }

