/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

@media (max-width: 767px) {
    .wd-page-title-bg {
        margin-top: -122px !important;
    }
}




/* --- ۱. تنظیمات پایه و متغیرها --- */
:root {
    --gs-dark: #593a1e;    /* قهوه‌ای تیره (اصلی) */
    --gs-light: #e3dad1;   /* کرم تیره (حاشیه) */
    --gs-accent: #f9f7f5;  /* کرم روشن (پس‌زمینه آیتم فعال) */
    --gs-white: #ffffff;
    --gs-transition: all 0.3s ease-out; /* سرعت بهینه برای رفع لگ */
}

.gelshow-accordion-container, 
.gs-reviews-slider, 
.gs-video-slider {
    direction: rtl;
    margin: 30px auto;
    font-family: inherit;
}

/* --- ۲. استایل یکپارچه آکاردئون‌ها (سرفصل + FAQ) --- */
.gs-accordion-item {
    background: var(--gs-white);
    border: 1px solid var(--gs-light);
    border-radius: 12px;
    margin-bottom: 15px;
    transition: var(--gs-transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.gs-accordion-item:hover {
    border-color: var(--gs-dark);
    transform: translateY(-2px);
}

.gs-accordion-header {
    padding: 18px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    background: var(--gs-white);
    transition: var(--gs-transition);
}

.gs-title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gs-number {
    background: var(--gs-light);
    color: var(--gs-dark);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
}

.gs-title {
    margin: 0 !important;
    font-size: 16px !important;
    color: var(--gs-dark);
    font-weight: 700;
    line-height: 1.5;
}

.gs-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: var(--gs-dark);
}

/* حالت فعال آکاردئون */
.gs-accordion-item.is-active {
    border-color: var(--gs-dark);
    box-shadow: 0 10px 20px -5px rgba(89, 58, 30, 0.15);
}

.gs-accordion-item.is-active .gs-accordion-header {
    background-color: var(--gs-accent);
}

.gs-accordion-item.is-active .gs-number {
    background: var(--gs-dark);
    color: var(--gs-white);
}

.gs-accordion-item.is-active .gs-arrow {
    transform: rotate(180deg);
}

/* محتوای داخلی آکاردئون */
.gs-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out; /* سرعت بستن سریع برای رفع لگ */
}

.gs-accordion-item.is-active .gs-accordion-content {
    max-height: 1500px; /* مقدار مناسب برای محتوا */
}

.gs-content-inner {
    padding: 20px 25px;
    line-height: 1.9;
    color: #555;
    font-size: 15px;
    border-top: 1px solid var(--gs-light);
    text-align: justify;
}


/* کارت نظرات */
.review-card {
    background: var(--gs-accent);
    border: 1px solid var(--gs-light);
    border-radius: 15px;
    padding: 25px;
    height: auto;
    transition: var(--gs-transition);
}

.review-author {
    color: var(--gs-dark);
    font-weight: bold;
    margin-bottom: 12px;
    display: block;
    font-size: 16px;
}

.review-text {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

/* تنظیمات هدر کارت نظرات */
.review-header-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--gs-light);
    padding-bottom: 10px;
}

/* استایل عکس پروفایل */
.review-avatar {
    width: 60px;
    height: 60px !important;
    border-radius: 50% !important;
    border: 2px solid var(--gs-light) !important;
    object-fit: cover;
}

.review-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gs-reviews-slider .review-header-wrapper .review-author {
    margin: 0 !important;
    font-size: 15px !important;
}

.stars {
    font-size: 10px;
    letter-spacing: 2px;
}

/* اطمینان از فاصله داشتن اسلایدها */
.gs-reviews-slider .swiper-slide {
    box-sizing: border-box; /* جلوگیری از بهم ریختگی ابعاد کارت */
}

/* کارت ویدیو هنرجویان */
.video-card {
    border-radius: 15px;
    overflow: hidden;
    background: #000;
    height: 450px; /* ارتفاع استاندارد برای ویدیو عمودی/مربعی */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* فلش‌ها و نقاط پایین اسلایدر */
.swiper-button-next, .swiper-button-prev {
    color: var(--gs-dark) !important;
    background: var(--gs-white);
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 18px !important;
    font-weight: bold;
}

.swiper-pagination-bullet-active {
    background: var(--gs-dark) !important;
}

/* --- ۴. ریسپانسیو (بهینه‌سازی موبایل) --- */
@media (max-width: 768px) {
    .gs-title { font-size: 14px !important; }
    .gs-accordion-header { padding: 15px; }
    .video-card { height: 350px; }
    .gs-content-inner { padding: 15px; font-size: 14px; }
}