/**
 * استایل‌های کامل ویجیت‌های المنتور آواخبر
 */

/* ===== متغیرهای رنگ و تنظیمات کلی ===== */
:root {
    --ava-primary-color: #1e3a8a;
    --ava-secondary-color: #fbbf24;
    --ava-text-color: #333333;
    --ava-bg-color: #ffffff;
    --ava-border-color: #e5e7eb;
    --ava-video-primary: #0f0c29;
    --ava-video-secondary: #302b63;
    --ava-video-tertiary: #24243e;
    --ava-video-accent: #ff6b6b;
    --ava-video-light: #4ecdc4;
    --ava-video-dark: #1a1a2e;
    --ava-video-dark-alt: #16213e;
    --ava-shadow-light: rgba(0,0,0,0.1);
    --ava-shadow-medium: rgba(0,0,0,0.3);
    --ava-shadow-heavy: rgba(0,0,0,0.5);
    --ava-transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ava-transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== استایل کلی ویجیت‌ها ===== */
.elementor-widget-avanews-header,
.elementor-widget-avanews-footer,
.elementor-widget-avanews-video-section {
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
}

/* ===== ویجیت هدر ===== */
.elementor-widget-avanews-header {
    position: relative;
    z-index: 1000;
}

.elementor-widget-avanews-header .ava-header {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    text-align: right;
}

.elementor-widget-avanews-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.elementor-widget-avanews-header .site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.elementor-widget-avanews-header .logo-text {
    font-size: 28px;
    font-weight: 700;
    color: inherit;
}

.elementor-widget-avanews-header .main-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.elementor-widget-avanews-header .main-nav li {
    position: relative;
}

.elementor-widget-avanews-header .main-nav a {
    display: block;
    padding: 12px 20px;
    color: white;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: var(--ava-transition-smooth);
}

.elementor-widget-avanews-header .main-nav a:hover {
    background: var(--ava-secondary-color);
    color: white;
}

.elementor-widget-avanews-header .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 20px var(--ava-shadow-light);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--ava-transition-smooth);
    list-style: none;
    z-index: 1000;
    padding: 0;
    margin: 0;
}

.elementor-widget-avanews-header .main-nav li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.elementor-widget-avanews-header .sub-menu a {
    color: var(--ava-text-color);
    border-bottom: 1px solid var(--ava-border-color);
}

.elementor-widget-avanews-header .sub-menu a:hover {
    background: #f9fafb;
    color: var(--ava-primary-color);
}

.elementor-widget-avanews-header .sub-menu li:last-child a {
    border-bottom: none;
}

.submenu-toggle {
    display: none;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ava-text-color);
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--ava-transition-smooth);
    z-index: 2;
}

.submenu-toggle:hover {
    background: rgba(0,0,0,0.05);
    color: var(--ava-primary-color);
}

.submenu-toggle.active {
    color: var(--ava-primary-color);
    transform: translateY(-50%) rotate(45deg);
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--ava-border-color);
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: var(--ava-transition-smooth);
    font-family: 'Vazirmatn', sans-serif;
}

.search-input:focus {
    border-color: var(--ava-primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.search-button {
    position: absolute;
    left: 10px;
    background: var(--ava-primary-color);
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--ava-transition-smooth);
}

.search-button:hover {
    background: #3b82f6;
    transform: scale(1.05);
}

.header-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--ava-transition-smooth);
    text-decoration: none;
    width: 24px;
    height: 24px;
    color: white;
}

.header-social a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--ava-secondary-color);
    transform: translateY(-2px);
}

/* ===== ویجیت فوتر ===== */
.elementor-widget-avanews-footer {
    margin-top: auto;
}

.elementor-widget-avanews-footer .ava-footer {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    text-align: right;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-widget h3 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ava-secondary-color);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 8px;
}

.footer-widget ul li a {
    text-decoration: none;
    transition: var(--ava-transition-smooth);
    opacity: 0.8;
}

.footer-widget ul li a:hover {
    opacity: 1;
    padding-right: 5px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.8;
    font-size: 14px;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--ava-transition-smooth);
    text-decoration: none;
    width: 40px;
    height: 40px;
    background: rgb(160 86 0);
    color: white;
}

.social-share a:hover {
    background: var(--ava-secondary-color);
    color: white;
    transform: translateY(-3px) scale(1.1);
}

.dark-mode-toggle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--ava-primary-color);
    background: white;
    color: var(--ava-primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ava-transition-smooth);
    position: relative;
    overflow: hidden;
}

.dark-mode-toggle:hover {
    background: var(--ava-primary-color);
    color: white;
    transform: scale(1.05);
}

.dark-mode-toggle .sun-icon,
.dark-mode-toggle .moon-icon {
    position: absolute;
    transition: var(--ava-transition-smooth);
    width: 18px;
    height: 18px;
}

.dark-mode-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.dark-mode-toggle .moon-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

body.dark-mode .dark-mode-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

body.dark-mode .dark-mode-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* ===== ویجیت ویدیو مدرن ===== */
.elementor-widget-avanews-video-section .modern-video-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, var(--ava-video-primary), var(--ava-video-secondary), var(--ava-video-tertiary));
    border-radius: 25px;
    color: white;
    direction: rtl;
}

.elementor-widget-avanews-video-section .modern-section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 50px;
    background: linear-gradient(45deg, #ffffff, var(--ava-video-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 20px rgba(255, 107, 107, 0.3);
    font-weight: 800;
    letter-spacing: 2px;
}

.elementor-widget-avanews-video-section .modern-video-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Featured Video */
.elementor-widget-avanews-video-section .featured-video {
    position: relative;
    background: linear-gradient(145deg, var(--ava-video-dark), var(--ava-video-dark-alt));
    border-radius: 25px;
    overflow: hidden;
    box-shadow:
        0 20px 40px var(--ava-shadow-medium),
        0 0 0 1px rgba(255,255,255,0.1);
    transition: var(--ava-transition-bounce);
    cursor: pointer;
    height: 500px;
}

.elementor-widget-avanews-video-section .featured-video:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 30px 60px var(--ava-shadow-heavy),
        0 0 0 1px rgba(255,255,255,0.2),
        0 0 50px rgba(255, 107, 107, 0.2);
}

.elementor-widget-avanews-video-section .featured-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.elementor-widget-avanews-video-section .featured-video:hover img {
    transform: scale(1.1);
}

.elementor-widget-avanews-video-section .featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 40px;
    transform: translateY(0);
    transition: var(--ava-transition-smooth);
}

.elementor-widget-avanews-video-section .featured-video:hover .featured-overlay {
    background: linear-gradient(transparent, rgba(0,0,0,0.95));
}

.elementor-widget-avanews-video-section .featured-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--ava-video-accent), #ee5a52);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
    transition: var(--ava-transition-smooth);
    backdrop-filter: blur(10px);
}

.elementor-widget-avanews-video-section .featured-play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent white;
    margin-right: 5px;
}

.elementor-widget-avanews-video-section .featured-video:hover .featured-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.6);
}

.elementor-widget-avanews-video-section .featured-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.2;
    background: linear-gradient(45deg, #fff, var(--ava-video-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
}

.elementor-widget-avanews-video-section .featured-meta {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.elementor-widget-avanews-video-section .featured-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.elementor-widget-avanews-video-section .featured-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 20px;
}

.elementor-widget-avanews-video-section .featured-duration {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--ava-video-accent), #ee5a52);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Small Videos */
.elementor-widget-avanews-video-section .small-videos {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.elementor-widget-avanews-video-section .small-video-card {
    background: linear-gradient(145deg, var(--ava-video-dark), var(--ava-video-dark-alt));
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 15px 30px var(--ava-shadow-medium),
        0 0 0 1px rgba(255,255,255,0.1);
    transition: var(--ava-transition-smooth);
    cursor: pointer;
    position: relative;
    height: 150px;
}

.elementor-widget-avanews-video-section .small-video-card:hover {
    transform: translateX(-10px);
    box-shadow:
        0 20px 40px var(--ava-shadow-heavy),
        0 0 0 1px rgba(255,255,255,0.2);
}

.elementor-widget-avanews-video-section .small-video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.elementor-widget-avanews-video-section .small-video-card:hover img {
    transform: scale(1.05);
}

.elementor-widget-avanews-video-section .small-video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.95));
    padding: 15px;
}

.elementor-widget-avanews-video-section .small-video-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: white;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.elementor-widget-avanews-video-section .small-video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #ccc;
}

.elementor-widget-avanews-video-section .small-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--ava-video-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ava-transition-smooth);
    backdrop-filter: blur(10px);
}

.elementor-widget-avanews-video-section .small-play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 15px;
    border-color: transparent transparent transparent #333;
    margin-right: 2px;
}

.elementor-widget-avanews-video-section .small-video-card:hover .small-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255,255,255,1);
}

.elementor-widget-avanews-video-section .small-duration {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Additional Videos Grid */
.elementor-widget-avanews-video-section .additional-videos {
    margin-top: 40px;
}

.elementor-widget-avanews-video-section .additional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.elementor-widget-avanews-video-section .additional-video-card {
    background: linear-gradient(145deg, var(--ava-video-dark), var(--ava-video-dark-alt));
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 15px 30px var(--ava-shadow-medium),
        0 0 0 1px rgba(255,255,255,0.1);
    transition: var(--ava-transition-smooth);
    cursor: pointer;
    position: relative;
    height: 200px;
}

.elementor-widget-avanews-video-section .additional-video-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 25px 50px var(--ava-shadow-heavy),
        0 0 0 1px rgba(255,255,255,0.2);
}

.elementor-widget-avanews-video-section .additional-video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.elementor-widget-avanews-video-section .additional-video-card:hover img {
    transform: scale(1.05);
}

.elementor-widget-avanews-video-section .additional-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.95));
    padding: 20px;
}

.elementor-widget-avanews-video-section .additional-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
    line-height: 1.3;
}

.elementor-widget-avanews-video-section .additional-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #ccc;
}

.elementor-widget-avanews-video-section .additional-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--ava-video-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ava-transition-smooth);
    backdrop-filter: blur(10px);
}

.elementor-widget-avanews-video-section .additional-play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #333;
    margin-right: 3px;
}

.elementor-widget-avanews-video-section .additional-video-card:hover .additional-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255,255,255,1);
}

.elementor-widget-avanews-video-section .additional-duration {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* ===== ویجیت گالری ===== */
.widget-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--ava-shadow-medium);
    overflow: hidden;
}

.widget-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
    padding: 25px 40px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.widget-header::before {
    content: '';
    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="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.widget-header span {
    position: relative;
    z-index: 1;
}

.interactive-gallery-container {
    display: flex;
    background: #1e3a5f;
    min-height: 500px;
    border-radius: 20px;
}

.gallery-sidebar {
    background: linear-gradient(180deg, #2c5282 0%, #1e3a5f 100%);
    overflow-y: auto;
    max-height: 600px;
    scrollbar-width: thin;
    scrollbar-color: var(--ava-secondary-color) transparent;
    border-left: 3px solid var(--ava-secondary-color);
}

.gallery-sidebar::-webkit-scrollbar {
    width: 8px;
}

.gallery-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.gallery-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--ava-secondary-color), #f59e0b);
    border-radius: 4px;
}

