/**
 * HUNT ME v2 — Inner Pages Styles
 * Loaded GLOBALLY on all pages (blog, posts, FAQ, etc.)
 * Overrides old main.css with modern design matching front page v2
 * Dependencies: hunt-main (loads after), huntme-header-v2 (tokens)
 */

/* ═══════════════════════════════════════════
   GENERAL — Typography, Colors, Container
   ═══════════════════════════════════════════ */

/* Page background — gray (Tinkoff Journal approach: gray page → white card → dark text) */

/* ═══════════════════════════════════════════
   MOBILE — Overflow Prevention
   ═══════════════════════════════════════════ */

/* Container padding handled below */

/* --- Mobile container padding --- */

/* ═══════════════════════════════════════════
   ENHANCEMENTS — Reading Progress Bar
   ═══════════════════════════════════════════ */

.reading-progress {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 10000;
    background: transparent;
    pointer-events: none;
}

.reading-progress__bar {
    height: 100%;
    width: 0%;
    background: var(--hm-primary, #e63946);
    transition: none;
    border-radius: 0 2px 2px 0;
}

/* ═══════════════════════════════════════════
   ENHANCEMENTS — Updated Date Badge
   ═══════════════════════════════════════════ */

.article__meta-updated {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.article__meta-updated svg {
    flex-shrink: 0;
    stroke: #16a34a;
}

body.dark .article__meta-updated {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

body.dark .article__meta-updated svg {
    stroke: #4ade80;
}

/* ═══════════════════════════════════════════
   ENHANCEMENTS — Scroll to Top Button
   ═══════════════════════════════════════════ */

.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--hm-primary, #e63946);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 998;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.scroll-top--visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════
   ENHANCEMENTS — Inline CTA
   ═══════════════════════════════════════════ */

.hunt-cta-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px 32px;
    margin: 28px 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #c62828 0%, #e63946 40%, #d32f2f 100%);
    overflow: hidden;
}

.hunt-cta-inline__text {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 !important;
    padding: 0;
    line-height: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hunt-cta-inline__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    line-height: 20px;
    background: #fff;
    color: #e63946;
    border: none;
    border-radius: 50px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.hunt-cta-inline__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

body.dark .hunt-cta-inline {
    background: linear-gradient(135deg, #b71c1c 0%, #7f0000 40%, #0d0d0d 100%);
}

/* ═══════════════════════════════════════════
   ENHANCEMENTS — Sticky Mobile CTA
   ═══════════════════════════════════════════ */

.sticky-cta {
    display: none;
}

.sticky-cta--visible {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

.sticky-cta--hidden {
    transform: translateY(100%) !important;
    opacity: 0 !important;
    pointer-events: none;
}

.sticky-cta__btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: #fff;
    color: #e63946;
    border: none;
    border-radius: 14px;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.sticky-cta__btn::before {
    content: "";
    position: absolute;
    top: -2.5px;
    left: -2.5px;
    right: -2.5px;
    bottom: -2.5px;
    border-radius: 16px;
    background: linear-gradient(90deg, #e63946, #ff6b81, #1a1a1a, #ff6b81, #e63946);
    background-size: 300% 100%;
    animation: gradient-shimmer 3s ease infinite;
    z-index: -1;
}

.sticky-cta__btn:active {
    transform: scale(0.98);
}

@keyframes gradient-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body.dark .sticky-cta__btn {
    background: #111;
    color: #fff;
}

body.dark .sticky-cta__btn::before {
    background: linear-gradient(90deg, #e63946, #ff6b81, #333, #ff6b81, #e63946);
    background-size: 300% 100%;
    animation: gradient-shimmer 3s ease infinite;
}


@media (max-width: 768px) {
    /* Scroll-to-top: smaller, above sticky CTA */
    .scroll-top {
        bottom: 76px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    /* Sticky mobile CTA */
    body.single-post .sticky-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 10px 16px;
        transform: translateY(100%);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.3s ease;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
        background: var(--hm-bg, #fff);
        border-top: 1px solid var(--hm-border, #eee);
        z-index: 997;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    body.dark.single-post .sticky-cta {
        background: var(--hm-bg-dark, #111);
        border-top-color: rgba(255, 255, 255, 0.08);
    }

    /* Body padding to not overlap sticky CTA */
    body.single-post {
        padding-bottom: 64px;
    }

    /* Inline CTA: stack vertically on mobile */
    .hunt-cta-inline {
        flex-direction: column;
        text-align: center;
        padding: 18px 20px;
    }

    .hunt-cta-inline__btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    body.single-post .container,
    body.page-template-page-blog .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

@media (max-width: 480px) {
    body.single-post .container,
    body.page-template-page-blog .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}


.blog_wrap,
.six_wrap {
    max-width: 100%;
    overflow: hidden;
}

.blog_block {
    max-width: 100%;
    overflow: hidden;
}

.six_border {
    max-width: 100%;
}

.six_border img,
.six_img img {
    max-width: 100%;
    height: auto;
}

.news-block {
    max-width: 100%;
    overflow: hidden;
}

/* Single post overflow prevention */
.article {
    max-width: 100%;
    overflow: hidden;
}

.article_block {
    max-width: 100%;
    overflow: hidden;
}

.article_border {
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article_border img {
    max-width: 100%;
    height: auto;
}

.article_border iframe,
.article_border video,
.article_border embed,
.article_border object {
    max-width: 100%;
}

.article_border table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* Related cards sidebar — prevent overflow */
.article_block2 {
    max-width: 100%;
    overflow: hidden;
}

/* Title text should not exceed container */
.six_pd h3,
.six_title,
.news-block__hero-title,
.news-block__row-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
}


body.single-post,
body.page-template-page-blog {
    background: var(--hm-bg-gray);
}

body.dark.single-post,
body.dark.page-template-page-blog {
    background: var(--hm-bg);
}

/* Prevent horizontal overflow on blog/post pages */
body.single-post,
body.page-template-page-blog {
    overflow-x: hidden;
}

/* Apply Montserrat to all page content */
.five .container,
.blog_ul,
.article,
.article_border,
.article_border2,
.blog_button,
.pagination {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Section headings — match v2 style */
.five .title2,
.three .title2,
.four .title2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 0.95;
    color: var(--hm-text);
}

body.dark .five .title2,
body.dark .three .title2,
body.dark .four .title2 {
    color: #fff;
}

/* ═══════════════════════════════════════════
   BLOG LISTING — Category Filters
   ═══════════════════════════════════════════ */

.blog_ul {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0 0 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.blog_ul::-webkit-scrollbar {
    display: none;
}

.blog_ul li {
    flex-shrink: 0;
}

.blog_li_link {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid var(--hm-border-strong);
    background: var(--hm-bg);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--hm-text);
    cursor: pointer;
    transition: all var(--hm-transition);
    white-space: nowrap;
    text-decoration: none;
}

.blog_li_link:hover {
    border-color: var(--hm-primary);
    color: #fff;
    background: var(--hm-primary);
}

.blog_li_link.active {
    background: var(--hm-primary);
    border-color: var(--hm-primary);
    color: #fff;
    border-radius: 50px;
}

body.dark .blog_li_link {
    background: var(--hm-bg-gray);
    border-color: var(--hm-border-strong);
    color: var(--hm-text);
}

body.dark .blog_li_link:hover {
    border-color: var(--hm-primary);
    color: #fff;
    background: var(--hm-primary);
}

body.dark .blog_li_link.active {
    background: var(--hm-primary);
    border-color: var(--hm-primary);
    color: #fff;
}

/* ═══════════════════════════════════════════
   BLOG LISTING — Cards Grid
   ═══════════════════════════════════════════ */

.blog_wrap,
.six_wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 32px 0 0 0;
    padding: 0;
}

/* Note: display is controlled by blog.js (progressive load via inline styles).
   main.css sets display:none, blog.js sets display:block on visible cards. */
.blog_block,
.six_block {
    width: auto;
    padding: 0;
}

/* ═══════════════════════════════════════════
   BLOG CARD — Post Cards
   ═══════════════════════════════════════════ */

.six_border {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: var(--hm-bg);
    border: 1px solid var(--hm-border);
    transition: transform var(--hm-transition), border-color var(--hm-transition), box-shadow var(--hm-transition);
    text-decoration: none;
    color: inherit;
}

.six_border:hover {
    transform: translateY(-4px);
    border-color: var(--hm-primary);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.1);
    background: var(--hm-bg);
}

body.dark .six_border {
    background: var(--hm-bg);
    border-color: var(--hm-border);
}

body.dark .six_border:hover {
    border-color: var(--hm-primary);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.3);
}

/* Card image */
.six_img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.six_img_dk,
.six_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.six_border:hover .six_img_dk,
.six_border:hover .six_img img {
    transform: scale(1.03);
}

/* Tags overlay */
.six_absolute {
    position: absolute;
    top: 12px;
    left: 0;
    padding: 0 16px;
    z-index: 1;
}

.six_absolute .six_ul {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.six_li p {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--hm-text);
    margin: 0;
    line-height: 1.3;
}

body.dark .six_li p {
    background: rgba(26, 26, 26, 0.85);
    color: #fff;
}

/* Time badge */
.six_absolute2 {
    position: absolute;
    bottom: 12px;
    left: 16px;
    z-index: 1;
}

.six_absolute2 p {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.six_absolute2 p img {
    width: 14px;
    height: 14px;
    display: inline;
    filter: brightness(10);
}

/* Card content */
.six_pd {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.six_pd h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--hm-text);
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.dark .six_pd h3 {
    color: #fff;
}

.six_title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--hm-text-secondary);
    line-height: 1.55;
    padding: 10px 0 0 0;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* "All articles" link */
.six_link a,
.blog_all a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--hm-primary);
    text-decoration: none;
    transition: opacity var(--hm-transition);
}

.six_link a:hover,
.blog_all a:hover {
    opacity: 0.75;
}

/* Grid children that span full width */
.blog_wrap > button#show-more,
.blog_wrap > .pagination {
    grid-column: 1 / -1;
}

/* ═══════════════════════════════════════════
   BLOG — Load More Button
   ═══════════════════════════════════════════ */

.blog_button {
    text-align: center;
    margin-top: 40px;
}

.blog_button button,
button#show-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 48px;
    border-radius: 50px;
    background: var(--hm-bg-gray);
    border: 1px solid var(--hm-border);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--hm-text);
    cursor: pointer;
    transition: all var(--hm-transition);
    width: auto;
    margin-top: 40px;
}

.blog_button button:hover,
button#show-more:hover {
    background: var(--hm-primary);
    border-color: var(--hm-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(227, 30, 36, 0.25);
}

body.dark .blog_button button,
body.dark button#show-more {
    background: var(--hm-bg-gray);
    border-color: var(--hm-border);
    color: var(--hm-text);
}

body.dark .blog_button button:hover,
body.dark button#show-more:hover {
    background: var(--hm-primary);
    border-color: var(--hm-primary);
    color: #fff;
}

/* ═══════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════ */

/* Note: display is controlled by blog.js (inline style).
   main.css sets display:none, blog.js sets display:flex when ready. */
.pagination {
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    padding: 0;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--hm-border);
    background: var(--hm-bg);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--hm-text);
    text-decoration: none;
    transition: all var(--hm-transition);
}

.page-numbers:hover {
    border-color: var(--hm-primary);
    color: var(--hm-primary);
    background: var(--hm-primary-light);
}

.page-numbers.current {
    background: var(--hm-primary);
    border-color: var(--hm-primary);
    color: #fff;
}

.pagination .next.page-numbers,
.pagination .prev.page-numbers {
    font-size: 12px;
    padding: 0 16px;
}

body.dark .page-numbers {
    background: var(--hm-bg-gray);
    border-color: var(--hm-border);
    color: var(--hm-text);
}

body.dark .page-numbers:hover {
    border-color: var(--hm-primary);
    color: var(--hm-primary);
}

body.dark .page-numbers.current {
    background: var(--hm-primary);
    border-color: var(--hm-primary);
    color: #fff;
}

/* ═══════════════════════════════════════════
   POST TAGS
   ═══════════════════════════════════════════ */

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
}

