/*
Theme Name: TalentCoffee Blog
Theme URI: https://nooghteh.ir
Author: Amin Hosseini
Author URI: https://nooghteh.ir
Description: TalentCoffee Blog is a modern, high-performance, and fully responsive custom WordPress blog theme designed specifically for coffee enthusiasts, specialty roasteries, and lifestyle publishers. Built on Bootstrap 5 with native RTL support, this coffee blog features custom ACF Gutenberg blocks, drag-and-drop horizontal sliders, dynamic post view analytics, custom sidebar widgets, and an optimized reading layout for an exceptional editorial experience.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: talent-coffee
Tags: blog, coffee-blog, rtl-language-support, custom-blocks, custom-menu, featured-images, right-sidebar, translation-ready
*/

@font-face {
    font-family: 'Dana';
    src: url('assets/fonts/Dana-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}
@font-face {
    font-family: 'Dana';
    src: url('assets/fonts/Dana-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Dana';
    src: url('assets/fonts/Dana-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Dana';
    src: url('assets/fonts/Dana-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

:root {
    --primary-color: #F15A22;
    --secondary-color: #000000;
    --body-bg: #ffffff;
    --light-bg: #F9F9F9;
    --border-color: #e0e0e0;
    --font-main: 'Dana', sans-serif;
    --card-radius: 24px;
    --card-radius-sm: 20px;
    --transition: 0.3s ease;
    --title-fa-size: 28px;
    --title-fa-color: #000000;
    --watermark-en-size: 4rem;
    --watermark-en-color: #f0f0f0;
    --watermark-opacity: 0.5;
}

body {
    font-family: var(--font-main) !important;
    margin: 0;
    background-color: var(--body-bg);
}

.bg-black {
    background-color: var(--secondary-color) !important;
}
.bg-orange {
    background-color: var(--primary-color) !important;
}
.bg-green {
    background-color: #00A651 !important;
}
.text-orange {
    color: var(--primary-color) !important;
}
.bg-dark-subtle {
    background-color: #0a0a0a !important;
    box-shadow: inset 0 5px 10px rgba(0,0,0,0.5);
}

.fw-extra-bold {
    font-weight: 800;
}
.text-justify {
    text-align: justify;
    direction: rtl;
}
.border-dashed {
    border-style: dashed !important;
}
.object-fit-cover {
    object-fit: cover;
}

.gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    z-index: 2;
    pointer-events: none;
}

.custom-header {
    background-color: var(--secondary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease-in-out;
}
.custom-header.scrolled-header {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.brand-absolute {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    text-decoration: none;
    z-index: 10;
    line-height: 1.2;
}
.brand-fa {
    display: block;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}
.brand-en {
    display: block;
    color: #fff;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-nav .nav-link {
    color: #fff;
    font-weight: 400;
    font-size: 14px;
    margin-left: 14px;
    transition: var(--transition);
    --bs-nav-link-padding-x: 0px;
}
.header-nav .nav-link:hover {
    color: var(--primary-color);
}

.dropdown-menu-dark {
    background-color: #1a1a1a;
    border: 1px solid #333;
}
.dropdown-item {
    text-align: right;
    font-size: 13px;
    padding: 8px 15px;
}
.dropdown-item:hover {
    background-color: var(--primary-color);
    color: #fff;
}

@media (min-width: 992px) {
    .header-nav .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: all 0.3s ease;
        margin-top: 0;
        pointer-events: none;
    }
    .header-nav .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}
.search-icon {
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}
.btn-shop {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 24px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
#searchCollapse {
    background-color: #000 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
#searchCollapse input::placeholder {
    color: #888;
    font-size: 14px;
}
#searchCollapse input:focus {
    box-shadow: none;
    border-color: var(--primary-color) !important;
}

.mobile-link {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 700;
    border-bottom: 1px solid #1f1f1f;
    transition: var(--transition);
}
.mobile-link:hover,
.mobile-link[aria-expanded="true"] {
    background-color: #111;
    color: var(--primary-color);
    padding-right: 25px;
}
.mobile-nav-list li:last-child .mobile-link {
    border-bottom: none;
}

.mobile-sublink {
    display: block;
    color: #ccc;
    text-decoration: none;
    padding: 10px 35px 10px 20px;
    font-size: 14px;
    font-weight: 400;
    border-left: 2px solid transparent;
    transition: 0.2s;
}
.mobile-sublink:hover {
    color: #fff;
    border-left-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .custom-header .btn-shop {
        padding: 8px;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
}

.view-all-link,
.read-more-link {
    font-size: 13px;
    color: #888;
    transition: var(--transition);
    text-decoration: none;
}
.read-more-link {
    color: #000;
    font-weight: 700;
    text-decoration: underline;
    display: inline-block;
    width: fit-content;
}
.view-all-link:hover,
.read-more-link:hover {
    color: var(--primary-color);
}

.category-badge,
.card-badge,
.trending-badge {
    position: absolute;
    background-color: var(--primary-color);
    color: #fff;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    z-index: 3;
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(241, 90, 34, 0.4);
}
.category-badge,
.card-badge {
    bottom: 15px;
    right: 15px;
}
.trending-badge {
    top: 20px;
    right: 20px;
    bottom: auto;
}

.category-badge:hover,
.card-badge:hover,
.trending-badge:hover {
    filter: brightness(0.9);
    color: #fff;
    transform: translateY(-2px);
}

.card-title a,
.trending-title a,
.feature-post-title a {
    color: #000;
    text-decoration: none;
    transition: color var(--transition);
}
.card-title a:hover,
.trending-title a:hover,
.feature-post-title a:hover {
    color: var(--primary-color) !important;
}

.feature-post-card img {
    min-height: 320px;
    transition: transform 0.5s ease;
}
.feature-post-card:hover img {
    transform: scale(1.02);
}

.feature-post-title a {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.5;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.feature-post-desc {
    font-size: 14px;
    text-align: justify;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.feature-post-meta {
    font-size: 12px;
}

.trending-card {
    background-color: #fcfcfc;
    border-radius: var(--card-radius-sm);
    padding: 15px;
    transition: var(--transition);
    border: 1px solid transparent;
}
.trending-card:hover {
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--border-color);
}
.trending-title a {
    font-size: 16px;
    font-weight: 800;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.trending-desc {
    font-size: 13px;
    color: #666;
    line-height: 2;
    text-align: justify;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-img-box {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    height: 250px;
    width: 100%;
}
.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.custom-card:hover .card-img-box img {
    transform: scale(1.08);
}

.card-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}
.card-meta {
    font-size: 12px;
    color: #888;
    font-weight: 400;
}

.product-card {
    background-color: var(--light-bg);
    border-radius: var(--card-radius);
    padding: 25px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}
.product-card:hover {
    background-color: #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    transform: translateY(-5px);
}
.weight-badge {
    position: absolute;
    top: 20px;
    left: 0;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 15px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 2;
}
.product-img-box img {
    height: 220px;
    object-fit: contain;
    transition: transform 0.3s;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}
.product-card:hover .product-img-box img {
    transform: scale(1.05);
}

.product-title {
    font-size: 16px;
    font-weight: 800;
    color: #000;
    margin-bottom: 5px;
}
.product-subtitle {
    font-size: 12px;
    font-family: sans-serif;
    color: #888;
    margin-bottom: 15px;
}
.product-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-price {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
}
.product-price .amount {
    font-size: 18px;
    font-weight: 800;
    color: #000;
}
.product-price .currency {
    font-size: 10px;
    color: #888;
    margin-top: 4px;
    letter-spacing: -0.5px;
}

.btn-add-cart {
    width: 45px;
    height: 45px;
    background-color: #FFECE5;
    color: var(--primary-color);
    border: 1px solid transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: 0.3s;
    cursor: pointer;
}
.btn-add-cart:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.search-card {
    transition: var(--transition);
    background: transparent;
}
.search-card:hover .search-card-title {
    color: var(--primary-color);
}
.search-card:hover .search-img-box img {
    transform: scale(1.05);
}
.search-img-box {
    border-radius: 20px;
    overflow: hidden;
    height: 220px;
    width: 100%;
}
.search-img-box img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.search-card-title {
    font-size: 18px;
    font-weight: 800;
    color: #000;
    line-height: 1.5;
    transition: var(--transition);
}
.search-card-desc {
    font-size: 13px;
    line-height: 2;
    text-align: justify;
    color: #555;
    margin-bottom: 10px;
}
.search-card-meta {
    font-size: 12px;
    color: #999;
}

@media (max-width: 768px) {
    .search-img-box {
        height: 200px;
        margin-bottom: 15px;
    }
    .search-card-title {
        font-size: 16px;
    }
}

.horizontal-slider-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 20px;
    cursor: auto;
    user-select: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.horizontal-slider-wrapper::-webkit-scrollbar {
    display: none;
}
.horizontal-slider-wrapper.active {
    cursor: grabbing !important;
}
.horizontal-slider-wrapper.active .custom-card,
.horizontal-slider-wrapper.active .trending-card {
    pointer-events: none;
}

.slider-item {
    flex: 0 0 auto;
    width: calc(85vw - 30px);
    max-width: 280px;
}

.mobile-scroll-row,
.breadcrumb-scroll {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.mobile-scroll-row::-webkit-scrollbar,
.breadcrumb-scroll::-webkit-scrollbar {
    display: none;
}

.single-hero {
    height: 450px;
    overflow: hidden;
    position: relative;
}
.single-hero img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    pointer-events: none;
}
.article-content {
    font-size: 16px;
    line-height: 2.2;
    color: #333;
}
.article-content strong {
    font-weight: 800;
}

@media (max-width: 768px) {
    .single-hero {
        height: 300px;
    }
    .hero-content h1 {
        font-size: 1.5rem !important;
    }
}

.title-wrapper {
    position: relative;
    display: inline-block;
}
.watermark-text,
.watermark-sidebar {
    font-family: sans-serif;
    font-weight: 100;
    pointer-events: none;
    letter-spacing: 2px;
}
.watermark-text {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #000;
    opacity: 0.16;
    z-index: 0;
    line-height: 1;
    white-space: nowrap;
}
.watermark-sidebar {
    position: absolute;
    top: -15px;
    right: auto;
    font-size: 2.5rem;
    font-weight: 900;
    color: #f0f0f0;
    opacity: 1;
    z-index: 0;
    transform: translateX(20px);
}

.category-list li {
    margin-bottom: 18px;
}
.cat-link {
    text-decoration: none;
    color: #000;
    transition: var(--transition);
    display: flex;
    align-items: center;
}
.cat-link:hover .cat-name {
    color: var(--primary-color);
}
.cat-name {
    font-size: 14px;
    white-space: nowrap;
}
.cat-count {
    color: #aaa;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Dana', sans-serif;
}
.cat-dots {
    flex-grow: 1;
    border-bottom: 2px dotted #e0e0e0;
    margin: 0 10px;
    position: relative;
    top: -4px;
}

.newsletter-box {
    background-color: #f5f5f5;
    border-radius: 16px;
    padding: 30px 20px;
    height: 100%;
}
.newsletter-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border: 2px solid #000;
    border-radius: 20px;
    color: #000;
}
.newsletter-box input {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: none !important;
}

.search-result-header,
.category-header-box {
    background-color: var(--light-bg);
    border-radius: var(--card-radius);
    width: 100%;
}
.category-header-box {
    padding: 50px 20px;
}
.search-result-header {
    padding: 30px;
}
.category-title {
    font-size: 26px;
    line-height: 1.5;
}
.text-quoted {
    font-weight: 800;
}

.search-form-wrapper {
    max-width: 500px;
    width: 100%;
}
.search-input {
    background-color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 20px;
    height: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    font-size: 14px;
    color: #333;
}
.search-input:focus {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
}
.search-btn {
    height: 50px;
    padding: 0 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .category-header-box {
        padding: 30px 15px;
    }
    .category-title {
        font-size: 20px;
    }
    .category-title span {
        display: block;
        margin-bottom: 5px;
        font-size: 16px !important;
    }
}



.main-footer {
    background-color: #000000 !important;
    margin-top: 80px;
    position: relative;
}

.footer-cta-bar {
    background-color: var(--primary-color, #F15A22) !important;
    border-radius: 10px;
    transform: translateY(-50%);
    position: relative;
    z-index: 10;
    min-height: 80px;
    color: #ffffff !important;
}

.footer-cta-bar .cta-text,
.footer-cta-bar .cta-phone,
.footer-cta-bar span,
.footer-cta-bar i {
    color: #ffffff !important;
}

.main-footer h5,
.main-footer h6,
.main-footer h4,
.main-footer .footer-widget h5 {
    color: #ffffff !important;
    font-weight: 700;
}

.main-footer p,
.main-footer .text-white-50,
.main-footer .text-muted,
.main-footer .small {
    color: #d1d1d1 !important;
    opacity: 1 !important;
}

.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: #d1d1d1 !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--primary-color) !important;
    padding-right: 5px;
}

.trust-badges .badge-box {
    width: 80px;
    height: 80px;
    background-color: #ffffff !important;
    border-radius: 12px;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}
.trust-badges .badge-box:hover {
    transform: translateY(-5px);
}

.trust-badges .badge-box img,
.trust-badges .badge-box iframe,
.trust-badges .badge-box svg,
.trust-badges .badge-box a {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .trust-badges {
        justify-content: center !important; 
        margin-top: 20px !important;
    }

    .trust-badges .badge-box {
        width: 58px !important;  
        height: 58px !important;
        padding: 4px !important;
        border-radius: 10px !important;
    }

    .trust-badges .badge-box img,
    .trust-badges .badge-box iframe,
    .trust-badges .badge-box svg,
    .trust-badges .badge-box a {
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
    }
}

.custom-pagination .page-item .page-link {
    border: none;
    border-radius: 8px !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    font-family: 'Dana', sans-serif;
    background-color: #F2F2F2;
    color: #333;
    transition: var(--transition);
}
.custom-pagination .page-item .page-link:hover {
    background-color: #e0e0e0;
    color: #000;
}
.custom-pagination .page-item.active .page-link {
    background-color: #000;
    color: #fff;
    pointer-events: none;
}
.custom-pagination .page-link:focus {
    box-shadow: none;
}

.share-box {
    background-color: #F8F9FA;
    border-radius: 24px;
    padding: 20px;
}
.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: transform 0.3s;
    text-decoration: none;
}
.social-btn:hover {
    transform: translateY(-5px);
    color: #fff;
}
.social-btn.whatsapp {
    background-color: #25D366;
}
.social-btn.telegram {
    background-color: #229ED9;
}
.social-btn.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.social-btn.twitter {
    background-color: #1DA1F2;
}

.copy-link-wrapper {
    background-color: #fff;
    border-radius: 12px;
    padding: 10px 15px;
    max-width: 500px;
    width: 100%;
    border: 1px solid #eee;
}
.btn-copy:hover i {
    color: var(--primary-color) !important;
}

.comments-wrapper {
    background-color: #F8F9FA;
    border-radius: 30px;
    padding: 30px;
}
.comments-wrapper textarea:focus,
.comments-wrapper input:focus {
    border: 1px solid var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(241, 90, 34, 0.1) !important;
}
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color) !important;
}
.btn-orange {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    transition: var(--transition);
}
.btn-orange:hover {
    background-color: #d14916;
    color: #fff;
}
.btn-reply:hover {
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
    background-color: #fff5f2;
}

.nav-post-card {
    height: 120px;
    border-radius: 24px;
    overflow: hidden;
    display: block;
    position: relative;
    text-decoration: none;
}
.nav-post-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.nav-post-card:hover img {
    transform: scale(1.08);
}
.nav-post-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    transition: background-color 0.3s ease;
    z-index: 1;
}
.nav-post-card:hover .overlay {
    background-color: rgba(0, 0, 0, 0.4);
}
.nav-post-card .content {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    z-index: 2;
    color: #fff;
    padding: 0 20px;
}
.nav-post-card .content span {
    font-size: 14px;
    font-weight: 700;
}
.nav-post-card .bi {
    font-size: 20px;
    transition: transform 0.3s ease;
}
.nav-post-card:hover .bi-arrow-right {
    transform: translateX(5px);
}
.nav-post-card:hover .bi-arrow-left {
    transform: translateX(-5px);
}

.footer-accordion-menu a {
    transition: color 0.3s ease;
}
.footer-accordion-menu a:hover,
.footer-accordion-menu a[aria-expanded="true"] {
    color: var(--primary-color) !important;
}
.footer-accordion-menu .collapse {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 5px !important;
}
.footer-accordion-menu .bi-chevron-down {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}
.footer-accordion-menu a[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.comments-list .children {
    margin-right: 40px;
    border-right: 2px solid rgba(0, 0, 0, 0.05);
    padding-right: 15px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .comments-list .children {
        margin-right: 15px;
        padding-right: 10px;
    }
}

#ez-toc-container {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin: 35px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    font-family: var(--font-main) !important;
    direction: rtl;
    width: 100%;
    max-width: 100%;
}

#ez-toc-container .ez-toc-title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px dashed rgba(0, 0, 0, 0.08);
    padding-bottom: 12px;
    margin-bottom: 18px;
}

#ez-toc-container .ez-toc-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 0;
}

#ez-toc-container .ez-toc-title-toggle a {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}

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

#ez-toc-container .ez-toc-title-toggle a::before {
    content: "\f479" !important;
    font-family: "bootstrap-icons" !important;
    font-style: normal;
    font-weight: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 18px;
    color: #888;
    transition: var(--transition);
    display: inline-block;
}