.gallery-item {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: var(--ava-transition-smooth);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--ava-secondary-color), #f59e0b);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.1), transparent);
    transform: translateX(-2px);
}

.gallery-item:hover::before {
    transform: scaleY(1);
}

.gallery-item.active {
    background: #dc2626;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.gallery-item.active::before {
    transform: scaleY(1);
}

.gallery-item.active:hover {
    background: #b91c1c;
}

.gallery-item-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--ava-transition-smooth);
}

.gallery-item:hover .gallery-item-image {
    border-color: var(--ava-secondary-color);
    transform: scale(1.05);
}

.gallery-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4a5568, #2d3748);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #cbd5e0;
}

.gallery-item-content {
    flex: 1;
    min-width: 0;
}

.gallery-item-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: right;
}

.gallery-images-count {
    color: var(--ava-secondary-color);
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gallery-images-count::before {
    content: '🖼️';
    font-size: 12px;
}

.gallery-content {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.featured-image-container {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--ava-transition-bounce);
    box-shadow: 0 15px 40px var(--ava-shadow-medium);
    border: 3px solid transparent;
}

.featured-image-container:hover {
    transform: scale(1.03);
    border-color: var(--ava-secondary-color);
    box-shadow: 0 25px 60px var(--ava-shadow-heavy);
}

.featured-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(251, 191, 36, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.featured-image-container:hover::before {
    opacity: 1;
}

.featured-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 400px;
    transition: transform 0.4s ease;
}

.featured-image-container:hover img {
    transform: scale(1.05);
}

.view-all-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(251, 191, 36, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    transition: var(--ava-transition-smooth);
}

.view-all-overlay::before {
    content: '👁️';
    font-size: 16px;
}

.view-all-overlay:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 25px 25px 20px;
    color: white;
    backdrop-filter: blur(10px);
}

.overlay-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.overlay-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    opacity: 0.95;
    align-items: center;
    flex-wrap: wrap;
}

