/*
Theme Name: KoodVira
Theme URI: phproject.ir
Author: Phoenix
Description: قالب اختصاصی کود ویرا
Version: 1.0
Text Domain: kodvira
*/

/* Reset بهینه‌شده */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    direction: rtl;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: VazirR, Tahoma, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #2d465e;
    overflow-x: hidden;
    width: 100%;
}

@font-face {
    font-family: Yekan;
    src: url('./assets/webfonts/Yekan.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: VazirEL;
    src: url('./assets/webfonts/Vazirmatn-FD-NL-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: VazirR;
    src: url('./assets/webfonts/Vazirmatn-FD-NL-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: VazirB;
    src: url('./assets/webfonts/Vazirmatn-FD-NL-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

/* متغیرهای رنگ */
:root {
    --koodvira-primary: #a26f54;
    --koodvira-secondary: #deb887;
    --koodvira-light: #098b54;
    --koodvira-dark: #003e21;
    --natural-beige: #ffffff;
}

/* کلاس‌های کمکی */
.bg-koodvira-primary {
    background-color: var(--koodvira-primary) !important;
}

/* به style.css اضافه کن */

/* منوی ساده */
.simple-nav {
    background: linear-gradient(135deg, #b3de87 0%, #8bb56e 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo {
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    font-family: VazirB, sans-serif;
}

/* دکمه همبرگر ساده */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* منوی اصلی */
.nav-menu {
    display: flex;
    transition: all 0.3s ease;
}

.menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.menu-list li {
    position: relative;
}

.menu-list a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    display: block;
}

.menu-list a:hover {
    color: #ffd700;
}

.menu-list li.current-menu-item>a {
    color: #ffd700;
    font-weight: bold;
}

footer {
    background: linear-gradient(135deg, #b3de87 0%, #8bb56e 100%);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, #b3de87 0%, #8bb56e 100%);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .menu-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .menu-list li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu-list a {
        padding: 1rem 2rem;
        font-size: 1.2rem;
    }

    .menu-list a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* جلوگیری از اسکرول بدن وقتی منو باز است */
    body.menu-open {
        overflow: hidden;
    }
}

/* سکشن Intro */
.intro-section {
    position: relative;
    overflow: hidden;
    color: white;
}

.intro-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* موج تزئینی */
.intro-wave {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

.intro-wave svg {
    display: block;
    width: 100%;
    height: 120px;
}

/* محتوای Intro */
.intro-content {
    position: relative;
    z-index: 2;
}

.intro-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gradient-text {
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.description-wrapper {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* بخش ویدیو */
.intro-video-wrapper {
    position: relative;
    z-index: 2;
}

.video-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.video-poster {
    position: relative;
    cursor: pointer;
}

.video-poster::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.video-poster:hover::before {
    background: rgba(0, 0, 0, 0.5);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    background: none;
    border: none;
    color: white;
    font-size: 5rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.video-play-btn:hover {
    opacity: 1;
    transform: translate(50%, -50%) scale(1.1);
    color: var(--koodvira-secondary);
}

.video-caption {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Modal ویدیو */
#videoModal .modal-content {
    background: transparent;
    border: none;
}

#videoModal video {
    background: #000;
}

#videoModal .modal-header {
    border-radius: 0.5rem 0.5rem 0 0;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .intro-content {
        text-align: center;
        padding: 0;
    }

    .intro-title {
        font-size: 2.5rem;
    }

    .video-play-btn {
        font-size: 4rem;
    }

    .intro-wave svg {
        height: 80px;
    }
}

@media (max-width: 768px) {
    .intro-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .intro-title {
        font-size: 2rem;
    }

    .intro-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .intro-actions .btn.me-3 {
        margin-left: 0 !important;
    }
}

/* گالری آلبوم‌ها */
.gallery-section {
    background: #f8f9fa;
    position: relative;
}

.gallery-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.main-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.image-count {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.image-count i {
    margin-left: 5px;
}

.gallery-info {
    border-top: 1px solid #eee;
}

.gallery-title a:hover {
    color: var(--koodvira-primary) !important;
}

.thumbnail-preview {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}

.thumbnail-preview img {
    width: 100%;
    height: 60px;
    object-fit: cover;
}

.more-images {
    min-height: 60px;
    color: #6c757d;
    font-size: 0.9rem;
}

/* لینک تصاویر */
.image-link {
    display: block;
    position: relative;
}

.image-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 134, 108, 0);
    transition: background 0.3s ease;
}

.image-link:hover::after {
    background: rgba(29, 134, 108, 0.1);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .gallery-card {
        margin-bottom: 20px;
    }

    .thumbnail-preview img {
        height: 50px;
    }

    .more-images {
        min-height: 50px;
    }
}

/* single-gallery.php styles */

/* مسیر ناوبری */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "\\";
    margin: 0 0.5rem;
}

/* هدر آلبوم */
.gallery-header {
    position: relative;
    padding-bottom: 1.5rem;
}

.gallery-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to left, var(--koodvira-primary), var(--koodvira-secondary));
    border-radius: 2px;
}

/* تصویر شاخص */
.featured-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.featured-image-wrapper img {
    transition: transform 0.5s ease;
}

.featured-image-wrapper:hover img {
    transform: scale(1.02);
}

/* گالری تصاویر */
.gallery-item {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item-inner {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
}

.gallery-item-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

.gallery-item:hover .gallery-item-inner img {
    transform: scale(1.05);
}

/* اطلاعات تصویر */
.image-caption {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* کنترل‌های گالری */
.gallery-controls .btn {
    transition: all 0.3s ease;
    min-width: 150px;
}

.gallery-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* اطلاعات آلبوم */
.album-info {
    border-right: 4px solid var(--koodvira-primary);
}

.album-info ul li {
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
}

.album-info ul li strong {
    min-width: 120px;
    color: var(--koodvira-dark);
}

/* ناوبری بین پست‌ها */
.post-navigation {
    padding-top: 2rem;
}

.post-nav-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    height: 100%;
}

.post-nav-link:hover {
    border-color: var(--koodvira-primary);
    background-color: rgba(29, 134, 108, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.post-nav-link.prev-post {
    text-align: left;
    flex-direction: row-reverse;
}

.post-nav-link.next-post {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 0.85rem;
    color: var(--koodvira-primary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.nav-title {
    color: var(--koodvira-dark);
    font-weight: 600;
}

/* Lightbox */
.lightbox-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-backdrop.active {
    display: block;
    opacity: 1;
}

.lightbox-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.lightbox-controls {
    position: absolute;
    top: 20px;
    right: 20px;
}

.lightbox-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .gallery-title {
        font-size: 2rem;
    }

    .gallery-item-inner {
        aspect-ratio: 1/1;
    }

    .post-nav-link {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .nav-title {
        font-size: 0.9rem;
    }
}

/* استایل‌های پایه برای سکشن‌ها */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0;
}

.intro-section {
    padding: 80px 0;
    background: #fff;
}

.gallery-section {
    padding: 80px 0;
}

.section-title {
    color: var(--koodvira-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70px;
    height: 3px;
    background: var(--koodvira-secondary);
    border-radius: 2px;
}

/* کارت‌های گالری */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* ویدیو */
.video-container {
    border-radius: 10px;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* دکمه‌ها */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--koodvira-primary);
    border-color: var(--koodvira-primary);
}

.btn-primary:hover {
    background-color: var(--koodvira-dark);
    border-color: var(--koodvira-dark);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--koodvira-primary);
    border-color: var(--koodvira-primary);
}

.btn-outline-primary:hover {
    background-color: var(--koodvira-primary);
    border-color: var(--koodvira-primary);
    transform: translateY(-2px);
}

/* توصیف‌ها */
.description-wrapper {
    border-right: 4px solid var(--koodvira-secondary);
    background: #f8f9fa;
}

/* سکشن Intro */
.intro-section {
    position: relative;
    padding: 100px 0;
    color: white;
    overflow: hidden;
}

.intro-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* اگر background image نبود، گرادینت بذار */
.intro-section:not(:has(.intro-background)) {
    background: linear-gradient(135deg, var(--koodvira-primary) 0%, var(--koodvira-dark) 100%);
}

/* محتوا */
.intro-content {
    position: relative;
    z-index: 2;
}

.intro-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* توضیحات */
.description-wrapper {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* border-right: 5px solid var(--koodvira-secondary); */
}

/* ویدیو */
.video-container {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* جایگزین ویدیو */
.video-placeholder {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    border-color: var(--koodvira-secondary);
    background: rgba(0, 0, 0, 0.6);
}

/* دکمه‌ها */
.btn-warning {
    background-color: var(--koodvira-secondary);
    border-color: var(--koodvira-secondary);
    color: #000;
    font-weight: 600;
}

.btn-warning:hover {
    background-color: #ffed4e;
    border-color: #ffed4e;
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* صفحه آرشیو مقالات */
.page-header {
    position: relative;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--koodvira-primary);
}

.page-title {
    color: var(--koodvira-dark);
}

/* سایدبار بلاگ */
.blog-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    border: 1px solid #eee;
}

.widget-title {
    color: var(--koodvira-primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

/* مقالات */
.post-categories .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    transition: all 0.3s ease;
}

.post-categories .badge:hover {
    background-color: var(--koodvira-primary) !important;
    color: white !important;
}

.post-meta .author-info img {
    width: 30px;
    height: 30px;
}

/* کارت مقالات */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* صفحه‌بندی */
.pagination {
    margin-bottom: 0;
}

.page-numbers {
    margin: 0 5px;
    padding: 8px 15px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    color: var(--koodvira-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: var(--koodvira-primary);
    color: white;
    border-color: var(--koodvira-primary);
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .blog-sidebar {
        position: static;
        margin-top: 3rem;
    }

    .card-img-top {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .col-md-6 {
        margin-bottom: 2rem;
    }
}

/* صفحه بلاگ */
.page-header {
    position: relative;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--koodvira-primary), var(--koodvira-secondary));
    border-radius: 2px;
}

/* کارت مقالات */
.blog-post-card {
    transition: all 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.post-thumbnail {
    overflow: hidden;
}

.post-thumbnail img {
    transition: transform 0.5s ease;
}

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

.no-thumbnail {
    min-height: 200px;
}

/* دسته‌بندی‌ها */
.post-categories .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    transition: all 0.3s ease;
}

.post-categories .badge:hover {
    background-color: var(--koodvira-primary) !important;
    color: white !important;
}

/* اطلاعات نویسنده */
.author-info img {
    width: 32px;
    height: 32px;
    border: 2px solid #e9ecef;
}

/* فیلتر دسته‌بندی */
.blog-filter .btn {
    border-radius: 25px;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
}

.blog-filter .btn.active {
    background-color: var(--koodvira-primary);
    border-color: var(--koodvira-primary);
    color: white;
}

/* صفحه‌بندی */
.pagination .page-numbers {
    margin: 0 3px;
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: var(--koodvira-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .current {
    background-color: var(--koodvira-primary);
    color: white;
    border-color: var(--koodvira-primary);
    transform: translateY(-2px);
}

/* سایدبار */
.blog-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    border: 1px solid #eee;
}

.widget-title {
    color: var(--koodvira-primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

/* تگ‌ها */
.tag-cloud .badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    transition: all 0.3s ease;
}

.tag-cloud .badge:hover {
    background-color: var(--koodvira-primary) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* جستجو */
.blog-search .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.blog-search input {
    border: none;
    padding-right: 1.5rem;
}

.blog-search button {
    border: none;
    padding: 0.5rem 1.5rem;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .blog-sidebar {
        position: static;
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .blog-post-card .row {
        flex-direction: column;
    }

    .blog-post-card .col-md-4 {
        height: 200px;
    }

    .page-title {
        font-size: 2rem;
    }
}

/* استایل‌های پایه برای index.php */
.entry-title a:hover {
    color: var(--koodvira-primary) !important;
}

.entry-content {
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

/* صفحه‌بندی */
.pagination {
    justify-content: center;
    margin-top: 3rem;
}

/* ویجت‌ها */
.widget-area .widget {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.8rem;
    }

    .entry-title {
        font-size: 1.4rem;
    }
}

/* اضافه به style.css */

/* تصاویر گرد */
.img-fluid.rounded {
    border-radius: 12px;
    overflow: hidden;
}

/* استایل‌های عمومی */
.entry-title {
    line-height: 1.3;
    margin-bottom: 1rem;
}

.entry-meta {
    color: #666;
    font-size: 0.9rem;
}

.entry-content {
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

/* ناوبری */
.post-navigation a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.post-navigation a:hover {
    color: #000;
}

/* برچسب‌ها */
.post-tags {
    font-size: 0.9rem;
}

.post-tags a {
    color: #666;
    text-decoration: none;
    margin-left: 5px;
}

.post-tags a:hover {
    color: #000;
    text-decoration: underline;
}

/* جداسازی */
.border-top {
    border-color: #eee !important;
}

@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .entry-title {
        font-size: 1.5rem;
    }

    .col-lg-8 {
        padding: 0;
    }
}

/* گالری ویدیو */
.video-gallery-section {
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

/* کانتینر اسکرول */
.video-scroll-container {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.video-scroll-wrapper {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 15px 35px;
    scrollbar-width: thin;
}

.video-scroll-wrapper::-webkit-scrollbar {
    height: 10px;
}

.video-scroll-wrapper::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 10px;
    margin: 0 15px;
}

.video-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--koodvira-primary);
    border-radius: 10px;
}

.video-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--koodvira-dark);
}

/* آیتم ویدیو */
.video-scroll-item {
    flex: 0 0 420px;
    min-width: 420px;
}

.video-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

/* عنوان در بالای کارت */
.video-header {
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.video-title {
    color: #333;
    line-height: 1.4;
    min-height: 2.8em;
    display: flex;
    align-items: center;
}

/* پلیر ویدیو با ارتفاع بیشتر */
.video-player {
    position: relative;
    height: 280px;
    background: #000;
    overflow: hidden;
}

.video-element {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000;
}

/* آیکون پخش روی ویدیو */
.video-play-indicator {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 7px;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-play-indicator i {
    font-size: 1.2rem;
    color: #fff;
}

.video-play-indicator span {
    font-weight: 500;
}

/* وقتی ویدیو در حال پخش است */
.video-element:not([paused])+.video-play-indicator {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--koodvira-secondary);
}

/* کنترل‌های ویدیو */
.video-element::-webkit-media-controls-panel {
    background: rgba(0, 0, 0, 0.7);
}

/* پِلِیس‌هولدر */
.video-placeholder {
    height: 280px;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 20px;
}

.video-placeholder i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.video-placeholder p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.8;
}

/* اطلاعات ویدیو */
.video-info {
    border-top: 1px solid #eee;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* توضیح مختصر */
.video-excerpt {
    line-height: 1.7;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    flex-grow: 1;
}

.video-excerpt p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}

/* محل ساخت */
.video-source {
    margin-top: auto;
    padding-top: 10px;
}

.detail-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.detail-label i {
    font-size: 0.9rem;
    color: var(--koodvira-primary);
}

.detail-value {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
    padding-right: 5px;
    line-height: 1.5;
}

/* ویدیوهای موجود نیست */
.no-videos {
    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 420px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px !important;
}

.no-videos h4 {
    color: #333;
    margin-bottom: 15px;
}

/* دکمه مشاهده همه */
.btn-lg {
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(29, 134, 108, 0.25);
}

/* ریسپانسیو */
@media (max-width: 1200px) {
    .video-scroll-item {
        flex: 0 0 380px;
        min-width: 380px;
    }

    .no-videos {
        width: 380px;
    }

    .video-player {
        height: 250px;
    }

    .video-play-indicator {
        top: 12px;
        left: 12px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 992px) {
    .video-scroll-item {
        flex: 0 0 350px;
        min-width: 350px;
    }

    .no-videos {
        width: 350px;
    }

    .video-player {
        height: 230px;
    }

    .video-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .video-scroll-item {
        flex: 0 0 320px;
        min-width: 320px;
    }

    .video-scroll-wrapper {
        gap: 20px;
        padding: 15px 10px 25px;
    }

    .video-player {
        height: 220px;
    }

    .video-excerpt p {
        font-size: 0.9rem;
    }

    .no-videos {
        width: 320px;
        padding: 30px 20px !important;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .video-play-indicator {
        top: 10px;
        left: 10px;
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .video-play-indicator i {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .video-scroll-item {
        flex: 0 0 300px;
        min-width: 300px;
    }

    .video-player {
        height: 200px;
    }

    .no-videos {
        width: 300px;
    }

    .video-gallery-section {
        padding: 40px 0;
    }

    .btn-lg {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
}

/* بخش ویدیوهای مشتریان */
/* .customers-video-section {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
} */

.customers-video-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    z-index: 0;
}

/* عنوان بخش */
.customers-video-section .section-title {
    color: var(--koodvira-primary);
    position: relative;
    display: inline-block;
}

/* .customers-video-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to left, var(--koodvira-primary), var(--koodvira-secondary));
    border-radius: 2px;
} */

/* کانتینر اسکرول */
.customers-scroll-container {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.customers-scroll-wrapper {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 15px 35px;
    scrollbar-width: thin;
}

.customers-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.customers-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin: 0 15px;
}

.customers-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--koodvira-secondary);
    border-radius: 10px;
}

.customers-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #ffc107;
}

/* آیتم ویدیو */
.customers-scroll-item {
    flex: 0 0 380px;
    min-width: 380px;
}

.customers-video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.customers-video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--koodvira-secondary);
}

/* هدر کارت */
.customers-video-header {
    background: linear-gradient(135deg, var(--koodvira-primary) 0%, var(--koodvira-dark) 100%);
    padding: 20px;
    color: white;
    text-align: center;
    position: relative;
}

.customer-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--koodvira-secondary);
}

.customers-video-title {
    color: white;
    line-height: 1.4;
}

/* پلیر ویدیو */
.customers-video-player {
    position: relative;
    height: 240px;
    background: #000;
    overflow: hidden;
}

.customers-video-element {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000;
}

/* آیکون مخصوص مشتری */
.customer-play-indicator {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 215, 0, 0.9);
    color: #000;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    font-weight: 600;
    border: 2px solid white;
}

.customer-play-indicator i {
    font-size: 1rem;
}

/* پِلِیس‌هولدر */
.customers-video-placeholder {
    height: 240px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    padding: 20px;
    border: 2px dashed #dee2e6;
}

.customers-video-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.customers-video-placeholder p {
    margin: 0;
    font-size: 0.9rem;
}

/* اطلاعات ویدیو */
.customers-video-info {
    border-top: 1px solid #eee;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* توضیح مختصر */
.customers-video-excerpt {
    line-height: 1.7;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    flex-grow: 1;
}

.customers-video-excerpt p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

/* اطلاعات مشتری */
.customer-info {
    margin-bottom: 15px;
}

.customer-label {
    font-size: 0.85rem;
    color: var(--koodvira-primary);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.customer-label i {
    font-size: 0.9rem;
}

.customer-value {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
    padding-right: 5px;
    line-height: 1.5;
}

/* دکمه جزئیات */
.customers-video-info .btn-outline-primary {
    border-color: var(--koodvira-primary);
    color: var(--koodvira-primary);
    transition: all 0.3s ease;
}

.customers-video-info .btn-outline-primary:hover {
    background-color: var(--koodvira-primary);
    color: white;
    transform: translateY(-2px);
}

/* حالت خالی */
.no-customers-videos {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    width: 380px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px !important;
    border: 2px dashed #dee2e6;
}

.customer-empty-icon {
    font-size: 4rem;
    color: var(--koodvira-primary);
    opacity: 0.3;
    margin-bottom: 20px;
}

.customer-instructions .alert {
    border-radius: 12px;
    border-right: 4px solid var(--koodvira-primary);
}

.customer-instructions ol {
    padding-right: 20px;
}

.customer-instructions li {
    margin-bottom: 8px;
}

/* دکمه مشاهده همه */
.customers-video-section .btn-outline-primary {
    border: 2px solid var(--koodvira-primary);
    color: var(--koodvira-primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.customers-video-section .btn-outline-primary:hover {
    background-color: var(--koodvira-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(29, 134, 108, 0.2);
}

/* ریسپانسیو */
@media (max-width: 1200px) {
    .customers-scroll-item {
        flex: 0 0 350px;
        min-width: 350px;
    }

    .no-customers-videos {
        width: 350px;
    }

    .customers-video-player {
        height: 220px;
    }
}

@media (max-width: 992px) {
    .customers-scroll-item {
        flex: 0 0 320px;
        min-width: 320px;
    }

    .no-customers-videos {
        width: 320px;
    }

    .customers-video-player {
        height: 200px;
    }

    .customers-video-header {
        padding: 15px;
    }

    .customer-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .customers-scroll-item {
        flex: 0 0 300px;
        min-width: 300px;
    }

    .customers-scroll-wrapper {
        gap: 20px;
        padding: 15px 10px 25px;
    }

    .customers-video-player {
        height: 180px;
    }

    .customers-video-info {
        padding: 20px !important;
    }

    .no-customers-videos {
        width: 300px;
        padding: 30px 20px !important;
    }

    .section-title {
        font-size: 2rem;
    }

    .customer-play-indicator {
        top: 10px;
        left: 10px;
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .customers-scroll-item {
        flex: 0 0 280px;
        min-width: 280px;
    }

    .customers-video-player {
        height: 160px;
    }

    .no-customers-videos {
        width: 280px;
    }

    .customers-video-section {
        padding: 40px 0;
    }
}

/* صفحه آرشیو ویدیوها */

/* هدر صفحه */
.page-header {
    position: relative;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--koodvira-primary), var(--koodvira-secondary));
    border-radius: 2px;
}

.video-count .badge {
    padding: 8px 20px;
    font-size: 1rem;
    border-radius: 25px;
}

/* فیلتر ویدیوها */
.video-filter .btn {
    border-radius: 25px;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
}

.video-filter .btn.active {
    background-color: var(--koodvira-primary);
    border-color: var(--koodvira-primary);
    color: white;
}

.video-filter .btn:hover {
    transform: translateY(-2px);
}

/* جستجو */
.video-search .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.video-search input {
    border: none;
    padding-right: 1.5rem;
}

.video-search button {
    border: none;
    padding: 0.5rem 1.5rem;
}

/* سایدبار ویدیوها */
.video-sidebar {
    position: sticky;
    top: 20px;
}

.video-sidebar .sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    border: 1px solid #eee;
}

.video-sidebar .widget-title {
    color: var(--koodvira-primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.video-thumb-sidebar {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.video-thumb-sidebar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag-cloud .badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    transition: all 0.3s ease;
}

.tag-cloud .badge:hover {
    background-color: var(--koodvira-primary) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* کارت ویدیو در آرشیو */
.video-archive-card {
    transition: all 0.3s ease;
}

.video-archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.video-archive-player {
    position: relative;
    height: 200px;
    background: #000;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.video-archive-element {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000;
}

.video-archive-indicator {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    color: white;
    font-size: 2.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.video-archive-card:hover .video-archive-indicator {
    opacity: 1;
}

/* حالت بدون ویدیو */
.video-thumb-link {
    position: relative;
    display: block;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.video-thumb-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    transition: background 0.3s ease;
}

.video-thumb-link:hover .video-thumb-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.video-no-thumbnail {
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    border-radius: 8px 8px 0 0;
}

.video-no-thumbnail i {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.video-no-thumbnail p {
    margin: 0;
    font-size: 0.9rem;
}

/* دسته‌بندی‌های ویدیو */
.video-categories .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    transition: all 0.3s ease;
}

.video-categories .badge:hover {
    background-color: var(--koodvira-primary) !important;
    color: white !important;
}

/* محل ساخت */
.video-source {
    display: flex;
    align-items: center;
}

/* اطلاعات پایین */
.video-meta {
    font-size: 0.85rem;
}

/* صفحه‌بندی */
.pagination .page-numbers {
    margin: 0 3px;
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: var(--koodvira-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .current {
    background-color: var(--koodvira-primary);
    color: white;
    border-color: var(--koodvira-primary);
    transform: translateY(-2px);
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .video-sidebar {
        position: static;
        margin-top: 3rem;
    }

    .video-archive-player,
    .video-thumb-link,
    .video-no-thumbnail {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .col-md-6 {
        margin-bottom: 2rem;
    }

    .video-archive-player,
    .video-thumb-link,
    .video-no-thumbnail {
        height: 160px;
    }

    .video-filter .btn {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
}

/* صفحه آرشیو ویدیوها - نسخه thumbnail */

/* تامبنیل ویدیو */
.video-thumb-container {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    height: 200px;
    background: #000;
}

.video-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-thumb-container:hover .video-thumb-image {
    transform: scale(1.05);
}

/* overlay روی تصویر */
.video-thumb-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-thumb-container:hover .video-thumb-overlay {
    opacity: 1;
}

/* دکمه پخش */
.play-button {
    text-align: center;
    margin-bottom: 20px;
}

.play-button i {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 10px;
    display: block;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.play-text {
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* مدت زمان */
.video-duration {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* حالت بدون تصویر */
.video-no-thumbnail {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.video-no-thumbnail i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.6;
}

.video-no-thumbnail p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* تامبنیل در سایدبار */
.video-thumb-sidebar {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.video-thumb-sidebar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.thumb-play-icon {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    color: white;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.6);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* عنوان کارت */
.card-title a {
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--koodvira-primary) !important;
}

/* دکمه مشاهده */
.btn-outline-primary {
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 134, 108, 0.2);
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .video-thumb-container {
        height: 180px;
    }

    .play-button i {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .video-thumb-container {
        height: 160px;
    }

    .play-button i {
        font-size: 2.5rem;
    }

    .play-text {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
}

@media (max-width: 576px) {
    .video-thumb-container {
        height: 140px;
    }
}