#ez-toc-container .ez-toc-title-toggle a:hover {
    border-color: var(--primary-color);
    background-color: #fff5f2;
}

#ez-toc-container .ez-toc-title-toggle a:hover::before {
    color: var(--primary-color) !important;
}

#ez-toc-container ul.ez-toc-list {
    list-style: none !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

#ez-toc-container ul.ez-toc-list li {
    position: relative;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    margin: 0 !important;
}

#ez-toc-container ul.ez-toc-list li:last-child {
    border-bottom: none;
}

#ez-toc-container ul.ez-toc-list li a {
    display: inline-block;
    color: #333;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    line-height: 1.6;
    position: relative;
    padding-right: 15px;
}

#ez-toc-container ul.ez-toc-list li a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.5;
    transition: var(--transition);
}

#ez-toc-container ul.ez-toc-list li a:hover {
    color: var(--primary-color) !important;
    transform: translateX(-5px);
}

#ez-toc-container ul.ez-toc-list li a:hover::before {
    opacity: 1;
    width: 10px;
    border-radius: 4px;
}

#ez-toc-container ul.ez-toc-list .ez-toc-list {
    margin-top: 5px !important;
    padding-right: 15px !important;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

#ez-toc-container ul.ez-toc-list .ez-toc-list li {
    border-bottom: none;
    padding: 6px 0;
}