.tag-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid var(--hm-border-strong);
    background: var(--hm-bg);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--hm-text);
    cursor: pointer;
    transition: all var(--hm-transition);
    text-decoration: none;
}

.tag-filter strong {
    font-weight: 700;
}

.tag-filter:hover {
    border-color: var(--hm-primary);
    background: var(--hm-primary);
    color: #fff;
}

.tag-filter.active {
    background: var(--hm-primary);
    border-color: var(--hm-primary);
    color: #fff;
}

body.dark .tag-filter {
    background: var(--hm-bg-gray);
    border-color: var(--hm-border-strong);
    color: var(--hm-text);
}

body.dark .tag-filter:hover {
    border-color: var(--hm-primary);
    background: var(--hm-primary);
    color: #fff;
}

/* ═══════════════════════════════════════════
   SINGLE POST — Hero Image
   ═══════════════════════════════════════════ */

.article_relative {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.article_img {
    border-radius: 16px;
    overflow: hidden;
    max-height: 480px;
}

/* Hero images — all 3 variants (dk=desktop, lg=tablet, mb=mobile) */
.article_img_dk,
.article_img_lg,
.article_img_mb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

/* lg/mb hidden by default via main.css, shown by media.css at breakpoints */

/* Tags on hero image */
.six_absolute_article {
    top: 16px;
    left: 0;
    padding: 0 20px;
}

/* Reading time on hero */
.six_absolute2_article {
    bottom: 16px;
    left: 20px;
}

/* Date on hero */
.six_absolute2_article2 {
    bottom: 16px;
    right: 20px;
    left: auto;
}

/* Sidebar heading */
.two_title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--hm-text);
    margin: 0 0 16px 0;
}

body.dark .two_title {
    color: #fff;
}

/* Sidebar tag list */
.article_news_ul {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
}

.article_news_li {
    list-style: none;
}

/* Related article tag + time row */
.article_news_border2 {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.article_news_border2 img {
    width: 12px;
    height: 12px;
    border-radius: 0;
}

/* ═══════════════════════════════════════════
   SINGLE POST — Article Layout
   ═══════════════════════════════════════════ */

.article {
    display: flex;
    gap: 32px;
    padding: 32px 0 0 0;
}

.article_block {
    flex: 1;
    min-width: 0;
    width: auto;
}

.article_block2 {
    width: 340px;
    flex-shrink: 0;
    padding: 0;
}

/* Main content card — white on gray page (Tinkoff approach) */
.article_border {
    background: var(--hm-bg);
    border: 1px solid var(--hm-border);
    border-radius: 16px;
    padding: 32px 32px 32px 32px;
    margin: 32px 0 0 0;
}

body.dark .article_border {
    background: var(--hm-bg-gray);
    border-color: var(--hm-border);
}

/* Article headings */
.article_border h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--hm-text);
    line-height: 1.2;
    margin: 28px 0 16px 0;
    letter-spacing: -0.02em;
}

body.dark .article_border h2 {
    color: #fff;
}

.article_border h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--hm-text);
    line-height: 1.25;
    margin: 24px 0 12px 0;
}

body.dark .article_border h3 {
    color: #fff;
}

.article_border h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--hm-text);
    line-height: 1.3;
    margin: 20px 0 10px 0;
}

