/* ===== استایل‌های اختصاصی صفحه تکی دوره - مبتنی بر ghasemi.html ===== */

/* تنظیمات کلی */
.gh313-single-course body {
    font-family: 'iransans', sans-serif;
}

.gh313-single-course .line-clamp-6 {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gh313-single-course .truncate-toggle .truncate-text {
    transition: all 0.3s;
}

.gh313-single-course .accordion .content {
    transition: all 0.3s ease;
}

/* ویدیو با overlay */
.gh313-single-course .video-with-overlay-intro .overlay-intro {
    transition: all 0.3s;
}

/* دکمه‌های swiper */
.gh313-single-course .swiper-button-next,
.gh313-single-course .swiper-button-prev {
    background: #333;
    color: white;
    border-radius: 8px;
    width: 2.5rem;
    height: 2.5rem;
}

.gh313-single-course .swiper-button-next:hover,
.gh313-single-course .swiper-button-prev:hover {
    background: #428DED;
}

.gh313-single-course .swiper-pagination-bullet {
    background: #e0e0e0;
    opacity: 1;
}

.gh313-single-course .swiper-pagination-bullet-active {
    background: #333;
}

/* ریسپانسیو دستی برای جداکننده‌ها */
@media (max-width: 640px) {
    .gh313-single-course .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* تنظیم برای وسط‌چین شدن کامل در دسکتاپ */
@media (min-width: 1024px) {
    .gh313-single-course .container {
        max-width: 1280px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* بهبود نوار ثابت موبایل برای نمایش در ۱۴ اینچ */
.gh313-single-course .mobile-footer {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.gh313-single-course .mobile-footer .price-main {
    font-size: 1rem;
}

.gh313-single-course .mobile-footer .price-old {
    font-size: 0.7rem;
}

.gh313-single-course .mobile-footer .btn-register {
    padding: 0.3rem 1rem;
    font-size: 0.85rem;
}

@media (min-width: 640px) {
    .gh313-single-course .mobile-footer .price-main {
        font-size: 1.125rem;
    }
    .gh313-single-course .mobile-footer .price-old {
        font-size: 0.8rem;
    }
    .gh313-single-course .mobile-footer .btn-register {
        padding: 0.4rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* سایدبار چپ برای نمایش کامل در ۱۴ اینچ */
.gh313-single-course .sidebar-inner {
    padding-top: 0.5rem;
    padding-bottom: 1rem;
    gap: 0.5rem;
}

.gh313-single-course .sidebar-inner .intro-video-section {
    margin-top: 0.5rem;
}

.gh313-single-course .sidebar-inner .info-box {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.gh313-single-course .sidebar-inner .price-section {
    margin-top: 0.5rem;
}

.gh313-single-course .sidebar-inner .countdown {
    margin-top: 0.5rem;
}

.gh313-single-course .sidebar-inner .btn-buy {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    font-size: 0.9rem;
}

@media (min-width: 1024px) {
    .gh313-single-course .sidebar-inner {
        padding: 0.5rem 0.5rem 1rem 0.5rem;
    }
    .gh313-single-course .sidebar-inner .intro-video-section {
        margin-top: 0.25rem;
    }
}

/* استایل آکاردئون جلسات */
.gh313-single-course .accordion {
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.gh313-single-course .accordion:hover {
    border-color: #333;
}

.gh313-single-course .accordion.active {
    border-color: #333;
}

.gh313-single-course .accordion .header {
    cursor: pointer;
    transition: all 0.3s;
}

.gh313-single-course .accordion .session-badge {
    background-color: #333;
    color: white;
    border-radius: 9999px;
    padding: 0.25rem 0.625rem;
    font-size: 0.875rem;
    text-align: center;
    transition: all 0.3s;
}

.gh313-single-course .accordion:hover .session-badge,
.gh313-single-course .accordion.active .session-badge {
    background-color: #428DED;
}

.gh313-single-course .accordion .toggle-icon {
    transition: transform 0.3s ease;
}

.gh313-single-course .accordion.active .toggle-icon {
    transform: rotate(180deg);
}

/* استایل بخش درباره استاد */
.gh313-single-course .teacher-card {
    border: 2px solid #333;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s;
}

.gh313-single-course .teacher-card:hover {
    background-color: #E9F2FD;
}

.gh313-single-course .teacher-card .teacher-image {
    border-radius: 50%;
    width: 10rem;
    height: 10rem;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.gh313-single-course .teacher-card .teacher-info {
    background-color: #f9f9f9;
    border-radius: 0.75rem;
    padding: 2.5rem 3rem 2.5rem 1.5rem;
    position: relative;
    transition: all 0.3s;
}

.gh313-single-course .teacher-card:hover .teacher-info {
    background-color: #E9F2FD;
}

.gh313-single-course .teacher-card .teacher-info::before {
    content: '';
    position: absolute;
    right: 0;
    top: 2.5rem;
    bottom: 2.5rem;
    width: 0.25rem;
    border-radius: 9999px;
    background-color: #333;
}

.gh313-single-course .teacher-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gh313-single-course .teacher-card ul li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.5rem;
}

.gh313-single-course .teacher-card ul li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: #428DED;
}

/* استایل نظرات */
.gh313-single-course .review-card {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e5e5;
}

.gh313-single-course .review-stars {
    color: #eab308;
    margin-bottom: 0.5rem;
}

.gh313-single-course .review-author {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #888;
}

/* استایل سوالات متداول */
.gh313-single-course .faq-item {
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.gh313-single-course .faq-item:hover {
    border-color: #333;
}

.gh313-single-course .faq-question {
    cursor: pointer;
    transition: all 0.3s;
}

.gh313-single-course .faq-answer {
    transition: all 0.3s ease;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.gh313-single-course .faq-item.active .faq-answer {
    opacity: 1;
    height: fit-content;
    margin-bottom: 1rem;
    padding-top: 0.25rem;
}

@media (min-width: 768px) {
    .gh313-single-course .faq-item.active .faq-answer {
        padding-top: 1.25rem;
    }
}

.gh313-single-course .faq-item.active .faq-answer {
    border-top: 1px solid #f2f2f2;
}

/* استایل فرم ثبت‌نام */
.gh313-single-course .registration-form {
    background-color: #f9f9f9;
    border: 1px solid #f2f2f2;
    border-radius: 1rem;
    padding: 1.5rem;
}

@media (min-width: 640px) {
    .gh313-single-course .registration-form {
        border-radius: 1.5rem;
        padding: 2rem;
    }
}

.gh313-single-course .form-input {
    padding: 0.625rem 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid #e5e5e5;
    background-color: white;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.gh313-single-course .form-input:focus {
    outline: none;
    ring: 1px solid #428DED;
    border-color: #428DED;
}

.gh313-single-course .form-input::placeholder {
    color: #888;
}

.gh313-single-course .validator-message {
    font-size: 0.75rem;
    color: #7f1d1d;
    margin-bottom: 0.5rem;
}

.gh313-single-course .validator-message.hidden {
    display: none;
}

/* دکمه مشاوره */
.gh313-single-course .btn-consultation {
    background-color: #428DED;
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.gh313-single-course .btn-consultation:hover {
    background-color: #333;
}

.gh313-single-course .btn-consultation .pulse-dot {
    position: relative;
    display: flex;
    width: 1rem;
    height: 1rem;
}

.gh313-single-course .btn-consultation .pulse-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: white;
    opacity: 0.75;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.gh313-single-course .btn-consultation .pulse-dot span {
    position: relative;
    display: inline-flex;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: white;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* دکمه‌های تماس */
.gh313-single-course .btn-contact {
    background-color: #f2f2f2;
    padding: 0.625rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.gh313-single-course .btn-contact:hover {
    background-color: #e5e5e5;
}

.gh313-single-course .btn-contact svg {
    fill: #333;
    width: 1.25rem;
    height: 1.25rem;
}

/* فوتر موبایل */
.gh313-single-course .mobile-footer {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

@media (min-width: 1024px) {
    .gh313-single-course .mobile-footer {
        display: none;
    }
}

/* سایدبار استیکی */
.gh313-single-course .sticky-sidebar {
    height: 100dvh;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    display: none;
    z-index: 20;
}

@media (min-width: 1024px) {
    .gh313-single-course .sticky-sidebar {
        display: flex;
    }
}

.gh313-single-course .sticky-sidebar::before {
    content: '';
    position: absolute;
    width: 100vw;
    z-index: -10;
    background-color: white;
    left: 0;
    height: 100%;
}

.gh313-single-course .sidebar-wrapper {
    height: 100%;
    width: 100%;
    border-radius: 1rem;
    border: 2px solid transparent;
    border-image: linear-gradient(to bottom, #fff, #333, #fff) 1;
}

.gh313-single-course .sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
    padding: 0.5rem 1rem 1rem;
    position: relative;
    background-color: white;
    border-radius: 1rem;
}

/* هدر موبایل */
.gh313-single-course .mobile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
}

@media (min-width: 1024px) {
    .gh313-single-course .mobile-header {
        display: none;
    }
}

/* تصویر کاور */
.gh313-single-course .course-cover {
    width: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

/* عنوان و توضیحات */
.gh313-single-course .course-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
}

@media (min-width: 640px) {
    .gh313-single-course .course-title {
        font-size: 1.875rem;
        line-height: 1.625;
    }
}

@media (min-width: 1024px) {
    .gh313-single-course .course-title {
        font-size: 2.25rem;
    }
}

.gh313-single-course .course-description {
    font-size: 1rem;
    font-weight: 500;
}

@media (min-width: 640px) {
    .gh313-single-course .course-description {
        font-size: 1.125rem;
        font-weight: 500;
    }
}

/* عناوین بخش‌ها */
.gh313-single-course .section-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
}

@media (min-width: 640px) {
    .gh313-single-course .section-title {
        font-size: 1.875rem;
        line-height: 1.625;
    }
}

@media (min-width: 1024px) {
    .gh313-single-course .section-title {
        font-size: 2.25rem;
    }
}

/* کارت‌های ضمانت */
.gh313-single-course .guarantee-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border: 2px solid #000;
    border-radius: 0.75rem;
}

.gh313-single-course .guarantee-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.625;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gh313-single-course .guarantee-title svg {
    width: 2.5rem;
    height: 2.5rem;
}

.gh313-single-course .guarantee-description {
    font-size: 1rem;
    line-height: 2;
    color: #333;
}

/* لینک بازگشت */
.gh313-single-course .back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
    width: fit-content;
}

.gh313-single-course .back-link:hover {
    background-color: #f2f2f2;
}

.gh313-single-course .back-link svg {
    width: 1rem;
    height: 1rem;
    fill: #888;
    transition: all 0.3s;
}

.gh313-single-course .back-link:hover svg {
    fill: #428DED;
}

.gh313-single-course .back-link span {
    font-size: 1.25rem;
    font-weight: 800;
}

@media (min-width: 640px) {
    .gh313-single-course .back-link span {
        font-size: 1.125rem;
    }
}

/* دکمه ثبت‌نام در سایدبار */
.gh313-single-course .btn-sidebar-register {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background-color: #333;
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    margin: -0.25rem;
}

.gh313-single-course .btn-sidebar-register:hover {
    background-color: #428DED;
}

.gh313-single-course .btn-sidebar-register svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: white;
}

/* باکس اطلاعات محصول */
.gh313-single-course .product-info-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem 0.5rem;
    background-color: #f9f9f9;
    border-radius: 0.5rem;
    margin: -0.25rem;
    margin-top: 0.25rem;
}

.gh313-single-course .product-info-box svg {
    width: 1rem;
    height: 1rem;
    fill: #888;
}

.gh313-single-course .product-info-box span {
    font-size: 1rem;
    font-weight: 700;
}
