/*!
Theme Name: pixelscan
Theme URI: https://underscores.me/
Author: vertopolkaLF
Author URI: https://vertopolkalf.ru/
Description: Custom Theme for pixelscan.net
Version: 1.3
Tested up to: 6.8
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: pixelscan
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

pixelscan is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/



:root {
    --sitewidth: min(1230px, 92vw);
    --sitewidth-small: calc(100vw - 4rem);

    --link-hover: #007c48;
    --main-color: #006239;

    --bright-color: #54cc98;

    --text-main: #131313;
    --text-secondary: #4F5067;

    --header-height: 75px;
    interpolate-size: allow-keywords;


}

::selection {
    background-color: #54cc98;
    color: #000;
}

* {
    font-family: var(--font-inter);
}

mark {
    background: var(--bright-color);
}

img {
    -webkit-backface-visibility: hidden;
    -ms-transform: translateZ(0);
    /* IE 9 */
    -webkit-transform: translateZ(0);
    /* Chrome, Safari, Opera */
    transform: translateZ(0);
    will-change: transform;
}

.hide-mobile {
    display: contents;
}

.hide-desktop {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }

    .hide-desktop {
        display: contents;
    }
}

.container {
    width: var(--sitewidth);
    margin-left: auto !important;
    margin-right: auto !important;
}

a {
    color: var(--link-hover);
    word-wrap: break-word;
}

main {
    padding-top: var(--header-height);
}



/* HEADER.css */

.custom-logo-link {
    display: contents;
}


header a {
    line-height: 1;
}


.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    border-bottom: 1px solid #eaecf0;
    padding: 12px 0;
    background: #fff;
}

body.admin-bar .site-header {
    top: calc(0px + var(--wp-admin--admin-bar--height, 32px));
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 0;
    }
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

div.header-menu {
    width: 100%;
}

ul.menu,
ul.sub-menu {
    display: flex;
    align-items: center;
    list-style: none;
    padding-inline-start: 0;
    margin: 0;
    gap: 30px;
}

ul.menu a {
    display: flex;
    align-items: center;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: .2s;
}

ul.menu li:hover>a,
ul.menu a:hover,
.active {
    color: var(--link-hover);
}

svg,
svg * {
    transition: .2s;
}

header a:hover * {
    fill: var(--link-hover);
}

.menu-item-has-children {
    position: relative;
}

.menu-item-has-children>a:after {
    content: url('data:image/svg+xml;utf8,<svg class="e-font-icon-svg e-fas-chevron-down" viewBox="0 0 448 512" xmlns="http://www.w3.org/2000/svg"><path d="M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"></path></svg>');
    width: 12px;
    height: 12px;
    transition: .2s;
    margin-left: 5px;
    transform-origin: center 55%;
}

.menu-item-has-children:hover>a:after {
    transform: rotateX(180deg);
    filter: invert(27%) sepia(51%) saturate(2878%) hue-rotate(150deg) brightness(104%) contrast(97%);
}


ul.sub-menu {
    position: absolute;
    top: 30px;
    left: 0;
    flex-direction: column;
    padding: 15px;
    gap: 5px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0px 4px 10px 4px rgba(28, 28, 31, 0.1);
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: .25s ease;
    transform-origin: top center;
    transform: translateY(-20px) scaleY(0.9);
    filter: blur(5px);
}


.menu-item-has-children:hover ul.sub-menu {
    transform: translateY(0px) scaleY(1);
    filter: blur(0px);
    pointer-events: all;
    opacity: 1;
    z-index: 1000000;
}


ul.sub-menu:before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    background: transparent;
    width: 100%;
    height: 15px;
    display: block;
}

ul.sub-menu li {
    display: contents;
}

ul.sub-menu a {
    padding: 10px 15px;
    text-wrap: nowrap;
    width: 100%;
    border-radius: 8px;
}

ul.sub-menu a:hover {
    background: #edf4f1;
}

/* Mobile Menu Toggle Button - Hidden on Desktop */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 4px;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background-color: #131313;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}



/* Mobile Menu Overlay - Hidden on Desktop */
.mobile-menu-overlay {
    display: none;
}


/* FOOTER.css */

/* Footer Styles */
.site-footer {
    background-color: #131313;
    color: #ffffff;
    padding: 60px 0 30px;
}