body.dark .article_border h4 {
    color: #fff;
}

/* Article body text — dark for readability (not secondary gray) */
.article_border p {
    font-size: 16px;
    color: var(--hm-text);
    line-height: 1.7;
    padding: 0 0 12px 0;
}

body.dark .article_border p {
    color: var(--hm-text);
}

/* Article links */
.article_border a {
    color: var(--hm-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(227, 30, 36, 0.3);
    transition: border-color var(--hm-transition);
}

.article_border a:hover {
    border-bottom-color: var(--hm-primary);
}

body.dark .article_border a {
    color: #ff6b6f;
    border-bottom-color: rgba(255, 107, 111, 0.3);
}

/* Article images — smaller, centered, with hover zoom */
.article_border img,
.article_border .wp-block-image img {
    width: auto !important;
    max-width: 100% !important;
    max-height: 420px;
    border-radius: 12px;
    margin: 16px auto;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article_border img:hover,
.article_border .wp-block-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.article_border .wp-block-image {
    text-align: center;
    margin: 16px 0;
}

/* Article lists — preserve padding-left for red plus markers (::before in main.css) */
.article_border ul li {
    font-size: 16px;
    color: var(--hm-text);
    line-height: 1.7;
    padding: 0 0 8px 25px;
    position: relative;
}

body.dark .article_border ul li {
    color: var(--hm-text);
}

.article_border ol li {
    font-size: 16px;
    color: var(--hm-text);
    line-height: 1.7;
    padding: 0 0 8px 7px;
}

/* ═══════════════════════════════════════════
   SINGLE POST — Sidebar
   ═══════════════════════════════════════════ */

.article_border2 {
    border: 1px solid var(--hm-border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--hm-bg);
    position: sticky;
    top: 100px;
}

body.dark .article_border2 {
    background: var(--hm-bg);
    border-color: var(--hm-border);
}

/* Related articles */
.article_news {
    display: block;
    padding: 16px;
    border-bottom: 1px solid var(--hm-border-light);
    transition: background var(--hm-transition);
    text-decoration: none;
    color: inherit;
}

.article_news:hover {
    background: var(--hm-bg-gray);
}

body.dark .article_news {
    border-bottom-color: var(--hm-border);
}

body.dark .article_news:hover {
    background: var(--hm-bg-gray);
}

.article_news:last-child {
    border-bottom: none;
}

/* Sidebar thumbnails */
.article_news_img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.article_news_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sidebar titles */
.article_news_title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--hm-text);
    line-height: 1.4;
    transition: color var(--hm-transition);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    padding: 0 0 0 12px;
}

.article_news_title:hover {
    color: var(--hm-primary);
}

body.dark .article_news_title {
    color: #fff;
}

body.dark .article_news_title:hover {
    color: var(--hm-primary);
}

/* Sidebar card top row (tags + time) */
.article_news_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Sidebar card body (image + title) */
.article_news_wrap {
    display: flex;
    align-items: center;
    padding: 12px 0 0 0;
}

.article_news_border {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 50px;
    background: var(--hm-primary-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--hm-primary);
}

body.dark .article_news_border {
    background: var(--hm-primary-light);
    color: var(--hm-primary);
}


/* ═══════════════════════════════════════════
   RELATED POSTS — New Card Design
   ═══════════════════════════════════════════ */

.related-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-card {
    display: block;
    border: 1px solid var(--hm-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--hm-bg);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

body.dark .related-card {
    background: var(--hm-bg-gray);
    border-color: var(--hm-border);
}

body.dark .related-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.related-card__img {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.related-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-card__img img {
    transform: scale(1.05);
}

.related-card__body {
    padding: 12px 14px 14px;
}

.related-card__cat {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--hm-primary, #e63946);
    background: var(--hm-primary-light, rgba(230, 57, 70, 0.1));
    padding: 3px 10px;
    border-radius: 4px;
}

body.dark .related-card__cat {
    background: rgba(230, 57, 70, 0.15);
    color: var(--hm-primary, #e63946);
}

.related-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--hm-text);
    margin: 8px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.dark .related-card__title {
    color: #fff;
}

.related-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #888;
}

body.dark .related-card__meta {
    color: #777;
}

.related-card__meta-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.related-card__meta-views svg {
    opacity: 0.6;
}

.related-card__meta-sep {
    color: #ccc;
}

body.dark .related-card__meta-sep {
    color: #555;
}

.related-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding: 12px 20px;
    border: 1px solid var(--hm-border);
    border-radius: 10px;
    background: var(--hm-bg);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--hm-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-more:hover {
    border-color: var(--hm-primary);
    color: var(--hm-primary);
}

body.dark .related-more {
    background: var(--hm-bg-gray);
    border-color: var(--hm-border);
    color: #fff;
}

body.dark .related-more:hover {
    border-color: var(--hm-primary);
    color: var(--hm-primary);
}


/* Hide scrollbar for related cards on mobile */
.related-cards::-webkit-scrollbar {
    display: none;
}
.related-cards {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ═══════════════════════════════════════════
   SECTION BACKGROUNDS — Match v2
   ═══════════════════════════════════════════ */

/* Page title (blog listing) */
.title2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--hm-text);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

body.dark .title2 {
    color: #fff;
}

/* Section five (blog on front page) */
.five {
    background: var(--hm-bg);
}

body.dark .five {
    background: var(--hm-bg-dark);
}

/* Three, Four sections */
body.dark .three {
    background: var(--hm-bg-dark);
}

body.dark .four {
    background: var(--hm-bg);
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Tablet (1024px)
   ═══════════════════════════════════════════ */


/* ========================================================================
   SINGLE POST HERO IMAGE (clean version)
   ======================================================================== */

.article__hero {
    border-radius: 16px;
    overflow: hidden;
    max-height: 480px;
    margin-bottom: 20px;
    background: var(--hm-card-bg, #1a1a2e);
}

.article__hero-img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 16px;
}

/* Dark mode hero */
body.dark .article__hero {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.08) 0%, rgba(20, 20, 20, 0.95) 40%, var(--hm-bg-gray) 100%);
}



/* ========================================================================
   CATEGORY DESCRIPTION (shown when filtering by category)
   ======================================================================== */

.blog__cat-description {
    margin-bottom: 28px;
    padding: 24px 28px;
    background: #f4f4f5;
    border-radius: 16px;
    border-left: 4px solid var(--hm-primary, #e63946);
}

.blog__cat-heading {
    font-family: "Montserrat", sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #111;
}

.blog__cat-description p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

/* Dark mode */
body.dark .blog__cat-description {
    background: rgba(255, 255, 255, 0.06);
    border-left-color: var(--hm-primary, #e63946);
}

body.dark .blog__cat-heading {
    color: #fff;
}

body.dark .blog__cat-description p {
    color: #bbb;
}


/* ═══════════════════════════════════════════
   RESPONSIVE — Tablet (768px)
   ═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   BLOG — News Block v2
   ═══════════════════════════════════════════ */

.news-block {
    background: linear-gradient(135deg, #fff 0%, #fff5f5 50%, #fff0f0 100%);
    border: 1px solid rgba(230, 57, 70, 0.12);
    border-radius: 16px;
    margin: 0 0 28px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(230, 57, 70, 0.06);
}

body.dark .news-block {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.08) 0%, rgba(20, 20, 20, 0.95) 40%, var(--hm-bg-gray) 100%);
    border-color: rgba(230, 57, 70, 0.15);
}

.news-block__header {
    padding: 18px 20px 0;
}

.news-block__title-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--hm-text);
    text-decoration: none;
    transition: color 0.2s;
}

body.dark .news-block__title-link {
    color: #fff;
}