#ez-toc-container ul.ez-toc-list .ez-toc-list li a {
    font-size: 13px;
    font-weight: 400;
    color: #666;
}

#ez-toc-container ul.ez-toc-list .ez-toc-list li a::before {
    background-color: #888;
    width: 4px;
    height: 4px;
}

#ez-toc-container ul.ez-toc-list .ez-toc-list li a:hover::before {
    background-color: var(--primary-color);
    width: 6px;
}

.article-content table,
.wp-block-table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin: 30px 0 !important;
    border-radius: 16px !important;
    border: 1px solid var(--border-color, #e0e0e0) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
    background-color: #ffffff !important;
    border-collapse: collapse !important;
    font-size: 14px !important;
    text-align: center !important;
    color: #333333 !important;
    white-space: nowrap !important;
}

.article-content table tr:first-child,
.article-content table thead tr {
    background-color: var(--secondary-color, #000000) !important;
}

.article-content table tr:first-child td,
.article-content table tr:first-child th,
.article-content table thead th {
    color: #ffffff !important;
    font-weight: 800 !important;
    padding: 16px 20px !important;
    font-size: 15px !important;
    border: none !important;
}

.article-content table tr:first-child td:first-child,
.article-content table tr:first-child th:first-child,
.article-content table thead th:first-child {
    background-color: var(--primary-color, #F15A22) !important;
    text-align: right !important;
}

.article-content table td,
.article-content table th {
    padding: 14px 18px !important;
    border-bottom: 1px solid var(--border-color, #e0e0e0) !important;
    border-left: 1px solid rgba(0, 0, 0, 0.05) !important;
    vertical-align: middle !important;
    width: auto !important;
}

.article-content table tr:last-child td {
    border-bottom: none !important;
}

.article-content table tr:nth-child(even) {
    background-color: var(--light-bg, #F9F9F9) !important;
}

.article-content table tr:hover {
    background-color: rgba(241, 90, 34, 0.04) !important;
}

.article-content table tr:not(:first-child) td:first-child {
    font-weight: 700 !important;
    text-align: right !important;
    background-color: #fafafa !important;
}

.article-content table img {
    max-width: 20px !important;
    height: auto !important;
    vertical-align: middle !important;
    display: inline-block !important;
}