.telegram-banner {
    position: relative;
    border: 2px solid var(--bright-color);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 60px;
    overflow: clip;
    background: linear-gradient(90deg, #000b06 20%, #001e11);
}

.telegram-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.telegram-banner-content h3 {
    position: relative;
    color: #ffffff;
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.2;
    z-index: 100;
}

.telegram-banner-content p {
    position: relative;
    width: 60%;
    text-wrap: balance;
    color: #ffffff;
    font-size: 18px;
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
    z-index: 100;
}

.telegram-banner-button {
    position: relative;
    display: flex;
    gap: 10px;
    background: #006239;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 100;
}

.telegram-banner-button:hover {
    background-color: #f8f8f8;
    color: #006239;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tg-bg {
    position: absolute;
    left: -10%;
    top: 0;
    width: 50%;
    height: 100%;
    transform: perspective(200px) scale(2.1) rotateX(35deg) rotateY(180deg);
    opacity: 0.4;
    animation: gridMove 60s linear infinite;
    background-size: contain;
    z-index: 1;
}

.footer-content {
    border-top: 1px solid #d0d5dd1a;
    padding-top: 40px;
}

.footer-content .container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

.pixelscan-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.pixelscan-info img {
    max-width: 300px;
    height: auto;
}

.contact-us {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-us span {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

.contact-us a {
    color: #54cc98;
    font-size: 16px;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-us a:hover {
    color: #7dd3af;
}

.footer-menu-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-menu-column {
    display: flex;
    flex-direction: column;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-menu li {
    margin: 0;
    padding: 0;
}


h3.footer-menu-title {
    color: #54cc98;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.footer-menu li a {
    display: inline-block;
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    line-height: 1.5;
    transition: .2s;
}

.footer-menu li a:hover {
    color: #54cc98;
    transform: translateX(4px);
}

/* Sub-menu styles */
.footer-menu .sub-menu {
    list-style: none;
    margin: 8px 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-menu .sub-menu li a {
    color: #cccccc;
    font-size: 15px;
    padding-left: 16px;
    position: relative;
}

.footer-menu .sub-menu li a:before {
    content: '→';
    position: absolute;
    left: 0;
    color: #54cc98;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-menu .sub-menu li a:hover:before {
    opacity: 1;
}

/* Bottom footer section */
.footer-bottom {
    border-top: 1px solid #d0d5dd1a;
    margin-top: 40px;
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: #d0d5dd;
}

.footer-bottom-links {
    display: flex;
    gap: 32px;
}

.footer-bottom-links a {
    color: #d0d5dd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #54cc98;
}


@keyframes gridMove {
    0% {
        background-position: 0px 800px
    }

    100% {
        background-position: 0px 0px
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none;
    }
}


/* Index Page */

li.menu-item.new a:after {
    content: "New";
    border: 2px solid currentColor;
    border-radius: 100px;
    font-size: 12px;
    padding: 4px 8px;
    margin-left: 5px;
}


/* FEATURED POST */

.last-post {
    color: #000;
    margin: 2.5rem 1rem 6.5rem;
    display: flex;
    align-items: center;
    gap: 5rem;
    position: relative;
    overflow: hidden;
}

.post-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 50%;
    gap: 1rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.post-meta-top {
    display: flex;
    align-items: center;
    padding: 4px;
    gap: 6px;
    background: #00623912;
    border: 1px solid #54CE9B4D;
    border-radius: 20px;
    width: fit-content;
    flex-wrap: wrap;
    justify-content: space-between;
}

.post-meta-additional {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.post-meta-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-tag {
    background: #fff;
    border: 1px solid #54CE9B4D;
    color: var(--main-color);
    padding: 8px 10px;
    line-height: 1;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 400;
}

.read-time {
    padding: 8px 10px;
    background-color: #00623912;
    border: 1px solid #54CE9B4D;
    color: var(--main-color);
    border-radius: 100px;
    font-size: 14px;
    line-height: 1;
}

.post-meta-top .read-time {
    color: var(--main-color);
    margin-right: 12px;
    margin-left: 6px;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: 16px;
    background-color: transparent;
}


.post-date .entry-date {
    color: var(--text-secondary);
    font-weight: 400;
    text-decoration: none;
}

.last-post .entry-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 48px;
    letter-spacing: 0.01em;
    margin: 0;
}

.last-post .entry-title a {
    color: #000;
    text-decoration: none;
}

.last-post .entry-title a:hover {
    color: rgba(0, 0, 0, 0.9);
}

.last-post .entry-excerpt {
    color: var(--text-secondary);
    font-size: 20px;
    line-height: 30px;
}

.last-post .entry-excerpt p {
    margin: 0;
}

.btn {
    display: inline-flex;
    gap: 0.5rem;
    line-height: 1;
    background: var(--main-color);
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    width: fit-content;
    padding: 1rem 2rem;
    border-radius: 10px;
    justify-content: center;
    transition: .2s;
}

.btn svg {
    fill: currentColor;
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.btn:hover,
.btn:focus {
    background: #007b48;
    transform: translateY(-2px);
    color: #fff;
}

.last-post .read-more-btn {
    gap: 0.5rem;
    line-height: 1;
    background: var(--main-color);
    color: #fff !important;
    padding: 18px 32px;
    border-radius: 10px;
    transition: .2s;
}

.last-post .read-more-btn:hover {
    background: #007b48;
    transform: translateY(-2px);
}

.last-post .read-more-btn svg {
    fill: currentColor;
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.last-post .read-more-btn:hover svg {
    transform: translateX(4px);
}

.last-post .post-image {
    border-radius: 20px;
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: clip;
}

/* POST GRID */

.post-card-link {
    display: contents;
}

.post-grid-container {
    background: #f4f9f7;
    position: relative;
}

.post-grid .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.post-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: clip;
    border: 1px solid #EAECF0;
    color: #000;
    transition: .3s ease;
    background: #fff;
}

.post-card .post-image {
    display: flex;
}

.post-card .post-meta-top {
    gap: 3px;
}

.post-card .post-tag {
    font-size: 14px;
    padding: 6px 8px;
}

.post-card .post-card_content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 10px;
    padding: 10px 20px 20px 20px;
    position: relative;
}

.post-card_content * {
    margin: 0;
}

.post-card_content h4 {
    font-weight: 700;
    text-decoration: none;
    line-height: 32px;
    font-size: 24px;
    color: #131313;
    transition: .2s;
    text-wrap: balance;
}

.post-card_content .entry-excerpt {
    height: 100%;
    font-size: 18px;
    color: #232323;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    /* The number of lines you want to display */
    -webkit-box-orient: vertical;
    /* Essential for -webkit-line-clamp to work */
    text-overflow: ellipsis;
    text-wrap: balance;
    overflow: hidden;
}

.post-meta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.post-card_content-icon {
    position: absolute;
    right: 20px;
    top: 20px;
    height: 18px;
    width: 18px;
}

.post-card .post-image img {
    height: 250px;
    object-fit: cover;
}


.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 0px 20px 5px #54cc9833;
}

.post-card:hover h4 {
    color: var(--main-color);
}

.post-card:hover .post-card_content-icon {
    transform: translate(2px, -2px);
}

/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    padding: 40px 0;
    width: 100%;
}

.load-more-btn {
    border: none;
    cursor: pointer;
    background: var(--main-color);
    color: #fff;
    display: inline-flex;
    gap: 0.5rem;
    line-height: 1;
    align-items: center;
    text-decoration: none;
    font-weight: 600;
    width: fit-content;
    padding: 18px 32px;
    border-radius: 10px;
    justify-content: center;
    transition: .2s;
}

.load-more-btn:hover:not(.disabled) {
    background: #007b48;
    transform: translateY(-2px);
    color: #fff;
}

.load-more-btn.loading {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.load-more-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.load-more-btn svg {
    fill: currentColor;
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.load-more-btn:hover:not(.disabled) svg {
    transform: translateY(4px);
}

.loading-posts,
.loading-partners,
.no-posts-found {
    width: 100%;
    text-align: center;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    font-size: 16px;
    color: var(--text-secondary);
}

.search-title {
    width: 100%;
    grid-column: 1 / -1;
    margin: 0;
}

/* Single Post */

/* Single Post Styles */
.nav-container {
    padding: 2rem 0 1rem;
}

/* Full Width Utility Class */
.full-width-breakout {
    width: 100dvw;
    margin-left: calc(50% - 50dvw);
    margin-right: calc(50% - 50dvw);
    position: relative;
}

.back-to-home,
.partner-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-to-home:hover,
.partner-back-btn:hover {
    color: var(--main-color);
}

.back-to-home svg,
.partner-back-btn svg {
    transition: transform 0.2s ease;
}

.back-to-home:hover svg,
.partner-back-btn:hover svg {
    transform: translateX(-2px);
}

/* Single Post Container */
.single-post-container {
    display: grid;
    grid-template-columns: 840px auto;
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Hero Image */
.hero-image {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 3rem;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #2D2D2D 0%, #1A1A1A 100%);
    position: relative;
    min-height: 400px;
}

/* Fancybox Gallery Images */
img[data-fancybox="gallery"] {
    cursor: zoom-in;
    transition: opacity 0.4s ease, transform 0.4s ease;
    border-radius: 8px;
}

img[data-fancybox="gallery"]:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.hero-image img:hover {
    transform: none !important;
    opacity: 1 !important;
}

/* Custom Fancybox styling */
.fancybox__container {
    --fancybox-bg: rgba(24, 24, 27, 0.92);
}

.fancybox__backdrop {
    background: var(--fancybox-bg);
    backdrop-filter: blur(6px);
}

.fancybox__toolbar {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
}

.fancybox__button {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: background 0.2s ease;
}

.fancybox__button:hover {
    background: rgba(255, 255, 255, 0.2);
}



/* Custom gallery image styling */
.pixelscan-gallery-image {
    border-radius: 8px;
    overflow: hidden;
}

/* Error handling for broken images */
img[data-fancybox="gallery"] {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    min-height: 100px;
}

img[data-fancybox="gallery"]:before {
    content: "🖼️ Image not available";
    display: block;
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fancybox__toolbar {
        padding: 8px;
    }

    .fancybox__button {
        width: 40px;
        height: 40px;
    }

    img[data-fancybox="gallery"]:hover {
        transform: none;
        /* Disable hover scale on mobile */
        opacity: 1;
    }
}

.hero-image::before {
    content: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23404040" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.3;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
    min-height: 250px;
}

/* If no featured image, show a default graphic */
.hero-image:not(:has(img))::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 120px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 120" fill="none"><rect x="20" y="20" width="80" height="80" rx="8" fill="%2354CC98" opacity="0.8"/><rect x="120" y="40" width="60" height="60" rx="6" fill="%23006239" opacity="0.9"/><circle cx="60" cy="60" r="25" fill="%23007b48" opacity="0.7"/></svg>') no-repeat center;
    background-size: contain;
    z-index: 3;
}

/* Content Wrapper */
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    max-width: 900px;
    margin: 0 36px;
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    margin-top: -140px;
    z-index: 10;
}

/* Post Meta */
.post-meta-container {
    display: flex;
    justify-content: space-between;
    /* 	align-items: center; */
    flex-wrap: wrap;
    gap: 1rem;
}



.post-date .entry-date {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
}


.entry-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    margin: 0;
    letter-spacing: -0.02em;
}

/* Entry Content */
.entry-content {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-main);
    margin: 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--text-main);
    font-weight: 700;
    margin: 1rem 0;
    line-height: 1.3;
}

.entry-content h2 {
    font-size: 32px;
}

.entry-content h3 {
    font-size: 24px;
    font-weight: 500;
}

.entry-content h4 {
    font-weight: 500;
    font-size: 20px;
}

.entry-content p {
    margin-top: 0rem;
    margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
    margin: 0.5rem 0;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid var(--main-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.entry-content code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.entry-content pre {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.entry-content pre code {
    background: none;
    padding: 0;
}

.entry-content>*:last-child {
    margin-bottom: 0;
}

.entry-content img {
    border-radius: 1rem;
    border: 1px solid #0002;
}

table {
    border-radius: 1rem;
    border-spacing: 0;
    overflow: clip;
    outline: 1px solid #ddd;
    outline-offset: -1px;
    width: 100%;
    min-width: 100%;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border: 1px solid #ddd6;
    line-height: 1.4;
}

tr {
    transition: .1s;
}

tbody tr:hover {
    background: #00623912;
}

thead {
    background: #54ca9755;
    color: #01331e;
}

/* Table wrapper for mobile scroll */
@media (max-width: 768px) {
    .entry-content table {
        width: 100dvw;
        margin-left: calc(50% - 50dvw);
        margin-right: calc(50% - 50dvw);
        position: relative;
        max-width: 100dvw;
        border-radius: 0;
        border-left: none;
        border-right: none;
        outline: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--main-color) #f1f1f1;
        display: block;
        white-space: nowrap;
    }

    .entry-content table::-webkit-scrollbar {
        height: 8px;
    }

    .entry-content table::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .entry-content table::-webkit-scrollbar-thumb {
        background: var(--main-color);
        border-radius: 10px;
    }

    .entry-content table::-webkit-scrollbar-thumb:hover {
        background: var(--link-hover);
    }

    .entry-content table thead,
    .entry-content table tbody {
        display: table;
        width: 100%;
    }

    .entry-content table tr {
        display: table-row;
    }

    .entry-content table th,
    .entry-content table td {
        display: table-cell;
        padding: 0.75rem 0.5rem;
        font-size: 14px;
        white-space: normal;
        min-width: 140px;
    }
}

.conclusion-block {
    background: #00623908;
    padding: 25px;
    border-radius: 20px;
}

.conclusion-content>*:last-child {
    margin-bottom: 0;
}

h3.conclusion-title {
    font-size: 24px;
    margin: 0;
    line-height: 1;
    color: var(--text-main);
}


.author-block {
    display: flex;
    gap: 25px;
    align-items: center;
}

.author-avatar-img {
    width: 64px;
    height: 64px;
    border-radius: 100px;
    overflow: clip;
}

.author-name_container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-name {
    margin: 0;
    margin-top: 4px;
    line-height: 1;
}

.author-block .linkedin {
    display: flex;
    padding: 6px;
    line-height: 1;
    border-radius: 4px;
    color: #bccacd !important;
    transition: .2s;
}

.author-block .linkedin svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.author-block .linkedin:hover {
    color: #000 !important;
    background: var(--bright-color);
}


.author-section {
    color: #fff;
    border-radius: 20px;
    padding: 52px;
    padding-top: 150px;
    margin-top: -100px;
    background: linear-gradient(150deg, #202020 80%, #006239 100%);
    display: flex;
    flex-direction: column;
    gap: 30px;
}


.about-author {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 400;
    font-style: italic;
    line-height: 28px;
    text-align: left;
}



/* Sidebar Styles */
.single-sidebar {
    /* 	position: sticky; */
    display: flex;
    flex-direction: column;
    gap: 30px;
    top: 120px;
    height: fit-content;
    height: 100%;
}

.single-sidebar h3 {
    color: #131313;
    font-size: 24px;
    margin-top: 0;
}

.community-widget {
    background: linear-gradient(-20deg, #202020 50%, #003e24 100%);
    border-radius: 16px;
    padding: 2rem;
    color: white;
}

.community-widget h3 {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 1rem;
}

.community-widget p {
    color: #B3B3B3;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.telegram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--main-color);
    color: white !important;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 100%;
}

.telegram-btn:hover {
    background: #007b48;
    transform: translateY(-2px);
}

.telegram-btn svg {
    fill: currentColor;
}

.sticky-part {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 120px;
}

.wpj-jtoc.--jtoc-headings-overflow-hidden .wpj-jtoc--item-content a {
    white-space: normal;
}

.recent-posts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}




/* Responsive */
@media (max-width: 1200px) {
    .single-post-container {
        grid-template-columns: 1fr 280px;
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .single-post-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .single-sidebar {
        position: static;
        order: -1;
    }

    .community-widget {
        background: #f8f9fa;
        color: var(--text-main);
        border: 1px solid #e9ecef;
    }

    .community-widget h3 {
        color: var(--text-main);
    }

    .community-widget p {
        color: var(--text-secondary);
    }
}

@media (max-width: 768px) {
    .entry-title {
        font-size: 36px;
    }

    .hero-image {
        border-radius: 0 !important;
        width: 100dvw;
        margin-left: calc(50% - 50dvw);
        margin-right: calc(50% - 50dvw);
        position: relative;
        margin-bottom: 2rem;
        min-height: 250px;
        max-width: 100dvw !important;
    }

    .hero-image img {
        max-width: 100dvw !important;
        border-radius: 0 !important;
    }


    .entry-content {
        font-size: 16px;
    }

    .entry-content h2 {
        font-size: 28px;
    }

    .entry-content h3 {
        font-size: 22px;
    }

    .entry-content img {
        width: 100dvw;
        margin-left: calc(50% - 50dvw);
        margin-right: calc(50% - 50dvw);
        position: relative;
        max-width: 100dvw;
        border-radius: 0px;
        border-left: none;
        border-right: none;
    }
}


/* Joli TOC */

.wpj-jtoc.--jtoc-theme-original.--jtoc-has-custom-styles {
    margin: 0;
}

.wpj-jtoc--item .wpj-jtoc--item-content {
    padding: 0;
}

.wpj-jtoc--header-main {
    height: 30px;
}

.wpj-jtoc.--jtoc-theme-original .wpj-jtoc--header {
    margin-bottom: 20px;
}

.wpj-jtoc.--jtoc-theme-original .wpj-jtoc--items li .wpj-jtoc--item-content a {
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    text-wrap: balance;
}

.wpj-jtoc.--jtoc-theme-original .wpj-jtoc--header .wpj-jtoc--header-main .wpj-jtoc--title {
    margin: 0;
}

.wpj-jtoc.--jtoc-theme-original .wpj-jtoc--items li:hover .wpj-jtoc--item-content,
.wpj-jtoc.--jtoc-theme-original .wpj-jtoc--items li .wpj-jtoc--item-content {
    border-radius: 0 12px 12px 0;
}

.wpj-jtoc.--jtoc-theme-original .wpj-jtoc--items li:hover .wpj-jtoc--item-content a {
    color: #006239 !important;
}

.wpj-jtoc--item .wpj-jtoc--item-content:hover {
    background: transparent !important;
}

.wpj-jtoc.--jtoc-theme-original .wpj-jtoc--items li {
    padding: 12px 20px;
    border-left: 3px solid #F2F2F6;
}

li.wpj-jtoc--item.--jtoc-h2.--jtoc-is-active {
    border-left: 3px solid #006239 !important;
    background-color: rgba(0, 98, 57, 0.07);
    font-weight: 600;
}

li.wpj-jtoc--item.--jtoc-h2.--jtoc-is-active a {
    color: #006239 !important;
}

.--jtoc-is-active>.wpj-jtoc--item-content {
    background-color: transparent !important;
}



@media (max-width: 768px) {

    .container * {
        max-width: var(--sitewidth);
    }

    html {
        margin-top: 0 !important;
    }

    #wpadminbar.mobile {
        display: none;
    }

    .site-header {
        padding: 0;
    }

    .custom-logo {
        width: 140px;
        padding: 12px 0;
    }

    .mobile-menu-toggle {
        position: fixed;
        right: 0px;
        top: 0px;
        height: var(--header-height);
        aspect-ratio: 1/1;
        width: auto;
    }

    /* Prevent scrolling when mobile menu is open */
    body.mobile-menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* Mobile Header Adjustments */
    .mobile-menu-toggle {
        display: flex !important;
    }

    /* Mobile menu toggle transforms to close button when active */
    body.mobile-menu-open .mobile-menu-toggle .hamburger-line:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    body.mobile-menu-open .mobile-menu-toggle .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    body.mobile-menu-open .mobile-menu-toggle .hamburger-line:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .header-menu {
        display: none;
    }

    .telegram-link {
        display: none;
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(5px);
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: #fff;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding-top: var(--header-height, 62px);
        box-sizing: border-box;
    }


    .mobile-menu-overlay.active .mobile-menu-container {
        transform: translateY(0);
    }

    /* Mobile Menu Content */
    .mobile-menu-content {
        flex: 1;
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .mobile-menu-main,
    .mobile-submenu {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
        box-sizing: border-box;
    }

    .mobile-submenu {
        transform: translateX(100%);
    }

    .mobile-submenu.active {
        transform: translateX(0);
    }

    .mobile-menu-main.submenu-active {
        transform: translateX(-100%);
    }

    /* Mobile Menu Lists */
    .mobile-menu-list,
    .mobile-submenu-list {
        list-style: none;
        padding: 0;
        margin: 0;
        overflow-y: auto;
        flex: 1;
        min-height: 0;
        -webkit-overflow-scrolling: touch;
    }

    /* Hide submenus in main menu - they should only appear in submenu section */
    .mobile-menu-main .mobile-submenu-list {
        display: none;
    }

    .mobile-menu-list li,
    .mobile-submenu-list li {
        border-bottom: 1px solid #f0f0f0;
    }

    .mobile-menu-list li:last-child,
    .mobile-submenu-list li:last-child {
        border-bottom: none;
    }

    .mobile-menu-list a,
    .mobile-submenu-list a,
    .mobile-menu-item-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 1.5rem;
        color: #131313;
        text-decoration: none;
        font-size: 18px;
        font-weight: 500;
        transition: all 0.2s ease;
        width: 100%;
        background: none;
        border: none;
        text-align: left;
        cursor: pointer;
    }

    .mobile-menu-content:after {
        content: '';
        position: absolute;
        width: 100%;
        height: 20px;
        left: 0;
        bottom: 0;
        background: linear-gradient(0deg, #0002, #0000);
        pointer-events: none;
        z-index: 10;
    }


    .mobile-menu-list a:hover,
    .mobile-submenu-list a:hover,
    .mobile-menu-item-toggle:hover {
        background: #f8f9fa;
        color: var(--link-hover);
    }

    .mobile-menu-arrow {
        transition: transform 0.2s ease;
        color: #666;
    }

    .mobile-submenu-content {
        display: contents;
    }

    /* Submenu Back Button */
    .mobile-submenu-back {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 20px 1.5rem;
        background: #f8f9fa;
        border: none;
        border-bottom: 1px solid #eaecf0;
        width: 100%;
        color: var(--link-hover);
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s ease;
        flex-shrink: 0;
    }

    .mobile-submenu-back:hover {
        background: #ebf7f2;
    }

    .submenu-back-text {
        font-size: 16px;
    }

    /* Mobile Menu Footer */
    .mobile-menu-footer {
        padding: 1rem;
        border-top: 1px solid #eaecf0;
        background: #f8f9fa;
    }

    .mobile-telegram-link {
        width: 100%;
        color: white;
        text-decoration: none;
        border-radius: 8px;
        font-weight: 600;
        transition: all 0.2s ease;
    }

    .mobile-telegram-link:hover {
        background: #1a7a4b;
        transform: translateY(-1px);
    }

    .last-post {
        display: flex;
        flex-direction: column-reverse;
        gap: 2rem;
        margin: 4rem 0;
    }

    .last-post .post-image,
    .last-post .post-content {
        max-width: unset;
    }

    .post-grid .container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .load-more-container {
        padding: 30px 0;
    }

    .load-more-btn {
        padding: 16px 28px;
        font-size: 16px;
    }

    /* Footer */

    .site-footer {
        padding: 0;
    }


    .telegram-banner {
        padding: 2rem;
        margin: 0;
        max-width: 100%;
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .telegram-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .telegram-banner-content p {
        width: 100%;
    }

    .tg-bg {
        left: unset;
        right: -30%;
    }

    .pixelscan-info {
        gap: 1rem;
    }

    .footer-content .container {
        width: var(--sitewidth-small);
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .footer-menu-container {
        display: flex;
        flex-direction: column;
        gap: 1.5rem
    }

    .footer-bottom {
        width: var(--sitewidth-small);
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    h3.footer-menu-title {
        font-size: 16px;
    }

    .footer-menu li a {
        font-size: 18px;
    }




    /* Single Page */

    .content-wrapper {
        margin: 0;
        padding: 0 0 20px 0;
        border-radius: 0px;
    }

    .post-meta-container {
        align-items: center;
    }

    .author-section {
        margin: 0;
        padding: 2rem 1.5rem;
        gap: 1rem;
        width: 100dvw;
        max-width: 100dvw;
        margin-left: calc(50% - 50dvw);
        margin-right: calc(50% - 50dvw);
        position: relative;
        border-radius: 0;
    }

    .conclusion-block {
        width: 100dvw;
        max-width: 100dvw;
        border-radius: 0;
        margin-left: calc(50% - 50dvw);
        margin-right: calc(50% - 50dvw);
        position: relative;
        padding: 25px calc((100dvw - var(--sitewidth))/2);
    }

    .content-404 p {
        font-size: 3rem;
    }
}

/* Filter Block Styles */
.filter-block {
    background: transparent;
    padding: 40px 0;
    margin-bottom: 20px;
}

.filter-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #131313;
    padding: 20px;
    border-radius: 20px;
    position: absolute;
    top: -70px;
    width: var(--sitewidth);
    overflow: clip;
}

.category-wrapper {
    display: contents;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
    max-width: 100dvw;
}

.category-btn {
    background: #555;
    border: none;
    border-radius: 25px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.category-btn:hover {
    background: var(--link-hover);
    color: #fff;
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--link-hover);
    color: #fff;
}

.category-btn.active:hover {
    transform: translateY(0px);
}

.search-filter {
    min-width: 300px;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

#post-search {
    width: 100%;
    padding: 12px 50px 12px 50px;
    border: 2px solid #e1e5e7;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    transition: all 0.3s ease;
}

#post-search:focus {
    outline: none;
    border-color: var(--bright-color);
    box-shadow: 0 0 0 3px rgba(0, 98, 57, 0.1);
}

.search-icon {
    position: absolute;
    left: 18px;
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    pointer-events: none;
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    opacity: 0;
    pointer-events: none;
}

.search-clear.visible {
    opacity: 1;
    pointer-events: auto;
}

.search-clear:hover {
    background: #f1f3f4;
    color: var(--main-color);
}

.search-clear svg {
    width: 16px;
    height: 16px;
}

.no-posts-found {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.no-posts-found p {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .filter-block {
        padding: 0;
        margin-bottom: 20px;
    }

    .filter-controls {
        top: 0;
        width: 100dvw;
        margin-left: calc(50% - 50dvw);
        margin-right: calc(50% - 50dvw);
        position: relative;
        border-radius: 0;
        padding: 25px calc((100dvw - var(--sitewidth))/2);
        max-width: 100dvw !important;
    }

    .category-filters {
        justify-content: flex-start;
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 calc((100dvw - var(--sitewidth))/2);
    }

    .category-filters::-webkit-scrollbar {
        display: none;
    }

    .category-wrapper {
        position: relative;
        display: block;
        width: 100dvw;
        margin-left: calc(50% - 50dvw);
        margin-right: calc(50% - 50dvw);
        position: relative;
        border-radius: 0;
        max-width: 100dvw;

    }

    .category-wrapper::before,
    .category-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 20px;
        pointer-events: none;
        z-index: 3;
        opacity: 0;
        transition: opacity 0.2s ease;
        transform: scale(1.1);
    }

    .category-wrapper::before {
        left: -1px;
        background: linear-gradient(to right, #1e1e1e, transparent);
    }

    .category-wrapper::after {
        right: -1px;
        background: linear-gradient(to left, #1e1e1e, transparent);
    }

    .category-wrapper.show-left-fade::before {
        opacity: 1;
    }

    .category-wrapper.show-right-fade::after {
        opacity: 1;
    }

    .category-btn {
        padding: 8px 16px;
        font-size: 16px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .category-btn:hover {
        transform: none;
    }

    .search-filter {
        min-width: auto;
    }

    #post-search {
        padding: 10px 45px 10px 45px;
        font-size: 13px;
    }

    .search-icon {
        left: 15px;
        width: 16px;
        height: 16px;
    }

    .search-clear {
        right: 10px;
        padding: 5px;
    }

    .search-clear svg {
        width: 14px;
        height: 14px;
    }
}

/* Share Widget Styles */
.share-widget {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.share-widget h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.share-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
    padding: 12px 12px;
    background: #fff;
    border: 1px solid #e1e5e8;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.share-btn:hover {
    background: #f8f9fa;
    border-color: var(--main-color);
    color: var(--main-color);
    transform: translateY(-1px);
}

.share-btn.icon-only {
    padding: 6px 9px;
    aspect-ratio: 1 / 1;
}

.share-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.share-btn.icon-only svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.share-btn.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
}

.share-btn.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.share-btn.twitter:hover {
    background: #000;
    border-color: #000;
    color: white;
}

.share-btn.copy-link:hover {
    background: var(--main-color);
    border-color: var(--main-color);
    color: white;
}

@media (max-width: 768px) {
    .share-widget {
        padding: 15px;
        margin-bottom: 20px;
    }

    .share-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Partners Page */

.page-title {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem auto;
}

.page-title.margin-bottom {
    margin-bottom: 4rem;
}

.page-title.center {
    align-items: center;
    text-align: center;
}

.page-title * {
    margin: 0;
    text-wrap: balance;
}

.page-title h1 {
    font-size: 3rem;
    line-height: 1;
    color: #000;
}

.page-title p {
    font-size: 1.2rem;
    font-weight: 500;
}

.partner-grid-container {
    position: relative;
    background-color: #fff;
}

.no-search {
    margin-bottom: 0px;
}

.no-search .filter-controls {
    top: -45px;
}

.no-search .category-btn {
    padding: 12px 18px;
    font-size: 16px;
}

.partner-grid .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Partner Card with Flip Animation */
.partner-card {
    position: relative;
    perspective: 1000px;
    width: 100%;
    height: 540px;
    transition: all 0.6s;
    transform-style: preserve-3d;
    border-radius: 20px;
    overflow: visible;
    cursor: pointer;
}

.partner-card.flipped {
    transform: rotateY(180deg);
    box-shadow: 0px 0px 20px 5px #54cc9833;
}

.partner-card-front,
.partner-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #EAECF0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.partner-card-front {
    z-index: 2;
}

.partner-card-back {
    transform: rotateY(180deg);
    z-index: 1;
    color: #000;
    background-color: #fff;
}

.partner-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Partner card back header with logo and special offer badge */
.partner-card-back-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 74px;
    padding: 20px;
    background: var(--partner-bg-color, #eefbf5);
}

.partner-card-back-logo {
    max-width: 120px;
    max-height: 30px;
    display: flex;
    align-items: center;
}

.partner-card-back-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.partner-back-special-offer,
.partner-special-offer {
    background: var(--partner-accent-color, #006239);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    text-wrap: nowrap;
}

.partner-card-back-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
}

.partner-card-back-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
    padding: 10px 20px 20px 20px;
    height: 100%;
}

.partner-offer-description {
    color: #000;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    height: 100%;
}

.partner-offer-description p {
    margin: 0 0 12px 0;
}

.partner-offer-description p:last-child {
    margin-bottom: 0;
}

.partner-card strong,
.partner-card b {
    color: var(--partner-accent-color, #006239);
    font-weight: 600;
}


.partner-card .partner-logo-img {
    display: flex;
}

.partner-logo {
    min-height: 150px;
}

.partner-logo img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.partner-logo.svg {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--partner-bg-color, #eefbf5);
}

.partner-logo.svg img {
    width: 70%;
}

.partner-card .partner-categories {
    display: flex;
    align-items: center;
    padding: 4px;
    gap: 5px;
    background: #00623912;
    border: 1px solid #54CE9B4D;
    border-radius: 100px;
    width: fit-content;
}

.partner-card .partner-category-tag {
    background: #fff;
    border: 1px solid #54CE9B4D;
    color: var(--main-color);
    line-height: 1;
    border-radius: 100px;
    font-weight: 400;
    font-size: 14px;
    padding: 6px 8px;
}

.partner-card .partner-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 10px;
    padding: 10px 20px 20px 20px;
    position: relative;
}

.partner-content * {
    margin: 0;
}

.partner-content h3 {
    font-weight: 700;
    text-decoration: none;
    line-height: 32px;
    font-size: 26px;
    color: #131313;
    transition: .2s;
    text-wrap: balance;
}

.partner-content .partner-description {
    height: 100%;
    line-height: 1.7;
    font-size: 16px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 7;
    /* The number of lines you want to display */
    -webkit-box-orient: vertical;
    /* Essential for -webkit-line-clamp to work */
    text-overflow: ellipsis;
    text-wrap: balance;
}

.partner-content .partner-description>* {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    /* The number of lines you want to display */
    -webkit-box-orient: vertical;
    /* Essential for -webkit-line-clamp to work */
    text-overflow: ellipsis;
    text-wrap: balance;
}

.partner-offer-description {
    text-wrap: balance;

}

.post-meta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.partner-card .post-image img {
    height: 250px;
    object-fit: cover;
}

.partner-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.partner-actions>* {
    width: 100%;
}

.partner-card-front .read-more-btn {
    width: 100%;
    padding: 20px 24px;
    background: var(--partner-accent-color, var(--main-color));
}

.partner-promocode {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: #00000003;
    border: 1px solid #00000015;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.partner-promocode:hover {
    background: #fff;
    border-color: var(--partner-accent-color, #006239);
    color: var(--partner-accent-color, #006239);
}

.partner-promocode.copied {
    border-color: #10b981 !important;
    color: #10b981;
    background: #f0fdf4 !important;
    animation: copySuccess 0.4s ease;
}


.partner-card .copy-icon {
    width: 18px;
    height: 18px;
    color: #6b7280;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.partner-promocode:hover .copy-icon {
    opacity: 1;
    color: var(--partner-accent-color, #006239);
}

.partner-website-btn {
    background: var(--partner-accent-color, #006239) !important;
    color: white !important;
    padding: 20px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
}

.partner-website-btn:hover:not(.disabled) {
    background: var(--partner-hover-color, #007b48) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 98, 57, 0.3);
}

.partner-website-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.partner-form {
    margin-top: 5px;
    padding: 20px 30px 30px 30px;
    background: #f9f9f9;
    border-radius: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.partner-form h2 {
    font-size: 2rem;
    color: #000;
    font-weight: 600;
    line-height: 1.2;
}

.partner-form h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.partner-form div.fluentform,
.partner-form fieldset {
    display: contents;
}

.partner-form form {
    margin-top: 5px;
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    width: 100%;
}

.partner-form legend {
    display: none !important;
}

.partner-form .ff-el-group {
    width: 100%;
    margin: 0 !important;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.partner-form .ff-el-input--content {
    width: 100%;
}

.partner-form .error {
    position: absolute;
}

.partner-form .ff-default .ff-el-form-control {
    font-family: var(--font);
}

.partner-form .ff-default .ff_btn_style {
    padding: 11px 15px;
    width: 100%;
    background-color: var(--main-color) !important;
    transition: .2s;
}

.partner-form .ff-default .ff-el-form-control {
    padding: 13px 15px;
}

.partner-form .ff-default .ff-el-form-control:focus {
    border-color: var(--bright-color);
}

.partner-form .ff-default .ff_btn_style:hover {
    transform: translatey(-2px);
}

.partner-form .ff-message-success {
    padding: 20px;
    border-radius: 10px;
    box-shadow: none;
    background: #eefbf5;
    border-color: var(--bright-color);
    ;
}



@keyframes copySuccess {
    0% {
        transform: translatey(0px);
    }

    50% {
        transform: translatey(-2px);
    }

    100% {
        transform: translatey(0px);
    }
}

/* Loading states for partners */
.loading-partners {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
    grid-column: 1 / -1;
}

.loading-partners::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--main-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

.no-partners-found {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
    grid-column: 1 / -1;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Mobile adjustments */
@media (max-width: 768px) {

    .page-title h1,
    .partner-form h2 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .page-title p,
    .partner-form h3 {
        font-size: 1rem;
    }

    .partner-grid .container {
        grid-template-columns: 1fr;
    }

    .partner-form form {
        display: flex;
        flex-direction: column;
    }
}

.admin-bar .fancybox__toolbar {
    margin-top: 42px;
}

.faq-section {
    color: #000;
    padding: 1rem 0;
}

.faq-title {
    font-size: 32px;
    margin: 0 0 0.5rem 0;
}

.faq-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-item {
    background: #f7faf9;
    border-radius: 12px;
    border: 1px solid #e1e5e8;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--bright-color);
    box-shadow: 0 4px 12px rgba(0, 98, 57, 0.1);
}

.faq-item.active {
    border-color: var(--main-color);
    box-shadow: 0 4px 12px rgba(0, 98, 57, 0.15);
}

h4.faq-question {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
    color: var(--text-main);
    position: relative;
}

.faq-question:hover {
    background: #f8f9fa;
    color: var(--main-color);
}

.faq-item.active .faq-question {
    background: #eefbf5;
    color: var(--main-color);
    border-bottom: 1px solid #e1e5e8;
}

.faq-question::after {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23006239" d="m12 13.4l-2.9 2.9q-.275.275-.7.275t-.7-.275t-.275-.7t.275-.7l2.9-2.9l-2.9-2.875q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l2.9 2.9l2.875-2.9q.275-.275.7-.275t.7.275q.3.3.3.713t-.3.687L13.375 12l2.9 2.9q.275.275.275.7t-.275.7q-.3.3-.712.3t-.688-.3z"/></svg>');
    font-size: 24px;
    font-weight: 300;
    color: var(--main-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    line-height: 0;
    margin-left: 1rem;
    transform-origin: center center;
    transform: rotate(45deg);
}

.faq-item.active .faq-question::after {
    transform: rotate(90deg);
}

.faq-answer {
    font-size: 16px;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    height: 0;
    padding: 0 1.5rem;
    background: #fff;
    color: #000;
    transition: .3s;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    height: auto;
    padding: 1rem 1.5rem;
}

.faq-answer p:first-child {
    margin-top: 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {

    .faq-title {
        font-size: 28px;
        margin-bottom: 1rem;
    }

    h4.faq-question {
        font-size: 16px;
        padding: 0.75rem 1.25rem;
    }

    .faq-answer {
        font-size: 15px;
        padding: 0 1.25rem;
    }

    .faq-item.active .faq-answer {
        padding: 0.75rem 1.25rem;
    }
}


/* Single Coupon */

.single-coupon-container {
    margin-bottom: 3rem;
}

article.coupon {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border-radius: 30px;
    box-shadow: 0 5px 20px 0px #007C4820;
    margin-bottom: 1rem;
    outline: 1px solid #EAECF0;
}

.coupon-header {
    display: flex;
    align-items: center;
    align-items: stretch;
    gap: 1.5rem;
    min-height: 260px;
    border-radius: 20px;
    background: #e7f9f1;
    padding: 1.25rem;
}

.coupon-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 350px;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    outline: 1px solid #EAECF0;
    flex-shrink: 0;
}

.coupon-image img {
    width: 100%;
}

.coupon-image picture {
    display: contents;
}

.coupon-header-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.coupon-header-content * {
    margin: 0;
    text-wrap: balance;
}

.coupon-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    line-height: 1;
}

.coupon-action-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.coupon-btn {
    color: #fff !important;
}

.coupon-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 20%;
    padding: 11px 20px;
    height: 100%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    cursor: pointer;
    transition: all .2s ease;
}

.coupon-code:hover {
    background: #fff;
    border-color: var(--partner-accent-color, #006239);
    color: var(--partner-accent-color, #006239);
}


.coupon-code.copied {
    border-color: #10b981 !important;
    color: #10b981;
    background: #f0fdf4 !important;
    animation: copySuccess 0.4s ease;
}


.coupon-content {
    padding: 1rem;
    padding-top: .5rem;
}

.coupon-content p {
    margin: 1rem 0;
}

.coupon-content>*:first-child {
    margin-top: 0 !important;
}

.coupon-content>*:last-child {
    margin-bottom: 0 !important;
}

.how-to-redeem-section {
    padding: 1rem 0;
}

.coupon-steps {
    padding: 1rem;
    background: #e7f9f1;
    border-radius: 30px;
    display: flex;
    gap: 0.75rem;
    flex-direction: row;
}

.coupon-step {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    min-height: 250px;
    padding: 1.5rem;
    background: #fff;
    border-radius: 20px;
}

h1.coupon-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 1.5rem 0 0 0;
}


.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.coupon-step:last-child {
    background: #007c48;
    color: #fff;
}

.coupon-step * {
    margin: 0;
    text-wrap: balance;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.step-title {
    font-size: 2rem;
    line-height: 1.1;
}

.step-description {
    line-height: 1.3;
}


/* Related Partners Section */
.related-partners-section {
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}



@media (max-width: 768px) {

    article.coupon {
        display: contents;
    }

    .coupon-header {
        flex-direction: column;
    }

    .coupon-title {
        line-height: 1.2;
    }

    .coupon-image {
        width: 100%;
        height: auto;
    }

    .coupon-header-content {
        gap: 1rem;
    }

    .coupon-btn {
        width: 100%;
        padding: 1.2rem 2rem;
    }

    .coupon-code {
        width: 100% !important;
    }

    .coupon-content {
        padding: 0.5rem;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .coupon-steps {
        flex-direction: column;
    }

    .coupon-step {
        min-height: 0;
        gap: 1rem;
    }

    .step-number {
        font-size: 2rem
    }

    .step-title {
        font-size: 1.5rem;
    }


}

.splide__arrow {
    border-radius: 0.5rem;
    border: 1px solid #0003;
    background: #fff;
    width: 2.5rem;
    height: 2.5rem;
    transition: .2s;
}

.splide__arrow:hover {
    transform: translateY(-50%) scale(1.1);
    background: var(--main-color);
    color: #fff;
    border-color: var(--main-color);
}

.splide__arrow svg {
    width: 1.2rem;
    height: 1.2rem;
    color: currentColor;
    fill: currentColor;
}

.splide__arrow--prev {
    left: -3.5rem;
}

.splide__arrow--next {
    right: -3.5rem;
}

.splide__track {
    padding: 0 2px !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .related-partners-section {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }

    .related-partners-section .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .splide__arrow {
        width: 2rem;
        height: 2rem;
    }

    .splide__arrow--prev,
    .splide__arrow--next {
        display: none;
    }

    .splide__arrow svg {
        width: 1rem;
        height: 1rem;
    }
}