.news-block__title-link:hover {
    color: var(--hm-primary, #e63946);
}

.news-block__live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--hm-primary, #e63946);
    border-radius: 50%;
    animation: news-pulse 2s ease-in-out infinite;
}

@keyframes news-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.5); }
    50% { box-shadow: 0 0 0 7px rgba(230, 57, 70, 0); }
}

.news-block__arrow {
    stroke: currentColor;
    opacity: 0.35;
    transition: opacity 0.2s, transform 0.2s;
}

.news-block__title-link:hover .news-block__arrow {
    opacity: 0.8;
    transform: translateX(3px);
}

.news-block__content {
    padding: 14px 20px 0;
}

/* Hero — featured news */
.news-block__hero {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    margin-bottom: 2px;
}

.news-block__hero-img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-block__hero:hover .news-block__hero-img {
    transform: scale(1.05);
}

.news-block__hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px 18px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.45) 55%, transparent 100%);
}

.news-block__hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.news-block__hero-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

/* Compact rows */
.news-block__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0 12px 14px;
    border-top: 1px solid rgba(230, 57, 70, 0.08);
    text-decoration: none;
    color: inherit;
    transition: padding-left 0.2s ease;
    position: relative;
}

.news-block__row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--hm-primary, #e63946);
    border-radius: 2px;
    transition: height 0.25s ease;
}

.news-block__row:hover::before {
    height: 55%;
}

.news-block__row:hover {
    padding-left: 18px;
}

body.dark .news-block__row {
    border-top-color: rgba(255,255,255,0.06);
}

.news-block__row-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--hm-text);
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}

