/*
Theme Name: Arvin Wood new version
Theme URI: phproject.ir
Author: Phoenix
Description: قالب اختصاصی آروین چوب
Version: 1.0
Text Domain: arvinwood
*/

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

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

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

/* فونت‌های Vazirmatn با مسیر اصلاح‌شده */
@font-face {
    font-family: Vazirmatn;
    src: url('./assets/webfonts/Vazirmatn-FD-NL-Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

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

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

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

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

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

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

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

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

@font-face {
    font-family: 'hamishe';
    src: url('assets/webfonts/Digi\ Hamishe\ Regular.ttf');
}


/* متغیرهای رنگ */
:root {
    --wood-primary: #1d866c;
    --wood-secondary: #ffd700;
    --wood-light: #098b54;
    --wood-dark: #003e21;
    --natural-beige: #f0eee9;
    --header-height: 60px;
}

.vazir {
    font-family: vazirmatn;
}

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

.text-wood-primary {
    color: var(--wood-primary) !important;
}

.bg-wood-secondary {
    background-color: var(--wood-secondary) !important;
}

.text-wood-secondary {
    color: var(--wood-secondary) !important;
}

.bg-wood-light {
    background-color: var(--wood-light) !important;
}

.bg-wood-dark {
    background-color: var(--wood-dark) !important;
}

.bg-natural-beige {
    background-color: var(--natural-beige) !important;
}

.text-wood-light {
    color: var(--wood-light);
}

/* کامپوننت‌های سفارشی */
.btn-wood {
    background-color: var(--wood-primary);
    border-color: var(--wood-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

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

.card-wood {
    border: 1px solid #f6d763;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: #3c9b8414;
    padding: 20px !important;
}

.card-wood:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* استایل‌های پایه برای تایپوگرافی */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--wood-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--wood-dark);
}

header ul {
    margin-right: 30px;
    font-size: larger;
    padding: 0 8px;
    text-align: center !important;
}

header ul li {
    margin: 8px;
}

header a {
    color: #ffffff;
}

/* گرادینت برای عنوان‌های اصلی */
.gradient-title {
    background: linear-gradient(270deg, rgba(198, 151, 43, 1) 0%, rgba(248, 223, 108, 1) 50%, rgba(198, 151, 43, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* گرادینت طلایی برای عناوین خاص */
.gold-gradient {
    background: linear-gradient(135deg, #FFD700, #D4AF37, #FFD700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* گرادینت چوبی */
.gradient-back {
    background: linear-gradient(270deg, rgba(248, 223, 108, 1) 0%, rgba(198, 151, 43, 1) 51%, rgba(248, 223, 108, 1) 100%);
}

/* گرادینت طبیعت */
.nature-gradient {
    background: linear-gradient(135deg, #6ad6bb, #1d866c, #46ccaa, #1d866c, #75e7cb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nature-gradient-back {
    background: linear-gradient(120deg, #0f5f4b, #1d866c, #0f5f4b, #1d866c, #0f5f4b);
}

.btn-grad {
    background-image: linear-gradient(to right, #0f5f4b 0%, #85D8CE 51%, #0f5f4b 100%);
    margin: 10px;
    padding: 15px 45px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    border-radius: 10px;
    display: block;
    font-size: 18px;
}

.btn-grad:hover {
    background-position: right center;
    color: gold;
    text-decoration: none;
}

#gallery-categories {
    background: linear-gradient(90deg, rgba(18, 18, 22, 1.000) 0.000%, rgba(18, 18, 22, 1.000) 7.692%, rgba(22, 23, 26, 1.000) 7.692%, rgba(22, 23, 26, 1.000) 15.385%, rgba(26, 27, 31, 1.000) 15.385%, rgba(26, 27, 31, 1.000) 23.077%, rgba(31, 32, 35, 1.000) 23.077%, rgba(31, 32, 35, 1.000) 30.769%, rgba(35, 36, 39, 1.000) 30.769%, rgba(35, 36, 39, 1.000) 38.462%, rgba(39, 40, 43, 1.000) 38.462%, rgba(39, 40, 43, 1.000) 46.154%, rgba(43, 44, 47, 1.000) 46.154%, rgba(43, 44, 47, 1.000) 53.846%, rgba(47, 48, 51, 1.000) 53.846%, rgba(47, 48, 51, 1.000) 61.538%, rgba(50, 51, 55, 1.000) 61.538%, rgba(50, 51, 55, 1.000) 69.231%, rgba(54, 55, 58, 1.000) 69.231%, rgba(54, 55, 58, 1.000) 76.923%, rgba(56, 57, 61, 1.000) 76.923%, rgba(56, 57, 61, 1.000) 84.615%, rgba(59, 60, 64, 1.000) 84.615%, rgba(59, 60, 64, 1.000) 92.308%, rgba(61, 62, 66, 1.000) 92.308% 100.000%);
}

.bg-pattern {
    background-image: url("assets/images/bg-gradient.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: grid;
    padding-block: var(--size-8);
    padding-inline: var(--size-7);
    place-items: start center;
    position: relative;
}

/* استایل‌های سلسله‌مراتب دسته‌بندی‌ها */
.category-hierarchy-item {
    transition: all 0.3s ease;
    animation: fadeInHierarchy 0.5s ease-out;
}

.category-hierarchy-item:hover {
    transform: translateX(5px);
}

.category-level-0 {
    border-left-color: var(--wood-primary) !important;
}

.category-level-1 {
    border-left-color: var(--wood-secondary) !important;
}

.category-level-2 {
    border-left-color: var(--wood-light) !important;
}

.category-level-3 {
    border-left-color: #ccc !important;
}

/* انیمیشن برای سلسله‌مراتب */
@keyframes fadeInHierarchy {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.category-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

#gallery-categories .category-box .category-card {
    border: 1px solid #f6d763;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: #3c9b8414;
    padding: 8px !important;
    width: 150px;
}

/* استایل‌های سکشن نظرات مشتریان */
.testimonial-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    min-height: 250px;
    display: flex;
    align-items: center;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.8 !important;
    position: relative;
}

.testimonial-text::before {
    content: " | ";
    font-size: 4rem;
    color: var(--wood-primary);
    opacity: 0.1;
    position: absolute;
    top: -20px;
    right: -10px;
    font-family: serif;
}

.author-avatar img {
    border: 3px solid var(--wood-primary);
    object-fit: cover;
}

.rating-stars {
    letter-spacing: 3px;
}

/* استایل کاروسل نظرات */
#testimonialsCarousel .carousel-indicators {
    bottom: -60px;
}

#testimonialsCarousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: var(--wood-primary);
    opacity: 0.3;
    border: none;
    transition: all 0.3s ease;
}

#testimonialsCarousel .carousel-indicators .active {
    opacity: 1;
    transform: scale(1.2);
}

#testimonialsCarousel .carousel-control-prev,
#testimonialsCarousel .carousel-control-next {
    width: 5%;
}

#testimonialsCarousel .carousel-control-prev-icon,
#testimonialsCarousel .carousel-control-next-icon {
    background-color: var(--wood-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-size: 20px 20px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#testimonialsCarousel .carousel-control-prev-icon:hover,
#testimonialsCarousel .carousel-control-next-icon:hover {
    opacity: 1;
}

/* استایل‌های سکشن مطالب */
.blog-card {
    border-radius: 1rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.blog-image {
    border-radius: 0.5rem 0.5rem 0 0;
}

.transition-scale {
    transition: transform 0.5s ease;
}

.blog-card:hover .transition-scale {
    transform: scale(1.1);
}

.blog-content {
    background: white;
}

.blog-title a {
    transition: color 0.3s ease;
}

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

.hover-wood-primary:hover {
    color: var(--wood-primary) !important;
}

.blog-date .badge {
    font-size: 0.75rem;
    border-radius: 0.5rem;
}

.blog-categories .badge {
    font-size: 0.7rem;
    border-radius: 0.25rem;
}

/* دکمه مشاهده همه مطالب */
.btn-grad {
    background: linear-gradient(var(--natural-beige));
    border: none;
    color: #000;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-grad:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(29, 134, 108, 0.3);
}

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

.btn-grad:hover::before {
    left: 100%;
}

/* استایل‌های اسکرول افقی برای موبایل و تبلت */
.blog-scroll-viewport,
.video-scroll-viewport,
.projects-scroll-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.blog-scroll-viewport::-webkit-scrollbar,
.video-scroll-viewport::-webkit-scrollbar,
.projects-scroll-viewport::-webkit-scrollbar {
    display: none;
}

.blog-scroll-container,
.video-scroll-container,
.projects-scroll-container {
    display: flex;
    gap: 1rem;
    padding: 0 15px;
    min-width: min-content;
    width: max-content;
}

.video-scroll-item {
    flex: 0 0 80%;
    min-width: 280px;
    max-width: 320px;
    scroll-snap-align: start;
    margin: 0 0.5rem;
}

.blog-scroll-viewport,
.video-scroll-viewport,
.projects-scroll-viewport {
    scroll-snap-type: x mandatory;
}

.blog-scroll-viewport .card-wood {
    padding: 0 !important;
}

/* استایل‌های صفحه بلاگ */
.blog-categories-filter .btn-outline-wood {
    border-color: var(--wood-primary);
    color: var(--wood-primary);
}

.blog-categories-filter .btn-outline-wood:hover,
.blog-categories-filter .btn-outline-wood.active {
    background-color: var(--wood-primary);
    color: white;
}

/* سایدبار */
.sidebar-widget {
    border-radius: 0.75rem;
}

.category-list .category-item a {
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.category-list .category-item a:hover {
    color: var(--wood-primary) !important;
    transform: translateX(-5px);
}

/* مطالب */
.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);
}

/* صفحه single */
.single-post-content .post-content {
    line-height: 1.8;
}

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

.single-post-content .post-content h2,
.single-post-content .post-content h3,
.single-post-content .post-content h4 {
    color: var(--wood-dark);
    margin: 2rem 0 1rem 0;
}

.single-post-content .post-content h2 {
    border-right: 4px solid var(--wood-primary);
    padding-right: 1rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    transition: all 0.3s ease;
}

.post-navigation a:hover {
    color: var(--wood-primary) !important;
}

/* استایل‌های گالری ویدیو */
.video-card {
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* height: 350px !important; */
    position: relative;
}

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

.video-image {
    border-radius: 0.5rem 0.5rem 0 0;
    position: relative;
    background: linear-gradient(135deg, var(--wood-primary), var(--wood-dark));
}

.video-image img {
    transition: all 0.3s ease;
}

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

.video-overlay {
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-button {
    transform: scale(0.8);
    transition: all 0.3s ease;
}

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

.video-content {
    background: white;
    padding: 1rem !important;
}

.video-title {
    font-size: 0.95rem;
    line-height: 1.4;
}

.video-excerpt {
    font-size: 0.8rem;
    line-height: 1.5;
}

.play-video-btn {
    transition: all 0.3s ease;
}

.play-video-btn:hover {
    transform: scale(1.05);
}

/* مودال ویدیو */
#videoModal .modal-content {
    border-radius: 1rem;
    overflow: hidden;
}

#videoPlayerContainer iframe,
#videoPlayerContainer video {
    border-radius: 0.5rem;
}

/* استایل‌های پلیر ویدیو در صفحه */
.video-player-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10;
    border-radius: 0.75rem;
    display: none;
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-player-wrapper iframe,
.video-player-wrapper video {
    border-radius: 0.75rem;
}

.close-video {
    z-index: 11;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail {
    transition: all 0.3s ease;
}

.video-card.playing .video-thumbnail {
    opacity: 0;
    visibility: hidden;
}

.video-card.playing .video-player-container {
    display: block !important;
}

/* نشانگر ویدیو روی تامبنیل */
.video-thumbnail-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-thumbnail-indicator i {
    color: var(--wood-primary);
    font-size: 1.5rem;
    margin-left: 3px;
}

/* استایل‌های صفحه آرشیو ویدیو */
.video-categories-filter .btn-outline-wood {
    border-color: var(--wood-primary);
    color: var(--wood-primary);
}

.video-categories-filter .btn-outline-wood:hover,
.video-categories-filter .btn-outline-wood.active {
    background-color: var(--wood-primary);
    color: white;
}

.video-sidebar .category-list .category-item a {
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.video-sidebar .category-list .category-item a:hover {
    color: var(--wood-primary) !important;
    transform: translateX(-5px);
}

.recent-video-item .video-thumb {
    position: relative;
}

.recent-video-item .video-thumb .badge {
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
}

/* در فایل style.css، این استایل‌ها را اضافه کنید: */

/* استایل‌های پلیر ویدیو در جای خود */
.video-player-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 20;
    border-radius: 0.75rem;
    display: none;
    animation: fadeIn 0.3s ease;
}

.video-player-container.show {
    display: block !important;
}

.video-thumbnail.hide {
    opacity: 0;
    visibility: hidden;
}

.video-card {
    /* min-height: 350px; */
    position: relative;
    transition: all 0.3s ease;
}

.video-card.playing {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 30;
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    padding-top: 56.25%;
    /* نسبت 16:9 برای ویدیو */
}

.video-player-wrapper iframe,
.video-player-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.75rem;
}

.close-video {
    z-index: 21;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #dee2e6;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.close-video:hover {
    opacity: 1;
    background: white;
    transform: scale(1.1);
}

/* دکمه پلی روی تامبنیل */
.play-video-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-video-btn:hover {
    color: var(--wood-primary) !important;
    text-decoration: underline;
}

.video-overlay {
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-button {
    transform: scale(0.8);
    transition: all 0.3s ease;
}

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

/* انیمیشن برای نمایش ویدیو */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* برای حالت موبایل */
@media (max-width: 991.98px) {
    .video-scroll-item .video-player-container {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        height: auto;
        max-height: 80vh;
        z-index: 9999;
        border-radius: 1rem;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }

    .video-scroll-item .video-player-wrapper {
        padding-top: 56.25%;
    }

    .video-scroll-item .playing {
        transform: none;
        box-shadow: none;
    }

    /* backdrop برای موبایل */
    .video-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.85);
        z-index: 9998;
        display: none;
    }

    .video-backdrop.show {
        display: block;
    }
}

/* در style.css اضافه کنید */
/* بهبود کنترل‌های ویدیو */
.video-container {
    position: relative;
    cursor: pointer;
}

/* کنترل‌های پیش‌فرض ویدیو */
video::-webkit-media-controls-panel {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container:hover video::-webkit-media-controls-panel {
    opacity: 1;
}

/* خط زمانی (progress bar) */
video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display {
    color: white;
    font-size: 12px;
}

/* دکمه پلی بزرگتر */
video::-webkit-media-controls-play-button {
    background-color: var(--wood-primary);
    border-radius: 50%;
}

/* کنترل‌های سفارشی */
.custom-controls {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    padding: 8px;
    backdrop-filter: blur(5px);
}

.custom-controls .btn-light {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.custom-controls .btn-light:hover {
    background: white;
}

.custom-controls .time-display {
    font-size: 12px;
    line-height: 30px;
}

/* پیشرفت ویدیو */
.progress {
    cursor: pointer;
}

.progress-bar {
    transition: width 0.1s linear;
}

/* برای iframe‌ها */
.youtube-player iframe,
.vimeo-player iframe {
    pointer-events: auto;
    /* اجازه کنترل به کاربر */
}

/* حالت تمام‌صفحه */
.video-container:fullscreen {
    width: 100%;
    height: 100%;
    background: black;
}

.video-container:fullscreen video {
    object-fit: contain;
}

/* استایل‌های پیشگیرانه برای رفع overflow */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

.table-responsive {
    overflow-x: auto;
}

/* section, .container, .row { overflow: hidden; } — removed: caused layout clipping */

.text-on-green {
    color: #c6b36c !important;
}

.text-color {
    color: #154744;
}

/* ==================== MEDIA QUERIES ==================== */

/* موبایل کوچک (max-width: 575.98px) */
@media (max-width: 575.98px) {
    body {
        overflow-x: clip;
    }

    .container {
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .col-1,
    .col-2,
    .col-3,
    .col-4,
    .col-5,
    .col-6,
    .col-7,
    .col-8,
    .col-9,
    .col-10,
    .col-11,
    .col-12,
    .col,
    .col-auto,
    .col-sm-1,
    .col-sm-2,
    .col-sm-3,
    .col-sm-4,
    .col-sm-5,
    .col-sm-6,
    .col-sm-7,
    .col-sm-8,
    .col-sm-9,
    .col-sm-10,
    .col-sm-11,
    .col-sm-12,
    .col-md-1,
    .col-md-2,
    .col-md-3,
    .col-md-4,
    .col-md-5,
    .col-md-6,
    .col-md-7,
    .col-md-8,
    .col-md-9,
    .col-md-10,
    .col-md-11,
    .col-md-12,
    .col-lg-1,
    .col-lg-2,
    .col-lg-3,
    .col-lg-4,
    .col-lg-5,
    .col-lg-6,
    .col-lg-7,
    .col-lg-8,
    .col-lg-9,
    .col-lg-10,
    .col-lg-11,
    .col-lg-12,
    .col-xl-1,
    .col-xl-2,
    .col-xl-3,
    .col-xl-4,
    .col-xl-5,
    .col-xl-6,
    .col-xl-7,
    .col-xl-8,
    .col-xl-9,
    .col-xl-10,
    .col-xl-11,
    .col-xl-12 {
        padding-left: 6px;
        padding-right: 6px;
    }

    /* تستیمونیال */
    .testimonial-card {
        padding: 0.5rem !important;
        min-height: auto;
        border: 2px solid #f1d563;
    }

    .testimonial-text {
        font-size: 1rem !important;
        padding: 0 8px;
    }

    .author-avatar img {
        width: 70px !important;
        height: 70px !important;
    }

    #testimonialsCarousel .carousel-indicators {
        bottom: -50px;
    }

    .testimonial-content {
        /* margin-top: 1.5rem; */
    }

    /* بلاگ */
    .blog-card {
        margin-bottom: 2rem;
    }

    .blog-image {
        height: 200px !important;
    }

    .blog-content {
        padding: 1.5rem !important;
    }

    .btn-grad {
        /* padding: 0.1rem 2rem !important; */
        font-size: 1rem;
    }

    .blog-scroll-item {
        flex: 0 0 85%;
        min-width: 260px;
        max-width: 300px;
        margin: 0 0.25rem;
    }

    .blog-scroll-container {
        gap: 0.75rem;
        padding: 0 0.75rem;
    }

    .blog-scroll-viewport {
        margin: 0 0.5rem;
        padding: 0.75rem 0;
    }

    .blog-meta {
        flex-direction: column-reverse !important;
    }

    /* ویدیو */
    .video-scroll-item {
        flex: 0 0 85%;
        min-width: 260px;
        max-width: 300px;
    }

    .video-image {
        height: 160px !important;
    }

    .video-content {
        padding: 0.75rem !important;
    }

    /* صفحه بلاگ */
    .blog-categories-filter .d-flex {
        justify-content: flex-start !important;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .single-post-content .post-meta {
        flex-direction: column;
        gap: 1rem !important;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    /* ویدیو آرشیو */
    .video-categories-filter .d-flex {
        justify-content: flex-start !important;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .video-sidebar {
        margin-bottom: 2rem;
    }

    /* الگوی بکگراند */
    .bg-pattern {
        background-position: top 20% center;
        background-size: 1000%;
    }

    /* دسته‌بندی باکس */
    .category-box {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

/* تبلت (min-width: 768px) and (max-width: 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {

    /* تستیمونیال */
    .testimonial-card {
        min-height: 280px;
    }

    .author-avatar img {
        width: 100px !important;
        height: 100px !important;
    }

    /* بلاگ */
    .blog-image {
        height: 220px !important;
    }

    .blog-scroll-item {
        flex: 0 0 60%;
        min-width: 320px;
        max-width: 380px;
        margin: 0 0.75rem;
    }

    .blog-scroll-container {
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    .blog-scroll-viewport {
        margin: 0 1rem;
        padding: 1rem 0;
    }

    /* ویدیو */
    .video-scroll-item {
        flex: 0 0 60%;
        min-width: 320px;
        max-width: 380px;
    }

    .video-image {
        height: 200px !important;
    }

    /* الگوی بکگراند */
    .bg-pattern {
        background-position: top 20% center;
        background-size: 150%;
    }

    /* دسته‌بندی باکس */
    .category-box {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* دسکتاپ (min-width: 1025px) */
@media (min-width: 1025px) {

    .video-scroll-viewport,
    .video-scroll-container,
    .blog-scroll-viewport,
    .blog-scroll-container,
    .projects-scroll-viewport,
    .projects-scroll-container {
        display: none;
    }

    .d-none.d-lg-flex {
        display: flex !important;
    }

    /* دسته‌بندی باکس */
    .category-box {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* دسکتاپ بزرگ (min-width: 1200px) */
@media (min-width: 1200px) {
    .container {
        max-width: 1320px;
    }
}

/* دسکتاپ خیلی بزرگ (min-width: 1440px) */
@media (min-width: 1440px) {
    .bg-pattern {
        background-position: top 20% center;
        background-size: 150%;
    }
}

/* =====================================================
   Video Gallery
   ===================================================== */

.vg-overflow-hidden {
    overflow: hidden;
}

/* Modal */
.vg-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
}

.vg-modal--open {
    opacity: 1;
    pointer-events: auto;
}

.vg-modal__backdrop {
    position: absolute;
    inset: 0;
    background: oklch(10% 0 0 / 80%);
    backdrop-filter: blur(4px);
}

/* Container */
.vg-modal__container {
    position: relative;
    z-index: 1;
    width: min(92vw, 960px);
    background: oklch(14% 0.01 260);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 64px oklch(0% 0 0 / 60%);
    display: flex;
    flex-direction: column;
}

/* Header */
.vg-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid oklch(25% 0.01 260);
}

.vg-title {
    font-size: 1rem;
    font-weight: 600;
    color: oklch(92% 0 0);
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vg-modal__close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: oklch(70% 0 0);
    border-radius: 8px;
    cursor: pointer;
    transition: background 150ms, color 150ms;
}

.vg-modal__close:hover {
    background: oklch(22% 0.01 260);
    color: oklch(95% 0 0);
}

.vg-modal__close:focus-visible {
    outline: 2px solid oklch(68% 0.2 250);
    outline-offset: 2px;
}

/* Player */
.vg-modal__body {
    padding: 0;
}

.vg-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border: none;
}

/* Thumbnail card */
.vg-item__trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: oklch(12% 0 0);
}

.vg-item__trigger img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 220ms ease;
}

.vg-item__trigger:hover img {
    transform: scale(1.04);
}

.vg-item__play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity 150ms;
}

.vg-item__trigger:hover .vg-item__play-icon,
.vg-item__trigger:focus-visible .vg-item__play-icon {
    opacity: 1;
}

.vg-item__trigger:focus-visible {
    outline: 2px solid oklch(68% 0.2 250);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    .vg-modal,
    .vg-item__trigger img {
        transition: none;
    }
}

@font-face {
    font-family: 'Digi Hamishe';
    src: url('assets/webfonts/Digi Hamishe Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =============================================
   Intro Video Section — Thumbnail-Facade Pattern
   ============================================= */
.intro-video-section__title {
    font-family: 'Digi Hamishe', 'Vazirmatn', sans-serif;
    font-weight: 700;
}

.intro-video-card {
    border-radius: 12px;
    overflow: hidden;
    background: hsl(220 10% 12%);
}

.intro-video-card__facade {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.intro-video-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 240ms ease;
}

.intro-video-card:hover .intro-video-card__thumb {
    transform: scale(1.03);
}

.intro-video-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            hsl(220 10% 8% / 0.2) 0%,
            hsl(220 10% 8% / 0.55) 100%);
    pointer-events: none;
}

.intro-video-card__play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: hsl(0 0% 97%);
    transition: color 200ms ease;
}

.intro-video-card__play-btn:hover,
.intro-video-card__play-btn:focus-visible {
    color: var(--color-accent, hsl(38 92% 58%));
    outline: none;
}

.intro-video-card__play-btn:focus-visible {
    box-shadow: inset 0 0 0 3px var(--color-accent, hsl(38 92% 58%));
}

.intro-video-card__play-icon svg {
    filter: drop-shadow(0 2px 8px hsl(0 0% 0% / 0.5));
}

.intro-video-card__duration {
    position: absolute;
    bottom: 10px;
    left: 12px;
    /* LTR fallback */
    inset-inline-start: 12px;
    background: hsl(220 10% 8% / 0.75);
    color: hsl(0 0% 97%);
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

.intro-video-card__meta {
    padding: 12px 16px;
}

.intro-video-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(0 0% 92%);
    margin: 0;
    line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {

    .intro-video-card__thumb,
    .intro-video-card__play-btn {
        transition: none;
    }
}

/* ── Intro Video Facade ─────────────────────────────── */
.intro-video-card__facade {
    aspect-ratio: 16 / 9;
    background: #1a1a1a;
    cursor: pointer;
}

.intro-video-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.intro-video-card__facade:hover .intro-video-card__thumb {
    transform: scale(1.04);
}

.intro-video-card__overlay {
    background: linear-gradient(to top,
            oklch(10% 0 0 / 0.55) 0%,
            transparent 60%);
    pointer-events: none;
}

.intro-video-card__play-btn {
    color: #fff;
    filter: drop-shadow(0 2px 8px oklch(0% 0 0 / 0.5));
    transition: transform 0.2s ease, color 0.2s ease;
}

.intro-video-card__play-btn:hover,
.intro-video-card__play-btn:focus-visible {
    color: var(--bs-warning, #ffc107);
    transform: translate(-50%, -50%) scale(1.15);
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 50%;
}

.intro-video-card__duration {
    font-size: 0.75rem;
    letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════
   Slider Section
   ═══════════════════════════════════════ */
.arvinwood-slider-section {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    /* حذف فاصله زیر section */
}

.arvinwood-slider-section .carousel-inner,
.arvinwood-slider-section .carousel-item,
.arvinwood-slider-section .slider-slide {
    height: 200px;
}

.arvinwood-slider-section .slider-slide {
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: var(--bs-light, #f8f9fa);
    display: flex;
    align-items: center;
    position: relative;
}

/* موقعیت CTA — راست در RTL، چپ در LTR */
.arvinwood-slider-section .slider-cta-wrap {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

[dir="rtl"] .arvinwood-slider-section .slider-cta-wrap {
    right: clamp(1rem, 4vw, 3rem);
}

[dir="ltr"] .arvinwood-slider-section .slider-cta-wrap {
    left: clamp(1rem, 4vw, 3rem);
}

.arvinwood-slider-section .slider-cta-btn {
    font-size: 0.875rem;
    padding: 0.375rem 1.25rem;
    white-space: nowrap;
    /* سایه برای خوانایی روی تصویر */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* نقاط پایین carousel */
.arvinwood-slider-section .carousel-indicators {
    bottom: 6px;
    margin-bottom: 0;
}

.arvinwood-slider-section .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border-top: none;
    border-bottom: none;
    opacity: 0.5;
}

.arvinwood-slider-section .carousel-indicators .active {
    opacity: 1;
    background-color: #fff;
}

/* دکمه‌های prev/next کوچک‌تر در ارتفاع ۲۰۰px */
.arvinwood-slider-section .carousel-control-prev,
.arvinwood-slider-section .carousel-control-next {
    width: 36px;
    opacity: 0.6;
}

.arvinwood-slider-section .carousel-control-prev:hover,
.arvinwood-slider-section .carousel-control-next:hover {
    opacity: 1;
}

/* ── Slider CTA position: bottom-left ── */
.carousel-caption {
    top: 0 !important;
    bottom: 0 !important;
    right: initial !important;
    left: 0 !important;
    text-align: start;
    padding: 0;
}


/* ── Product Card ─────────────────────────────────────────────────────────── */
.pgallery-card {
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #e8e0d6);
    transition: box-shadow 200ms ease, transform 200ms ease;
}

.pgallery-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, .10);
    transform: translateY(-3px);
}

.pgallery-card__img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-surface-raised, #f5f0ea);
}

.pgallery-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
    display: block;
    cursor: zoom-in;
}

.pgallery-card:hover .pgallery-card__img {
    transform: scale(1.06);
}

.pgallery-card__body {
    padding: 12px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pgallery-card__title {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
    line-height: 1.4;
    color: var(--color-text, #1a1a1a);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pgallery-card__code {
    font-size: .8rem;
    color: var(--color-text-muted, #8a8070);
    direction: ltr;
    display: inline-block;
}

/* ── Lightbox ─────────────────────────────────────────────────────────────── */
.pgallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pgallery-lightbox[hidden] {
    display: none;
}

.pgallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .80);
    cursor: pointer;
}

.pgallery-lightbox__content {
    position: relative;
    z-index: 1;
    max-width: min(90vw, 1100px);
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pgallery-lightbox__img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.pgallery-lightbox__close {
    position: absolute;
    top: -40px;
    left: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 150ms ease;
}

.pgallery-lightbox__close:hover,
.pgallery-lightbox__close:focus-visible {
    background: rgba(255, 255, 255, .15);
    outline: none;
}

@media (prefers-reduced-motion: no-preference) {
    .pgallery-lightbox__content {
        animation: lb-in 180ms ease;
    }

    @keyframes lb-in {
        from {
            opacity: 0;
            transform: scale(.96);
        }

        to {
            opacity: 1;
            transform: scale(1);
        }
    }
}

.nav-link {
    color: white !important;
}

#mainSlider .btn-grad {
    padding: 3px 7px !important;
    font-size: 0.8rem;
}