.overlay-count {
    color: var(--ava-secondary-color);
    font-weight: 700;
    background: rgba(251, 191, 36, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.overlay-author, .overlay-date {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
    font-size: 18px;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #2c5282;
    border-top: 2px solid var(--ava-secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

/* ===== انیمیشن‌ها ===== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.gallery-item {
    animation: fadeInUp 0.6s ease forwards;
}

.gallery-item:nth-child(odd) {
    animation-delay: 0.1s;
}

.gallery-item:nth-child(even) {
    animation-delay: 0.2s;
}

.gallery-sidebar {
    animation: slideInLeft 0.5s ease;
}

.gallery-content {
    animation: slideInRight 0.5s ease;
}

/* افکت‌های اضافی */
.gallery-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 15px;
    width: 6px;
    height: 6px;
    background: var(--ava-secondary-color);
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: var(--ava-transition-smooth);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
}

.gallery-item.active::after {
    background: white;
    opacity: 1;
    transform: translateY(-50%) scale(1.3);
}

/* ویجیت‌های اضافی */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--ava-primary-color);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: var(--ava-transition-smooth);
}

.mobile-menu-toggle.active {
    color: var(--ava-secondary-color);
    transform: scale(1.1);
}

.elementor-alert {
    padding: 15px 20px;
    margin: 10px 0;
    border: 1px solid;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.elementor-alert-warning {
    background: #fcf8e3;
    border-color: #faebcc;
    color: #8a6d3b;
}

/* ===== مود تاریک ===== */
body.dark-mode .elementor-widget-avanews-header .ava-header {
    background-color: #2d2d2d;
    color: #e5e5e5;
}

body.dark-mode .elementor-widget-avanews-footer .ava-footer {
    background-color: #1a1a1a;
    color: #e5e5e5;
}

body.dark-mode .elementor-widget-avanews-header .search-input {
    background-color: #3a3a3a;
    color: #e5e5e5;
    border-color: #444444;
}

body.dark-mode .elementor-widget-avanews-footer .footer-widget {
    color: #cccccc;
}

body.dark-mode .elementor-widget-avanews-footer .footer-widget h3 {
    color: #ffffff;
}

body.dark-mode .elementor-widget-avanews-footer .footer-widget ul li a {
    color: #cccccc;
}

body.dark-mode .elementor-widget-avanews-footer .footer-widget ul li a:hover {
    color: var(--ava-secondary-color);
}

/* ===== ریسپانسیو - موبایل ===== */
@media (max-width: 768px) {
    /* هدر */
    .elementor-widget-avanews-header .main-navigation {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        bottom: 0;
        background: rgba(0, 0, 0, 0.95);
        z-index: 9999;
        overflow-y: auto;
        padding: 0;
        width: 100vw;
    }

    .elementor-widget-avanews-header .main-navigation.active {
        display: block !important;
        animation: slideInFromRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .elementor-widget-avanews-header .main-navigation .container {
        padding: 0;
        height: 100%;
        background: white;
        width: 300px;
        max-width: 85%;
        margin-left: auto;
        margin-right: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        position: relative;
    }

    .elementor-widget-avanews-header .main-nav {
        flex-direction: column;
        padding: 80px 0 20px;
        height: 100%;
        margin: 0;
        list-style: none;
    }

    .elementor-widget-avanews-header .main-nav li {
        border-bottom: 1px solid var(--ava-border-color);
        position: relative;
        width: 100%;
        margin: 0;
    }

    .elementor-widget-avanews-header .main-nav > li > a {
        padding: 18px 20px;
        color: var(--ava-text-color) !important;
        font-weight: 500;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 16px;
        transition: var(--ava-transition-smooth);
        text-decoration: none;
    }

    .elementor-widget-avanews-header .main-nav > li > a:hover {
        background: var(--ava-primary-color);
        color: white !important;
        transform: translateX(-5px);
    }

    .elementor-widget-avanews-header .sub-menu {
        display: none;
        background: #f8f9fa;
        padding: 0;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        min-width: auto;
        border-top: 1px solid var(--ava-border-color);
    }

    .elementor-widget-avanews-header .sub-menu.active {
        display: block !important;
        animation: slideDown 0.3s ease;
    }

    .submenu-toggle {
        display: flex !important;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .search-input {
        width: 200px;
    }

    .header-social {
        gap: 6px;
    }

    .header-social a {
        width: 20px;
        height: 20px;
    }

    /* ویجیت ویدیو */
    .elementor-widget-avanews-video-section .modern-video-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .elementor-widget-avanews-video-section .small-videos {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .elementor-widget-avanews-video-section .small-video-card {
        height: 200px;
    }

    .elementor-widget-avanews-video-section .modern-section-title {
        font-size: 2.5rem;
    }

    .elementor-widget-avanews-video-section .featured-title {
        font-size: 1.8rem;
    }

    .elementor-widget-avanews-video-section .featured-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .elementor-widget-avanews-video-section .additional-grid {
        grid-template-columns: 1fr;
    }

    .elementor-widget-avanews-video-section .featured-video {
        height: 350px;
    }

    /* ویجیت گالری */
    .widget-container {
        margin: 10px;
        border-radius: 15px;
    }

    .interactive-gallery-container {
        flex-direction: column;
        min-height: 400px;
    }

    .gallery-sidebar {
        width: 100%;
        max-height: 200px;
        border-left: none;
        border-bottom: 3px solid var(--ava-secondary-color);
    }

    .gallery-item {
        padding: 12px 15px;
    }

    .gallery-item-image {
        width: 40px;
        height: 40px;
    }

    .gallery-content {
        padding: 20px;
    }

    .featured-image-container {
        max-width: 95%;
        max-height: 60%;
    }

    .featured-image-container img {
        max-height: 250px;
    }

    .overlay-title {
        font-size: 16px;
    }

    .overlay-meta {
        gap: 10px;
        font-size: 13px;
    }

    .widget-header {
        font-size: 22px;
        padding: 20px 30px;
    }

    /* فوتر */
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .social-share {
        justify-content: center;
    }

    .footer-bottom p {
        font-size: 12px;
    }
}

/* ===== ریسپانسیو - تبلت ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .widget-container {
        margin: 15px;
    }

    .gallery-sidebar {
        width: 250px;
    }

    .gallery-content {
        padding: 30px;
    }

    .overlay-title {
        font-size: 18px;
    }

    /* ویجیت ویدیو تبلت */
    .elementor-widget-avanews-video-section .modern-video-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .elementor-widget-avanews-video-section .small-videos {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .elementor-widget-avanews-video-section .small-video-card {
        height: 200px;
    }
}

/* ===== ریسپانسیو - موبایل کوچک ===== */
@media (max-width: 480px) {
    .elementor-widget-avanews-header .header-content {
        flex-direction: column;
        align-items: stretch;
    }

    .elementor-widget-avanews-header .header-search {
        justify-content: space-between;
    }

    .search-input {
        width: 100%;
        max-width: 250px;
    }

    .dark-mode-toggle {
        width: 40px;
        height: 40px;
    }

    .footer-widgets {
        gap: 15px;
    }

    .social-share {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* ویجیت ویدیو موبایل کوچک */
    .elementor-widget-avanews-video-section .modern-section-title {
        font-size: 2rem;
    }

    .elementor-widget-avanews-video-section .featured-title {
        font-size: 1.5rem;
    }

    .elementor-widget-avanews-video-section .featured-video {
        height: 280px;
    }

    .elementor-widget-avanews-video-section .small-video-card {
        height: 160px;
    }

    .elementor-widget-avanews-video-section .additional-video-card {
        height: 180px;
    }
}

/* ===== بهبود عملکرد و دسترسی ===== */
.gallery-item,
.featured-image-container,
.gallery-item-image,
.elementor-widget-avanews-video-section .featured-video,
.elementor-widget-avanews-video-section .small-video-card,
.elementor-widget-avanews-video-section .additional-video-card {
    will-change: transform;
}

/* Focus states for accessibility */
.gallery-item:focus,
.featured-image-container:focus {
    outline: 2px solid var(--ava-secondary-color);
    outline-offset: 2px;
}

.elementor-widget-avanews-video-section .featured-video:focus,
.elementor-widget-avanews-video-section .small-video-card:focus,
.elementor-widget-avanews-video-section .additional-video-card:focus {
    outline: 2px solid var(--ava-video-accent);
    outline-offset: 2px;
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .featured-image-container {
        border-width: 2px;
    }

    .gallery-item-image {
        border-width: 1px;
    }
}

/* ===== پرینت استایل ===== */
@media print {
    .widget-container {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        background: white !important;
    }

    .gallery-sidebar {
        background: #f5f5f5 !important;
    }

    .gallery-item.active {
        background: #e0e0e0 !important;
    }

    .featured-image-container {
        border: 1px solid #ccc;
    }

    .gallery-overlay {
        background: rgba(240, 240, 240, 0.9) !important;
    }

    .widget-header {
        background: #f0f0f0 !important;
        color: #333 !important;
    }

    .elementor-widget-avanews-video-section .modern-video-container {
        background: white !important;
        color: #333 !important;
    }
}

/* ===== افکت‌های اضافی ===== */
.gallery-item:hover .gallery-item-title {
    color: var(--ava-secondary-color);
}

.featured-image-container:hover .view-all-overlay {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.3);
}

/* انیمیشن‌های ویجیت ویدیو */
.elementor-widget-avanews-video-section .featured-video,
.elementor-widget-avanews-video-section .small-video-card,
.elementor-widget-avanews-video-section .additional-video-card {
    animation: fadeInUp 0.6s ease-out;
}

.elementor-widget-avanews-video-section .small-video-card:nth-child(1) {
    animation-delay: 0.1s;
}
.elementor-widget-avanews-video-section .small-video-card:nth-child(2) {
    animation-delay: 0.2s;
}
.elementor-widget-avanews-video-section .small-video-card:nth-child(3) {
    animation-delay: 0.3s;
}
.elementor-widget-avanews-video-section .small-video-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* ===== تنظیمات Elementor ===== */
.elementor-widget-interactive-gallery-widget {
    width: 100%;
}

.elementor-widget-avanews-video-section {
    width: 100%;
}
/*استایل پیشنهاد سردبیر */
.editors-choice-enhanced {
    direction: rtl;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Header Styles */
.editors-choice-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.editors-choice-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.editors-choice-header:hover::before {
    left: 100%;
}

.editors-choice-icon {
    position: relative;
    z-index: 2;
}

.editors-choice-icon svg {
    width: 28px;
    height: 28px;
    color: #fbbf24;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.editors-choice-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-line {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.header-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Grid Layouts */
.editors-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns), 1fr);
    gap: 20px;
    padding: 30px;
}

.editors-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.editors-masonry {
    column-count: var(--columns);
    column-gap: 20px;
    padding: 30px;
}

.editors-carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 30px;
    scroll-snap-type: x mandatory;
}

.editors-carousel .editors-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
}

/* Card Styles */
.editors-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.editors-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.editors-card:hover::before {
    opacity: 1;
}

/* Hover Animations */
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px rgba(0,0,0,0.15);
}

.hover-scale:hover {
    transform: scale(1.02);
}

.hover-rotate:hover {
    transform: rotate(1deg);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

/* Thumbnail Styles */
.editors-thumbnail {
    position: relative;
    overflow: hidden;
}

.thumbnail-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.featured-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.editors-card:hover .featured-image {
    transform: scale(1.05);
}

.image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.image-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.editors-card:hover .thumbnail-overlay {
    opacity: 1;
}

.overlay-content {
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.editors-category {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.editors-category a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.editors-category a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Content Styles */
.editors-content {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.editors-title {
    margin: 0 0 15px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}

.editors-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.editors-title a:hover {
    color: #667eea;
}

.editors-excerpt {
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.editors-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
    color: #a0aec0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* No Posts State */
.no-posts {
    text-align: center;
    padding: 60px 30px;
    color: #a0aec0;
}

.no-posts-icon {
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-posts h4 {
    margin: 0 0 10px;
    color: #718096;
    font-size: 18px;
}

.no-posts p {
    margin: 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .editors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .editors-masonry {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .editors-grid {
        grid-template-columns: 1fr;
    }
    .editors-masonry {
        column-count: 1;
    }
    .editors-choice-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .header-line {
        width: 50px;
    }
    .editors-choice-title {
        font-size: 20px;
    }
}

/* Animation Classes */
.animate__fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate__slideInRight {
    animation: slideInRight 0.6s ease-out;
}

.animate__zoomIn {
    animation: zoomIn 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
/*استایل پادکست */
.podcast-section {
    width: 100%;
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    color: #1a1a1a;
    margin: 0;
    position: relative;
}

.view-all-link {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border: 2px solid #7c3aed;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.view-all-link:hover {
    background-color: #7c3aed;
    color: white;
    transform: translateY(-2px);
}

.podcast-grid {
    display: grid;
    gap: 20px;
}

.podcast-grid.columns-1 { grid-template-columns: 1fr; }
.podcast-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
.podcast-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.podcast-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }
.podcast-grid.columns-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1200px) {
    .podcast-grid.columns-6 { grid-template-columns: repeat(4, 1fr); }
    .podcast-grid.columns-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .podcast-grid.columns-6,
    .podcast-grid.columns-4,
    .podcast-grid.columns-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .podcast-grid.columns-6,
    .podcast-grid.columns-4,
    .podcast-grid.columns-3,
    .podcast-grid.columns-2 { grid-template-columns: 1fr; }
}

.podcast-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.podcast-card-link {
    display: block;
    height: 100%;
}

.podcast-thumbnail {
    position: relative;
    overflow: hidden;
}

.podcast-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.podcast-category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(124, 58, 237, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.podcast-duration {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-button {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
    font-size: 18px;
    transform: scale(0.8);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.podcast-content {
    padding: 20px;
}

.podcast-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.4;
    text-align: right;
}

.podcast-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
    text-align: left;
}
.podcast-meta {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-icon {
    font-size: 12px;
    color: #999;
}

.meta-separator {
    margin: 0 8px;
    color: #ccc;
}

.listen-button {
    width: 100%;
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Vazirmatn';
}

.listen-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.podcast-card:hover .podcast-thumbnail img {
    transform: scale(1.05);
}

.podcast-card:hover .play-overlay {
    opacity: 1;
}

.podcast-card:hover .play-button {
    transform: scale(1);
}

.hover-scale:hover {
    transform: scale(1.02);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.hover-shadow:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.hover-rotate:hover {
    transform: rotate(2deg);
}

.empty-message {
    text-align: center;
    color: #666;
    font-size: 16px;
    padding: 40px;
    grid-column: 1 / -1;
}

/* استایل‌های مودال */
.podcast-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
}

.modal-body {
    padding: 40px 30px 30px;
}

.podcast-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-podcast-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.modal-podcast-meta {
    font-size: 14px;
    color: #666;
}

.audio-player-container {
    margin-top: 20px;
}

.audio-player-container audio {
    width: 100%;
    height: 50px;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 768px) {
    .section-title {
        font-size: 24px;
    }

    .podcast-content {
        padding: 15px;
    }

    .podcast-title {
        font-size: 16px;
    }

    .podcast-excerpt {
        font-size: 13px;
    }

    .modal-body {
        padding: 30px 20px 20px;
    }

    .modal-podcast-title {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-title {
        font-size: 22px;
    }

    .view-all-link {
        align-self: flex-end;
    }

    .modal-content {
        margin: 10px;
    }
}
/*استایل خبر داغ */
.hot-news-section { padding: 20px; border-radius: 12px; }
.hot-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-title-wrapper { display: flex; align-items: center; gap: 10px; }
.hot-icon svg { color: #ef4444; }
.hot-title { margin: 0; font-size: 20px; }
.hot-trending-indicator { display: flex; align-items: center; gap: 8px; }
.trending-pulse { width: 8px; height: 8px; background: #ef4444; border-radius: 50%; animation: pulse 1s infinite; }
.trending-text { font-size: 12px; color: #666; }
.hot-news-list { display: flex; flex-direction: column; gap: 12px; }
.hot-news-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; border-radius: 8px; border-right: 3px solid transparent; transition: all 0.3s; }
.hot-news-item:hover { transform: translateX(-5px); }
.hot-news-item.super-hot { border-right-color: #dc2626; }
.hot-news-item.hot { border-right-color: #ef4444; }
.hot-news-item.special { border-right-color: #f59e0b; }
.hot-news-item.trending { border-right-color: #3b82f6; }
.alert-badge { padding: 4px 8px; border-radius: 4px; font-size: 11px; color: #fff; }
.super-hot .alert-badge { background: #dc2626; }
.hot .alert-badge { background: #ef4444; }
.special .alert-badge { background: #f59e0b; }
.trending .alert-badge { background: #3b82f6; }
.hot-news-content { flex: 1; }
.hot-news-title { margin: 0 0 5px; font-size: 14px; }
.hot-news-title a { color: inherit; text-decoration: none; }
.hot-news-meta { display: flex; gap: 15px; font-size: 12px; color: #888; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/*استایل روایت روز */
.daily-stories-section { padding: 20px 0; }
.daily-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-title-wrapper { display: flex; align-items: center; gap: 10px; }
.daily-icon svg { color: var(--primary-color, #1e3a8a); }
.daily-nav-controls { display: flex; gap: 8px; }
.daily-nav-btn { width: 36px; height: 36px; border: 1px solid #ddd; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.daily-nav-btn:hover { background: var(--primary-color, #1e3a8a); color: #fff; border-color: var(--primary-color, #1e3a8a); }
.daily-nav-btn svg { fill: currentColor; }
.daily-stories-container { overflow: hidden; }
.daily-stories-wrapper { display: flex; gap: 20px; transition: transform 0.3s ease; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 10px; }
.daily-stories-wrapper::-webkit-scrollbar { height: 6px; }
.daily-stories-wrapper::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.daily-story-card { flex-shrink: 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.08); transition: transform 0.3s; }
.daily-story-card:hover { transform: translateY(-5px); }
.daily-story-image { position: relative; overflow: hidden; }
.daily-story-image img { width: 100%; height: 100%; object-fit: cover; }
.daily-time-label { position: absolute; top: 10px; right: 10px; background: var(--primary-color, #1e3a8a); color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 11px; }
.daily-story-content { padding: 15px; }
.daily-story-title { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.daily-story-title a { color: inherit; text-decoration: none; }
.daily-story-excerpt { font-size: 13px; color: #666; margin: 0 0 10px; line-height: 1.5; }
.daily-story-meta { font-size: 12px; color: #999; }
.image-placeholder { background: #f0f0f0; height: 100%; display: flex; align-items: center; justify-content: center; color: #999; }

/*اخبار سیاسی */
.political-news-section {
    padding: 20px;
    background: transparent;
    transition: all 0.3s ease;
}

.political-news-section.political-hover-enabled .political-main-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.political-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #1e3a8a;
    padding-bottom: 10px;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.political-icon svg {
    color: #1e3a8a;
}

.political-layout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .political-layout-container {
        grid-template-columns: 1fr;
    }

    .political-news-section {
        padding: 15px;
    }
}

.political-main-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.political-card-image {
    position: relative;
    overflow: hidden;
}

.political-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.political-card-image:hover img {
    transform: scale(1.05);
}

.political-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
}

.political-category {
    background: #1e3a8a;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.political-main-content {
    padding: 20px;
}

.political-main-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 600;
}

.political-main-title a {
    color: inherit;
    text-decoration: none;
}

.political-main-excerpt {
    color: #666;
    font-size: 14px;
    margin: 0 0 10px;
    line-height: 1.6;
}

.political-main-meta {
    font-size: 12px;
    color: #999;
}

.political-sidebar-column {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
}

.political-sidebar-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.political-sidebar-item:last-child {
    border-bottom: none;
}

.political-sidebar-item:hover {
    background: rgba(30, 58, 138, 0.05);
    margin: 0 -5px;
    padding: 12px 5px;
    border-radius: 8px;
}

.political-sidebar-title {
    margin: 0 0 5px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.political-sidebar-title a {
    color: inherit;
    text-decoration: none;
}

.political-sidebar-date {
    font-size: 12px;
    color: #999;
}

.view-all-link {
    color: #1e3a8a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    text-decoration: underline;
}

.image-placeholder {
    background: #f0f0f0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
}

.section-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1e3a8a;
}

/*اخبار ورزشی */
.ava-sports-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #ffffff;
    padding: 30px 20px;
}

.ava-sports-section.ava-animated .ava-sports-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ava-sports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.ava-sports-view-all {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #3b82f6;
}

.ava-sports-view-all:hover {
    background: #3b82f6;
    color: #fff;
}

.ava-sports-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ava-sports-icon {
    transition: all 0.3s ease;
    color: #3b82f6;
}

.ava-sports-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937 !important;
    background: transparent;
    line-height: 1.2;
}

.ava-sports-grid {
    display: grid;
    gap: 25px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.ava-sports-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.ava-sports-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.ava-sports-card-lift:hover {
    transform: translateY(-8px);
}

.ava-sports-card-scale:hover {
    transform: scale(1.05);
}

.ava-sports-card-glow:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.ava-sports-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.ava-sports-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.ava-sports-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ava-sports-card:hover .ava-sports-card-image img {
    transform: scale(1.1);
}

.ava-sports-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ava-sports-card:hover .ava-sports-card-overlay {
    opacity: 1;
}

.ava-sports-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #3b82f6;
    color: #fff;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.ava-sports-card:hover .ava-sports-badge {
    transform: scale(1.1);
}

.ava-sports-card-content {
    padding: 20px;
}

.ava-sports-card-title {
    margin: 0 0 15px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ava-sports-card-excerpt {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ava-sports-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 15px;
}

.ava-sports-meta-date,
.ava-sports-meta-comments {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ava-sports-no-thumbnail {
    background: linear-gradient(135deg, #e0e7ff, #dbeafe);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    gap: 10px;
}

.ava-sports-no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    grid-column: 1 / -1;
}

.ava-sports-no-posts svg {
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ava-sports-section {
        padding: 20px 15px;
    }

    .ava-sports-header {
        padding: 0 5px;
        margin-bottom: 20px;
    }

    .ava-sports-title {
        font-size: 20px;
    }

    .ava-sports-grid {
        gap: 20px;
    }

    .ava-sports-card-content {
        padding: 16px;
    }

    .ava-sports-card-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .ava-sports-section {
        padding: 15px 10px;
    }

    .ava-sports-card {
        border-radius: 12px;
    }

    .ava-sports-card-image {
        height: 180px;
    }
}

/*یادداشت روز */
.notes-section { width: 100%; padding: 30px 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding: 15px 20px; border-radius: 12px;}
.section-title { margin: 0; font-size: 24px; font-weight: 700; color: #fff !important; }
.view-all-link { color: #c4b5fd; text-decoration: none; font-weight: 600; transition: color 0.3s; }
.view-all-link:hover { color: #fff !important; }
.notes-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); padding: 0 15px 0 15px; }
@media (max-width: 768px) { .notes-grid { grid-template-columns: 1fr; } }
.notes-card { position: relative; overflow: hidden; border-radius: 12px; transition: all 0.3s ease; background: #fff !important; }
.notes-card:hover { transform: translateY(-8px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.notes-card-link { display: block; text-decoration: none; color: inherit; }
.notes-card-image { position: relative; overflow: hidden; border-radius: 12px; margin-bottom: 16px; }
.notes-thumbnail, .notes-no-thumbnail { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.notes-card:hover .notes-thumbnail { transform: scale(1.08); }
.notes-no-thumbnail { background: #f3f4f6; display: flex; align-items: center; justify-content: center; color: #9ca3af; }
.notes-overlay { position: absolute; inset: 0; background: rgba(124,58,237,0.8); opacity: 0; transition: opacity 0.3s; display: flex; align-items: center; justify-content: center; }
.notes-card:hover .notes-overlay { opacity: 1; }
.notes-icon svg { stroke: #fff; }
.notes-card-content { padding: 0 8px; }
.notes-card-title { margin: 0 0 12px; font-size: 18px; font-weight: 600; line-height: 1.4; color: #111827 !important; }
.notes-card-title a { color: inherit !important; text-decoration: none; }
.notes-card-title a:hover { color: #7c3aed !important; }
.notes-card-excerpt { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: #6b7280 !important; }
.notes-card-meta { font-size: 13px; color: #9ca3af !important; display: flex; align-items: center; gap: 8px; }
.no-notes { text-align: center; padding: 40px; color: #6b7280; font-style: italic; }

/*گزارش و گفتگو */
.reports-section { padding: 40px 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 15px; }
.section-title-wrapper { display: flex; align-items: center; gap: 10px; }
.section-title { margin: 0; font-size: 24px; font-weight: 700; color: #1f2937 !important; }
.view-all-link { font-size: 14px; padding: 8px 16px; border: 1px solid; border-radius: 8px; text-decoration: none; transition: all 0.3s; }
.view-all-link:hover { color: #fff !important; }
.reports-grid { display: grid; gap: 24px;     padding: 0 15px 0 15px;}
.report-card { display: flex; gap: 20px; padding: 20px; border-radius: 12px; border: 2px solid #e5e7eb; transition: all 0.3s ease; background: #ffffff !important; }
.report-card:hover { border-color: #6366f1; transform: translateY(-5px); }
.report-card-image { position: relative; flex-shrink: 0; width: 140px; border-radius: 8px; overflow: hidden; }
.report-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.report-card:hover .report-card-image img { transform: scale(1.05); }
.report-icon { position: absolute; bottom: 10px; right: 10px; width: 36px; height: 36px; background: #6366f1; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.report-card-content { flex: 1; display: flex; flex-direction: column; }
.report-card-title { margin: 0 0 10px; font-size: 16px; line-height: 1.5; color: #1f2937 !important; }
.report-card-title a { text-decoration: none; color: inherit !important; }
.report-card-title a:hover { color: #6366f1 !important; }
.report-card-excerpt { color: #666 !important; font-size: 14px; margin: 0 0 12px; line-height: 1.6; flex-grow: 1; }
.report-card-meta { font-size: 13px; color: #888 !important; margin-top: auto; }
.report-placeholder { background: #eef2ff; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #6366f1; font-size: 18px; font-weight: bold; }
@media (max-width: 768px) {
    .report-card { flex-direction: column; }
    .report-card-image { width: 100%; height: 200px; }
}
@media (max-width: 480px) {
    .section-head { flex-direction: column; align-items: flex-start; }
}

/*گزارش تصویری */
.ige-widget-container {
    font-family: 'Vazir', 'IRANSans', Arial, sans-serif !important;
    direction: rtl;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.ige-widget-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
    padding: 25px 40px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.ige-gallery-container {
    display: flex;
    background: <?php echo esc_attr($settings['primary_bg_color']); ?>;
    min-height: <?php echo esc_attr($settings['container_height'] ?: '500'); ?>px;
    border-radius: <?php echo esc_attr($settings['container_border_radius'] ?: '16'); ?>px;
}

.ige-gallery-sidebar {
    background: <?php echo esc_attr($settings['sidebar_bg_color']); ?>;
    width: <?php echo esc_attr($settings['sidebar_width'] ?: '300'); ?>px;
    overflow-y: auto;
    max-height: <?php echo esc_attr($settings['container_height'] ?: '500'); ?>px;
    border-left: 3px solid <?php echo esc_attr($settings['accent_color']); ?>;
}

.ige-gallery-item {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.ige-gallery-item:hover {
    background: <?php echo esc_attr($settings['hover_bg_color']); ?>;
    transform: translateX(-2px);
}

.ige-gallery-item.active {
    background: <?php echo esc_attr($settings['active_bg_color']); ?>;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.ige-item-image {
    width: <?php echo esc_attr($settings['sidebar_image_size'] ?: '50'); ?>px;
    height: <?php echo esc_attr($settings['sidebar_image_size'] ?: '50'); ?>px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.ige-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ige-placeholder-image {
    width: 100%;
    height: 100%;
    background: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #cbd5e0;
}

.ige-item-title {
    color: white;
    font-size: <?php echo esc_attr($settings['sidebar_title_font_size']['size'] ?: '14'); ?>px;
    font-weight: <?php echo esc_attr($settings['title_font_weight'] ?: '600'); ?>;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.ige-images-count {
    color: <?php echo esc_attr($settings['accent_color']); ?>;
    font-size: <?php echo esc_attr($settings['count_font_size']['size'] ?: '12'); ?>px;
    font-weight: 500;
}

.ige-gallery-content {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.ige-featured-image-container {
    position: relative;
    max-width: <?php echo esc_attr($settings['featured_image_max_width'] ?: '600'); ?>px;
    max-height: <?php echo esc_attr($settings['featured_image_max_height'] ?: '400'); ?>px;
    border-radius: <?php echo esc_attr($settings['featured_image_border_radius'] ?: '16'); ?>px;
    overflow: hidden;
    cursor: pointer;
    transition: all <?php echo esc_attr($settings['animation_duration'] ?: '0.3'); ?>s <?php echo esc_attr($settings['animation_easing'] ?: 'cubic-bezier(0.4, 0, 0.2, 1)'); ?>;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    min-height: 300px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ige-featured-image-container:hover {
    transform: scale(1.03);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.ige-featured-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: <?php echo esc_attr($settings['featured_image_max_height'] ?: '400'); ?>px;
    border-radius: <?php echo esc_attr($settings['featured_image_border_radius'] ?: '16'); ?>px;
}

.ige-view-all-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
}

.ige-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 25px 25px 20px;
    color: white;
}

.ige-overlay-title {
    font-size: <?php echo esc_attr($settings['overlay_title_font_size']['size'] ?: '20'); ?>px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.ige-overlay-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
}

.ige-overlay-count {
    color: <?php echo esc_attr($settings['accent_color']); ?>;
    font-weight: 700;
    background: rgba(251, 191, 36, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
}

.ige-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
    font-size: 18px;
}

.ige-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #2c5282;
    border-top: 2px solid <?php echo esc_attr($settings['accent_color']); ?>;
    border-radius: 50%;
    animation: ige-spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes ige-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .ige-gallery-container {
        flex-direction: column;
        min-height: 400px;
    }

    .ige-gallery-sidebar {
        width: 100%;
        max-height: 200px;
        border-left: none;
        border-bottom: 3px solid <?php echo esc_attr($settings['accent_color']); ?>;
    }

    .ige-gallery-content {
        padding: 20px;
    }

    .ige-featured-image-container {
        max-width: 95%;
        max-height: 60%;
    }
}

/*آخرین اخبار */
.news-grid { display: grid; gap: 20px; }
.news-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.1); transition: transform 0.3s, box-shadow 0.3s; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.news-card-image { position: relative; overflow: hidden; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; }
.news-category { position: absolute; top: -33px; right: 10px; background: var(--primary-color, #1e3a8a); color: #fff; padding: 4px 12px; border-radius: 4px; font-size: 12px; }
.news-card-content { padding: 15px; }
.news-card-title { margin: 0 0 10px; font-size: 16px; line-height: 1.5; }
.news-card-title a { color: inherit; text-decoration: none; }
.news-card-excerpt { color: #666; font-size: 14px; line-height: 1.6; margin: 0 0 10px; }
.news-card-meta { font-size: 12px; color: #999; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 2px solid var(--primary-color, #1e3a8a); padding-bottom: 10px; }
.section-title { margin: 0; font-size: 20px; color: var(--primary-color, #1e3a8a); }
.view-all-link { color: var(--primary-color, #1e3a8a); text-decoration: none; font-size: 14px; }
.image-placeholder { background: #f0f0f0; display: flex; align-items: center; justify-content: center; height: 100%; color: #999; }

/*اسلایدر ویژه */
.slider-posts-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.slider-post-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 600ms ease;
    z-index: 1;
}

.slider-post-slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slider-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slider-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 2;
}

.slider-post-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    z-index: 3;
    max-width: 600px;
}

.slider-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.slider-post-category {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slider-post-date {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.slider-post-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slider-post-title a {
    color: inherit;
    text-decoration: none;
}

.slider-post-excerpt {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.slider-post-button {
    display: inline-block;
    padding: 12px 24px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 300ms ease;
    border: none;
    cursor: pointer;
}

.slider-post-button:hover {
    background: #005a87;
    transform: translateY(-2px);
    color: white;
}

.slider-post-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    transition: all 300ms ease;
}

.slider-post-nav-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-post-prev {
    left: 20px;
}

.slider-post-next {
    right: 20px;
}

.slider-post-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}

.slider-post-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 300ms ease;
}

.slider-post-dot.active {
    background: #007cba;
    transform: scale(1.2);
}

.slider-post-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .slider-post-content {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }

    .slider-post-title {
        font-size: 22px;
    }

    .slider-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .slider-post-nav-arrow {
        width: 40px;
        height: 40px;
    }

    .slider-post-prev {
        left: 10px;
    }

    .slider-post-next {
        right: 10px;
    }
}
/*استایل ویدیو پلیر */
.video-player-widget { margin-bottom:40px; }
.video-container { position:relative; overflow:hidden; }
.video-embed-container iframe, .video-embed-container video { width:100%; display:block; }

/* ۱۳ سبک عملی */
.video-player-widget.style-classic { }
.video-player-widget.style-rounded-shadow .video-container { border-radius:20px; box-shadow:0 15px 40px rgba(0,0,0,0.15); }
.video-player-widget.style-full-width .video-container { margin-left:-50px; margin-right:-50px; border-radius:0; }
.video-player-widget.style-card .video-container { background:#fff; padding:10px; box-shadow:0 10px 30px rgba(0,0,0,0.1); }
.video-player-widget.style-dark-overlay .video-container::after { content:''; position:absolute; inset:0; background:rgba(0,0,0,0.4); pointer-events:none; }
.video-player-widget.style-minimal .video-container { border:none; box-shadow:none; }
.video-player-widget.style-bordered .video-container { border:5px solid #e0e0e0; }
.video-player-widget.style-gradient-frame .video-container { padding:10px; background:linear-gradient(135deg, #667eea, #764ba2); border-radius:20px; }
.video-player-widget.style-neon .video-container { box-shadow:0 0 40px rgba(59,130,246,0.8); }
.video-player-widget.style-retro .video-container { border:10px solid #f4a261; }
.video-player-widget.style-elegant .video-container { border-radius:30px; }
.video-player-widget.style-vibrant .video-container { box-shadow:0 0 30px rgba(255,107,107,0.5); }
.video-player-widget.style-transparent .video-container { background:rgba(255,255,255,0.1); backdrop-filter:blur(10px); }

/*عنوان های پیشرفته */
/* Base Styles */
.ava-advanced-heading {
    margin: 0;
    padding: 40px 20px;
    position: relative;
}

/* Animation Styles */
.ava-animated {
    opacity: 0;
    transform: translateY(30px);
    animation-fill-mode: both;
}

.ava-animated.ava-animated {
    opacity: 1;
    transform: translateY(0);
}

/* Heading Base Styles */
.ava-main-heading {
    margin: 0 0 20px 0;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.ava-heading-text {
    display: block;
}

/* Style Variations */
.ava-main-heading.style-simple {
    padding: 0;
    background: none;
}

.ava-main-heading.style-background {
    padding: 20px 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ava-main-heading.style-bordered {
    padding: 0 20px;
    border-left: 4px solid #3b82f6;
    border-right: 4px solid #3b82f6;
}

.ava-main-heading.style-icon {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ava-main-heading.style-icon .ava-heading-icon {
    font-size: 48px;
    color: #3b82f6;
}

.ava-main-heading.style-animated {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

.ava-main-heading.style-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ava-main-heading.style-floating {
    animation: float 3s ease-in-out infinite;
}

.ava-main-heading.style-modern::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.ava-main-heading.style-minimal {
    font-weight: 300;
    letter-spacing: 2px;
}

.ava-main-heading.style-vintage {
    font-style: italic;
    color: #8b4513;
}

.ava-main-heading.style-neon {
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
    animation: neonFlicker 2s infinite alternate;
}

/* Special Container Styles */
.ava-heading-circle .ava-main-heading {
    padding: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    min-width: 200px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 20px auto;
}

.ava-heading-diamond .ava-main-heading {
    padding: 30px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    color: white !important;
    transform: rotate(45deg);
    text-align: center;
}

.ava-heading-diamond .ava-heading-text {
    transform: rotate(-45deg);
}

.ava-heading-star .ava-main-heading::before {
    content: '⭐';
    font-size: 24px;
    margin-right: 10px;
}

.ava-heading-star .ava-main-heading::after {
    content: '⭐';
    font-size: 24px;
    margin-left: 10px;
}

.ava-heading-bracket {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ava-bracket-left,
.ava-bracket-right {
    font-size: 48px;
    color: #3b82f6;
    font-weight: bold;
}

.ava-heading-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.ava-quote-mark {
    font-size: 48px;
    color: #3b82f6;
    font-weight: bold;
    font-family: serif;
}

/* Sub Heading */
.ava-sub-heading {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    color: #6b7280;
}

/* Description */
.ava-description {
    margin: 0 0 25px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #9ca3af;
}

/* Link */
.ava-link-wrapper {
    margin-top: 20px;
}

.ava-view-all-link {
    display: inline-block;
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    border: 1px solid #3b82f6;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.ava-view-all-link:hover {
    background: #3b82f6;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes neonFlicker {
    0%, 100% { text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff; }
    50% { text-shadow: 0 0 2px #00ffff, 0 0 5px #00ffff; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.3); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* Animation Classes */
.ava-animated.fadeInUp { animation: fadeInUp 0.8s ease-out forwards; }
.ava-animated.fadeInDown { animation: fadeInDown 0.8s ease-out forwards; }
.ava-animated.fadeInLeft { animation: fadeInLeft 0.8s ease-out forwards; }
.ava-animated.fadeInRight { animation: fadeInRight 0.8s ease-out forwards; }
.ava-animated.zoomIn { animation: zoomIn 0.8s ease-out forwards; }
.ava-animated.bounceIn { animation: bounceIn 0.8s ease-out forwards; }

/* Inline Layout */
.ava-advanced-heading.inline-layout .ava-heading-with-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.ava-advanced-heading.inline-layout .ava-heading-with-icon .ava-heading-icon {
    font-size: 48px;
    color: #3b82f6;
    margin-right: 15px;
}

.ava-advanced-heading.inline-layout .ava-heading-with-icon {
    display: flex;
    align-items: center;
}

.ava-advanced-heading.inline-layout .ava-link-wrapper {
    margin: 0;
    flex-shrink: 0;
}

.ava-advanced-heading.inline-layout .ava-main-heading {
    margin: 0;
}

/* Additional Style Completions */
.ava-main-heading.style-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.ava-main-heading.style-two-line-top::before {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    margin: 0 auto 15px auto;
    border-radius: 2px;
}

.ava-main-heading.style-two-line-bottom::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

/* Ensure star style works */
.ava-main-heading.style-star::before {
    content: '⭐';
    font-size: 24px;
    margin-right: 10px;
    vertical-align: middle;
}

.ava-main-heading.style-star::after {
    content: '⭐';
    font-size: 24px;
    margin-left: 10px;
    vertical-align: middle;
}

/* Make all styles properly display */
.ava-main-heading.style-simple,
.ava-main-heading.style-background,
.ava-main-heading.style-bordered,
.ava-main-heading.style-icon,
.ava-main-heading.style-animated,
.ava-main-heading.style-gradient,
.ava-main-heading.style-floating,
.ava-main-heading.style-modern,
.ava-main-heading.style-minimal,
.ava-main-heading.style-vintage,
.ava-main-heading.style-neon,
.ava-main-heading.style-shadow,
.ava-main-heading.style-two-line-top,
.ava-main-heading.style-two-line-bottom,
.ava-main-heading.style-star {
    display: block;
}

/* New Unified Background Style */
.ava-unified-background {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.ava-unified-background .ava-main-heading {
    margin: 0;
    color: white !important;
    font-size: 32px;
}

.ava-unified-background .unified-link {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ava-unified-background .unified-link:hover {
    background: white;
    color: #667eea !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Connected Line Style */
.ava-connected-line {
    display: flex;
    align-items: center;
    gap: 25px;
}

.ava-connected-line .ava-main-heading {
    margin: 0;
    position: relative;
}

.ava-connected-line .connection-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    flex-shrink: 0;
}

.ava-connected-line .connected-link {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    color: white !important;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ava-connected-line .connected-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Arrow Connect Style */
.ava-arrow-connect {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ava-arrow-connect .ava-main-heading {
    margin: 0;
}

.ava-arrow-connect .ava-arrow {
    font-size: 24px;
    color: #3b82f6;
    font-weight: bold;
    animation: arrowPulse 2s infinite;
}

.ava-arrow-connect .arrow-link {
    background: #3b82f6;
    color: white !important;
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ava-arrow-connect .arrow-link:hover {
    background: #2563eb;
    transform: translateX(5px);
}

/* Separator Line Style */
.ava-separator-line {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ava-separator-line .ava-main-heading {
    margin: 0;
}

.ava-separator-line .ava-separator {
    font-size: 20px;
    color: #3b82f6;
    font-weight: bold;
    opacity: 0.7;
}

.ava-separator-line .separator-link {
    color: #3b82f6 !important;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.ava-separator-line .separator-link:hover {
    border-bottom-color: #3b82f6;
}

/* Tabs Style */
.ava-tabs-style {
    display: flex;
    background: #f8fafc;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ava-tabs-style .ava-tab-content {
    background: white;
    padding: 20px 25px;
    border-radius: 10px 0 0 10px;
}

.ava-tabs-style .ava-tab-content .ava-main-heading {
    margin: 0;
    color: #1f2937;
}

.ava-tabs-style .tab-link {
    background: #3b82f6;
    color: white !important;
    padding: 20px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 0 10px 10px 0;
}

.ava-tabs-style .tab-link:hover {
    background: #2563eb;
}

/* Badge Style */
.ava-badge-style {
    display: flex;
    align-items: center;
}

.ava-badge-style .ava-main-heading {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ava-badge-style .ava-badge {
    background: #ef4444;
    color: white !important;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ava-badge-style .ava-badge:hover {
    background: #dc2626;
    transform: scale(1.05);
}

/* Arrow Pulse Animation */
@keyframes arrowPulse {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(5px); opacity: 0.7; }
}

/* Responsive for inline layout */
@media (max-width: 768px) {
    .ava-advanced-heading.inline-layout .ava-heading-with-link {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ava-advanced-heading.inline-layout .ava-link-wrapper {
        margin-top: 20px;
    }

    .ava-unified-background {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }

    .ava-connected-line {
        flex-direction: column;
        gap: 15px;
    }

    .ava-connected-line .connection-line {
        width: 60px;
        height: 1px;
    }

    .ava-arrow-connect {
        flex-direction: column;
        gap: 10px;
    }

    .ava-separator-line {
        flex-direction: column;
        gap: 10px;
    }

    .ava-tabs-style {
        flex-direction: column;
    }

    .ava-tabs-style .ava-tab-content,
    .ava-tabs-style .tab-link {
        border-radius: 0;
    }

    .ava-tabs-style .ava-tab-content {
        border-radius: 10px 10px 0 0;
    }

    .ava-tabs-style .tab-link {
        border-radius: 0 0 10px 10px;
    }

    .ava-badge-style .ava-main-heading {
        flex-direction: column;
        gap: 10px;
    }

    .ava-ui-section-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .ava-ui-right {
        flex-direction: column;
        gap: 10px;
    }

    .ava-ui-right .ava-main-heading {
        font-size: 24px;
    }

    .ava-ui-separator {
        order: 3;
        padding: 0;
    }

    .ava-ui-line {
        max-width: 150px;
    }

    .ava-ui-left {
        order: 2;
    }
}

/* UI Section Header Style */
.ava-ui-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    width: 100%;
}

.ava-ui-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-direction: row-reverse; /* RTL support */
}

.ava-ui-right .ava-main-heading {
    margin: 0;
    color: #1f2937;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.ava-ui-right .ava-ui-icon {
    font-size: 24px;
    color: #1f2937;
    opacity: 0.8;
}

.ava-ui-separator {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.ava-ui-line {
    width: 100%;
    max-width: 200px;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #ea580c);
    border-radius: 3px;
}

.ava-ui-left {
    flex-shrink: 0;
}

.ava-ui-left .ui-cta-button {
    background: #f97316;
    color: white !important;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
}

.ava-ui-left .ui-cta-button:hover {
    background: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .ava-advanced-heading {
        padding: 20px 15px;
    }

    .ava-main-heading {
        font-size: 28px;
    }

    .ava-heading-circle .ava-main-heading {
        padding: 20px;
        min-width: 150px;
        min-height: 150px;
        font-size: 24px;
    }

    .ava-sub-heading {
        font-size: 16px;
    }

    .ava-description {
        font-size: 14px;
    }

    .ava-ui-right .ava-main-heading {
        font-size: 20px;
    }

    .ava-ui-left .ui-cta-button {
        padding: 10px 16px;
        font-size: 13px;
    }
}
/*استایل ویجیت آرشیو */
/* تمام استایل‌های اصلی قبلی (دقیقاً همان کد اولیه شما) */
.ava-archive-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.ava-archive-header {
    text-align: center;
    margin-bottom: 30px;
}

.ava-archive-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    position: relative;
}

.ava-archive-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 10px auto 0;
    border-radius: 2px;
}

.ava-archive-filters {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.ava-archive-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

.ava-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.ava-filter-item {
    background: #ffffff;
    border: 2px solid transparent;
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.ava-filter-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.ava-filter-item:hover::before,
.ava-filter-item.active::before {
    left: 0;
}

.ava-filter-item:hover,
.ava-filter-item.active {
    color: #ffffff;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.ava-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ava-archive-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ava-archive-masonry {
    column-count: 3;
    column-gap: 30px;
}

.ava-archive-masonry .ava-archive-item {
    break-inside: avoid;
    margin-bottom: 30px;
}

.ava-archive-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.ava-archive-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ava-archive-item:hover::before {
    opacity: 1;
}

.ava-archive-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Card Hover Effects */
.ava-card-lift:hover {
    transform: translateY(-8px);
}

.ava-card-scale:hover {
    transform: scale(1.03);
}

.ava-card-glow:hover {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

.ava-archive-image {
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.ava-archive-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ava-archive-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ava-archive-image:hover::after {
    opacity: 1;
}

.ava-archive-image:hover img {
    transform: scale(1.1);
}

.ava-archive-title-text {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.ava-archive-title-text a {
    color: #1f2937;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.ava-archive-title-text a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.ava-archive-title-text a:hover {
    color: #667eea;
}

.ava-archive-title-text a:hover::after {
    width: 100%;
}

.ava-archive-excerpt {
    margin: 0 0 20px 0;
    font-size: 15px;
    line-height: 1.7;
    color: #6b7280;
}

.ava-archive-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 15px;
    padding: 10px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.ava-archive-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.ava-archive-meta span:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: -13px;
    color: #d1d5db;
}

.ava-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.ava-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ava-read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.ava-read-more:hover::after {
    transform: translateX(3px);
}

.ava-no-posts {
    text-align: center;
    color: #6b7280;
    font-size: 18px;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 2px dashed #d1d5db;
}

/* استایل صفحه‌بندی جدید (جایگزین کامل قبلی) */
.ava-archive-pagination {
    margin-top: 40px;
    text-align: center;
}

.ava-archive-pagination .page-numbers {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ava-archive-pagination .page-numbers a,
.ava-archive-pagination .page-numbers .current {
    display: block;
    min-width: 44px;
    padding: 12px 18px;
    color: #667eea;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ava-archive-pagination .page-numbers a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102,126,234,0.4);
}

.ava-archive-pagination .page-numbers .current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(102,126,234,0.4);
}

/* انواع استایل */
.ava-archive-pagination[data-style="rounded"] .page-numbers a,
.ava-archive-pagination[data-style="rounded"] .page-numbers .current {
    border-radius: 50px;
}

.ava-archive-pagination[data-style="minimal"] .page-numbers a,
.ava-archive-pagination[data-style="minimal"] .page-numbers .current {
    background: transparent;
    border: 2px solid #e5e7eb;
    box-shadow: none;
}

.ava-archive-pagination[data-style="minimal"] .page-numbers a:hover,
.ava-archive-pagination[data-style="minimal"] .page-numbers .current {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.ava-archive-pagination[data-style="gradient"] .page-numbers a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .ava-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ava-archive-masonry {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .ava-archive-pagination .page-numbers {
        gap: 8px;
    }

    .ava-archive-pagination .page-numbers a,
    .ava-archive-pagination .page-numbers .current {
        min-width: 40px;
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* انیمیشن‌ها و اسکریپت فیلتر همان قبلی */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ava-archive-item {
    animation: fadeInUp 0.6s ease forwards;
}

/*ویجیت فوتر */
.ava-footer {
    background: <?php echo $settings['footer_bg_color']; ?>;
    color: <?php echo $settings['footer_text_color']; ?>;
    margin-top: auto;
}

.footer-top {
    padding: 40px 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-widget h3 {
    color: <?php echo $settings['footer_text_color']; ?>;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid <?php echo $settings['link_color']; ?>;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 8px;
}

.footer-widget ul li a {
    color: <?php echo $settings['footer_text_color']; ?>;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-widget ul li a:hover {
    color: <?php echo $settings['link_hover_color']; ?>;
    opacity: 1;
    padding-right: 5px;
}

.social-share {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: <?php echo $settings['footer_text_color']; ?>;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-share a:hover {
    background: <?php echo $settings['link_color']; ?>;
    color: white;
    transform: translateY(-3px);
}

.permissions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 15px;
}

.permissions-list > * {
    display: inline-block;
    vertical-align: middle;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: <?php echo $settings['footer_text_color']; ?>;
    opacity: 0.8;
    font-size: 14px;
}

.footer-bottom a {
    color: <?php echo $settings['link_color']; ?>;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: <?php echo $settings['link_hover_color']; ?>;
}

@media (max-width: 768px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .social-share {
        justify-content: center;
    }

    .permissions-list {
        justify-content: center;
    }

    .footer-bottom p {
        font-size: 12px;
    }
}
/*ویجیت هدر */
.ava-header {
    background: <?php echo $settings['header_bg_color']; ?>;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: <?php echo $settings['top_header_bg_color']; ?>;
    color: white;
    padding: 8px 0;
    font-size: 13px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-date {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: <?php echo $settings['date_font_size']['size']; ?>px;
    color: <?php echo $settings['date_text_color']; ?>;
}

.persian-date {
    direction: rtl;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.gregorian-date {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.header-time {
    background: <?php echo $settings['time_bg_color']; ?>;
    color: <?php echo $settings['time_text_color']; ?>;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    direction: ltr;
    display: inline-block;
}

.header-social {
    display: flex;
    align-items: center;
    gap: <?php echo $settings['social_icon_spacing']['size']; ?>px;
}

.header-social a {
    color: <?php echo $settings['social_icon_color']; ?>;
    background-color: <?php echo $settings['social_icon_bg_color']; ?>;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: <?php echo $settings['social_icon_border_radius']['size']; ?>px;
    transition: all 0.3s ease;
    padding: <?php echo $settings['social_icon_padding']['size']; ?>px;
}

.header-social a:hover {
    background-color: <?php echo $settings['social_icon_bg_hover_color']; ?>;
    color: <?php echo $settings['social_icon_hover_color']; ?>;
}

.header-main {
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: <?php echo $settings['text_color']; ?>;
    text-decoration: none;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: inherit;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 300px;
    padding: 10px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: <?php echo $settings['primary_color']; ?>;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.search-button {
    position: absolute;
    left: 10px;
    background: <?php echo $settings['primary_color']; ?>;
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: #3b82f6;
}

.dark-mode-toggle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid <?php echo $settings['primary_color']; ?>;
    background: white;
    color: <?php echo $settings['primary_color']; ?>;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    background: <?php echo $settings['primary_color']; ?>;
    color: white;
    transform: scale(1.05);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: <?php echo $settings['primary_color']; ?>;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
}

.main-navigation {
    background: <?php echo $settings['primary_color']; ?>;
}

.main-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 12px 20px;
    color: white;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.main-nav a:hover {
    background: #3b82f6;
    color: white;
}

.sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    z-index: 1000;
}

.main-nav li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu a {
    color: #333;
    border-bottom: 1px solid #e5e7eb;
}

.sub-menu a:hover {
    background: #f9fafb;
    color: <?php echo $settings['primary_color']; ?>;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .search-input {
        width: 200px;
    }

    .main-navigation {
        display: none;
    }

    .header-top-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header-date {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .header-social {
        align-self: flex-start;
    }
}
/*استایل پادکست پلیر */
.featured-podcast-player {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
    border-radius: 30px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.featured-podcast-player .player-header h2 { font-size: 32px; margin-bottom: 15px; }
.featured-podcast-player .controls-wrapper { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; margin-top: 20px; }
.featured-podcast-player .control-btn { background: #2563eb; width: 70px; height: 70px; border-radius: 50%; box-shadow: 0 8px 20px rgba(37,99,235,0.4); }
.featured-podcast-player .control-btn svg { width: 30px; height: 30px; }
.featured-podcast-player .progress-container { flex: 1; min-width: 300px; }
.featured-podcast-player .progress-bar { height: 10px; background: rgba(255,255,255,0.3); border-radius: 5px; overflow: hidden; }
.featured-podcast-player .progress-fill { height: 100%; background: #3b82f6; width: 0; transition: width 0.2s; }
.featured-podcast-player .time-display { font-size: 18px; min-width: 120px; }
.featured-podcast-player .volume-slider { width: 100px; }
.featured-podcast-player .speed-btn { background: #8b5cf6; padding: 10px 20px; border-radius: 30px; font-weight: bold; }
.featured-podcast-player.vibrant-orange { background: linear-gradient(135deg, #ff6b6b, #feca57); }
.featured-podcast-player.modern-dark { background: linear-gradient(135deg, #1e293b, #334155); }
.featured-podcast-player.light-elegant { background: #f8fafc; color: #1e293b; }
.featured-podcast-player.gradient-purple { background: linear-gradient(135deg, #9333ea, #c084fc); }
.featured-podcast-player.blue-ocean { background: linear-gradient(135deg, #0ea5e9, #22d3ee); }
.featured-podcast-player.green-nature { background: linear-gradient(135deg, #10b981, #34d399); }
.featured-podcast-player.red-energy { background: linear-gradient(135deg, #dc2626, #ef4444); }
.featured-podcast-player.minimal-white { background: #ffffff; color: #1e293b; box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.featured-podcast-player.card-shadow { box-shadow: 0 25px 50px rgba(0,0,0,0.25); }
.featured-podcast-player.neon-glow { box-shadow: 0 0 50px rgba(59,130,246,0.8); }
.featured-podcast-player.retro-vintage { background: linear-gradient(135deg, #d97706, #f59e0b); font-family: 'Courier New'; }
.featured-podcast-player.transparent-blur { background: rgba(255,255,255,0.2); backdrop-filter: blur(20px); }
.featured-podcast-player.full-width-bold { max-width: 100%; border-radius: 0; padding: 50px; }

/*استایل پست گالری */
.post-gallery-widget { margin-bottom:40px; }
.gallery-grid { display:grid; gap:20px; }
.gallery-item { position:relative; overflow:hidden; cursor:pointer; border-radius:15px; }
.gallery-item img { width:100%; height:auto; display:block; object-fit:cover; transition:transform 0.4s ease; }
.gallery-item:hover img { transform:scale(1.1); }
.gallery-caption { position:absolute; bottom:0; left:0; right:0; background:rgba(0,0,0,0.7); color:white; padding:15px; opacity:0; transition:0.3s; text-align:center; }
.gallery-item:hover .gallery-caption { opacity:1; }

.post-gallery-widget.style-grid-classic { }
.post-gallery-widget.style-grid-masonry .gallery-grid { grid-auto-rows: minmax(200px, auto); }
.post-gallery-widget.style-grid-rounded .gallery-item { border-radius:25px; }
.post-gallery-widget.style-grid-shadow .gallery-item { box-shadow:0 15px 35px rgba(0,0,0,0.15); }
.post-gallery-widget.style-grid-bordered .gallery-item { border:4px solid #e0e0e0; }
.post-gallery-widget.style-grid-overlay .gallery-caption { opacity:1; background:linear-gradient(to top, rgba(0,0,0,0.8), transparent); }
.post-gallery-widget.style-grid-zoom:hover img { transform:scale(1.2); }
.post-gallery-widget.style-grid-polaroid .gallery-item { background:#fff; padding:20px 20px 50px; box-shadow:0 10px 30px rgba(0,0,0,0.1); transform:rotate(-2deg); }
.post-gallery-widget.style-grid-full .gallery-grid { margin:0 -50px; }
.post-gallery-widget.style-grid-minimal .gallery-item { box-shadow:none; border:none; }
.post-gallery-widget.style-grid-elegant .gallery-item { border-radius:30px; }
.post-gallery-widget.style-grid-neon .gallery-item { box-shadow:0 0 30px rgba(59,130,246,0.6); }
.gallery-lightbox { display:none; position:fixed; z-index:9999; left:0; top:0; width:100%; height:100%; background:rgba(0,0,0,0.9); align-items:center; justify-content:center; flex-direction:column; }
.gallery-lightbox.active { display:flex; }
.lightbox-close { position:absolute; top:20px; right:30px; color:white; font-size:40px; cursor:pointer; }
.lightbox-content { max-width:90%; max-height:80%; object-fit:contain; border-radius:15px; }
.lightbox-caption { color:white; margin-top:20px; font-size:18px; text-align:center; padding:0 20px; }

/*استایل پست شاخص */
.ava-post-thumbnail { position:relative; overflow:hidden; margin:auto; }
.ava-post-thumbnail .ava-thumbnail-wrapper { position:relative; }
.ava-post-thumbnail img { width:100%; height:auto; display:block; transition:transform 0.4s ease; }
.ava-post-thumbnail.style-classic { border-radius:0; }
.ava-post-thumbnail.style-rounded { border-radius:20px; }
.ava-post-thumbnail.style-shadow img { box-shadow:0 15px 35px rgba(0,0,0,0.15); }
.ava-post-thumbnail.style-bordered { border:8px solid #ffffff; box-shadow:0 10px 30px rgba(0,0,0,0.1); }
.ava-post-thumbnail.style-full-width { max-width:100vw; margin-left:calc(-50vw + 50%); margin-right:calc(-50vw + 50%); }
.ava-post-thumbnail.style-overlay-title .ava-thumbnail-overlay { position:absolute; inset:0; background:linear-gradient(to top, rgba(0,0,0,0.7), transparent); }
.ava-post-thumbnail.style-overlay-title .ava-thumbnail-title-overlay { position:absolute; bottom:30px; left:30px; right:30px; color:#fff; }
.ava-post-thumbnail.style-gradient-overlay .ava-thumbnail-overlay { background:linear-gradient(45deg, rgba(103,126,234,0.6), rgba(118,75,162,0.6)); }
.ava-post-thumbnail.style-card { border-radius:15px; box-shadow:0 20px 40px rgba(0,0,0,0.12); }
.ava-post-thumbnail.style-polaroid { background:#fff; padding:20px 20px 40px; box-shadow:0 10px 30px rgba(0,0,0,0.1); transform:rotate(-2deg); }
.ava-post-thumbnail.style-parallax { background-attachment:fixed; }
.ava-post-thumbnail.style-zoom-hover:hover img { transform:scale(1.1); }
.ava-post-thumbnail.style-caption-bottom .ava-thumbnail-caption { position:absolute; bottom:0; left:0; right:0; background:rgba(0,0,0,0.6); color:#fff; }
.ava-post-thumbnail.style-elegant { border:1px solid #e0e0e0; border-radius:8px; }
.ava-post-thumbnail.style-zoom-hover:hover img,
.ava-post-thumbnail.style-card:hover img { transform:scale(1.05); }

/*استایل اخبار مرتبط */
/* پایه مشترک */
.related-grid { display:grid; gap:30px; margin-top:20px; }
.related-card { background:#fff; overflow:hidden; transition:all 0.3s ease; }
.related-card:hover { transform:translateY(-8px); }
.related-thumbnail img { width:100%; display:block; transition:all 0.4s ease; }
.related-grid.style-grid-classic { }
.related-grid.style-grid-modern .related-card { box-shadow:0 4px 15px rgba(0,0,0,0.05); }
.related-grid.style-grid-modern .related-card:hover { box-shadow:0 20px 40px rgba(0,0,0,0.15); }
.related-grid.style-grid-card .related-card { box-shadow:0 15px 35px rgba(0,0,0,0.12); }
.related-grid.style-grid-bordered .related-card { border:3px solid #e2e8f0; }
.related-grid.style-grid-overlay .related-thumbnail { position:relative; }
.related-grid.style-grid-overlay .related-thumbnail::after { content:''; position:absolute; inset:0; background:linear-gradient(to top, rgba(0,0,0,0.7), transparent); opacity:0; transition:0.4s; }
.related-grid.style-grid-overlay .related-card:hover .related-thumbnail::after { opacity:1; }
.related-grid.style-grid-overlay .related-card-content { position:absolute; bottom:20px; left:20px; right:20px; color:#fff; }
.related-grid.style-list-horizontal { grid-auto-flow:column; grid-auto-columns:1fr; }
.related-grid.style-list-vertical .related-card { display:flex; align-items:center; gap:20px; }
.related-grid.style-list-vertical .related-thumbnail { flex:0 0 30%; }
.related-grid.style-masonry { grid-auto-rows:10px; }
.related-grid.style-masonry .related-card { margin-bottom:30px; }
.related-grid.style-minimal .related-card { background:transparent; box-shadow:none; border:none; }
.related-grid.style-news-pro .related-card { border-left:6px solid #dc2626; padding-left:20px; }
.related-grid.style-dark .related-card { background:#1f2937; color:#e2e8f0; }
.related-grid.style-elegant .related-card { border-radius:20px; }
.related-grid.style-compact .related-card { padding:15px; }
.related-grid.style-compact .related-card-content { padding:15px; }
.hover-effect-zoom:hover img { transform:scale(1.12); }
.hover-effect-grayscale img { filter:grayscale(100%); }
.hover-effect-grayscale:hover img { filter:grayscale(0); }
.hover-effect-darken:hover img { filter:brightness(0.7); }

/*استایل پست تایتل */
.ava-post-header { padding:30px 20px; border-radius:12px; margin-bottom:40px; }
.ava-post-header.style-classic { background:#ffffff; text-align:right; }
.ava-post-header.style-modern-line .post-title { position:relative; padding-bottom:15px; }
.ava-post-header.style-modern-line .post-title::after { content:''; position:absolute; bottom:0; right:0; width:100px; height:4px; background:#3b82f6; border-radius:2px; }
.ava-post-header.style-accent-left { border-right:6px solid #3b82f6; padding-right:30px; background:#f8f9fa; }
.ava-post-header.style-card { background:#fff; box-shadow:0 15px 35px rgba(0,0,0,0.1); }
.ava-post-header.style-gradient-bg { background:linear-gradient(135deg, #667eea, #764ba2); color:#ffffff; }
.ava-post-header.style-gradient-bg .post-subtitle, .ava-post-header.style-gradient-bg .post-meta { color:rgba(255,255,255,0.9); }
.ava-post-header.style-centered { text-align:center; }
.ava-post-header.style-centered .post-meta { justify-content:center; }
.ava-post-header.style-with-icons .post-meta-item svg { width:24px; height:24px; }
.ava-post-header.style-minimal { background:transparent; padding:20px 0; border:none; box-shadow:none; }
.ava-post-header.style-bold-accent .post-title { font-weight:900; font-size:2.5em; color:#1e40af; }
.ava-post-header.style-bordered { border:3px solid #e0e0e0; background:#ffffff; }
.ava-post-header.style-overlay { background:rgba(0,0,0,0.6); color:#ffffff; border-radius:0; }
.ava-post-header.style-overlay .post-meta-item svg { fill:#ffffff; }
.ava-post-header.style-elegant { font-family:"Georgia", serif; font-size:1.2em; background:#fffdf8; }
.ava-post-header.style-news-pro { background:#fff; border-left:8px solid #dc2626; padding-left:40px; }

/*اخبار اجتماعی */
.social-news-section { padding: 20px 0; }
.social-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 2px solid #10b981; padding-bottom: 10px; }
.section-title-wrapper { display: flex; align-items: center; gap: 10px; }
.social-icon svg { color: #10b981; }
.social-layout-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .social-layout-container { grid-template-columns: 1fr; } }
.social-main-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.social-card-image { position: relative; overflow: hidden; }
.social-card-image img { width: 100%; height: 100%; object-fit: cover; }
.social-overlay { position: absolute; top: 10px; right: 10px; }
.social-category { background: #10b981; color: #fff; padding: 4px 12px; border-radius: 4px; font-size: 12px; }
.social-main-content { padding: 20px; }
.social-main-title { margin: 0 0 10px; font-size: 18px; line-height: 1.5; }
.social-main-title a { color: inherit; text-decoration: none; }
.social-main-excerpt { color: #666; font-size: 14px; margin: 0 0 10px; }
.social-main-meta { font-size: 12px; color: #999; }
.social-sidebar-column { background: #f0fdf4; border-radius: 12px; padding: 15px; }
.social-sidebar-item { padding: 12px 0; border-bottom: 1px solid #d1fae5; }
.social-sidebar-item:last-child { border-bottom: none; }
.social-sidebar-title { margin: 0 0 5px; font-size: 14px; line-height: 1.5; }
.social-sidebar-title a { color: inherit; text-decoration: none; }
.social-sidebar-date { font-size: 12px; color: #999; }
.view-all-link { color: #10b981; text-decoration: none; font-size: 14px; }
.image-placeholder { background: #f0f0f0; height: 100%; display: flex; align-items: center; justify-content: center; color: #999; }

/*اسلایدر با پیشنهاد سردبیر */
.combo-slider-editors { display: flex; gap: 20px; direction: rtl; }
@media (max-width: 992px) { .combo-slider-editors { flex-direction: column; } .combo-slider-col, .combo-editors-col { width: 100% !important; } }
.combo-slider-col { width: 70%; }
.combo-editors-col { width: 30%; }
.combo-slider { position: relative; border-radius: 12px; overflow: hidden; }
.combo-slider-container { position: relative; height: 100%; }
.combo-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s; }
.combo-slide.active { opacity: 1; z-index: 1; }
.combo-slide img { width: 100%; height: 100%; object-fit: cover; }
.combo-slide-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: #fff; }
.combo-slide-title { margin: 0 0 10px; font-size: 22px; }
.combo-slide-title a { color: inherit; text-decoration: none; }
.combo-slide-date { font-size: 13px; opacity: 0.8; }
.combo-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.combo-dot { width: 10px; height: 10px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; }
.combo-dot.active { background: #fff; }
.combo-editors { background: #f8f9fa; border-radius: 12px; padding: 15px; height: 100%; }
.combo-editors-header { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #e5e7eb; }
.combo-editors-header svg { fill: #fbbf24; }
.combo-editors-header h3 { margin: 0; font-size: 16px; }
.combo-editors-list { display: flex; flex-direction: column; gap: 12px; }
.combo-editors-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #e5e7eb; }
.combo-editors-item:last-child { border-bottom: none; }
.combo-editors-thumb { width: 60px; height: 60px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.combo-editors-thumb img { width: 100%; height: 100%; object-fit: cover; }
.combo-editors-content { flex: 1; }
.combo-editors-content h4 { margin: 0 0 5px; font-size: 13px; line-height: 1.4; }
.combo-editors-content h4 a { color: inherit; text-decoration: none; }
.combo-editors-content span { font-size: 11px; color: #888; }
.slide-placeholder, .editors-thumb-placeholder { background: #e5e7eb; height: 100%; display: flex; align-items: center; justify-content: center; color: #9ca3af; font-size: 12px; }

/*استایل ویجیت 404 */
.ava-404-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Vazir', sans-serif; /* یا هر فونت دلخواهی */
}

.ava-404-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 90%;
    padding: 40px;
    border-radius: 12px;
}

.ava-404-container.style-simple {
    background-color: #f8fafc;
}

.ava-404-container.style-simple .ava-404-number {
    font-size: 120px;
    font-weight: 900;
    margin-bottom: 20px;
    opacity: 0.8;
}

.ava-404-container.style-simple .ava-main-heading {
    font-size: 42px;
    margin-bottom: 16px;
}

.ava-404-container.style-simple .ava-description {
    margin: 24px 0;
    line-height: 1.8;
}

.ava-404-container.style-big-center .ava-404-number {
    font-size: 220px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 30px;
    opacity: 0.15;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.ava-404-container.style-big-center .ava-404-content {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.ava-404-container.style-image-overlay {
    background-color: #000;
}

.ava-404-container.style-image-overlay .ava-404-overlay-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
}

.ava-404-container.style-image-overlay .ava-404-content {
    color: #fff;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    border-radius: 16px;
}

.ava-404-container.style-image-overlay .ava-404-number,
.ava-404-container.style-image-overlay .ava-main-heading {
    color: #fff;
}

.ava-404-container.style-gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.ava-404-container.style-gradient-bg .ava-404-number {
    font-size: 160px;
    opacity: 0.3;
}

.ava-404-container.style-gradient-bg .ava-main-heading,
.ava-404-container.style-gradient-bg .ava-description,
.ava-404-container.style-gradient-bg .ava-sub-heading {
    color: #fff;
}

.ava-404-container.style-gradient-bg .ava-404-button {
    background-color: rgba(255,255,255,0.2);
    border: 2px solid #fff;
    color: #fff;
}

.ava-404-container.style-neon-glow {
    background-color: #0f172a;
    color: #fff;
}

.ava-404-container.style-neon-glow .ava-404-number {
    font-size: 180px;
    text-shadow: 0 0 20px #ff0066, 0 0 40px #ff0066, 0 0 60px #ff0066;
    color: #ff0066;
    animation: neon-pulse 2s infinite alternate;
}

.ava-404-container.style-neon-glow .ava-main-heading {
    text-shadow: 0 0 10px #00ffff;
    color: #00ffff;
}

/* انیمیشن نئون */
@keyframes neon-pulse {
    from { text-shadow: 0 0 10px #ff0066, 0 0 20px #ff0066; }
    to { text-shadow: 0 0 30px #ff0066, 0 0 60px #ff0066, 0 0 90px #ff0066; }
}

.ava-404-container.style-minimal-line {
    background-color: #fff;
}

.ava-404-container.style-minimal-line .ava-404-content::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    width: 80px;
    height: 4px;
    background-color: #3b82f6;
    transform: translateX(-50%);
}

.ava-404-container.style-minimal-line .ava-404-content::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 50%;
    width: 80px;
    height: 4px;
    background-color: #3b82f6;
    transform: translateX(-50%);
}

.ava-404-container.style-icon-top .ava-404-icon-top {
    font-size: 120px;
    margin-bottom: 30px;
    color: #ef4444;
}

.ava-404-container.style-bordered-box .ava-404-content {
    border: 8px double #e5e7eb;
    padding: 60px;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.ava-404-container.style-fun-emoji {
    background-color: #fffde7;
}

.ava-404-container.style-fun-emoji .ava-404-emoji {
    font-size: 140px;
    margin-bottom: 20px;
}

.ava-404-container.style-fun-emoji .ava-main-heading {
    font-size: 36px;
    color: #f59e0b;
}

.ava-404-container.style-animated-wave {
    background-color: #f0f9ff;
}

.ava-404-container.style-animated-wave .ava-main-heading span {
    display: inline-block;
    animation: wave 3s infinite;
}

.ava-404-container.style-animated-wave .ava-main-heading span:nth-child(1) { animation-delay: 0.1s; }
.ava-404-container.style-animated-wave .ava-main-heading span:nth-child(2) { animation-delay: 0.2s; }

@keyframes wave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}


.ava-404-container.style-dark-elegant {
    background-color: #111827;
    color: #e5e7eb;
}

.ava-404-container.style-dark-elegant .ava-404-content {
    background-color: rgba(31, 41, 55, 0.8);
    border-radius: 16px;
}

.ava-404-container.style-dark-elegant .ava-404-button {
    background-color: #1f2937;
    border: 1px solid #4b5563;
}

.ava-404-container.style-creative-3d .ava-404-number {
    font-size: 200px;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 4px #ef4444;
    text-shadow: 8px 8px 0px #ccc;
    transform: rotate(-10deg);
}

.ava-404-button {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.ava-404-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.ava-404-search {
    margin-top: 40px;
}

.ava-404-search .search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.ava-404-search input[type="search"] {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
}

.ava-404-search button {
    padding: 12px 24px;
    border-radius: 0 8px 8px 0;
    background-color: #3b82f6;
    color: #fff;
    border: none;
}
/*استایل جستجوی ویجیت هدر */
/* استایل‌های جستجو */
.ava-search-wrapper {
    position: relative;
    display: inline-block;
}

.search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-input {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    width: 200px;
    transition: all 0.3s ease;
    background-color: #f5f5f5;
}

.search-input:focus {
    outline: none;
    border-color: #1e3a8a;
    background-color: #ffffff;
}

.search-button {
    position: absolute;
    left: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button svg {
    width: 16px;
    height: 16px;
    fill: #ffffff;
}

.search-button {
    background-color: #1e3a8a;
    border-radius: 6px;
    left: 5px;
    padding: 8px;
}

.search-loading {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
}

.search-loading .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    margin-top: 8px;
}

.search-results a {
    display: block;
    padding: 12px 15px;
    color: #333333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.search-results a:last-child {
    border-bottom: none;
}

.search-results a:hover {
    background-color: #f0f0f0;
}

.search-results .search-result-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #1e3a8a;
}

.search-results .search-result-excerpt {
    font-size: 12px;
    color: #666666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-results .search-no-results {
    padding: 20px;
    text-align: center;
    color: #666666;
}

.search-results .search-all-results {
    padding: 12px;
    text-align: center;
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.search-results .search-all-results a {
    color: #1e3a8a;
    font-weight: 600;
    font-size: 13px;
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}