.news-block__row:hover .news-block__row-title {
    color: var(--hm-primary, #e63946);
}

body.dark .news-block__row-title {
    color: #ccc;
}

body.dark .news-block__row:hover .news-block__row-title {
    color: var(--hm-primary, #e63946);
}

.news-block__row-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    white-space: nowrap;
}

.news-block__time {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #999;
}

body.dark .news-block__time { color: #666; }

.news-block__sep {
    color: #ccc;
    font-size: 12px;
}

body.dark .news-block__sep { color: #444; }

.news-block__views {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: #999;
}

body.dark .news-block__views { color: #666; }
.news-block__views svg { opacity: 0.5; }

.news-block__more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 20px;
    margin-top: 2px;
    border-top: 1px solid rgba(230, 57, 70, 0.08);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--hm-primary, #e63946);
    text-decoration: none;
    transition: gap 0.2s, opacity 0.2s;
    opacity: 0.75;
}

.news-block__more:hover {
    opacity: 1;
    gap: 10px;
}

body.dark .news-block__more {
    border-top-color: rgba(255,255,255,0.06);
}


/* ═══════════════════════════════════════════
   SINGLE POST — CTA Block
   ═══════════════════════════════════════════ */

.article__cta {
    position: relative;
    margin: 40px 0;
    border-radius: 20px;
    padding: 44px 40px;
    background: linear-gradient(135deg, #e63946 0%, #c62828 30%, #1a1a1a 70%, #111 100%);
    overflow: hidden;
    text-align: center;
}

.article__cta-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: cta-glow-pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cta-glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
}

body.dark .article__cta {
    background: linear-gradient(135deg, #b71c1c 0%, #7f0000 25%, #1a1a1a 65%, #0d0d0d 100%);
}

.article__cta-inner {
    position: relative;
    z-index: 1;
}

.article__cta-inner h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 28px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.article__cta-benefits {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.article__cta-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.article__cta-benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.article__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 40px;
    background: #fff;
    color: #e63946;
    border: none;
    border-radius: 50px;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.article__cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background: #fff;
    gap: 12px;
}

.article__cta-btn svg {
    transition: transform 0.3s;
}

.article__cta-btn:hover svg {
    transform: translateX(3px);
}

body.dark .article__cta-btn {
    background: #fff;
    color: #c62828;
}

.article__cta-note {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 16px 0 0;
}


@media (max-width: 768px) {
    /* Single article: stack sidebar below content */
    .article {
        flex-direction: column;
        gap: 24px;
    }

    .article_block2 {
        width: 100%;
        order: 2;
    }

    .article_block {
        width: 100%;
    }

    /* Related cards: horizontal scroll on tablet/mobile */
    .related-cards {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 14px;
        padding-bottom: 4px;
    }

    .related-cards::-webkit-scrollbar {
        display: none;
    }

    .related-card {
        min-width: 260px;
        max-width: 280px;
        flex-shrink: 0;
    }


    .article__cta {
        padding: 28px 20px;
        margin: 28px 0;
        border-radius: 16px;
    }

    .article__cta-inner h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .article__cta-benefits {
        flex-direction: column;
        gap: 14px;
        align-items: center;
        margin-bottom: 24px;
    }

    .article__cta-btn {
        padding: 14px 32px;
        font-size: 15px;
        width: 100%;
        max-width: 300px;
    }

    .blog_wrap,
    .six_wrap {
        gap: 16px;
        margin: 24px 0 0 0;
    }

    /* Hero image smaller on tablet */
    .article_img {
        max-height: 360px;
    }

    .article_border {
        padding: 24px 20px 20px 20px;
    }

    .article_border h2 {
        font-size: 22px;
        margin: 24px 0 12px 0;
    }

    .article_border h3 {
        font-size: 18px;
    }

    /* Article images — less restricted on tablet */
    .article_border img,
    .article_border .wp-block-image img {
        max-height: 360px;
    }

    .six_pd h3 {
        font-size: 16px;
    }

    .six_pd {
        padding: 16px;
    }

    /* Tag filters scroll on tablet */
    .post-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .post-tags::-webkit-scrollbar {
        display: none;
    }

    .tag-filter {
        flex-shrink: 0;
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Mobile (640px)
   ═══════════════════════════════════════════ */

@media (max-width: 640px) {
    .related-card {
        min-width: 240px;
        max-width: 260px;
    }

    .related-card__img {
        height: 130px;
    }

    .news-block__featured {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .news-block__featured-img {
        width: 100%;
        height: 160px;
    }

    .news-block__featured-title {
        font-size: 16px;
    }

    .news-block__item {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    /* Hero image mobile */
    .article__hero,
    .article__hero-img {
        max-height: 280px;
        border-radius: 12px;
    }

    .blog_wrap,
    .six_wrap {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog_li_link {
        padding: 8px 18px;
        font-size: 13px;
    }

    .six_pd h3 {
        font-size: 16px;
        -webkit-line-clamp: 2;
    }

    .six_title {
        -webkit-line-clamp: 2;
    }

    /* Blog card image — reasonable aspect ratio on single-column */
    .six_img {
        aspect-ratio: 16 / 9;
    }

    /* Hero image even smaller on mobile */
    .article_img {
        max-height: 280px;
        border-radius: 12px;
    }

    .article_relative {
        border-radius: 12px;
    }

    .article_border {
        padding: 20px 16px 16px 16px;
        border-radius: 12px;
    }

    .article_border h2 {
        font-size: 20px;
    }

    /* Article images — fit mobile screen */
    .article_border img,
    .article_border .wp-block-image img {
        max-height: 300px;
        border-radius: 8px;
    }

    .article_border2 {
        border-radius: 12px;
    }

    .article_news_img {
        width: 60px;
        height: 60px;
        border-radius: 10px;
    }

    /* Sidebar title smaller */
    .article_news_title {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .blog_button button,
    button#show-more {
        width: 100%;
        padding: 14px 32px;
    }

    /* Pagination smaller on mobile */
    .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 10px;
    }

    /* Lightbox padding smaller on mobile */
    .hm-lightbox {
        padding: 16px;
    }

    .hm-lightbox-close {
        top: -12px;
        right: -4px;
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Small phones (480px)
   ═══════════════════════════════════════════ */

@media (max-width: 480px) {
    /* News block — compact on mobile */
    .news-block {
        margin: 0 0 20px;
        border-radius: 12px;
    }

    .news-block__content {
        padding: 10px 14px 0;
    }

    .news-block__header {
        padding: 14px 14px 0;
    }

    .news-block__hero-img {
        height: 160px;
    }

    .news-block__hero-title {
        font-size: 15px;
    }

    .news-block__row {
        padding: 10px 0 10px 12px;
    }

    .news-block__row-title {
        font-size: 13px;
    }

    .news-block__more {
        padding: 12px 14px;
        font-size: 12px;
    }

    /* Blog card title — ensure it fits */
    .six_pd h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .blog__cat-description {
        padding: 16px 18px;
        margin-bottom: 20px;
    }

    .blog__cat-heading {
        font-size: 18px;
    }

    .blog__cat-description p {
        font-size: 13px;
    }

    /* Hero image phone */
    .article__hero,
    .article__hero-img {
        max-height: 220px;
        border-radius: 12px;
    }

    /* Ensure minimum container padding (media.css sets padding:0 at ≤550px) */
    body.single-post .container,
    body.page-template-page-blog .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Blog page title — smaller on phones */
    

    .six_pd {
        padding: 14px;
    }

    .six_pd h3 {
        font-size: 15px;
    }

    .six_title {
        font-size: 13px;
    }

    /* Smaller card radius on very small screens */
    .six_border {
        border-radius: 12px;
    }

    /* Hero image on phones */
    .article_img {
        max-height: 220px;
        border-radius: 12px;
    }

    .article_relative {
        border-radius: 12px;
    }

    /* Hero overlay badges — smaller on phones */
    .six_absolute_article {
        top: 8px;
        padding: 0 12px;
    }

    .six_li p {
        padding: 4px 10px;
        font-size: 11px;
    }

    .six_absolute2 p {
        padding: 4px 10px;
        font-size: 11px;
    }

    .article_border h2 {
        font-size: 18px;
    }

    .article_border h3 {
        font-size: 16px;
    }

    .article_border p {
        font-size: 15px;
    }

    /* Sidebar related articles — compact */
    .two_title {
        font-size: 18px;
    }
}

/* ═══════════════════════════════════════════
   LIGHTBOX — Click-to-zoom for article images
   ═══════════════════════════════════════════ */

.hm-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    padding: 32px;
    animation: hm-fade-in 0.2s ease;
}

@keyframes hm-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hm-lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.hm-lightbox img {
    max-width: 90vw !important;
    max-height: 90vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
    cursor: zoom-out;
    margin: 0;
    display: block;
}

.hm-lightbox-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: none;
    color: #222;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hm-lightbox-close:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* ═══════════════════════════════════════════════════
   FAQ PAGE — Tabs + Accordion (modern v2 redesign)
   ═══════════════════════════════════════════════════ */

/* Section wrapper */


/* Page title */


body.dark 

/* ── Tab Navigation ── */
ul

body.dark ul

ul

body.dark ul

ul

body.dark ul

ul

ul

body.dark ul

/* Tab icon circles */
ul

body.dark ul

ul

ul

ul

ul

body.dark ul

ul

ul

ul

/* ── Tab content panels ── */




/* ── Accordion ── */




body.dark 



body.dark 



body.dark 







/* Accordion toggle icon */




body.dark 







/* Accordion content */




body.dark 

/* ═══════════════════════════════════════════════════
   STOCK / BONUSES PAGE — Cards redesign
   ═══════════════════════════════════════════════════ */

.elementList {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.stock {
    background: var(--hm-bg-gray);
    border: 1px solid var(--hm-border);
    padding: 24px;
    border-radius: 16px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.dark .stock {
    background: var(--hm-bg-gray);
    border-color: var(--hm-border);
}

.stock:hover {
    border-color: var(--hm-border-strong);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

body.dark .stock:hover {
    border-color: var(--hm-border-strong);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.stock_left {
    width: 40%;
    display: flex;
    align-items: center;
}

.stock_icon_and_name {
    width: 40%;
    display: flex;
    align-items: center;
}

.stock_icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--hm-border);
}

body.dark .stock_icon {
    border-color: var(--hm-border);
}

.stock_icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stock_name {
    padding: 0 0 0 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--hm-text);
    line-height: 1.25;
}

body.dark .stock_name {
    color: var(--hm-text);
}

.stock_title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: var(--hm-text-secondary);
    width: 60%;
    padding: 0 0 0 16px;
}

body.dark .stock_title {
    color: var(--hm-text-secondary);
}

.stock_right {
    width: 60%;
    padding: 0 0 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stock_text {
    flex: 1;
}

.stock_stock {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--hm-text);
    line-height: 1.3;
}

body.dark .stock_stock {
    color: var(--hm-text);
}

.stock_stock span {
    color: var(--hm-primary);
}

.stock_suptitle {
    padding: 4px 0 0 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    line-height: 1.55;
    color: var(--hm-text-secondary);
}

body.dark .stock_suptitle {
    color: var(--hm-text-secondary);
}

/* Promo code button */
.stock_copy {
    background: var(--hm-primary);
    border-radius: 12px;
    width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    transition: background 0.2s ease;
}

.stock_copy:hover {
    background: var(--hm-primary-hover);
}

.stock_copy_label {
    display: flex;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
}

.stock_copy_button {
    position: relative;
    z-index: 1;
    margin: 0 0 0 8px;
    display: flex;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.stock_copy_button img {
    filter: brightness(10);
}

.copy-text_crm {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.copy-text_crm input.text {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Arrow link button */
.stock_link a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--hm-border-strong);
    border-radius: 12px;
    background: transparent;
    transition: border-color 0.2s ease, background 0.2s ease;
}

body.dark .stock_link a {
    border-color: var(--hm-border-strong);
}

.stock_link a:hover {
    border-color: var(--hm-primary);
    background: var(--hm-primary-light);
}

.stock_link a svg path {
    stroke: var(--hm-text);
    transition: stroke 0.2s ease;
}

body.dark .stock_link a svg path {
    stroke: var(--hm-text);
}

.stock_link a:hover svg path {
    stroke: var(--hm-primary);
}

.stock_buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stock_link {
    padding: 0;
}

/* ═══════════════════════════════════════════════════
   FAQ + STOCK — Responsive
   ═══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    /* Single article: stack on tablet too */
    .article {
        flex-direction: column;
        gap: 24px;
    }

    .article_block2 {
        width: 100%;
    }

    /* Tabs wrap on tablet */
    ul

    /* Stock card: stack layout */
    .stock {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .stock_left {
        width: 100%;
    }

    .stock_right {
        width: 100%;
        padding: 0;
    }

    .stock_icon_and_name {
        width: auto;
    }

    .stock_title {
        width: auto;
        flex: 1;
    }
}

@media (max-width: 768px) {
    

    /* Tabs: horizontal scroll */
    ul

    ul

    ul

    ul

    ul

    /* Accordion compact */
    

    

    

    /* Stock cards */
    .stock_left {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .stock_icon_and_name {
        width: 100%;
    }

    .stock_title {
        width: 100%;
        padding: 0;
    }

    .stock_right {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .stock_buttons {
        width: 100%;
    }

    .stock_copy {
        flex: 1;
    }
}

@media (max-width: 480px) {
    /* FAQ container padding */
    

    ul

    ul

    

    

    

    

    

    

    .stock {
        padding: 16px;
        border-radius: 12px;
    }

    .stock_stock {
        font-size: 16px;
    }

    .stock_copy {
        width: 100%;
        height: 40px;
        border-radius: 10px;
    }

    .stock_link a {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
}

/* ═══════════════════════════════════════════════════
   CTA BANNER (.nine) — Premium dark centered design
   ═══════════════════════════════════════════════════ */

.nine {
    padding: 64px 0;
}

/* ── Card — always dark, both themes ── */
.nine_border {
    border-radius: 24px;
    padding: 72px 40px 56px;
    background: #0f0f11;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

body.dark .nine_border {
    background: #0f0f11;
    border-color: rgba(255, 255, 255, 0.06);
}

/* Remove old background image */
.nine_border::before {
    display: none !important;
}

/* ── Decorative glow blobs ── */
.nine_glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
    opacity: 0.4;
}

.nine_glow--left {
    width: 400px;
    height: 400px;
    left: -100px;
    top: -100px;
    background: radial-gradient(circle, rgba(227, 30, 36, 0.5) 0%, transparent 70%);
}

.nine_glow--right {
    width: 350px;
    height: 350px;
    right: -80px;
    bottom: -80px;
    background: radial-gradient(circle, rgba(227, 30, 36, 0.3) 0%, transparent 70%);
}

/* ── Content wrapper — centered ── */
.nine_zindex {
    position: relative;
    z-index: 1;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ── Title — big bold, white ── */
.nine_heading,
.nine .title2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 48px;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0;
}

/* Accent word — wrap in <span> from ACF for red color */
.nine_heading span,
.nine .title2 span {
    color: var(--hm-primary);
}

/* ── Subtitle ── */
.nine_subtitle,
.nine_title {
    padding: 16px 0 0 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--hm-primary);
    font-style: italic;
}

/* ── Features row ── */
.nine_features {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 48px;
    margin-top: 36px;
}

.nine_feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nine_feature_icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: var(--hm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.nine_feature_text {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
}

/* ── CTA Button — outline pill (like reference) ── */
.nine_button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    color: #fff;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 60px;
    padding: 18px 48px;
    margin: 40px 0 0 0;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nine_button svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

.nine_button:hover {
    background: #fff;
    border-color: #fff;
    color: #0f0f11;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.15);
}

.nine_button:hover svg path {
    stroke: #0f0f11;
}

.nine_button:hover svg {
    transform: translateX(4px);
}

.nine_button:focus:active {
    transform: translateY(0);
    box-shadow: none;
    background: rgba(255, 255, 255, 0.9);
}

/* ── Disclaimer text ── */
.nine_disclaimer {
    margin-top: 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.5;
}

/* ── CTA Banner Responsive ── */
@media (max-width: 1024px) {
    .nine_heading,
    .nine .title2 {
        font-size: 40px;
    }

    .nine_features {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nine {
        padding: 48px 0;
    }

    .nine_border {
        padding: 48px 24px 40px;
        border-radius: 20px;
    }

    .nine_heading,
    .nine .title2 {
        font-size: 32px;
    }

    .nine_subtitle,
    .nine_title {
        font-size: 15px;
    }

    .nine_features {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 28px;
    }

    .nine_feature {
        width: 100%;
        max-width: 280px;
    }

    .nine_button {
        padding: 16px 36px;
        font-size: 15px;
        margin-top: 32px;
    }

    .nine_glow--left {
        width: 250px;
        height: 250px;
    }

    .nine_glow--right {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .nine {
        padding: 40px 0;
    }

    .nine_border {
        padding: 40px 20px 32px;
        border-radius: 16px;
    }

    .nine_heading,
    .nine .title2 {
        font-size: 26px;
    }

    .nine_subtitle,
    .nine_title {
        font-size: 14px;
    }

    .nine_feature_icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 10px;
    }

    .nine_feature_text {
        font-size: 12px;
    }

    .nine_button {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        margin-top: 28px;
    }

    .nine_disclaimer {
        font-size: 12px;
    }
}

/* ═══════════════════════════════════════════
   LEGAL PAGES (Terms, Privacy, Cookie Policy)
   page.php template: section.page

/* Page title */
section.page .page_header {
    margin-bottom: 32px;
}

section.page .page_header .title2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--hm-text, #222);
    letter-spacing: -0.01em;
}

/* Article content card */
section.page .page_article.article_border {
    background: var(--hm-bg, #fff);
    border: 1px solid var(--hm-border, rgba(0,0,0,0.09));
    border-radius: 16px;
    padding: 40px 48px;
    max-width: 860px;
}

/* Typography inside legal pages */
section.page .content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--hm-text, #222);
    margin: 36px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--hm-border-light, rgba(0,0,0,0.05));
}

section.page .content h2:first-child {
    margin-top: 0;
}

section.page .content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--hm-text, #222);
    margin: 24px 0 12px;
}

section.page .content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--hm-text-secondary, rgba(34,34,34,0.6));
    margin: 0 0 14px;
}

section.page .content ul {
    margin: 0 0 16px;
    padding-left: 24px;
    list-style: none;
}

section.page .content ul li {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--hm-text-secondary, rgba(34,34,34,0.6));
    margin-bottom: 6px;
    position: relative;
    padding-left: 16px;
}

section.page .content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--hm-primary, #E31E24);
}

section.page .content ul li strong {
    color: var(--hm-text, #222);
    font-weight: 600;
}

section.page .content a {
    color: var(--hm-primary, #E31E24);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--hm-transition, 0.2s ease-in-out);
}

section.page .content a:hover {
    border-bottom-color: var(--hm-primary, #E31E24);
}

section.page .content em {
    color: var(--hm-text-tertiary, rgba(34,34,34,0.45));
    font-size: 13px;
}

/* Table styling (for Cookie Policy) */
section.page .content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

section.page .content table th {
    background: var(--hm-bg-gray, #f5f5f5);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--hm-text, #222);
    border-bottom: 2px solid var(--hm-border, rgba(0,0,0,0.09));
}

section.page .content table td {
    padding: 10px 16px;
    color: var(--hm-text-secondary, rgba(34,34,34,0.6));
    border-bottom: 1px solid var(--hm-border-light, rgba(0,0,0,0.05));
}

section.page .content code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    background: var(--hm-bg-gray, #f5f5f5);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--hm-text, #222);
}

/* Dark mode for legal pages */
body.dark section.page .page_header .title2 {
    color: #111;
}

body.dark section.page .page_article.article_border {
    background: var(--hm-bg, #1a1a1a);
    border-color: var(--hm-border, rgba(255,255,255,0.08));
}

body.dark section.page .content h2 {
    color: #111;
    border-bottom-color: var(--hm-border-light, rgba(255,255,255,0.05));
}

body.dark section.page .content h3 {
    color: #111;
}

body.dark section.page .content p {
    color: var(--hm-text-secondary, rgba(255,255,255,0.6));
}

body.dark section.page .content ul li {
    color: var(--hm-text-secondary, rgba(255,255,255,0.6));
}

body.dark section.page .content ul li strong {
    color: #111;
}

body.dark section.page .content em {
    color: var(--hm-text-tertiary, rgba(255,255,255,0.4));
}

body.dark section.page .content table th {
    background: rgba(255,255,255,0.05);
    color: #111;
    border-bottom-color: var(--hm-border, rgba(255,255,255,0.08));
}

body.dark section.page .content table td {
    color: var(--hm-text-secondary, rgba(255,255,255,0.6));
    border-bottom-color: var(--hm-border-light, rgba(255,255,255,0.05));
}

body.dark section.page .content code {
    background: rgba(255,255,255,0.08);
    color: #111;
}

/* Responsive legal pages */
@media (max-width: 768px) {
    section.page

    section.page .page_header .title2 {
        font-size: 28px;
    }

    section.page .page_article.article_border {
        padding: 28px 24px;
    }

    section.page .content h2 {
        font-size: 20px;
    }

    section.page .content h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    section.page .page_header .title2 {
        font-size: 24px;
    }

    section.page .page_article.article_border {
        padding: 20px 16px;
        border-radius: 12px;
    }

    section.page .content h2 {
        font-size: 18px;
        margin: 28px 0 12px;
    }

    section.page .content p,
    section.page .content ul li {
        font-size: 14px;
    }

    section.page .content table {
        font-size: 13px;
    }

    section.page .content table th,
    section.page .content table td {
        padding: 8px 10px;
    }
}

/* ═══════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════ */

@media print {
    .article_block2 {
        display: none;
    }
}


/* ═══════════════════════════════════════════════════════ */
/* BLOG ENHANCEMENTS                                       */

/* --- Breadcrumbs --- */
.article__breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--hm-text-secondary);
    margin-bottom: 16px;
}

.article__breadcrumbs a {
    color: var(--hm-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article__breadcrumbs a:hover {
    color: var(--hm-primary);
}

.article__breadcrumbs-sep {
    color: var(--hm-text-secondary);
    opacity: 0.4;
    font-size: 11px;
}

.article__breadcrumbs-current {
    color: var(--hm-text);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

/* --- Post Meta Bar --- */
.article__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    margin: 20px 0 0;
    border-bottom: 1px solid var(--hm-border);
    font-size: 13px;
    color: var(--hm-text-secondary);
}

.article__reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article__reading-time svg {
    flex-shrink: 0;
}

.article__meta-cat {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--hm-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.article__meta-cat:hover {
    opacity: 0.85;
    color: #fff;
}

.article__share {
    margin: 32px 0 0;
    padding: 24px 0;
    border-top: 1px solid var(--hm-border);
}

.article__share-heading {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--hm-text-secondary);
    margin-bottom: 14px;
}

.article__share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article__share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    border: none;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    line-height: 1;
}

.article__share-btn:hover {
    transform: translateY(-2px);
}

.article__share-btn:active {
    transform: translateY(0);
}

.article__share-btn svg {
    flex-shrink: 0;
}

.article__share-btn-label {
    pointer-events: none;
}

.article__share-btn--telegram  { background: #0088cc; }
.article__share-btn--telegram:hover  { box-shadow: 0 4px 12px rgba(0,136,204,0.4); }

.article__share-btn--vk        { background: #4680C2; }
.article__share-btn--vk:hover        { box-shadow: 0 4px 12px rgba(70,128,194,0.4); }


.article__share-btn--whatsapp  { background: #25D366; }
.article__share-btn--whatsapp:hover  { box-shadow: 0 4px 12px rgba(37,211,102,0.4); }

.article__share-btn--facebook  { background: #1877F2; }
.article__share-btn--facebook:hover  { box-shadow: 0 4px 12px rgba(24,119,242,0.4); }

.article__share-btn--x         { background: #000; }
.article__share-btn--x:hover         { box-shadow: 0 4px 12px rgba(0,0,0,0.3); }

.article__share-btn--linkedin  { background: #0A66C2; }
.article__share-btn--linkedin:hover  { box-shadow: 0 4px 12px rgba(10,102,194,0.4); }

.article__share-btn--pinterest { background: #E60023; }
.article__share-btn--pinterest:hover { box-shadow: 0 4px 12px rgba(230,0,35,0.4); }

.article__share-btn--copylink  { background: #6c757d; position: relative; }
.article__share-btn--copylink:hover  { box-shadow: 0 4px 12px rgba(108,117,125,0.4); }

.article__share-tooltip {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.article__share-tooltip.visible {
    opacity: 1;
}

/* Dark mode */
body.dark .article__share-btn--x {
    background: #fff;
    color: #000;
}

body.dark .article__share-btn--copylink {
    background: #4a4a4a;
}


/* --- Prev/Next Navigation --- */
.article__nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0 0;
    margin: 0 0 20px;
}

.article__nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 48%;
    text-decoration: none;
    color: var(--hm-text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.article__nav-link:hover {
    color: var(--hm-primary);
}

.article__nav-link--next {
    margin-left: auto;
    text-align: right;
}

.article__nav-arrow {
    font-size: 16px;
    flex-shrink: 0;
}

.article__nav-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Dark Mode --- */


body.dark .article__share-btn--x:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* --- Responsive --- */
@media screen and (max-width: 768px) {
    .article__breadcrumbs {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .article__breadcrumbs-current {
        max-width: 180px;
    }

    .article__meta {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 0;
    }

    .article__cta {
        padding: 28px 20px;
        margin: 24px 0;
    }

    .article__cta-inner h3 {
        font-size: 18px;
    }

    .article__cta-btn {
        padding: 12px 28px;
        font-size: 14px;
        width: 100%;
    }

    .article__share-btn-label {
        display: none;
    }

    .article__share-btn {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
        border-radius: 12px;
    }

    .article__nav {
        flex-direction: column;
        gap: 12px;
    }

    .article__nav-link {
        max-width: 100%;
    }
}

/* --- Reusable CTA Block (for inline use) --- */
.hunt-cta-block {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1215 50%, #3d0d0d 100%);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin: 24px 0;
}

.hunt-cta-block h3 {
    color: #fff !important;
    font-size: 20px;
}

.hunt-cta-block p {
    color: rgba(255, 255, 255, 0.7) !important;
}


/* ========================================================================
   BLOG REDESIGN — Category Tabs, Updated Cards, TOC, Sorting
   ======================================================================== */

/* --- Filters row (categories + sort) --- */
.blog__filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

/* --- Category Tabs --- */
.blog__categories {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    flex: 1;
    min-width: 0;
}

.blog__categories::-webkit-scrollbar {
    display: none;
}

.blog__cat-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    color: var(--hm-text, #1a1a1a);
    background: var(--hm-card-bg, #f4f4f5);
    border: 1px solid var(--hm-border, #e4e4e7);
    transition: all 0.2s ease;
}

.blog__cat-link:hover {
    background: var(--hm-primary, #e11d48);
    color: #fff;
    border-color: var(--hm-primary, #e11d48);
}

.blog__cat-link--active {
    background: var(--hm-primary, #e11d48);
    color: #fff;
    border-color: var(--hm-primary, #e11d48);
}

/* --- Sort Buttons --- */
.blog__sort {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.blog__sort-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    color: var(--hm-text-secondary, #71717a);
    background: transparent;
    border: 1px solid var(--hm-border, #e4e4e7);
    transition: all 0.2s ease;
}

.blog__sort-btn:hover {
    color: var(--hm-text, #1a1a1a);
    border-color: var(--hm-text, #1a1a1a);
}

.blog__sort-btn--active {
    color: var(--hm-text, #1a1a1a);
    background: var(--hm-card-bg, #f4f4f5);
    border-color: var(--hm-text, #1a1a1a);
    font-weight: 600;
}

/* --- Updated Card Design --- */
.blog__card-cat {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--hm-primary, #e11d48);
    margin-bottom: 6px;
}

.six_pd h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog__card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.5;
    color: var(--hm-text-secondary, #71717a);
    margin: 0 0 auto;
}

.blog__card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--hm-text-secondary, #71717a);
    margin-top: auto;
    padding-top: 12px;
}

.blog__card-meta svg {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
}

.blog__card-meta-sep {
    color: var(--hm-border, #d4d4d8);
}

.blog__card-views {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* Make card content flex column for proper spacing */
.six_pd {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--hm-text-secondary, #71717a);
    font-size: 16px;
}

/* --- Table of Contents (TOC) --- */
.article__toc {
    background: #f4f4f5;
    border-left: 3px solid var(--hm-primary, #e11d48);
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.article__toc-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--hm-text, #1a1a1a);
    cursor: pointer;
    font-family: inherit;
}

.article__toc-arrow {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.article__toc--collapsed .article__toc-arrow {
    transform: rotate(-90deg);
}

.article__toc-body {
    margin-top: 12px;
}

.article__toc--collapsed .article__toc-body {
    display: none;
}

.article__toc-list {
    list-style: none;
    counter-reset: toc-counter;
    padding: 0;
    margin: 0;
}

.article__toc-list > li {
    counter-increment: toc-counter;
    padding: 0;
    margin: 0;
}

.article__toc-list > li::before {
    content: counter(toc-counter) ". ";
    font-weight: 600;
    color: var(--hm-primary, #e11d48);
}

.article__toc-list > li > a {
    display: inline;
    color: var(--hm-text, #1a1a1a);
    text-decoration: none;
    font-size: 15px;
    line-height: 2;
    transition: color 0.15s ease;
}

.article__toc-list > li > a:hover {
    color: var(--hm-primary, #e11d48);
}

/* Nested list for h3 */
.article__toc-list ol {
    list-style: none;
    padding-left: 24px;
    margin: 0;
    counter-reset: toc-sub-counter;
}

.article__toc-list ol > li {
    counter-increment: toc-sub-counter;
}

.article__toc-list ol > li::before {
    content: counter(toc-counter) "." counter(toc-sub-counter) " ";
    font-weight: 500;
    color: var(--hm-text-secondary, #71717a);
    font-size: 13px;
}

.article__toc-list ol > li > a {
    display: inline;
    color: var(--hm-text-secondary, #71717a);
    text-decoration: none;
    font-size: 14px;
    line-height: 2;
    transition: color 0.15s ease;
}

.article__toc-list ol > li > a:hover {
    color: var(--hm-primary, #e11d48);
}

/* --- Views in article meta --- */
.article__meta-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article__meta-views svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

/* ========================================================================
   BLOG REDESIGN — Dark Mode
   ======================================================================== */
body.dark .blog__cat-link {
    color: #e4e4e7;
    background: #27272a;
    border-color: #3f3f46;
}

body.dark .blog__cat-link:hover,
body.dark .blog__cat-link--active {
    background: var(--hm-primary, #e11d48);
    color: #fff;
    border-color: var(--hm-primary, #e11d48);
}

body.dark .blog__sort-btn {
    color: #a1a1aa;
    border-color: #3f3f46;
}

body.dark .blog__sort-btn:hover {
    color: #e4e4e7;
    border-color: #e4e4e7;
}

body.dark .blog__sort-btn--active {
    color: #e4e4e7;
    background: #27272a;
    border-color: #e4e4e7;
}

body.dark .blog__card-cat {
    color: #fb7185;
}

body.dark .blog__card-excerpt {
    color: #a1a1aa;
}

body.dark .blog__card-meta {
    color: #a1a1aa;
}

body.dark .blog__card-meta-sep {
    color: #52525b;
}

body.dark .article__toc {
    background: #1e1e22;
    border-left-color: var(--hm-primary, #e11d48);
}

body.dark .article__toc-title {
    color: #e4e4e7;
}

body.dark .article__toc-list > li > a {
    color: #d4d4d8;
}

body.dark .article__toc-list > li > a:hover {
    color: #fb7185;
}

body.dark .article__toc-list ol > li > a {
    color: #a1a1aa;
}

body.dark .article__toc-list ol > li > a:hover {
    color: #fb7185;
}

body.dark .article__meta-views svg {
    opacity: 0.5;
}

body.dark .blog__empty {
    color: #71717a;
}

/* ========================================================================
   BLOG REDESIGN — Responsive
   ======================================================================== */
@media (max-width: 1024px) {
    .blog__filters {
        flex-wrap: wrap;
        gap: 10px;
    }

    .blog__categories {
        order: 1;
        width: 100%;
    }

    .blog__sort {
        order: 2;
    }
}

@media (max-width: 768px) {
    .blog__cat-link {
        padding: 6px 14px;
        font-size: 13px;
    }

    .blog__sort-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .article__toc {
        padding: 16px 18px;
    }

    .article__toc-list > li > a {
        font-size: 14px;
        line-height: 1.8;
    }
}

@media (max-width: 640px) {
    .blog__filters {
        margin-bottom: 12px;
    }

    .blog__categories {
        gap: 6px;
        padding-right: 16px;
    }

    .blog__cat-link {
        padding: 6px 12px;
        font-size: 12px;
    }

    .blog__sort {
        width: 100%;
        justify-content: flex-start;
    }

    .blog__sort-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .article__toc {
        padding: 14px 16px;
        margin-bottom: 20px;
    }

    .article__toc-title {
        font-size: 15px;
    }

    .article__toc-list > li > a {
        font-size: 13px;
    }

    .article__toc-list ol > li > a {
        font-size: 13px;
    }

    .blog__card-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .blog__card-meta {
        font-size: 12px;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .blog__cat-link {
        padding: 5px 10px;
        font-size: 11px;
        border-radius: 16px;
    }

    .article__toc {
        padding: 12px 14px;
        border-radius: 0 8px 8px 0;
    }

    .article__toc-list {
        padding-left: 0;
    }

    .article__toc-list ol {
        padding-left: 16px;
    }
}

/* ═══ Dark mode: policy/legal pages ═══ */
body.dark .page .article_border,
body.dark .page .article_border .content {
    color: #e0e0e0 !important;
}

body.dark .page .article_border h1,
body.dark .page .article_border h2,
body.dark .page .article_border h3,
body.dark .page .article_border h4 {
    color: #ffffff !important;
}

body.dark .page .article_border p,
body.dark .page .article_border li {
    color: #e0e0e0 !important;
}

body.dark .page .article_border strong,
body.dark .page .article_border b {
    color: #f2f3f5 !important;
}

body.dark .page .article_border em {
    color: #d0d0d0 !important;
}

body.dark .page .article_border a {
    color: #ff6b6f !important;
}

body.dark 
/* ===== Mobile Menu Improvements ===== */

/* Make burger_wrap a proper flex row with vertical alignment */
.burger_wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 0 0;
}

/* burger_mobile: lang + theme toggle inline */
.burger_mobile {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Remove top padding from header_subject inside burger_mobile */
.burger_mobile .header_subject {
    padding: 0;
    margin: 0;
}

.burger_mobile .header_subject button {
    margin: 0;
}

.burger_mobile .header_language {
    margin: 0;
}

/* Nav items: pill style, not square boxes */
@media (max-width: 1180px) {
    .mt-munu-mb .header_nav_ul li {
        padding: 4px 0;
    }

    .mt-munu-mb .header_nav_ul li a {
        border-radius: 14px;
        padding: 14px 20px;
        font-size: 16px;
        font-weight: 600;
        letter-spacing: 0.01em;
        border: 1px solid rgba(0,0,0,0.06);
        background: #F6F7F9;
        transition: all 0.2s ease;
    }

    .mt-munu-mb .header_nav_ul li a:hover,
    .mt-munu-mb .header_nav_ul li a:active {
        background: #FEE;
        border-color: rgba(227,30,36,0.15);
        color: #E31E24;
    }

    /* Buttons: Вход / Регистрация */
    .burger_button .header_buttons button,
    .burger_button .header_buttons a {
        border-radius: 14px;
        font-size: 16px;
        padding: 16px 0;
    }
}

/* Dark theme overrides for mobile menu */
.dark .mt-munu-mb .header_nav_ul li a {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
}

.dark .mt-munu-mb .header_nav_ul li a:hover,
.dark .mt-munu-mb .header_nav_ul li a:active {
    background: rgba(227,30,36,0.1);
    border-color: rgba(227,30,36,0.25);
    color: #E31E24;
}

.dark .burger_button .header__log-in,
.dark .burger_button .header__logout {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
}