/* ============================================
   Custom CSS - v1.1
   تاریخ آخرین به‌روزرسانی: 2025
   شامل استایل‌های: Payment Gateway, Invoice, Coupon, Button Fixes
   ============================================ */

/* متغیرهای رنگ - همیشه سبز */
:root {
    --primary-color: #00430E; /* سبز اصلی کمی پررنگ‌تر */
    --primary-hover: #15803d; /* سبز تیره‌تر برای hover */
    --primary-light: #22c55e; /* سبز روشن */
    --accent-color: #84cc16; /* سبز کمرنگ تکمیلی */
}

/* استایل‌های عمومی */
body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    text-align: right;
    background-color:white !important;
    overflow-x: hidden;
}

/* جلوگیری از اسکرول افقی در موبایل */
html {
    overflow-x: hidden;
    max-width: 100%;
}

/* اصلاح رنگ spinner های bootstrap */
.spinner-border {
    border-color: rgba(22, 163, 74, 0.25);
    border-top-color: var(--primary-color);
}

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

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

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

/* هدر موبایل */
.mobile-header {
    display: none;
    padding: 10px 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 9999;
}

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

.mobile-header .logo-container {
    text-align: center;
    flex-grow: 1;
}

.mobile-header .logo-container img {
    height: 50px;
}

.mobile-header .menu-button {
    background: #84BF63;
    border: none;
    font-size: 24px;
    color: white;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-header .menu-button:hover {
    background: #73a855;
    transform: scale(1.05);
}

.mobile-header .search-button {
    background: #00430E;
    border: none;
    font-size: 24px;
    color: white;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-header .search-button:hover {
    background: #00320A;
    transform: scale(1.05);
}

/* استایل بخش‌های هدر */
.header-section {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

/* رسپانسیو */
@media (max-width: 991.98px) {
    header,
    .navbar,
    .header-section.navbar,
    nav.navbar,
    nav.header-section {
        display: none !important;
    }
    
    /* مخفی کردن تمام انواع navbar در موبایل */
    .navbar-expand-lg,
    .navbar-light,
    .bg-white.border-top.border-bottom {
        display: none !important;
    }
    
    .mobile-header {
        display: block;
    }

    /* تنظیم سایز بنر برای موبایل */
    .top-banner {
        background-size: 710px 34px !important;
        min-height: 34px !important;
    }

    /* نمایش خط سبز بالای بنر فقط در موبایل (خط اصلی زیر بنر مخفی می‌شود)
       از یک کلاس کمکی استفاده می‌کنیم تا نسخه‌ی موبایل دقیقاً بالای بنر قرار گیرد */
    .green-line { display: none !important; }
    .green-line-mobile { display: block !important; height:4px; background-color:#28a745; width:100%; clip-path: none; }
    
    /* جلوگیری از اسکرول افقی و بهم ریختگی در موبایل */
    html, body { overflow-x: hidden !important; max-width: 100vw; }
    .container, .container-fluid { max-width: 100%; overflow-x: hidden; }
    img, video, iframe { max-width: 100%; height: auto; }
    pre, code, .lesson-link, .live-card-room, .live-card-time { word-wrap: break-word; overflow-wrap: break-word; }
    
    /* اصلاح circle-bg که با عرض 320px در موبایل باعث overflow می‌شد */
    .psychology-school-section .circle-bg {
        width: min(240px, 70vw) !important;
        height: min(240px, 70vw) !important;
    }
}

/* استایل‌های منو */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: #fff;
    position: relative;
    z-index: 100;
}

.navbar-nav .nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0 8px;
    transition: color 0.3s;
    white-space: nowrap;           /* جلوگیری از دوخطی شدن متن منو */
    display: inline-flex;          /* هم‌خط کردن آیکن و متن */
    align-items: center;
}

.navbar-nav .nav-link:hover {
    color: #28a745;
}

/* استایل active برای لینک‌های اصلی که زیرمجموعه دارند */
.navbar-nav .nav-item.dropdown .nav-link:hover,
.navbar-nav .nav-item.dropdown:hover .nav-link {
    color: #28a745;
    border-radius: 4px;
}

.navbar-nav .nav-item.dropdown.show .nav-link {
    color: #28a745;
    border-radius: 4px;
}  

/* استایل active برای صفحه فعلی */
.navbar-nav .nav-item.active .nav-link {
    background-color: white !important;
    border-radius: 4px;
    font-weight: 600;
    position: relative;
    color: #28a745 !important;
}

/* خط موجی برای آیتم‌های اکتیو */
.navbar-nav .nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 71px;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg width='71' height='8' viewBox='0 0 71 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M23.5 4H47.5039C44.1609 1.48836 40.0052 0 35.5019 0C30.9987 0 26.843 1.48836 23.5 4Z' fill='%2384BF63'/%3E%3Cpath d='M0 8C0 5.79086 1.79086 4 4 4H67C69.2091 4 71 5.79086 71 8H0Z' fill='%2384BF63'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* استایل لوگو */
.navbar-brand img {
    height: 40px;
}

/* استایل‌های بخش ورود */
.login-section {
    padding: 50px 0;
}

/* وسط چین کردن تمام فیلدهای ورودی بخش ورود (شماره تماس، ایمیل و غیره) */
.login-section .form-control {
    text-align: center !important;
}
.login-section input[type="text"],
.login-section input[type="email"],
.login-section input[type="tel"],
.login-section input[type="password"] {
    text-align: center !important;
}
.login-section .ltr {
    text-align: center !important;
}

.login-image-box {
    background-image: url('/vendor/template/assets/images/login-side.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    position: relative;
}

.avatar-circle {
    width: 70px;
    height: 70px;
    background-color: #E6F4EA; /* پس‌زمینه سبز خیلی ملایم مطابق طرح */
    border: 2px solid #CDE8D6;  /* کادر خیلی ظریف برای کنتراست بهتر */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* آیکن آدمک داخل دایره به رنگ سبز برند */
.login-section .avatar-circle i {
    color: var(--primary-color) !important;
}

/* لینک‌های تغییر روش ورود (رمز ثابت/پیامکی) */
.login-link {
    color: #00430E !important;
    font-weight: 600;
    text-decoration: none;
}
.login-link:hover {
    color: #00320A !important;
    text-decoration: underline;
}

/* استایل منوی کناری موبایل */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 10000;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    direction: rtl;
}

.mobile-sidebar.open {
    right: 0;
}

.sidebar-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 22px;
    color: #333;
    padding: 5px;
    z-index: 1;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    text-align: right;
    margin-right: 15px;
}

.sidebar-content {
    padding: 20px 15px;
}

.public-school-button a {
    border-radius: 5px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid #28a745;
}

.mobile-search-box .search-container {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: row-reverse;
}

.mobile-search-box .form-control {
    border: none;
    height: 45px;
    text-align: right;
    font-size: 14px;
    box-shadow: none;
    background: white;
    flex-grow: 1;
}

.mobile-search-box .form-control::placeholder {
    text-align: right;
}

.mobile-search-box .search-btn-container {
    width: 64px;
    min-width: 64px;
    background-color: #84BF63;
}

.mobile-search-box .search-btn {
    background: transparent;
    border: none;
    border-radius: 0;
    width: 100%;
    height: 45px;
}

.mobile-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    border-bottom: 1px solid #f5f5f5;
    position: relative;
}

/* اطمینان از اینکه dropdown-menu در موبایل در جریان طبیعی document قرار بگیرد */
.mobile-menu-items .menu-item.dropdown {
    position: relative;
}

.mobile-menu-items .menu-item.dropdown .dropdown-menu {
    position: static !important;
    float: none !important;
    z-index: auto !important;
}

.menu-item.active {
    border-right: 4px solid #84BF63;
    background-color: #f9f9f9;
}

.menu-item.active a,
.menu-item.active .dropdown-toggle {
    color: #28a745 !important;
    font-weight: 600;
}

.menu-item a {
    display: block;
    padding: 17px 15px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.menu-item.dropdown a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-item.dropdown a i {
    font-size: 12px;
}

.consult-button {
    margin-top: 30px !important;
}

.consult-button a {
    color: #28a745;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 10px;
}

.consult-button i {
    color: #28a745;
    transform: none;
}

/* اورلی برای پس‌زمینه تیره هنگام باز شدن منو */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
}

.mobile-overlay.open {
    display: block;
}

/* استایل‌های فوتر موبایل */
.mobile-footer {
    background-color: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.mobile-footer-item {
    display: block;
    text-decoration: none;
    color: #666;
    padding: 8px 0;
}

.mobile-footer-item.active {
    color: #00430E;
}

.mobile-footer-icon {
    width: 24px;
    height: 24px;
    margin: 0 auto 5px;
}

.mobile-footer-item.active .mobile-footer-icon {
    border-radius: 12px;
    box-shadow: 0 0 0 3px #00430E;
    background-color: #00430E;
}

.mobile-footer-item.active .mobile-footer-icon img {
    filter: brightness(0) invert(1);
}

.mobile-footer-item span {
    font-size: 11px;
    display: block;
}

/* استایل‌های footer */
.footer-new {
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

.footer-heading {
    position: relative;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 16px;
    padding-bottom: 10px;
    color: #333;
}

.footer-heading:after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #28a745;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links li a:hover {
    color: #28a745;
}

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

.social-icons-row {
    gap: 10px;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.social-icon-new {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eaeaea;
    color: #999;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    margin: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.social-icon-new:hover {
    background-color: #7cc242;
    color: #fff;
}

.partner-logo {
    height: 40px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.partner-logo:hover {
    opacity: 1;
}

.newsletter-section {
    background-color: #28a745;
}

.newsletter-title {
    font-size: 15px;
}

.btn-newsletter {
    background-color: #fff;
    color: #28a745;
    border: none;
}

.copyright-section {
    background-color: #84BF63;
}

.copyright-text {
    color: #fff;
    font-size: 14px;
}

/* دکمه بازگشت به بالا */
.return-to-top-button {
    position: fixed;
    bottom: 24px !important;
    left: 100px !important; /* +10px نسبت به قبل */
    right: auto !important;
    z-index: 9999;
    display: none; /* با اسکرول نمایش داده می‌شود */
}

.circle-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #00430E;
    color: #fff;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
}

.circle-btn i { font-size: 16px; color: #fff; }
.circle-btn:hover { background-color: #00320A; color: #fff; }

/* پنهان‌سازی نسخه‌های تکراری تم */
.back-to-top,
.scroll-top-btn { display: none !important; }

@media (max-width: 576px) {
    .return-to-top-button {
        bottom: 16px !important;
        left: 56px !important; /* +10px نسبت به قبل */
    }
    .circle-btn { width: 40px; height: 40px; border-radius: 10px; }
}

/* استایل‌های بخش خبرنامه در فوتر */
.newsletter-container {
    margin-top: 20px;
    border-radius: 5px;
    background-color: #f5f5f5;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.newsletter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.newsletter-header h5 {
    font-size: 13px;
    color: #555;
    margin-bottom: 0;
    font-weight: 500;
}

.newsletter-dropdown {
    width: 28px;
    height: 28px;
    background-color: #e8e8e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.newsletter-dropdown i {
    font-size: 12px;
    color: #888;
}

.newsletter-form {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid #e6e6e6;
}

.newsletter-form input {
    flex-grow: 1;
    border: none;
    padding: 10px 15px;
    font-size: 13px;
    text-align: right;
    background-color: #ffffff;
    height: 40px;
    outline: none;
}

.newsletter-form button {
    border-radius: 0;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 500;
    background-color: #7cc242;
    color: white;
    border: none;
    height: 40px;
    min-width: 90px;
}

/* استایل‌های شبکه‌های اجتماعی */
.social-media-container {
    padding: 10px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    margin: 15px 0 20px;
}

/* استایل‌های badge اعتبار کاربری */
.credit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.credit-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.credit-badge i {
    color: #fbbf24;
    margin-left: 5px;
    animation: coinSpin 2s infinite;
}

.credit-amount {
    font-weight: 700;
    color: #ffffff;
    margin: 0 5px;
    font-size: 15px;
}

.credit-label {
    margin-right: 5px;
    opacity: 0.9;
}

.credit-currency {
    font-size: 12px;
    opacity: 0.8;
    margin-right: 5px;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes coinSpin {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
}

/* استایل‌های منوی موبایل کاربر */
.mobile-user-section {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.mobile-user-avatar i {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.mobile-user-info h6 {
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

.mobile-credit-badge {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #6c757d;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 400;
    border: none;
}

.mobile-credit-badge i {
    color: #adb5bd;
    font-size: 12px;
    opacity: 0.7;
}

.mobile-user-menu {
    margin-top: 15px;
}

.mobile-menu-link {
    display: block;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-link i {
    color: var(--primary-color);
}

.mobile-menu-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.mobile-menu-link:hover i {
    color: white;
}

.mobile-logout-section {
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.mobile-logout-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    color: #818894;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 400;
    font-size: 12px;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
}

.mobile-logout-link i {
    color: #adb5bd;
    font-size: 11px;
    transition: color 0.2s ease;
}

.mobile-logout-link:hover {
    color: #6c757d;
    background: transparent;
    transform: none;
    box-shadow: none;
}

.mobile-logout-link:hover i {
    color: #6c757d;
}

.mobile-auth-section .btn-success {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.mobile-auth-section .btn-success:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
}

/* استایل‌های Modal جستجوی موبایل */
.mobile-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
}

.mobile-search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.mobile-search-content {
    position: absolute;
    top: 20%;
    left: 10px;
    right: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 67, 14, 0.15);
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
    border: 1px solid rgba(0, 67, 14, 0.08);
}

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

.mobile-search-header {
    padding: 16px 20px;
    background: #f8f9fa;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.mobile-search-header h5 {
    font-weight: 500;
    margin: 0;
    font-size: 16px;
    color: #333;
}

.mobile-search-close {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 18px;
    padding: 5px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-search-close:hover {
    background: #e9ecef;
    color: #333;
    transform: none;
}

.mobile-search-body {
    padding: 20px;
}

.mobile-search-form {
    margin-bottom: 20px;
}

.mobile-search-input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 67, 14, 0.08);
    border: 1px solid #e9ecef;
}

.mobile-search-input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    text-align: right;
    background: #fff;
    outline: none;
    color: #333;
}

.mobile-search-input::placeholder {
    color: #6c757d;
}

.mobile-search-input:focus {
    background: white;
    box-shadow: none;
}

.mobile-search-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 67, 14, 0.12);
}

.mobile-search-submit {
    background: var(--primary-color) !important;
    border: none;
    padding: 0 18px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-submit:hover {
    background: var(--primary-hover) !important;
    transform: none;
}

.mobile-search-suggestions {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid #e9ecef;
}

/* انیمیشن برای نمایش/پنهان شدن modal */
.mobile-search-modal.show {
    animation: fadeIn 0.3s ease-out;
}

.mobile-search-modal.hide {
    animation: fadeOut 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ریسپانسیو برای موبایل */
@media (max-width: 480px) {
    .mobile-search-content {
        left: 5px;
        right: 5px;
        top: 15%;
    }

    .mobile-search-header {
        padding: 15px 20px 10px;
    }

    .mobile-search-body {
        padding: 20px 15px;
    }

    .mobile-search-input {
        padding: 12px 15px;
        font-size: 15px;
    }
}

/* استایل لوگو */
.footer-logo {
    max-width: 300px !important;
    margin-top: 10px;
}

/* Top Banner Styles */
.top-banner {
    /* فقط تصویر پس‌زمینه باشد — بدون رنگ اضافی */
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    min-height: 60px;
    padding: 8px 0;
    color: white;
    font-size: 14px;
    display: block;
    width: 100%;
    text-decoration: none;
    transition: opacity 0.3s ease;
    background-color: transparent !important;
}

.top-banner:hover {
    opacity: 0.9;
}

.banner-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.banner-link:hover {
    text-decoration: none;
    color: inherit;
}

.discount-icon {
    width: 20px;
    height: 20px;
    margin-left: 5px;
}

/* Header Styles */
.search-box {
    position: relative;
}

.search-box .form-control {
    padding-right: 15px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.search-btn {
    background-color: #84BF63;
    border: none;
    padding: 0 20px;
    color: white;
    transition: all 0.3s ease;
}

.my-account {
    margin-left: 20px;
}

/* دکمه ورود/ثبت‌نام مطابق طرح (#00430E) */
.my-account .btn {
    background-color: #00430E;
    border: 1px solid #00430E;
    color: #fff;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 8px;
}

.my-account .btn:hover {
    background-color: #00320A;
    border-color: #00320A;
    color: #fff;
}

/* لینک سبد خرید مطابق طرح تصویر */
.shopping-cart .cart-icon {
    color: #00430E;
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.shopping-cart .cart-icon i {
    color: #00430E;
    font-size: 20px;
}

.shopping-cart .cart-icon:hover,
.shopping-cart .cart-icon:hover i {
    color: #00320A;
}

.shopping-cart .cart-text {
    margin-right: 6px;
}

/* استایل برای وضعیت اشتراک */
.subscription-status .subscription-link,
.subscription-status .subscription-active-link,
.subscription-status .subscription-active {
    color: #00430E;
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.subscription-status .subscription-link i,
.subscription-status .subscription-active-link i,
.subscription-status .subscription-active i {
    font-size: 20px;
}

.subscription-status .subscription-link:hover,
.subscription-status .subscription-link:hover i,
.subscription-status .subscription-active-link:hover,
.subscription-status .subscription-active-link:hover i,
.subscription-status .subscription-active-link:hover .subscription-text,
.subscription-status .subscription-active-link:hover .subscription-days {
    color: #00320A;
}

.subscription-status .subscription-text {
    margin-right: 6px;
    font-weight: bold;
}

.subscription-status .subscription-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.subscription-status .subscription-days {
    font-size: 11px;
    line-height: 1;
    margin-top: 2px;
}

/* استایل برای نشان اشتراک موبایل */
.mobile-subscription-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(25, 135, 84, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.mobile-subscription-badge i {
    font-size: 14px;
}

.mobile-subscription-badge small {
    font-size: 10px;
    line-height: 1;
}

.mobile-subscription-link {
    color: #198754 !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobile-subscription-link:hover {
    color: #146c43 !important;
}

.mobile-credit-badge-link {
    text-decoration: none;
    display: block;
}

.mobile-credit-badge-link:hover .mobile-credit-badge {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
}

/* مشاوره انتخاب دوره (آیکن + متن یک‌خطی) */
.course-consult {
    color: var(--primary-color) !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 6px;
    text-decoration: none;
    font-size: 15px;
    line-height: 1;
}
.course-consult i {
    color: var(--primary-color) !important;
    font-size: 16px;
}
.course-consult:hover {
    color: var(--primary-hover) !important;
}

/* دکمه رفتن به مدرسه (استایل دکمه با کادر سبز) */
.school-switch-btn {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    background-color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    min-width: auto;
    text-align: center;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none !important;
}
.school-switch-btn:hover,
.school-switch-btn:focus {
    background-color: rgba(22, 163, 74, 0.05);
    color: var(--primary-hover);
    border-color: var(--primary-hover);
    text-decoration: none !important;
}
/* نسخه قبلی دوخطی را غیرفعال می‌کنیم (اگر جایی باقی مانده بود تاثیر نداشته باشد) */
.school-switch-btn .switch-lines { display: inline; }
.school-switch-btn .switch-lines .u { border: none; }

/* Green Line Under Header */
.green-line {
    height: 4px;
    background-color: #28a745;
    width: 100%;
    clip-path: polygon(0 0, 3% 100%, 97% 100%, 100% 0);
}
/* نسخه موبایل خط سبز که بالای بنر نمایش داده می‌شود */
.green-line-mobile { display: none; }

/* سایر استایل‌های موجود */
body{
    text-align: right;
    direction: rtl;
}
#hero2{
    margin-top:  36px;
}
.hero-slider .mySwiper{
   max-height: 520px;
}
.hero-slider .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-slider .swiper {
    margin-left: auto;
    margin-right: auto;
}
.hero-slider .swiper-pagination{
    bottom: 50px;
    left: 0;
    width: 100%;
    display: none;
}
.cta a{
    color: #fff;
}
.disable_justify {
  justify-content:normal !important;
}
.banner {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
}
.btn-invite {
    background-color: #ffcc00;
    color: #000;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}
.btn-invite:hover {
    background-color: #ffdb4d;
    color: #000;
}
.hover-effect {
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

.hover-effect:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.rounded-pill {
    padding: 8px 20px;
}

footer .bi {
    font-size: 1.2rem;
    vertical-align: middle;
}
/* Alert Base Style */
.alert {
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border-radius: 8px;
    font-family: var(--vazirmatn-fd-font);
    font-weight: 400;
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px; 
    height: 100%;
    background: currentColor;
    opacity: 0.2;
}

/* Color Variations */
.alert-success {
    background: linear-gradient(135deg, #84bf63 0%, #a8d08a 100%);
    color: #00430e;
}

.alert-info {
    background: linear-gradient(135deg, #84bf63 0%, #a8d08a 100%);
    color: #00430e;
}

.alert-warning {
    background: linear-gradient(135deg, #f4eea9 0%, #f5f0b0 100%);
    color: #424242;
}

.alert-danger {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
}

.alert-primary {
    background: linear-gradient(135deg, #1f509a 0%, #2b5cb7 100%);
    color: #ffffff;
}

.alert-secondary {
    background: linear-gradient(135deg, #424242 0%, #5a5a5a 100%);
    color: #f4eea9;
}

/* استایل‌های منوی چندسطحی */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    right: 100%;
    margin-top: -1px;
    margin-right: -1px;
    border-radius: 0 6px 6px 6px;
}

.dropdown-menu .dropdown-menu {
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

.dropdown-submenu:hover .dropdown-menu {
    display: block;
}

/* استایل‌های منوی موبایل چندسطحی */
.mobile-menu-items .dropdown-menu {
    display: none;
    background-color: #f8f9fa;
    border-radius: 0;
    border: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
    width: 100%;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    float: none !important;
}

.mobile-menu-items .menu-item.dropdown.open .dropdown-menu {
    display: block;
}

.mobile-menu-items .dropdown-submenu ul {
    display: none;
    background-color: #f0f1f2;
    margin: 0;
    padding: 0;
    list-style: none;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    float: none !important;
    z-index: auto !important;
}

.mobile-menu-items .dropdown-submenu.open ul {
    display: block;
}

/* استایل لینک‌های داخل زیرمنوها */
.mobile-menu-items .dropdown-menu li a,
.mobile-menu-items .dropdown-submenu ul li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.mobile-menu-items .dropdown-menu li a:hover,
.mobile-menu-items .dropdown-submenu ul li a:hover {
    background-color: #f8f9fa;
    color: #28a745;
    padding-right: 30px;
}

/* حذف border از آخرین لینک */
.mobile-menu-items .dropdown-menu li:last-child a,
.mobile-menu-items .dropdown-submenu ul li:last-child a {
    border-bottom: none;
}

.mobile-menu-items .dropdown-submenu > a::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    float: left;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.mobile-menu-items .dropdown-submenu.open > a::after {
    transform: rotate(90deg);
}

/* حل مشکل z-index برای dropdown menu کاربر */
.dropdown-menu {
    z-index: 10001 !important;
}

.dropdown-menu.show {
    z-index: 10001 !important;
}

@media (min-width: 1400px) {
.container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 1500px;
}
}

/* #show-guide-btn {
    display:none;
} */

/* استایل جذاب برای دکمه راهنمای کاربری */
#show-guide-btn {
    position: fixed !important;
    bottom: 70px !important;
    right: 20px !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #84BF63 0%, #00430E 100%) !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 8px 25px rgba(132, 191, 99, 0.4), 
                0 0 0 0 rgba(132, 191, 99, 0.7) !important;
    color: #ffffff !important;
    font-size: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 9999999 !important;
    padding: 0 !important;
    margin: 0 !important;
    animation: guideButtonPulse 2s infinite !important;
}

#show-guide-btn:hover {
    transform: scale(1.1) translateY(-5px) !important;
    box-shadow: 0 12px 35px rgba(132, 191, 99, 0.6), 
                0 0 0 8px rgba(132, 191, 99, 0.2) !important;
    background: linear-gradient(135deg, #94CF73 0%, #005a12 100%) !important;
}

#show-guide-btn:active {
    transform: scale(0.95) !important;
}

#show-guide-btn i {
    font-size: 28px !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Animation برای جلب توجه */
@keyframes guideButtonPulse {
    0% {
        box-shadow: 0 8px 25px rgba(132, 191, 99, 0.4), 
                    0 0 0 0 rgba(132, 191, 99, 0.7);
    }
    50% {
        box-shadow: 0 8px 25px rgba(132, 191, 99, 0.4), 
                    0 0 0 10px rgba(132, 191, 99, 0);
    }
    100% {
        box-shadow: 0 8px 25px rgba(132, 191, 99, 0.4), 
                    0 0 0 0 rgba(132, 191, 99, 0.7);
    }
}

/* استایل برای موبایل */
@media (max-width: 768px) {
    #show-guide-btn {
        width: 55px !important;
        height: 55px !important;
        bottom: 90px !important; /* بالاتر از منوی پایینی (70px + 20px فاصله) */
        right: 15px !important;
        font-size: 24px !important;
        z-index: 9999999 !important; /* بالاتر از منوی پایینی (z-index: 1050) */
        border: 3px solid #ffffff !important; /* خط سفید دور دکمه */
    }
    
    #show-guide-btn i {
        font-size: 24px !important;
    }
}

/* استایل برای موبایل‌های کوچک‌تر */
@media (max-width: 576px) {
    #show-guide-btn {
        bottom: 80px !important;
        border: 3px solid #ffffff !important; /* خط سفید دور دکمه */
    }
}
 
.newsletter-container{
    display:none;
}
.modal-backdrop {
    display: none !important;
}

.modal-backdrop.show {
    display: none !important;
}

.modal {
    z-index: 1055 !important;
}

.modal.show {
    z-index: 1055 !important;
}

.modal-dialog {
    z-index: 1056 !important;
}

.modal-content {
    z-index: 1057 !important;
    position: relative;
    border: 4px solid #00430E !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 32px rgba(0, 67, 14, 0.3) !important;
}

/* استایل دکمه‌های تغییر مدرسه موبایل */
.mobile-school-buttons {
    padding: 10px 0;
}

/* استایل لودینگ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-overlay-content {
    position: relative;
    z-index: 10000;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* استایل‌های صفحه faq.php */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.faq-accordion .accordion-item {
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 12px !important;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.faq-accordion .accordion-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.faq-accordion .accordion-header {
    margin-bottom: 0;
}

.faq-accordion .accordion-button {
    background: #fff;
    border: none;
    border-radius: 12px !important;
    padding: 20px 24px;
    font-weight: 600;
    color: #343A40;
    font-size: 16px;
    text-align: right;
    direction: rtl;
    box-shadow: none !important;
    transition: all 0.2s ease;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: #fff;
    color: #064635;
    border-bottom: 1px solid #e6e9ee;
    border-radius: 12px 12px 0 0 !important;
}

.faq-accordion .accordion-button::after {
    background-image: none;
    content: '›';
    font-size: 24px;
    font-weight: bold;
    color: #666;
    transform: rotate(90deg);
    transition: transform 0.2s ease;
    margin-left: 0;
    margin-right: auto;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(270deg);
    color: #064635;
}

.faq-accordion .accordion-collapse {
    border: none;
}

.faq-accordion .accordion-body {
    padding: 20px 24px;
    color: #666;
    line-height: 1.8;
    font-size: 15px;
    text-align: right;
    direction: rtl;
    border-top: 1px solid #f0f0f0;
}

/* موبایل */
@media (max-width: 768px) {
    .faq-accordion {
        padding: 0 10px;
    }

    .faq-accordion .accordion-button {
        padding: 16px 18px;
        font-size: 15px;
    }

    .faq-accordion .accordion-body {
        padding: 16px 18px;
        font-size: 14px;
    }
}

/* استایل‌های انیمیشن AOS */
[data-aos] {
    transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1.0) !important;
}

/* انیمیشن زدن قلب برای عناصر خاص */
.heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite both;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

/* افکت هاور روی کارت‌ها */
.custom-course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-course-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* انیمیشن برای لود عناصر صفحه */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

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

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

/* استایل برای اسکرول بار */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #84BF63;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* استایل‌های sticky برای عناصر شناور */
.float-box-info {
    position: fixed;
    bottom: 190px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-hover));
    color: white;
    padding: 15px 20px;
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.3);
    z-index: 1000;
    max-width: 300px;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: floatPulse 3s ease-in-out infinite;
}

.float-box-info:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(22, 163, 74, 0.4);
    background: linear-gradient(135deg, var(--primary-hover), #5a8a37);
}

.float-box-info a {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    display: block;
}

.float-box-info a:hover {
    color: #f8f9fa !important;
}

/* دکمه بستن باکس شناور */
.close-float-box {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #ff4757;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.close-float-box:hover {
    background: #ff6b81;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.close-float-box:active {
    transform: rotate(90deg) scale(0.95);
}

/* دکمه ورود به مدرسه تخصصی */
.btn-rotate {
    position: fixed;
    bottom: 120px;
    right: 20px;
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    color: white !important;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: rotateFloat 4s ease-in-out infinite;
    text-align: center;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-rotate:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
    background: linear-gradient(45deg, #FF8E53, #FF6B6B);
    color: white !important;
}

.btn-rotate::before {
    content: '⭐';
    margin-left: 8px;
    animation: sparkle 2s ease-in-out infinite;
}

.btn-rotate::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50px;
    animation: shimmer 3s linear infinite;
    z-index: -1;
}

/* انیمیشن‌های جدید */
@keyframes floatPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 8px 25px rgba(22, 163, 74, 0.3);
    }
    50% { 
        transform: scale(1.02); 
        box-shadow: 0 10px 30px rgba(22, 163, 74, 0.4);
    }
}

@keyframes rotateFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-5px) rotate(1deg); 
    }
    50% { 
        transform: translateY(0px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-3px) rotate(-1deg); 
    }
}

@keyframes sparkle {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 1;
    }
    50% { 
        transform: scale(1.2) rotate(180deg); 
        opacity: 0.8;
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

/* تنظیمات موبایل */
@media (max-width: 768px) {
    /* اضافه کردن padding bottom برای جایگاه فوتر fixed */
    body {
        padding-bottom: 80px !important;
    }
    
    .float-box-info {
        display: none;
    }
    
    .float-box-info:hover {
        transform: scale(1.02);
    }
    
    .btn-rotate {
        bottom: 80px;
        right: 10px;
        left: 10px;
        min-width: auto;
        width: calc(100% - 20px);
        font-size: 13px;
        padding: 10px 15px;
    }
    
    .close-float-box {
        top: -6px;
        right: -6px;
        width: 20px;
        height: 20px;
        font-size: 14px;
    }
    
    @keyframes floatPulse {
        0%, 100% { 
            transform: scale(1); 
        }
        50% { 
            transform: scale(1.01); 
        }
    }
    
    /* استایل‌های فوتر موبایل */
    .mobile-footer {
        height: 70px;
    }
    
    .mobile-footer-item {
        padding: 8px 5px;
    }
    
    .mobile-footer-icon {
        width: 24px;
        height: 24px;
    }
    
    .mobile-footer-item span {
        font-size: 11px;
        margin-top: 2px;
    }
}

/* حالت تاریک */
@media (prefers-color-scheme: dark) {
    .float-box-info {
        background: linear-gradient(135deg, #2d5016, #1a3009);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .btn-rotate {
        background: linear-gradient(45deg, #c44536, #d4641f);
    }
}

/* استایل‌های باقی‌مانده از صفحه home.php */

/* Hero Carousel Indicators */
#heroCarousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db !important;
    opacity: 0.6 !important;
    border: 0;
    margin: 0 4px;
}

#heroCarousel .carousel-indicators [data-bs-target].active {
    background-color: #6b7280 !important;
    opacity: 1 !important;
}

/* Stats Section Styles */
.stats-section .stats-container {
    position: relative;
    background-image: url('/vendor/template/assets/images/section-background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 32px 40px;
    border-radius: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 48px;
    overflow: hidden;
    width: 100%;
    direction: ltr;
}
.stats-section .stats-container::after { content: none; }
.stats-section .stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px; /* فاصله آیکن از متن */
    position: relative;
    z-index: 1;
}
.stats-section .stat-icon-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}
.stats-section .stat-icon-bubble .icon-image { width: 28px; height: 28px; object-fit: contain; filter: brightness(0) invert(1) drop-shadow(0 1px 1px rgba(0,0,0,.15)); }
.stats-section .stat-number {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 6px;
}
.stats-section .stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
    white-space: nowrap;
}
@media (max-width: 991px) {
    .stats-section .stats-container {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 60px 16px;
        border-radius: 18px;
        background-position: center;
    }
    .stats-section .stat-item {
        justify-content: space-between;
    }
}

/* روان‌بُنه Services Section */
.rb-services-section {
    background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%);
    border-radius: 24px;
    padding: 40px 20px 50px;
    position: relative;
    overflow: hidden;
    margin-top: 50px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(132, 191, 99, 0.1);
    border: 1px solid rgba(132, 191, 99, 0.1);
}

/* خطوط منحنی پس‌زمینه */
.rb-services-section::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url('/vendor/template/assets/images/wave-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

/* عنوان با خطوط تزئینی در دو طرف */
.rb-services-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #84BF63; /* رنگ سبز برای "خدمات" */
    display: inline-flex;
    align-items: center;
    position: relative;
    margin-bottom: 30px;
    z-index: 1;
}

.rb-services-title span {
    color: #6b7280; /* رنگ طوسی برای "روان‌بُنه" */
    margin: 0 5px;
}

.rb-services-title::before,
.rb-services-title::after {
    content: "";
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #84BF63, transparent);
    display: inline-block;
    margin: 0 15px;
    position: relative;
}

.rb-services-title::before::after,
.rb-services-title::after::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #84BF63;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(132, 191, 99, 0.3);
}

/* کارت‌های خدمات */
.rb-service-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 20px 15px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rb-service-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px rgba(132, 191, 99, 0.15);
}

/* آیکون‌های خدمات */
.rb-service-icon {
    width: 85px;
    height: 85px;
    margin: 0 auto 18px auto;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(132, 191, 99, 0.1) 0%, rgba(132, 191, 99, 0.05) 100%);
    box-shadow: 0 8px 25px rgba(132, 191, 99, 0.12);
    border: 1px solid rgba(132, 191, 99, 0.1);
    transition: all 0.3s ease;
}

.rb-service-card:hover .rb-service-icon {
    background: linear-gradient(135deg, rgba(132, 191, 99, 0.15) 0%, rgba(132, 191, 99, 0.08) 100%);
    box-shadow: 0 12px 35px rgba(132, 191, 99, 0.2);
    transform: scale(1.05);
}

.icon-image {
    width: 45px;
    height: 45px;
    object-fit: contain;
    /* رنگ سبز روشن برای خود آیکن مطابق طرح دوم */
    filter:invert(89%) sepia(10%) saturate(639%) hue-rotate(81deg) brightness(60%) contrast(97%);
}

/* عنوان خدمات */
.rb-service-title {
    font-weight: 700;
    color: #1f2937;
    font-size: 1.15rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* زیرعنوان خدمات */
.rb-service-sub {
    color: #6b7280;
    font-size: 0.95rem;
    margin-top: 0;
    opacity: 0.9;
    line-height: 1.5;
}

/* ریسپانسیو */
@media (max-width: 767.98px) {
    .rb-services-section {
        padding: 30px 12px 40px;
        border-radius: 20px;
    }

    .rb-services-title {
        font-size: 1.3rem;
    }

    .rb-services-title::before,
    .rb-services-title::after {
        width: 40px;
        margin: 0 10px;
    }

    .rb-service-icon {
        width: 75px;
        height: 75px;
        border-radius: 16px;
    }

    .icon-image {
        width: 40px;
        height: 40px;
    }

    .rb-service-title {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .rb-service-sub {
        font-size: 0.85rem;
    }

    .rb-service-card {
        padding: 15px 12px;
        border-radius: 16px;
    }
}

/* روان‌بُنه Benefits Section */
#ravanbene-benefits.rb-benefits-section {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 24px;
    padding: 40px 20px;
    position: relative;
    margin-top: 50px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(132, 191, 99, 0.08);
}

/* نقطه‌های تزئینی کنار تیتر */
#ravanbene-benefits .deco-dots {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 5px;
    width: 100px;
    height: 50px;
    margin-bottom: 10px;
    margin-left: auto;
}

#ravanbene-benefits .deco-dots span {
    width: 6px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 50%;
    display: block;
}

/* عنوان بخش */
#ravanbene-benefits .benefits-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #84BF63; /* رنگ سبز برای "مزیت‌های" */
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* راست‌چین */
    margin-top: 0;
    margin-bottom: 0;
}

#ravanbene-benefits .benefits-title span {
    color: #6b7280; /* رنگ طوسی برای "روان‌بُنه" */
    margin-right: 5px;
}

/* متن توضیحی */
#ravanbene-benefits .benefits-text {
    color: #666;
    font-size: 1rem;
    line-height: 1.8;
    text-align: right;
    margin-top: 15px;
}

/* گرید کارت‌ها */
#ravanbene-benefits .benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
}

#ravanbene-benefits .benefit-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    padding: 20px 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(132, 191, 99, 0.1);
    backdrop-filter: blur(10px);
}

#ravanbene-benefits .benefit-card:hover {
    transform: translateY(-6px) scale(1.02);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 30px rgba(132, 191, 99, 0.12);
}

#ravanbene-benefits .benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

#ravanbene-benefits .icon-image {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: invert(53%) sepia(17%) saturate(584%) hue-rotate(84deg) brightness(92%) contrast(87%);
}

#ravanbene-benefits .benefit-title {
    font-weight: 700;
    color: #333;
    font-size: 1rem;
    text-align: right;
}

/* ریسپانسیو */
@media (max-width: 991.98px) {
    #ravanbene-benefits .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #ravanbene-benefits .benefits-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    #ravanbene-benefits .benefits-grid {
        grid-template-columns: 1fr;
    }

    #ravanbene-benefits .benefit-card {
        padding: 15px;
    }

    #ravanbene-benefits .benefit-icon {
        width: 50px;
        height: 50px;
    }

    #ravanbene-benefits .icon-image {
        width: 30px;
        height: 30px;
    }
}

/* Learning Path Section */
.learning-path-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto; /* اطمینان از چسبیدن هدر به سمت راست */
}

.learning-path-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.learning-path-title span {
    color: #84BF63;
    margin-right: 5px;
}

/* نقطه‌های تزئینی کنار تیتر */
.learning-path-header .deco-dots {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 5px;
    width: 100px;
    height: 50px;
    margin-right: 15px;
}

.learning-path-header .deco-dots span {
    width: 6px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 50%;
    display: block;
}

/* محتوای اصلی */
.learning-path-wrapper {
    background: #f8faf8;
    border-radius: 20px;
    padding: 40px 20px;
    margin-bottom: 30px;
}

.learning-path-steps {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    direction: rtl;
}

/* هر مرحله */
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 20%;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: rgba(81,146,89,0.1); /* #5192591A */
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.step-icon .icon-image {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: hue-rotate(60deg) saturate(120%); /* نزدیک به سبز برند */
}

/* نمایش لوگوها با رنگ مشخص #5192591A با استفاده از ماسک */
.step-icon .icon-mask {
    width: 45px;
    height: 45px;
    display: block;
    background-color: rgb(81,146,89); /* #5192591A */
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}
.icon-profile-add {
    -webkit-mask-image: url('/vendor/template/assets/images/icons/bulk/profile-add.png');
    mask-image: url('/vendor/template/assets/images/icons/bulk/profile-add.png');
}
.icon-book {
    -webkit-mask-image: url('/vendor/template/assets/images/icons/bulk/book.png');
    mask-image: url('/vendor/template/assets/images/icons/bulk/book.png');
}
.icon-task {
    -webkit-mask-image: url('/vendor/template/assets/images/icons/bulk/task.png');
    mask-image: url('/vendor/template/assets/images/icons/bulk/task.png');
}
.icon-medal-star {
    -webkit-mask-image: url('/vendor/template/assets/images/icons/bulk/medal-star.png');
    mask-image: url('/vendor/template/assets/images/icons/bulk/medal-star.png');
}

.step-title {
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.step-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* خطوط اتصال منحنیِ نقطه‌چین بین مراحل */
.connector-line {
    flex: 1;
    position: relative;
    margin-top: 40px;
    min-width: 60px;
    height: 2px;
    background-image: linear-gradient(to left, #84BF63 50%, transparent 50%);
    background-size: 10px 1px;
}
/* فلش‌های انتهایی */
.connector-line::before,
.connector-line::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateY(-50%);
}
/* فلش سمت راست */
.connector-line::before {
    right: -5px;
}
/* فلش سمت چپ */
.connector-line::after {
    left: -5px;
}

/* ریسپانسیو */
@media (max-width: 991px) {
    .learning-path-steps {
        flex-direction: column;
    }

    .step-item {
        width: 100%;
        flex-direction: row;
        text-align: right;
        margin-bottom: 20px;
    }

    .step-icon {
        margin-bottom: 0;
        margin-left: 15px;
        width: 60px;
        height: 60px;
    }

    .step-icon .icon-image {
        width: 35px;
        height: 35px;
    }
    .step-icon .icon-mask {
        width: 35px;
        height: 35px;
    }

    .connector-line {
        width: 2px;
        height: 30px;
        margin: 10px 0;
        background-image: linear-gradient(to bottom, #84BF63 50%, transparent 50%);
        background-size: 1px 10px;
        border: 0;
        border-radius: 0;
    }
    .connector-line::before,
    .connector-line::after {
        display: none;
    }

    /* در موبایل نقطه‌ها و عنوان در یک ستون */
    .learning-path-header {
        flex-direction: column;
        align-items: flex-end;
    }

    .learning-path-header .deco-dots {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 767px) {
    .learning-path-title {
        font-size: 1.5rem;
    }

    .step-icon {
        width: 50px;
        height: 50px;
    }

    .step-icon .icon-image {
        width: 30px;
        height: 30px;
    }
    .step-icon .icon-mask {
        width: 30px;
        height: 30px;
    }

    .step-title {
        font-size: 1rem;
    }

    .step-subtitle {
        font-size: 0.8rem;
    }
}

/* استایل‌های صفحه faq.php */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.faq-accordion .accordion-item {
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 12px !important;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.faq-accordion .accordion-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.faq-accordion .accordion-header {
    margin-bottom: 0;
}

.faq-accordion .accordion-button {
    background: #fff;
    border: none;
    border-radius: 12px !important;
    padding: 20px 24px;
    font-weight: 600;
    color: #343A40;
    font-size: 16px;
    text-align: right;
    direction: rtl;
    box-shadow: none !important;
    transition: all 0.2s ease;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: #fff;
    color: #064635;
    border-bottom: 1px solid #e6e9ee;
    border-radius: 12px 12px 0 0 !important;
}

.faq-accordion .accordion-button::after {
    background-image: none;
    content: '›';
    font-size: 24px;
    font-weight: bold;
    color: #666;
    transform: rotate(90deg);
    transition: transform 0.2s ease;
    margin-left: 0;
    margin-right: auto;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(270deg);
    color: #064635;
}

.faq-accordion .accordion-collapse {
    border: none;
}

.faq-accordion .accordion-body {
    padding: 20px 24px;
    color: #666;
    line-height: 1.8;
    font-size: 15px;
    text-align: right;
    direction: rtl;
    border-top: 1px solid #f0f0f0;
}

/* موبایل */
@media (max-width: 768px) {
    .faq-accordion {
        padding: 0 10px;
    }

    .faq-accordion .accordion-button {
        padding: 16px 18px;
        font-size: 15px;
    }

    .faq-accordion .accordion-body {
        padding: 16px 18px;
        font-size: 14px;
    }
}

/* استایل‌های صفحه home.php */
/* استایل‌های مخصوص کارت‌های دوره */
.custom-course-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
}

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

.custom-course-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    margin-bottom: 0px;
}

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

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

.custom-course-category {
    background-color: #e8f5e8;
    color: #84BF63;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 12px;
    margin: 15px 15px 10px;
    border-radius: 20px;
    display: inline-block;
}

.custom-course-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 15px 10px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
}

.custom-course-instructor {
    font-size: 13px;
    color: #666;
    margin: 0 15px 15px;
}

.custom-course-instructor i {
    margin-left: 5px;
    color: #84BF63;
}

.custom-course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 15px 15px;
    font-size: 13px;
}

.custom-course-meta .fas.fa-star {
    color: #ffa500;
    margin-left: 3px;
}

.custom-course-votes {
    color: #999;
    margin-right: 5px;
}

.custom-course-enrolled {
    color: #84BF63;
    font-weight: 600;
}

.custom-course-footer {
    padding: 15px;
    border-top: 1px solid #f0f0f0;
    background-color: #fafafa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
}

/* Badge Styles */
.custom-badge-primary {
    background-color: #84BF63;
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.custom-badge-danger {
    background-color: #dc3545;
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.custom-badge-warning {
    background-color: #ffc107;
    color: #212529;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.custom-badge-members {
    background-color: #6f42c1;
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.custom-badge-free {
    background-color: #84BF63;
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* Section Controls */
.section-controls {
    display: flex;
    gap: 10px;
}

.carousel-control-prev,
.carousel-control-next {
    position: relative;
    width: 40px;
    height: 40px;
    background-color: #84BF63;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    transition: background-color 0.3s;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: var(--primary-hover);
    color: white;
}

/* View All Link */
.view-all-link {
    color: #4ade80;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.view-all-link:hover {
    color: #16a34a;
}

/* استایل های جدید از index.php */
/* استایل های کاروسل اصلی */
.hero-section {
    background-color: #fff;
    color: #333;
    padding: 20px 0;
}

.hero-text-box {
    padding-right: 1.5rem;
}

.main-heading {
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.slider-controls {
    margin-top: 1rem;
}

.slider-nav {
    width: 40px;
    height: 40px;
    background-color: #84BF63;
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    border: none;
}

/* استایل بخش آمار */
.stats-section {
    margin-top: 2rem;
}

.stats-container {
    background-image: url('/vendor/template/assets/images/section-background.png');
    background-size: cover;
    background-position: center;
    padding: 1rem 2rem;
    border-radius: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.stat-item {
    text-align: center;
    padding: 0.5rem 1rem;
}

.stat-number {
    font-weight: bold;
    color: white;
    font-size: 1.5rem;
}

.stat-label {
    color: white;
    font-size: 0.9rem;
}

/* استایل بخش دوره ها */
.courses-section, .new-courses-section {
    margin-top: 2rem;
    background-color: #EEF5EF;
    padding: 30px 0;
    border-radius: 15px;
}

/* برای متصل کردن section های دوره ها */
.courses-section + .courses-section,
.courses-section + .articles-section,
.articles-section + .courses-section {
    margin-top: 0;
    border-radius: 0;
}

/* برای اولین و آخرین section */
.courses-section:first-of-type {
    border-radius: 15px 15px 0 0;
}

.courses-section:last-of-type,
.articles-section:last-of-type {
    border-radius: 0 0 15px 15px;
}

.courses-section .section-title {
    color: var(--primary-light);
    font-weight: bold;
    position: relative;
    padding-right: 15px;
    border-right: 4px solid var(--primary-light);
}

/* مقالات */
.articles-section {
    margin-top: 2rem;
}

/* استایل‌های carousel indicators */
.carousel-indicators button {
    border-radius: 50%;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    opacity: 1 !important;
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    transform: scale(0.8);
}

.carousel-indicators button:hover {
    opacity: 0.8 !important;
    transform: scale(1.1);
}

/* ——— بازطراحی کارت‌ها و سکشن دوره‌ها مطابق طرح ——— */
.courses-section {
    background-color: #EAF4EA; /* پس‌زمینه سبز بسیار روشن مطابق طرح */
    padding: 30px 0;
    position: relative;
}

/* الگوی نقطه‌ای تزئینی کنار تیتر سکشن (شبیه تصویر، سمت راست عنوان) */
.courses-section .container::before {
    content: "";
    position: absolute;
    top: 8px;
    right: 20px;
    width: 70px;
    height: 30px;
    background-image: radial-gradient(#cde6cd 2px, transparent 2px);
    background-size: 10px 10px;
    opacity: .9;
    pointer-events: none;
}

.courses-section .section-title {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.15rem;
    border-right: none !important; /* جلوگیری از خط عمودی پیش‌فرض */
    padding-right: 14px; /* فاصله برای خط تزئینی سمت راست در حالت RTL */
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: 'Vazirmatn', sans-serif; /* اطمینان از فونت درست برای تیتر */
}
/* اگر در استایل‌های سراسری ::before/::after تعریف شده، غیرفعال شود */
.courses-section .section-title::before { content: none !important; }
/* خط تزئینی کوچک مطابق طرح، با فاصله مناسب از متن */
.courses-section .section-title::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 22px;
    border-radius: 4px;
    background: currentColor; /* هم‌رنگ عنوان */
}

.custom-course-card {
    background: #fff;
    border: 1px solid #E6EFE6;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.custom-course-image {
    height: 210px;
    border-bottom: 1px solid #F0F3EF;
}

.custom-course-category {
    background-color: #FFF7E8; /* نزدیک به نارنجی بسیار روشن در طرح */
    color: #F59E0B;
    font-size: 12px;
    font-weight: 600;
    margin: 14px 14px 8px;
    padding: 6px 10px;
    border-radius: 999px;
    display: inline-block;
}

.custom-course-title {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 14px 8px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px; /* دو خط ثابت */
}

/* ردیف متا زیر عنوان (امتیاز/ثبت‌نام/نوع) */
.custom-course-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px 8px;
    color: #6b7280;
    font-size: 12px;
    flex-wrap: wrap; /* جلوگیری از خروج آیتم‌ها از کادر */
    row-gap: 6px;
    column-gap: 8px;
}
.custom-course-meta-line .meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    white-space: normal; /* اجازه شکستن متن در موبایل */
}
.custom-course-meta-line i { color: #84BF63; }

/* نوار پایین کارت مطابق طرح */
.custom-course-bottombar {
    background: #EAF4EA;
    border-top: 1px solid #D7EAD7;
    color: #2f855a;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.custom-course-bottombar .left { font-weight: 700; }
.custom-course-bottombar .right { opacity: .8; }
/* Equalize bottom bar height and pin it */
.custom-course-card { display: flex; flex-direction: column; }
.course-card-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.custom-course-bottombar { min-height: 52px; margin-top: auto; }
.course-footer-new { min-height: 52px; margin-top: auto; }
.price-text { white-space: nowrap; }

/* کنترل‌های ناوبری دایره‌ای بخش */
.section-controls button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: #a7e3ad;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease, background .2s ease;
}
.section-controls button i { color: #fff; }
.section-controls button:hover { transform: translateY(-2px); background: #84BF63; }
.view-all-link { color: #2f855a; font-weight: 700; }

.custom-course-instructor {
    font-size: 12.5px;
    color: #6b7280;
    margin: 0 14px 12px;
}

.custom-course-meta {
    margin: 0 14px 12px;
    font-size: 13px;
}

.custom-course-meta .fas.fa-star { color: #FDB022; }
.custom-course-votes { color: #9AA2AF; }
.custom-course-enrolled { color: var(--primary-color); font-weight: 700; }

.custom-course-footer {
    background-color: #FAFAFA;
    border-top: 1px solid #EEF2EE;
    padding: 12px 14px;
    min-height: 52px;
}

/* دکمه‌های ناوبری اسلایدر سکشن (دایره سبز) */
.section-controls .carousel-control-prev,
.section-controls .carousel-control-next {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 6px 20px rgba(132,191,99,.35);
}

.section-controls .carousel-control-prev:hover,
.section-controls .carousel-control-next:hover {
    background-color: var(--primary-hover);
}

.view-all-link { color: var(--primary-color); font-weight: 700; }
.view-all-link:hover { color: var(--primary-hover); }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .custom-course-title {
        font-size: 14px;
        height: auto;
    }

    .custom-course-image {
        height: 150px;
    }

    .section-controls {
        margin-top: 10px;
    }
    /* چینش متا در دو ردیف و جلوگیری از بیرون‌زدگی */
    .custom-course-meta-line { justify-content: flex-start; }
    .custom-course-meta-line .meta { white-space: nowrap; }

    .stats-container {
        flex-direction: column;
    }

    .stat-item {
        margin-bottom: 1rem;
    }

    .hero-text-box {
        text-align: center;
        padding-right: 0;
    }

    /* اصلاح indicators در موبایل */
    .carousel-indicators {
        bottom: -30px !important;
    }

    .carousel-indicators button {
        width: 8px !important;
        height: 8px !important;
        border-radius: 50% !important;
        margin: 0 3px !important;
    }
}

/* استایل‌های اطلاعات تماس */
.contact-info .phone-number,
.contact-info .email-contact {
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-info .phone-number:hover,
.contact-info .email-contact:hover {
    transform: translateX(-5px);
    text-decoration: none;
}

.contact-info .phone-number:hover .d-flex,
.contact-info .email-contact:hover .d-flex {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-info small {
    font-size: 11px;
    line-height: 1.3;
    padding-right: 8px;
}

/* تنظیمات موبایل برای اطلاعات تماس */
@media (max-width: 768px) {
    /* تنظیم padding برای footer-container در حالت‌های مختلف */
    .footer-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        min-width: 0 !important;
    }

    /* تنظیم padding برای زوم‌های مختلف */
    @media (max-width: 1200px) and (min-width: 769px) {
        .footer-container {
            padding-left: 20px !important;
            padding-right: 20px !important;
        }
    }

    /* تنظیم padding برای نمایشگرهای بزرگ‌تر */
    @media (min-width: 1201px) {
        .footer-container {
            padding-left: 25px !important;
            padding-right: 25px !important;
        }
    }

    /* تنظیم padding برای حالت‌های خیلی بزرگ */
    @media (min-width: 1400px) {
        .footer-container {
            padding-left: 30px !important;
            padding-right: 30px !important;
        }
    }
    
    .contact-info .d-flex {
        margin-bottom: 8px;
    }

    .contact-info small {
        font-size: 10px;
        padding-right: 5px;
    }

    .contact-info .bg-white {
        min-width: 120px !important;
    }

    .contact-info .email-contact .bg-white span {
        font-size: 11px !important;
    }

    /* تنظیم موقعیت muchat launcher در موبایل (100 پیکسل بالاتر) */
    div[style*="z-index: 2000000002"] {
        margin-bottom: 100px !important;
    }

    /* پنهان کردن دکمه بازگشت به بالا در موبایل */
    .return-to-top-button {
        display: none !important;
    }
    
    /* دکمه راهنما باید در موبایل نمایش داده شود */
    #show-guide-btn {
        display: flex !important;
    }
}

/* استایل‌های container اصلی کپی‌رایت */
.copyright-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
}

/* استایل‌های نقاط تزئینی کپی‌رایت */
.deco-dots {
    display: inline-grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    width: 36px;
    height: 22px;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-shrink: 0;
}

.deco-dots span {
    width: 5px;
    height: 5px;
    background-color: rgba(128, 128, 128, 0.4);
    border-radius: 50%;
    display: inline-block;
    animation: dotPulse 2s ease-in-out infinite;
    box-shadow: 0 0 3px rgba(128, 128, 128, 0.2);
}

.deco-dots span:nth-child(1) { animation-delay: 0s; }
.deco-dots span:nth-child(2) { animation-delay: 0.1s; }
.deco-dots span:nth-child(3) { animation-delay: 0.2s; }
.deco-dots span:nth-child(4) { animation-delay: 0.3s; }
.deco-dots span:nth-child(5) { animation-delay: 0.4s; }
.deco-dots span:nth-child(6) { animation-delay: 0.5s; }
.deco-dots span:nth-child(7) { animation-delay: 0.6s; }
.deco-dots span:nth-child(8) { animation-delay: 0.7s; }
.deco-dots span:nth-child(9) { animation-delay: 0.8s; }
.deco-dots span:nth-child(10) { animation-delay: 0.9s; }
.deco-dots span:nth-child(11) { animation-delay: 1.0s; }
.deco-dots span:nth-child(12) { animation-delay: 1.1s; }
.deco-dots span:nth-child(13) { animation-delay: 1.2s; }
.deco-dots span:nth-child(14) { animation-delay: 1.3s; }
.deco-dots span:nth-child(15) { animation-delay: 1.4s; }
.deco-dots span:nth-child(16) { animation-delay: 1.5s; }
.deco-dots span:nth-child(17) { animation-delay: 1.6s; }
.deco-dots span:nth-child(18) { animation-delay: 1.7s; }
.deco-dots span:nth-child(19) { animation-delay: 1.8s; }
.deco-dots span:nth-child(20) { animation-delay: 1.9s; }

.copyright-section {
    width: 100%;
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* تنظیمات موبایل برای نقاط */
@media (max-width: 768px) {
    .copyright-container {
        flex-direction: column;
        gap: 10px;
        justify-content: center;
    }

    .deco-dots-container {
        order: 2;
    }

    .copyright-section {
        order: 1;
    }

    .deco-dots {
        width: 28px;
        height: 17px;
    }

    .deco-dots span {
        width: 4px;
        height: 4px;
    }
}

.btn-outline-success {
    margin-right: 0px !important;
}

/* استایل‌های بخش دسته‌بندی‌های خانه */
.home-categories-section {
    direction: rtl;
}

.home-categories-section .category-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: right;
}

.home-categories-section .section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
}

.home-categories-section .section-title span {
    color: #84BF63;
    margin-right: 5px;
}

.home-categories-section .decor-dots {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 5px;
    width: 100px;
    height: 50px;
    margin-right: 15px;
}

.home-categories-section .decor-dots span {
    width: 6px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 50%;
    display: block;
}

/* نوار افقی دسته‌ها */
.home-categories-section .categories-strip {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 20px;
}

.home-categories-section .categories-strip::-webkit-scrollbar {
    display: none;
}

/* کارت دسته */
.home-categories-section .category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 150px;
    height: 180px; /* یکسان‌سازی ارتفاع کارت‌ها در دسکتاپ */
    padding: 10px 8px;
}

.home-categories-section .icon-box {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    background: #f8faf8;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
}

.home-categories-section .icon-box i {
    font-size: 30px;
    line-height: 1;
    color: rgb(81,146,89);
}

.home-categories-section .icon-image {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.home-categories-section .cat-title {
    margin-top: 6px;
    font-weight: 700;
    color: #333;
    font-size: 1rem;
    text-align: center;
    line-height: 1.35;
    min-height: 44px; /* حداکثر دو خط */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-categories-section .cat-meta {
    color: #84BF63;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: auto; /* چسباندن به پایین کارت */
}

/* دکمه‌های ناوبری */
.home-categories-section .nav-controls {
    display: flex;
    gap: 10px;
}

.home-categories-section .cat-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #84BF63;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.home-categories-section .cat-nav:hover {
    background: #84BF63;
    color: #fff;
}

@media (max-width: 991px) {
    .home-categories-section .section-title {
        font-size: 1.5rem;
    }

    .home-categories-section .category-card {
        min-width: 130px;
        height: 160px; /* کوتاه‌تر در تبلت */
    }

    .home-categories-section .icon-box {
        width: 70px;
        height: 70px;
    }

    .home-categories-section .icon-image {
        width: 35px;
        height: 35px;
    }

    /* در تبلت نقطه‌ها و عنوان در یک ردیف */
    .home-categories-section .category-header {
        flex-direction: row;
    }

    .home-categories-section .decor-dots {
        margin-right: 10px;
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .home-categories-section .section-title {
        font-size: 1.3rem;
    }

    .home-categories-section .icon-box {
        width: 60px;
        height: 60px;
    }

    .home-categories-section .icon-image {
        width: 30px;
        height: 30px;
    }

    .home-categories-section .cat-title {
        font-size: 0.9rem;
    }

    .home-categories-section .cat-meta {
        font-size: 0.8rem;
        margin-top: auto;
    }

    /* در موبایل نقطه‌ها و عنوان در یک ستون */
    .home-categories-section .category-header {
        flex-direction: column;
        align-items: flex-end;
    }

    .home-categories-section .decor-dots {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* استایل‌های اسلایدر دسته‌بندی‌های روان‌شناسی */
.psychology-categories-slider {
    background-color: #fff;
    margin-bottom: 2rem;
}

.psychology-categories-slider .category-item {
    transition: all 0.3s ease;
    min-width: 100px;
    color: inherit !important;
    display: block;
    text-align: center;
    flex-shrink: 0;
}

.psychology-categories-slider .category-item:hover {
    transform: translateY(-5px);
    text-decoration: none !important;
    color: inherit !important;
}

.psychology-categories-slider .category-item:hover .icon-wrapper {
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.2);
    background-color: #E8F5E9 !important;
}

.psychology-categories-slider .category-item:hover p {
    color: #84BF63 !important;
}

.psychology-categories-slider .icon-wrapper {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.psychology-categories-slider .categories-slider {
    scroll-behavior: smooth;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1rem;
    align-items: center;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
}

.psychology-categories-slider .categories-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.psychology-categories-slider .nav-btn {
    transition: all 0.3s ease;
}

.psychology-categories-slider .nav-btn:hover:not(:disabled) {
    background-color: #216821 !important;
    transform: scale(1.1);
}

.psychology-categories-slider .nav-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

.psychology-categories-slider .nav-btn:disabled:hover {
    background-color: var(--primary-color) !important;
    transform: none;
}

/* استایل‌های موبایل */
@media (max-width: 768px) {
    .psychology-categories-slider .categories-wrapper {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    .psychology-categories-slider .nav-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px;
        margin-left: -8px !important;
        margin-right: -8px !important;
        z-index: 15 !important;
    }
    
    .psychology-categories-slider .categories-slider {
        gap: 0.75rem;
        padding: 0;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE */
        white-space: nowrap;
        width: 100%;
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }
    
    .psychology-categories-slider .categories-slider::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }
    
    .psychology-categories-slider .category-item {
        min-width: 85px !important;
        max-width: 85px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex: 0 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        white-space: normal;
        text-align: center !important;
    }
    
    .psychology-categories-slider .icon-wrapper {
        width: 60px !important;
        height: 60px !important;
        padding: 0.75rem !important;
    }
    
    .psychology-categories-slider .icon-wrapper i {
        font-size: 20px !important;
    }
    
    .psychology-categories-slider .category-item p {
        font-size: 11px !important;
        line-height: 1.2;
        margin-top: 0.25rem !important;
        word-break: break-word;
        hyphens: auto;
    }
    
    .psychology-categories-slider {
        margin-bottom: 1rem;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

@media (max-width: 576px) {
    .psychology-categories-slider .categories-wrapper {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .psychology-categories-slider .nav-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px;
        opacity: 0.9;
        margin-left: -4px !important;
        margin-right: -4px !important;
    }
    
    .psychology-categories-slider .nav-btn:hover {
        opacity: 1;
    }
    
    .psychology-categories-slider .categories-slider {
        gap: 0.5rem;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
    
    .psychology-categories-slider .category-item {
        min-width: 75px !important;
        max-width: 75px !important;
        flex: 0 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .psychology-categories-slider .icon-wrapper {
        width: 50px !important;
        height: 50px !important;
        padding: 0.5rem !important;
    }
    
    .psychology-categories-slider .icon-wrapper i {
        font-size: 18px !important;
    }
    
    .psychology-categories-slider .category-item p {
        font-size: 10px !important;
        line-height: 1.1;
    }
    
    .psychology-categories-slider {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
}

/* استایل‌های بخش مدرسه روان‌شناسی تخصصی */
.psychology-school-section .section-box {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #064635 0%, #519259 100%);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* استایل‌های اسلایدر دوره‌ها */
.courses-slider-section {
    background: #EAF4EA;
    padding: 18px 12px 12px;
    position: relative;
}

/* خط عمودی تزئینی در راست */
.courses-slider-section::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 10px;
    width: 3px;
    height: 44px;
    background: #84BF63;
    border-radius: 3px;
}

/* الگوی نقطه‌ای سمت راست عنوان */
.courses-slider-section .section-header {
    position: relative;
}

.courses-slider-section .section-header::before {
    content: "";
    position: absolute;
    right: 200px;
    top: 0;
    width: 74px;
    height: 30px;
    display: none;
    background-image: radial-gradient(#cde6cd 2px, transparent 2px);
    background-size: 10px 10px;
    opacity: .9;
    pointer-events: none;
    z-index: 0;
}

/* تیتر سکشن */
.courses-slider-section .section-title {
    color: #1f2937;
    font-weight: 700;
    font-size: 1.8rem;
    padding-right: 10px;
    line-height: 1.45;
    font-family: 'Vazirmatn', sans-serif !important;
    position: relative;
    z-index: 1;
}

/* خنثی‌سازی استایل عمومی که نوار سبز بعد از عنوان اضافه می‌کند */
.courses-slider-section .section-title:after {
    display: none !important;
    content: none !important;
}

/* بخش دوم تیتر به رنگ سبز و بدون زیرخط گرادیانی */
.courses-slider-section .section-title .accent {
    position: relative;
    display: inline-block;
    color: #84BF63;
    font-weight: 900;
    font-family: 'Vazirmatn', sans-serif;
}

.courses-slider-section .section-title .accent::after {
    content: none;
    display: none;
}

/* دکمه‌های نویگیشن بالای سکشن */
.courses-slider-section .nav-btn {
    width: 40px;
    height: 40px;
    background: #84BF63;
    color: #fff;
}

.courses-slider-section .nav-btn:hover:not(:disabled) {
    background-color: #216821;
    transform: scale(1.05);
}

.courses-slider-section .nav-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

.courses-slider-section .nav-btn:disabled:hover {
    background: #84BF63;
    transform: none;
}

/* اسکرول‌بار افقی */
.courses-slider-section .courses-slider {
    scrollbar-width: thin;
    position: relative;
    z-index: 1;
}

.courses-slider-section .courses-slider::-webkit-scrollbar {
    height: 8px;
}

.courses-slider-section .courses-slider::-webkit-scrollbar-thumb {
    background: rgba(132,191,99,.6);
    border-radius: 10px;
}

/* شخصی‌سازی کارت‌ها برای انطباق با طرح نمونه */
.courses-slider-section .custom-course-card {
    border-radius: 22px;
    box-shadow: 0 6px 28px rgba(0,0,0,.08);
}

.courses-slider-section .custom-course-image {
    height: 240px;
}

.courses-slider-section .custom-course-image .course-badge {
    display: none !important;
}

.courses-slider-section .course-card-body {
    padding: 18px 18px 12px;
}

.courses-slider-section .course-category-top .category-tag {
    background: transparent;
    color: #d97706;
    font-weight: 800;
    padding: 0;
    border-radius: 0;
    font-size: 14px;
}

.courses-slider-section .course-title-new {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    font-family: 'Vazirmatn', sans-serif !important;
}

.courses-slider-section .course-instructor-new .user-badge-circle {
    width: 36px;
    height: 36px;
}

.courses-slider-section .course-footer-new {
    border-top: 1px solid #E5E7EB;
    padding: 12px 18px;
}

/* نوار سبز زیر اسلایدر */
.courses-slider-section .slider-extend-bar {
    width: 100%;
    height: 64px;
    background: #84BF63;
    border-radius: 0 0 28px 28px;
    margin-top: -50px;
    position: relative;
    z-index: 0;
}

/* لینک مشاهده همه زیر آخرین ستون سمت چپ کانتینر */
.courses-slider-section .section-footer {
    text-align: left;
    padding-top: 8px;
    padding-left: .5rem;
    float: left;
    position: static;
    margin-top: 6px;
    display: flex;
    justify-content: flex-start;
    font-family: 'Vazirmatn', sans-serif !important;
}

.courses-slider-section .section-footer .view-all-link {
    color: #2f855a;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 14px;
    letter-spacing: -.2px;
}

.courses-slider-section .section-footer .view-all-link::after {
    content: '\f060';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
}

.courses-slider-section .section-footer .view-all-link:hover {
    color: #1e6d45;
}

@media (max-width: 991px) {
    .courses-slider-section .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .courses-slider-section {
        padding-bottom: 16px;
    }
    
    .courses-slider-section .section-title {
        font-size: 1.3rem;
        line-height: 1.45;
    }
    
    .courses-slider-section .section-footer {
        padding-left: .25rem;
    }
}

/* استایل‌های کارت دوره‌ها - Global */
.custom-course-card {
    background: #ffffff;
    border: none;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    font-family: 'Vazirmatn', sans-serif;
    position: relative;
    max-width: 380px;
    margin: 0 auto;
}

.custom-course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.custom-course-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    background: #2C3E50;
}

.custom-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.1);
    opacity: 0.9;
}

/* Grid view specific styles */
.course-card-grid-new {
    background: #ffffff;
    border: 1px solid #E6EFE6;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card-grid-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.course-grid-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}



.course-card-grid-new:hover .course-grid-image {
    transform: scale(1.05);
}

.course-grid-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-grid-category {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 12px;
    align-self: flex-start;
}

.course-grid-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.25;
    margin: 0 0 12px 0;
    height: 2.5em; /* ارتفاع ثابت برای دو خط */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-grid-title a {
    color: inherit;
    text-decoration: none;
    display: block;
    height: 100%;
}

.course-grid-title a:hover {
    color: #1e40af;
}

.course-grid-instructor {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.instructor-grid-avatar {
    flex-shrink: 0;
}

.instructor-grid-photo {
    width: 35px;
    height: 35px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.instructor-grid-default-avatar {
    width: 35px;
    height: 35px;
    background: #84BF63;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.instructor-grid-name {
    font-size: 14px;
    color: #4b5563;
    font-weight: 500;
    flex: 1;
    min-width: 0;
}

.course-grid-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.grid-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6b7280;
}

.grid-rating i {
    color: #fbbf24;
}

.grid-votes {
    color: #9ca3af;
}

.grid-students {
    font-size: 13px;
    color: #84BF63;
    font-weight: 600;
}

.course-grid-footer {
    margin-top: auto;
    padding-top: 8px;
}

.course-action-buttons {
    display: flex;
    gap: 8px;
}

.btn-course-action {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-course-action.btn-free {
    background: #84BF63;
    color: #ffffff;
}

.btn-course-action.btn-premium {
    background: #f59e0b;
    color: #ffffff;
}

.btn-course-action.btn-members-only {
    background: #6b7280;
    color: #ffffff;
}

.btn-course-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.course-badge {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    padding: 4px 10px;
    border-radius: 15px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.badge-live { background: #ef4444; }
.badge-free {
    background: #84BF63;
    color: #fff;
}
.badge-premium { background: #f59e0b; }

.course-card-body {
    padding: 12px 16px;
    background: #ffffff;
    position: relative;
}

.course-category-top .category-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: -.2px;
    margin-bottom: 8px;
}

.course-title-new {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: #1f2937;
    font-family: 'Vazirmatn', sans-serif;
    margin-top: 10px;
    margin-bottom: 11px;
    height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-title-link { 
    color: inherit; 
    text-decoration: none; 
    font-family: 'Vazirmatn', sans-serif;
    display: block;
    height: 100%;
}

.course-title-link:hover { color: #1e40af; }

.course-instructor-new .instructor-name a { 
    text-decoration: none; 
    color: #4b5563;
    font-weight: 600;
    font-size: 14px;
}

.course-meta-info .course-rating-new i { color: #fbbf24; }

.course-meta-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}

/* آیکون کاربر در ردیف مدرس */
.user-badge-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #84BF63;
    color: #fff;
    border: 2px solid #ffffff;
    font-size: 16px;
    font-weight: 700;
}

/* عکس استاد در کارت دوره */
.teacher-avatar {
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.teacher-avatar:hover img {
    transform: scale(1.05);
}


.course-footer-new {
    padding: 10px 16px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 0 0 24px 24px;
}

.price-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
}

.badge-vip { background: #3b82f6; color: #fff; }
.badge-members {
    background: transparent;
    color: #1f2937;
    font-weight: 700;
}
.badge-paid { background: #111827; color: #fff; display: none;}

/* برچسب مخصوص اعضا در مرکز فوتر */
.members-only-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1f2937;
    font-weight: 700;
    font-size: 14px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
}

.members-only-label::before {
    content: "\f023";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #1f2937;
    font-size: 12px;
}

/* Section title default */
.courses-slider-section .section-title { 
    font-size: 1.15rem; 
    font-weight: 800; 
    color: #1f2937; 
    position: relative; 
    line-height: 1.25; 
    font-family: 'Vazirmatn', sans-serif; 
}

.courses-slider-section .section-title .accent{ color: #84BF63; }

.courses-slider-section .section-title:after { 
    content: ''; 
    display: inline-block; 
    width: 42px; 
    height: 4px; 
    background: #28a745; 
    border-radius: 4px; 
    margin-right: 8px; 
    vertical-align: middle; 
}

/* Equal-height footer and sticky bottom bar */
.custom-course-card { 
    display: flex; 
    flex-direction: column; 
}

.course-card-body { 
    display: flex; 
    flex-direction: column; 
    flex: 1 1 auto; 
}

.custom-course-bottombar { 
    min-height: 52px; 
    margin-top: auto; 
}

.course-footer-new { 
    min-height: 52px; 
    margin-top: auto; 
}

.price-text { 
    white-space: nowrap; 
}

/* استایل‌های دکمه‌های footer دوره */
.course-action-buttons {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-top: 8px;
    align-items: center;
}

/* تنظیم برای متن‌های ساده */
.btn-course-action.btn-members-only,
.btn-course-action.btn-free,
.btn-course-action.btn-premium:not(.btn-real) {
    flex: none !important;
    width: auto !important;
    min-width: auto !important;
}

/* جای ثابت برای متن‌های ساده - جابجا شده */
.course-action-buttons .btn-members-only {
    float: left !important;  /* سمت چپ */
    margin-right: auto !important;
}

.course-action-buttons .btn-free {
    float: right !important;  /* سمت راست */
    margin-left: auto !important;
}

/* پاک کردن float */
.course-action-buttons::after {
    content: "";
    display: table;
    clear: both;
}

.btn-course-action {
    padding: 8px 12px;
    border-radius: 15px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    font-family: 'Vazirmatn', sans-serif;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
}

/* override کلی برای همه دکمه‌ها - متن ساده */
.btn-course-action {
    background: transparent !important;
    color: inherit !important;
    border: none !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    min-height: auto !important;
    cursor: default !important;
    flex: none !important;
    width: auto !important;
    min-width: auto !important;
    display: inline !important;
    border-radius: 0 !important;
    transition: none !important;
}

/* فقط دکمه‌های واقعی استایل بگیرن */
.btn-course-action.btn-real {
    background: #3b82f6 !important;
    color: white !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    min-height: 36px !important;
    cursor: pointer !important;
    flex: 1 !important;
    width: auto !important;
}

.btn-course-action.btn-real:hover {
    background: #2563eb !important;
}

/* دکمه رایگان - فقط متن ساده */
.btn-course-action.btn-free {
    background: transparent !important;
    color: #84BF63 !important;
    border: none !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    min-height: auto !important;
    cursor: default !important;
}

.btn-course-action.btn-free:hover {
    background: transparent !important;
    transform: none !important;
}

.btn-course-action.btn-premium {
    background: #3b82f6;
    color: white;
}

/* override برای دکمه‌ای که کلاس premium دارد اما باید متن ساده باشد */
.btn-course-action.btn-premium:not(.btn-real) {
    background: transparent !important;
    color: #84BF63 !important;
    border: none !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    min-height: auto !important;
    cursor: default !important;
    flex: none !important;
    width: auto !important;
    min-width: auto !important;
}

/* دکمه مخصوص اعضا - فقط متن ساده */
.btn-course-action.btn-members-only {
    background: transparent !important;
    color: #1f2937 !important;
    border: none !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    min-height: auto !important;
    cursor: default !important;
    flex: none !important;
    width: auto !important;
    min-width: auto !important;
}

.btn-course-action.btn-members-only:hover {
    background: transparent !important;
    transform: none !important;
}

/* اگر دکمه واقعی وجود دارد، کل عرض را بگیرد */
.course-action-buttons .btn-course-action.btn-real {
    flex: 1 !important;
    min-width: 0;
}

/* متن‌های ساده flex نگیرن */
.course-action-buttons .btn-course-action:not(.btn-real) {
    flex: none !important;
    width: auto !important;
    min-width: auto !important;
}

/* وقتی فقط یکی از متن‌ها وجود دارد - جابجا شده */
.course-action-buttons .btn-free:only-child {
    margin-left: auto !important;
    margin-right: 0 !important;
}

.course-action-buttons .btn-members-only:only-child {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* وقتی هیچ متنی وجود ندارد */
.course-action-buttons:empty {
    display: none !important;
}

/* Rating Stars Styling */
.course-rating-new {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #6b7280;
}

.course-rating-new .rating-number {
    font-weight: 700;
    color: #1f2937;
}

.course-rating-new .rating-count {
    font-size: 12px;
    color: #9ca3af;
    margin-right: 4px;
}

/* Course Author Section */
.course-instructor-new {
    display: flex;
    align-items: center;
    gap: 10px;
}

.course-instructor-new .instructor-name {
    flex: 1;
}

/* Course Category Top Styling */
.course-category-top {
    text-align: center;
} 

/* Premium Card Enhanced Look */
.custom-course-card.premium-card {
    border: 2px solid #3b82f6;
    position: relative;
}

.custom-course-card.premium-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8, #6f42c1);
    border-radius: 26px;
    z-index: -1;
    opacity: 0.1;
}

@media (max-width: 576px) { 
    .custom-course-image { height: 200px; } 
    .custom-course-card { max-width: 100%; margin: 0; }
    .course-card-body { padding: 16px 20px; }
    .course-footer-new { padding: 12px 20px; }
}

/* لایه نقطه‌ای روی گرادیان */
.psychology-school-section .section-box::before{
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.09) 1.2px, transparent 1.2px);
    background-size: 18px 18px;
    opacity: .6;
    pointer-events: none;
    z-index: 0;
}

.psychology-school-section .content{ 
    position: relative; 
    z-index: 1; 
}

/* دکمه سفید مطابق طرح */
.psychology-school-section .cta-btn{
    background-color: #0d5e3a; /* سبز تیره مشابه طرح */
    color: #ffffff;
    border: none;
    border-radius: 12px;
    height: 40px;
    padding: 0; /* کنترل با اجزای داخلی */
    display: inline-flex; 
    align-items: center;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.psychology-school-section .cta-btn:hover{ 
    transform: translateY(-2px); 
    box-shadow: 0 10px 24px rgba(0,0,0,.12); 
}

.psychology-school-section .cta-btn .label{ 
    order: 1; 
    color: #fff; 
    font-weight: 700; 
    padding: 0 14px; 
    font-size: .95rem; 
}

.psychology-school-section .cta-btn .icon-box{
    order: 2; /* در RTL می‌رود سمت چپ */
    width: 44px; 
    height: 100%; 
    background: #fff; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    border-radius: 12px 0 0 12px;
}

.psychology-school-section .cta-btn .icon-box i{ 
    color: #84BF63; 
}

.psychology-school-section .title{ 
    font-weight: 800; 
}

.psychology-school-section .desc{ 
    color: #000D15; 
    line-height: 1.9; 
}

/* تزئینات سمت تصویر */
.psychology-school-section .circle-bg{ 
    background-color: #84cc16; 
    width: 320px; 
    height: 320px; 
    border-radius: 50%; 
    top: 46%; 
    left: 48%; 
    transform: translate(-50%, -50%); 
    z-index: 1; 
    opacity: .9; 
}

.psychology-school-section .orange-dot{ 
    background-color: #f97316; 
    width: 28px; 
    height: 28px; 
    border-radius: 50%; 
    top: 22%; 
    left: 68%; 
    z-index: 3; 
}

/* استایل لودینگ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-overlay-content {
    position: relative;
    z-index: 10000;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* استایل‌های صفحه faq.php */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.faq-accordion .accordion-item {
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 12px !important;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.faq-accordion .accordion-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.faq-accordion .accordion-header {
    margin-bottom: 0;
}

.faq-accordion .accordion-button {
    background: #fff;
    border: none;
    border-radius: 12px !important;
    padding: 20px 24px;
    font-weight: 600;
    color: #343A40;
    font-size: 16px;
    text-align: right;
    direction: rtl;
    box-shadow: none !important;
    transition: all 0.2s ease;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: #fff;
    color: #064635;
    border-bottom: 1px solid #e6e9ee;
    border-radius: 12px 12px 0 0 !important;
}

.faq-accordion .accordion-button::after {
    background-image: none;
    content: '›';
    font-size: 24px;
    font-weight: bold;
    color: #666;
    transform: rotate(90deg);
    transition: transform 0.2s ease;
    margin-left: 0;
    margin-right: auto;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(270deg);
    color: #064635;
}

.faq-accordion .accordion-collapse {
    border: none;
}

.faq-accordion .accordion-body {
    padding: 20px 24px;
    color: #666;
    line-height: 1.8;
    font-size: 15px;
    text-align: right;
    direction: rtl;
    border-top: 1px solid #f0f0f0;
}

/* موبایل */
@media (max-width: 768px) {
    .faq-accordion {
        padding: 0 10px;
    }

    .faq-accordion .accordion-button {
        padding: 16px 18px;
        font-size: 15px;
    }

    .faq-accordion .accordion-body {
        padding: 16px 18px;
        font-size: 14px;
    }
}


/* سبک‌های مخصوص صفحه اساتید */
.professor-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.professor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

.avatar-wrapper img {
    transition: transform 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    border: 4px solid #f8f9fa;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(25, 135, 84, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.professor-card:hover .avatar-overlay {
    opacity: 1;
}

.professor-card:hover .avatar-wrapper img {
    transform: scale(1.05);
}

.pagination .page-item:not(.active) > .page-link,
.pagination .page-item.disabled > .page-link {
    color: #00430E !important;
    border-color: #e9ecef;
}

.pagination .page-item:not(.active) > .page-link:hover,
.pagination .page-item:not(.active) > .page-link:focus {
    color: #002A09 !important;
    background-color: rgba(0, 67, 14, 0.1);
    border-color: #00430E;
}

.pagination .page-item.active > .page-link {
    background-color: #00430E;
    border-color: #00430E;
}

/* استایل هدر فیلتر (برای موبایل) */
.filter-header {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    border-right: 4px solid #84BF63;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.filter-header:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    border-right-color: #6BA04A;
}

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

.filter-header-text {
    font-weight: 600;
    color: #495057;
    font-size: 16px;
}

.filter-arrow {
    color: #6c757d;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.filter-arrow.rotated {
    transform: rotate(180deg);
}

/* استایل نوار کنترل */
.control-bar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.control-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.control-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-buttons {
    display: flex;
    gap: 8px;
}

.filter-btn {
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    color: #495057;
    padding: 8px 16px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.filter-btn:hover {
    border-color: #00430E;
    color: #00430E;
    text-decoration: none;
}

.filter-btn.active {
    background: #00430E;
    border-color: #00430E;
    color: white;
}

.filter-btn.active:hover {
    background: #00330A;
    border-color: #00330A;
    color: white;
}

.control-label {
    color: #495057;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

.control-select {
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    color: #495057;
    padding: 8px 12px;
    font-size: 14px;
    min-width: 150px;
    transition: all 0.3s ease;
}

.control-select:focus {
    border-color: #00430E;
    box-shadow: 0 0 0 2px rgba(0, 67, 14, 0.3);
    outline: none;
}

.control-select option {
    background: #ffffff;
    color: #495057;
}

.control-center {
    flex: 1;
    max-width: 350px;
    min-width: 250px;
}

.search-form {
    width: 100%;
}

.search-group {
    display: flex;
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-group:focus-within {
    border-color: #00430E;
    box-shadow: 0 0 0 2px rgba(0, 67, 14, 0.3);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #495057;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
}

.search-input::placeholder {
    color: #6c757d;
}

.search-btn {
    background: #84BF63;
    border: none;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #7cb342;
}

.control-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-link {
    display: block;
    position: relative;
}

.avatar-link:hover .avatar-overlay {
    opacity: 1;
}


/* استایل برای دسکتاپ */
@media (min-width: 769px) {
    .control-bar {
        display: block !important;
        max-height: none !important;
        opacity: 1 !important;
        transform: none !important;
        padding: 20px !important;
    }
    
    .filter-header {
        display: none !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    /* نمایش هدر فیلتر فقط در موبایل */
    .filter-header {
        display: block;
    }
    
    /* مخفی کردن باکس فیلتر به صورت پیش‌فرض در موبایل */
    .control-bar {
        max-height: 0;
        padding: 0 15px;
        border-radius: 8px;
        margin-top: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        transform: translateY(-10px);
    }
    
    /* نمایش باکس فیلتر وقتی فعال است */
    .control-bar.show {
        max-height: 1000px;
        padding: 15px;
        opacity: 1;
        transform: translateY(0);
    }
    
    .control-bar-content {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .control-left {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .filter-section {
        background: #fff;
        padding: 15px;
        border-radius: 8px;
        border: 1px solid #e9ecef;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .control-label {
        text-align: right;
        font-size: 13px;
        color: #495057;
        margin-bottom: 5px;
    }

    .filter-buttons {
        display: flex;
        gap: 6px;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .filter-btn {
        flex: 1;
        padding: 8px 6px;
        font-size: 12px;
        text-align: center;
        min-width: 0;
        border-radius: 6px;
        white-space: nowrap;
    }

    .results-counter {
        background: #f8f9fa;
        padding: 10px 15px;
        border-radius: 6px;
        margin-top: 10px;
        text-align: center;
        border: 1px solid #e9ecef;
    }

    .results-text {
        font-size: 12px;
        color: #6c757d;
        line-height: 1.4;
    }
    
    .control-center {
        width: 100%;
        max-width: none;
        min-width: auto;
        order: 2;
    }

    .search-group {
        width: 100%;
        border-radius: 8px;
    }
    
    .search-input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .search-btn {
        padding: 12px 15px;
    }

    .control-right {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        order: 3;
    }
    
    .control-select {
        width: 100%;
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 8px;
    }
}

/* تغییر رنگ دکمه‌های مشاهده */
.btn-success {
    background-color: #00430E !important;
    border-color: #00430E !important;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #00330A !important;
    border-color: #00330A !important;
    transform: translateY(-2px);
}

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.professors-grid .card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.professors-grid .card:hover {
    border-color: rgba(25, 135, 84, 0.2);
}

@media (max-width: 768px) {
    .d-flex.flex-wrap .btn-group {
        margin-bottom: 10px;
    }

    .input-group {
        min-width: 100%;
    }

    .professor-card {
        margin-bottom: 20px;
    }
}

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

.professor-card {
    animation: fadeInUp 0.6s ease forwards;
}

.professor-card:nth-child(1) { animation-delay: 0.1s; }
.professor-card:nth-child(2) { animation-delay: 0.2s; }
.professor-card:nth-child(3) { animation-delay: 0.3s; }
.professor-card:nth-child(4) { animation-delay: 0.4s; }

/* انیمیشن برای dropdown */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
        padding: 0 15px;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 1000px;
        padding: 15px;
    }
}

/* انیمیشن برای بسته شدن */
@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 1000px;
        padding: 15px;
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
        padding: 0 15px;
    }
}

/* استایل شمارنده نتایج */
.results-counter {
    margin-top: 10px;
    padding: 8px 0;
    text-align: center;
    border-top: 1px solid rgba(233, 236, 239, 0.5);
}

.results-text {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
    display: block;
}

/* ========================================
   برنامه هفتگی - Schedule Styles
   ======================================== */

.schedule-container {
    background: white;
    min-height: 100vh;
    padding: 2rem 0;
}

.schedule-card {
    background: white;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: none;
    overflow: hidden;
}

.day-header {
    background: white;
    color: #333;
    padding: 1rem 1.5rem;
    margin-bottom: 0;
    text-align: right;
    font-weight: normal;
    border-bottom: none;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    position: relative;
    border-radius: 8px 8px 0 0;
}

.day-header::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #84BF63;
    border-radius: 3px 0 0 3px;
}

.day-header:hover {
    background: #f8f9fa;
}

.day-header .arrow {
    color: #666;
    font-size: 1rem;
    font-weight: normal;
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
}

.day-header .arrow svg {
    width: 20px;
    height: 20px;
}

.day-header.expanded .arrow {
    transform: rotate(180deg);
}

.day-content {
    display: none;
    padding: 0;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.day-content.expanded {
    display: block;
}

.schedule-table {
    border: none;
    margin: 0;
    background: white;
    table-layout: fixed;
    width: 100%;
}

.schedule-table thead td,
.schedule-table tbody td { text-align: right; }

.schedule-table thead td:nth-child(1),
.schedule-table tbody td:nth-child(1) { width: 40%; }

.schedule-table thead td:nth-child(2),
.schedule-table tbody td:nth-child(2) { width: 20%; }

.schedule-table thead td:nth-child(3),
.schedule-table tbody td:nth-child(3) { width: 10%; text-align: center; }

.schedule-table thead td:nth-child(4),
.schedule-table tbody td:nth-child(4) { width: 10%; text-align: center; }

.schedule-table thead td:nth-child(5),
.schedule-table tbody td:nth-child(5) { width: 10%; text-align: center; }

.schedule-table thead td:nth-child(6),
.schedule-table tbody td:nth-child(6) { width: 10%; text-align: center; }

.schedule-table tbody td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.schedule-table thead td {
    background: white;
    border: none;
    padding: 1rem;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.schedule-table tbody tr {
    border: none;
    background: white;
}

.schedule-table tbody tr:hover {
    background: white;
}

.schedule-table tbody td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
    color: #333;
}

.green-dot {
    width: 16px;
    height: 16px;
    background-image: url('/vendor/template/assets/images/icons/course-icon/play-circle.png');
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    margin-left: 8px;
}

.view-icon {
    width: 16px;
    height: 16px;
    background-image: url('/vendor/template/assets/images/icons/course-icon/eye.png');
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    margin-right: 8px;
}

.view-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: normal;
}

.view-link:hover {
    color: #45a049;
    text-decoration: none;
}

.week-nav-bar {
    padding: 1rem 2rem;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.nav-btn {
    background: transparent;
    color: #00430E;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: normal;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.nav-btn svg {
    width: 18px;
    height: 18px;
}

.nav-btn:hover {
    background: transparent;
    color: #00430E;
    text-decoration: none;
}

/* استایل دکمه‌های navigation در header-controls برای موبایل */
@media (max-width: 768px) {
    .header-controls .nav-btn {
        font-size: 20px;
    }
    
    .header-controls .nav-btn i {
        font-size: 20px;
    }
}

.week-date {
    color: #333;
    font-size: 1.3rem;
    font-weight: bold;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.empty-day {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
    background: white;
}

/* استایل‌های مخصوص کارت‌های موبایل */
.mobile-schedule-item {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: none;
}

.mobile-schedule-item .schedule-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.mobile-schedule-item .schedule-info .label {
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 0.5rem;
    min-width: 80px;
}

.mobile-schedule-item .schedule-info .value {
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
    flex: 1;
}

.mobile-schedule-item .view-action {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.mobile-schedule-item .view-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-schedule-item .view-link:hover {
    color: #45a049;
    text-decoration: none;
}

.mobile-schedule-item .view-icon {
    width: 16px;
    height: 16px;
    background-image: url('/vendor/template/assets/images/icons/course-icon/eye.png');
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
}

.mobile-schedule-item .green-dot {
    width: 12px;
    height: 12px;
    background-image: url('/vendor/template/assets/images/icons/course-icon/play-circle.png');
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .schedule-card {
        padding: 1rem;
        border-radius: 15px;
    }
    
    .week-nav-bar {
        padding: 0.75rem 1rem;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .week-nav-bar > div:nth-child(1),
    .week-nav-bar > div:nth-child(3) {
        width: 50%;
        display: flex;
        align-items: center;
    }

    .week-nav-bar > div:nth-child(1) {
        justify-content: flex-start;
    }

    .week-nav-bar > div:nth-child(3) {
        justify-content: flex-end;
    }

    .week-nav-bar > div:nth-child(2) {
        order: 3;
        width: 100%;
        text-align: center;
        position: static;
        transform: none;
        left: auto;
    }
    
    .nav-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .week-date {
        font-size: 0.9rem;
    }
    
    .schedule-table {
        display: none;
    }
    
    .mobile-schedule-container {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-schedule-container {
        display: none;
    }
}

/* ============================================
   Breadcrumb Styles
   ============================================ */
.breadcrumb-container {
    background-size: cover;
    background-position: center;
    min-height: 100px;
    border-radius: 1.5rem;
}

.breadcrumb-nav {
    font-size: 1rem;
    color: #ffffff;
    opacity: 0.9;
}

.breadcrumb-nav .home-link {
    font-size: 1.1em;
}

.breadcrumb-title {
    font-size: 2.2rem;
    font-weight: bold;
    line-height: 1.1;
    color: #ffffff;
}

.breadcrumb-logo {
    height: 70px;
}

@media (max-width: 768px) {
    .breadcrumb-container {
        border-radius: 3rem !important;
        margin: 0;
        min-height: 80px !important;
    }

    .breadcrumb-container .mb-2 {
        font-size: 0.85rem !important;
    }

    .breadcrumb-container .mb-2 span {
        font-size: 0.9em !important;
    }

    .breadcrumb-container > .flex-grow-1 > div:last-child {
        font-size: 1.8rem !important;
    }

    .breadcrumb-container .ms-4 {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .breadcrumb-container {
        border-radius: 2.5rem !important;
        padding: 1.5rem !important;
        min-height: 70px !important;
    }

    .breadcrumb-container .mb-2 {
        font-size: 0.75rem !important;
    }

    .breadcrumb-container .mb-2 span {
        font-size: 0.8em !important;
    }

    .breadcrumb-container > .flex-grow-1 > div:last-child {
        font-size: 1.5rem !important;
    }

    .breadcrumb-container .ms-4 {
        display: none !important;
    }
}

/* ============================================
   Course Page Styles
   ============================================ */
/* Sidebar Container Styling */
.sidebar-container {
    position: static;
    align-self: flex-start;
}

@media (max-width: 768px) {
    .sidebar-container {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
}

/* Sidebar Card Styling */
.col-sm-4 .card {
    border-radius: 16px;
    border: 1px solid #e6e9ee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    background: #fff;
}

.col-sm-4 .card .card-body {
    padding: 20px;
}

.col-sm-4 .card img.img-fluid {
    border-radius: 12px;
    margin-bottom: 16px;
}

.col-sm-4 .h6.text-center {
    font-size: 14px;
    font-weight: 600;
    color: #343A40;
    margin-bottom: 12px;
}

.col-sm-4 .text-center.pt-3.pb-3 {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px !important;
    margin-bottom: 16px;
}

/* Sidebar Info Boxes */
.col-sm-4 .border.rounded {
    border-radius: 12px !important;
    border: 1px solid #e6e9ee !important;
    background: #fff;
    padding: 16px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.col-sm-4 .border.rounded .h6 {
    font-size: 14px;
    font-weight: 700;
    color: #343A40;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #84BF63;
}

.col-sm-4 .border.rounded h5 {
    font-size: 15px;
    font-weight: 600;
    color: #343A40;
}

.col-sm-4 .border.rounded a {
    color: #198754;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.col-sm-4 .border.rounded a:hover {
    color: #146c43;
    text-decoration: underline;
}

.course-teacher-thumb {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 2px solid #e6e9ee;
}

.single-course-category {
    display: inline-block;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin: 4px;
    font-size: 13px;
    transition: all 0.2s;
}

.single-course-category:hover {
    background: #84BF63;
    color: #fff;
}

/* Course Files List */
.course-files-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.course-files-list .course-file-item {
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.course-file-title {
    font-weight: 600;
    color: #2b2f33;
    text-decoration: none;
}

.course-file-sub {
    font-size: 12px;
    color: #6c757d;
}

.course-file-action .course-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    padding: 10px 14px;
    text-decoration: none;
    font-weight: 600;
    border: 0;
}

.course-file-action .course-file-btn.success {
    background: transparent;
    color: #1e7e34;
}

.course-file-action .course-file-btn.locked {
    background: transparent;
    color: #6c757d;
}

.course-file-doc {
    width: 36px;
    height: 36px;
}

/* Accordion header styling */
.course-accordion {
    border: 1px solid #e6e9ee;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 12px;
}

.course-accordion .accordion-item {
    border: none;
    margin-bottom: 0;
}

.course-accordion .accordion-button {
    background: #fff;
    color: #343A40;
    font-weight: 600;
    padding: 16px;
    border: none;
    position: relative;
}

.course-accordion .accordion-button:focus {
    box-shadow: none;
    border: none;
}

.course-accordion .accordion-button:not(.collapsed) {
    box-shadow: none;
    background: #fff;
}

.course-accordion .accordion-button::after {
    margin-left: 0;
    margin-right: auto;
    color: #343A40;
}

.course-accordion .accordion-button::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #84BF63;
}

/* Inner accordion styling (no green line) */
.course-accordion .accordion-flush .accordion-button::before {
    display: none;
}

.course-accordion .accordion-flush .accordion-button {
    font-weight: 500;
    padding: 12px 16px;
}

.course-accordion .accordion-body {
    padding: 16px;
}

/* Course introduction content styling */
.course-intro-content,
.course-duration-content,
.course-time-content,
.course-start-content,
.course-level-content,
.course-evaluation-method-content,
.course-teaching-method-content,
.course-headings-content {
    color: #555;
    line-height: 1.6;
    text-align: justify;
}

.headings-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.headings-list li {
    list-style: none;
    position: relative;
    padding-right: 20px;
    margin-bottom: 8px;
    color: #555;
    line-height: 1.6;
}

.headings-list li::before {
    content: "•";
    color: #198754;
    font-weight: bold;
    position: absolute;
    right: 0;
    top: 0;
}

/* Course Summary Content Styling */
.course-summary-content {
    color: #555;
    line-height: 1.6;
    text-align: justify;
}

.summary-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-item h6 {
    color: #343A40;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 14px;
}

.summary-item p {
    color: #555;
    margin: 0;
    padding-right: 12px;
}

.summary-list {
    margin: 8px 0;
    padding-right: 20px;
}

.summary-list li {
    color: #555;
    margin-bottom: 6px;
    position: relative;
}

.summary-list li:last-child {
    margin-bottom: 0;
}

.summary-list li:before {
    content: "•";
    color: #198754;
    font-weight: bold;
    position: absolute;
    right: -12px;
}

.certificate-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.certificate-icon {
    font-size: 28px;
    color: #198754;
    flex-shrink: 0;
}

.certificate-content {
    flex: 1;
}

.certificate-title {
    font-weight: 700;
    font-size: 16px;
    color: #343A40;
    margin: 0 0 4px 0;
}

.certificate-issuer {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.certificate-action {
    flex-shrink: 0;
}

.certificate-btn {
    color: #198754;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #e6e9ee;
    border-radius: 8px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.certificate-btn:hover {
    text-decoration: none;
    background: #f8f9fa;
}

.certificate-link {
    color: #198754;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.certificate-link:hover {
    color: #146c43;
    text-decoration: none;
}

.medal-icon {
    width: 28px;
    height: 28px;
}

/* Share Section Styling */
.share-section {
    margin-top: 15px;
}

.share-title {
    font-size: 16px;
    font-weight: 700;
    color: #2b2f33;
    margin-bottom: 12px;
    text-align: center;
}

.share-input-container {
    display: flex;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 8px;
    overflow: hidden;
}

.share-input-container input {
    flex: 1;
    border: none;
    background: #fff;
    font-size: 12px;
    color: #2b2f33;
    padding: 12px 16px;
}

.share-input-container input:focus {
    outline: none;
    box-shadow: none;
}

.copy-btn {
    background: #f8f9fa;
    color: #2b2f33;
    border: none;
    padding: 12px 16px;
    font-size: 12px;
    cursor: pointer;
    border-right: none;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #e9ecef;
}

.social-share {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 16px;
    background: #f8f9fa;
    border: 1px solid #e6e9ee;
    color: #ADB5BD;
}

.social-btn:hover {
    background: #e9ecef;
    color: #959ba3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.social-btn i {
    color: #ADB5BD;
    transition: color 0.2s;
}

.social-btn:hover i {
    color: #959ba3;
}

/* Button Color Changes */
.btn-success, .btn-primary {
    background-color: #00430E !important;
    border-color: #00430E !important;
    color: #fff !important;
}

.btn-success:hover, .btn-primary:hover {
    background-color: #003008 !important;
    border-color: #003008 !important;
    color: #fff !important;
}

.btn-success:focus, .btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,67,14,0.25) !important;
}

/* Product Card Styles */
.product-card-optimized:hover .card {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #198754;
}

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

.product-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    text-decoration: none;
}

.product-link-overlay:hover {
    text-decoration: none;
}

.products-carousel::-webkit-scrollbar {
    height: 6px;
}

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

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

.products-carousel::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Comments Section Styling */
.comment-card {
    transition: all 0.2s ease;
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.comment-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #198754 !important;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    background: #198754;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.comment-user-name {
    color: #343A40;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.comment-date {
    color: #6c757d;
    font-size: 13px;
}

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

.comment-actions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.comment-actions button {
    transition: all 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.comment-actions button:hover {
    color: #198754 !important;
    transform: scale(1.1);
}

/* Decorative dots styling */
.deco-dots {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
}

.deco-dots span {
    width: 6px;
    height: 6px;
    background: #84BF63;
    border-radius: 50%;
    display: inline-block;
    animation: dotPulse 2s infinite;
}

.deco-dots span:nth-child(2n) {
    animation-delay: 0.2s;
}

.deco-dots span:nth-child(3n) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #343A40;
    margin-bottom: 0;
}

.accent {
    color: #84BF63;
}

/* Instructor Card Styles */
.instructor-card {
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.instructor-avatar {
    width: 50px;
    height: 50px;
    background: #198754;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.instructor-avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.instructor-avatar i {
    color: #fff;
    font-size: 20px;
}

.instructor-action-link-icon {
    font-size: 12px;
}

.instructor-info {
    flex: 1;
}

.instructor-label {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 4px;
}

.instructor-name {
    color: #343A40;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.instructor-action-link {
    color: #198754;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.instructor-action-link i {
    font-size: 12px;
}

.instructor-no-profile {
    color: #6c757d;
    font-size: 13px;
}

/* Product Card Styles */
.products-carousel-container {
    overflow-x: auto;
    padding: 10px 0;
}

.products-carousel {
    display: flex;
    gap: 16px;
    min-width: max-content;
}

.product-card-optimized {
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
}

.product-card-optimized .card {
    height: 320px;
    border-radius: 12px;
    border: 1px solid #e6e9ee;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
}

.product-image-container {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: #f8f9fa;
}

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

.product-card-optimized:hover .product-image {
    transform: scale(1.05);
}

.product-category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.95);
    color: #fd7e14;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-card-content {
    padding: 16px;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card-title {
    color: #343A40;
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 8px 0;
    line-height: 1.4;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price-label {
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
}

.product-price-free {
    color: #198754;
    font-weight: 700;
    font-size: 14px;
}

.product-price-paid {
    color: #343A40;
    font-weight: 700;
    font-size: 14px;
}

.product-count-text {
    color: #6c757d;
    font-size: 13px;
}

.view-all-products-link {
    color: #198754;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.view-all-products-link i {
    font-size: 12px;
}

.view-all-products-link:hover {
    text-decoration: none;
    color: #146c43;
}

/* Marketing Link Badge */
.marketing-link-badge {
    text-align: center;
    margin-top: 8px;
    font-size: 12px;
    color: #198754;
    font-weight: 600;
}

/* Course Category Title */
.course-category-title {
    color: #CC7900;
    font-weight: 600;
    font-size: 16px;
}

/* Course Category Link */
.course-category-link,
.course-category-title a,
.course-category-title .course-category-link,
.category-link {
    color: #d97706 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.course-category-link:hover,
.course-category-title a:hover,
.course-category-title .course-category-link:hover,
.category-link:hover {
    color: #d97706 !important;
    text-decoration: underline;
}

.course-title-h1 {
    color: #343A40;
    font-weight: 700;
    font-size: 18px;
    margin: 0;
}

/* FAQ Accordion Item */
.faq-accordion-item {
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 12px;
    overflow: hidden;
}

.faq-header {
    padding: 16px;
    cursor: pointer;
    background: #fff;
    border-radius: 12px 12px 0 0;
    transition: background-color 0.2s;
}

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

.faq-header-title {
    color: #343A40;
    font-weight: 600;
}

.faq-icon {
    color: #343A40;
    font-size: 18px;
    transform: rotate(270deg);
    transition: transform 0.3s;
}

.faq-content {
    padding: 0 16px 16px 16px;
    color: #666;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-content-inner {
    margin-top: 12px;
}

/* Empty Content Message */
.empty-content-message {
    color: #6c757d;
    text-align: center;
    padding: 20px;
}

/* QA Section Styles */
.qa-submit-form {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.qa-submit-title {
    color: #343A40;
    font-weight: 600;
    margin-bottom: 15px;
}

.qa-checkbox-wrapper {
    margin-top: 15px;
    margin-bottom: 10px;
}

.qa-checkbox-wrapper .form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qa-checkbox-wrapper .form-check-input {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    border: 2px solid #84BF63;
    border-radius: 4px;
    flex-shrink: 0;
}

.qa-checkbox-wrapper .form-check-input:checked {
    background-color: #84BF63;
    border-color: #84BF63;
}

.qa-checkbox-wrapper .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(132, 191, 99, 0.25);
}

.qa-checkbox-wrapper label {
    margin: 0;
    cursor: pointer;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    user-select: none;
}

.qa-item {
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.question-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.question-avatar {
    width: 40px;
    height: 40px;
    background: #6c757d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    flex-shrink: 0;
}

.question-user-name {
    color: #343A40;
    font-size: 14px;
}

.question-status-badge {
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    margin-right: 8px;
}

.question-status-answered {
    background: #28a745;
    color: white;
}

.question-status-pending {
    background: #ffc107;
    color: #000;
}

.question-date {
    color: #6c757d;
    font-size: 12px;
}

.question-text {
    color: #495057;
    line-height: 1.6;
    font-size: 14px;
}

.answers-list {
    border-right: 3px solid #198754;
    padding-right: 15px;
    margin-right: 25px;
}

.answer-item {
    background: #e7f5e7;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.answer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.answer-user-name {
    color: #198754;
    font-size: 13px;
}

.answer-badge {
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 10px;
    margin-right: 5px;
}

.answer-badge-instructor {
    background: #198754;
    color: white;
}

.answer-badge-marketer {
    background: #00430E;
    color: white;
}

.answer-date {
    color: #6c757d;
    font-size: 11px;
}

.answer-text {
    color: #2d5016;
    font-size: 13px;
    line-height: 1.6;
}

.answer-form {
    margin-top: 15px;
    margin-right: 55px;
}

.qa-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.qa-empty-icon {
    font-size: 48px;
    color: #e6e9ee;
}

.qa-empty-text {
    margin-top: 15px;
    font-size: 14px;
}

.qa-count-badge {
    margin-right: 10px;
    background: #198754;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
}

/* Tag Link Styles */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
}

.tag-link {
    display: inline-block;
    padding: 8px 16px;
    background: #e7f5e7;
    color: #2d5016;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    border: 1px solid #b8d4b8;
}

/* Certificate Sample Link */
.certificate-sample {
    color: #00430E;
}

/* ============================================
   Payment Gateway & Invoice Styles - v1.0
   تاریخ: 2024
   ============================================ */

/* استایل‌های دکمه درگاه پرداخت */
.gateway-btn {
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    padding: 0.85rem 1.25rem;
    transition: all 0.3s ease;
}

.gateway-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 92, 61, 0.2);
}

.gateway-btn:hover .gateway-logo-wrap {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gateway-btn-inner {
    width: 100%;
}

.gateway-logo-wrap {
    background-color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gateway-logo-img {
    width: 48px;
    max-height: 36px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.gateway-btn:hover .gateway-logo-img {
    transform: scale(1.05);
}

.gateway-label {
    flex: 1;
    white-space: normal;
    line-height: 1.6;
}

/* استایل اصلی صفحه صورتحساب */
.view-payments {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
}

/* بخش اطلاعات صورتحساب - سمت چپ */
.invoice-details {
    background-color: white;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* هدر صورتحساب با خط سبز */
.invoice-header {
    padding: 20px 24px 15px 24px;
}

.invoice-title {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.invoice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #e9ecef;
}

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

.invoice-label {
    font-size: 15px;
    color: #6c757d;
    font-weight: 400;
}

.invoice-value {
    font-size: 15px;
    color: #212529;
    font-weight: 500;
}

/* باکس پرداخت - سمت راست */
.payment-box {
    background-color: white;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* هدر پرداخت هزینه با خط سبز */
.payment-header {
    padding: 20px 24px 15px 24px;
}

.payment-title {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

/* محتوای باکس پرداخت */
.payment-content {
    padding: 24px;
}

/* بخش کد تخفیف */
.coupon-section {
    margin-bottom: 20px;
}

/* باکس یکپارچه کد تخفیف */
.coupon-input-group {
    display: flex;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
}

.coupon-input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    background: transparent;
    outline: none;
}

.coupon-input:focus {
    outline: none;
    box-shadow: none;
}

.coupon-btn {
    color: #84BF63 !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    box-shadow: none !important;
}

.coupon-btn:hover {
    color: #84BF63 !important;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.coupon-btn:focus {
    color: #84BF63 !important;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* جزئیات قیمت */
.price-details {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: #495057;
}

.price-item:not(:last-child) {
    border-bottom: 1px solid #dee2e6;
}

.price-item.total {
    font-weight: 600;
    font-size: 16px;
    color: #212529;
    padding-top: 14px;
    margin-top: 8px;
    border-top: 2px solid #dee2e6;
}

/* دکمه‌های پرداخت */
.payment-actions-box .btn-success {
    background-color: #28a745;
    border-color: #28a745;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.payment-actions-box .btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.payment-actions-box .btn-outline-danger {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.payment-actions-box .btn-outline-danger:hover {
    transform: translateY(-1px);
}

/* Responsive برای صفحات پرداخت */
@media (max-width: 991px) {
    .payment-box {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .invoice-item {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .payment-box {
        padding: 20px;
    }
    
    .coupon-input-group {
        flex-direction: column;
        border-radius: 10px;
        overflow: hidden;
    }
    
    .coupon-btn {
        width: 100%;
        padding: 12px 16px;
    }
}

/* ============================================
   Charge Payment Page Styles - v1.0
   تاریخ: 2024
   ============================================ */

/* استایل اصلی صفحه افزایش اعتبار */
.charge-payments {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
}

/* بخش اطلاعات - سمت چپ */
.info-details {
    background-color: white;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.info-header {
    padding: 20px 24px 15px 24px;
    border-bottom: 1px solid #e9ecef;
}

.info-title {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.info-content {
    padding: 24px;
}

.alert-info-box {
    background: #e8f7ef;
    border: 1px solid #cfe9db;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: start;
    gap: 15px;
    color: #0f5132;
}

.alert-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #dff1e8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert-icon i {
    font-size: 18px;
    color: #0f5132;
}

.alert-content {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.7;
}

.credit-balance-box {
    background-color: #f8f9fa;
    padding: 20px 24px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.balance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.balance-label {
    color: #6c757d;
    font-weight: 400;
}

.balance-value {
    color: #212529;
    font-weight: 600;
    font-size: 16px;
}

/* بخش مبلغ */
.amount-section .form-label {
    font-size: 15px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 10px;
}

.amount-input {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.amount-input:focus {
    border-color: #84BF63;
    box-shadow: 0 0 0 0.2rem rgba(132, 191, 99, 0.25);
}

/* بخش درگاه پرداخت - Radio Options */
.gateway-section .form-label {
    font-size: 15px;
    font-weight: 500;
    color: #495057;
}

.gateway-radio-option {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gateway-radio-option:hover {
    border-color: #84BF63;
    background-color: #f8f9fa;
}

.gateway-radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.gateway-radio-option input[type="radio"]:checked ~ .gateway-radio-label {
    color: #0d5c3d;
    font-weight: 600;
}

.gateway-radio-option.selected {
    border-color: #0d5c3d;
    background-color: #e8f7ef;
}

.gateway-radio-label {
    flex: 1;
    cursor: pointer;
    margin: 0;
    font-size: 15px;
}

/* دکمه‌های پرداخت - Charge Page */
.charge-payments .payment-actions-box .btn-success {
    background-color: #0d5c3d;
    border-color: #0d5c3d;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.charge-payments .payment-actions-box .btn-success:hover {
    background-color: #094d32;
    border-color: #094d32;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 92, 61, 0.3);
}

/* Responsive برای صفحه Charge */
@media (max-width: 991px) {
    .charge-payments .payment-box {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .charge-payments .info-content {
        padding: 16px;
    }
    
    .charge-payments .credit-balance-box {
        padding: 16px;
    }
    
    .charge-payments .balance-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .charge-payments .payment-content {
        padding: 16px;
    }
    
    .charge-payments .gateway-radio-option {
        padding: 12px 14px;
    }
}

/* ============================================
   Subscription Packages Page Styles
   تاریخ اضافه شدن: 2025
   ============================================ */

/* Subscription Packages Page Styles */
.subscription-section {
    padding: 2rem 0;
}

/* Page Container */
.packages-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.subscription-intro {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2.5rem 2rem;
    text-align: center;
    border-bottom: 4px solid #8fd4a3;
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.subscription-intro::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(143,212,163,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.subscription-intro::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0,67,14,0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, 50%);
}

.subscription-intro .intro-content {
    color: #212529;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
    position: relative;
    z-index: 1;
}

.subscription-intro .intro-content p {
    margin: 0 0 1rem 0;
}

.subscription-intro .intro-content p:last-child {
    margin-bottom: 0;
}

.subscription-intro p {
    color: #212529;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
    position: relative;
    z-index: 1;
}

.subscription-cards {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 3rem 2rem;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    position: relative;
}

.subscription-card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.12);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.subscription-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #8fd4a3 0%, #00430E 100%);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.subscription-card:hover::before {
    transform: scaleX(1);
}

.subscription-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,67,14,0.2);
    border-color: #8fd4a3;
}

.card-heading {
    position: relative;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00430E;
    margin: 0 0 1.5rem 0;
    padding: 0 0 1rem 0;
    text-align: center;
    border-bottom: 3px solid #8fd4a3;
    display: inline-block;
    width: 100%;
}

.card-price {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1.2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 0.75rem;
    border: 2px dashed #8fd4a3;
}

.card-price-amount {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #8fd4a3 0%, #00430E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.card-price-duration {
    font-size: 1.1rem;
    color: #212529;
}

.card-description {
    color: #495057;
    font-size: 1rem;
    line-height: 1.8;
    text-align: right;
    margin: 1.5rem 0;
    padding: 1.2rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    border-right: 4px solid #8fd4a3;
}

.card-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-description ul li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    transition: transform 0.2s ease;
    color: #495057;
    font-size: 0.95rem;
}

.card-description ul li.list-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #00430E;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding-right: 0.75rem;
    border-right: 3px solid #8fd4a3;
    background: linear-gradient(90deg, rgba(143,212,163,0.1) 0%, transparent 100%);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

.card-description ul li.list-title:first-child {
    margin-top: 0;
}

.card-description ul li:hover:not(.list-title) {
    transform: translateX(-5px);
    color: #00430E;
}

.card-description ul li .check-emoji {
    margin-left: 0.75rem;
    margin-top: 0;
    flex-shrink: 0;
    font-size: 1.1rem;
    display: inline-block;
    line-height: 1;
    transition: transform 0.3s ease;
}

.card-description ul li:hover .check-emoji {
    transform: scale(1.15);
}

.card-button {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #00430E 0%, #005A1F 100%);
    color: #ffffff;
    border: none;
    border-radius: 0.75rem;
    padding: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,67,14,0.2);
}

.card-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.card-button:hover::before {
    width: 300px;
    height: 300px;
}

.card-button:hover {
    background: linear-gradient(135deg, #00300A 0%, #00430E 100%);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,67,14,0.4);
}

.card-button span {
    position: relative;
    z-index: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .subscription-intro {
        padding: 2rem 1.5rem;
        margin-top: 1rem;
    }
    
    .subscription-intro .intro-content,
    .subscription-intro p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .subscription-cards {
        padding: 2rem 1.5rem;
        gap: 2rem;
    }
    
    .subscription-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
        border-radius: 1.25rem;
    }
    
    .card-heading {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
    }
    
    .card-price {
        padding: 1rem;
        margin: 1.25rem 0;
    }
    
    .card-price-amount {
        font-size: 2rem;
    }
    
    .card-price-duration {
        font-size: 0.95rem;
    }
    
    .card-description {
        font-size: 0.95rem;
        line-height: 1.7;
        padding: 1rem;
        margin: 1.25rem 0;
    }
    
    .card-button {
        padding: 0.95rem;
        font-size: 1rem;
        margin-top: 1.25rem;
    }
}

@media (max-width: 576px) {
    .subscription-intro {
        padding: 1.5rem 1rem;
        margin-top: 0.5rem;
        border-radius: 0.75rem 0.75rem 0 0;
    }
    
    .subscription-intro .intro-content,
    .subscription-intro p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .subscription-cards {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }
    
    .subscription-card {
        padding: 1.5rem 1.25rem;
        border-radius: 1rem;
    }
    
    .card-heading {
        font-size: 1.15rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .card-price {
        padding: 0.9rem;
        margin: 1rem 0;
    }
    
    .card-price-amount {
        font-size: 1.8rem;
    }
    
    .card-price-duration {
        font-size: 0.9rem;
    }
    
    .card-description {
        font-size: 0.9rem;
        line-height: 1.7;
        padding: 0.9rem;
        margin: 1rem 0;
    }
    
    .card-button {
        padding: 0.9rem;
        font-size: 0.95rem;
        margin-top: 1rem;
    }

/* Trust Bar Styles */
.trust-bar-section {
    position: relative;
    z-index: 1;
    height: 70px;
    background-color: #FFFFFF;
    border-top: 1px solid #E9ECEF;
    border-bottom: 1px solid #E9ECEF;
    overflow: hidden;
    text-align: center;
}

.trust-bar-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

.trust-bar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

/* Particles */
.trust-bar-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.trust-bar-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: rgba(46, 125, 50, 0.15);
    border-radius: 50%;
    animation: floatParticle 8s ease-in-out infinite;
}

.particle-1 {
    left: 5%;
    top: 20%;
    animation-delay: 0s;
}

.particle-2 {
    left: 15%;
    top: 60%;
    animation-delay: 1s;
}

.particle-3 {
    left: 25%;
    top: 30%;
    animation-delay: 2s;
}

.particle-4 {
    left: 45%;
    top: 70%;
    animation-delay: 3s;
}

.particle-5 {
    left: 55%;
    top: 25%;
    animation-delay: 4s;
}

.particle-6 {
    left: 70%;
    top: 55%;
    animation-delay: 5s;
}

.particle-7 {
    left: 80%;
    top: 35%;
    animation-delay: 6s;
}

.particle-8 {
    left: 90%;
    top: 65%;
    animation-delay: 7s;
}

.particle-9 {
    left: 10%;
    top: 80%;
    animation-delay: 0.5s;
}

.particle-10 {
    left: 95%;
    top: 15%;
    animation-delay: 1.5s;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-10px) translateX(5px) scale(1.2);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) translateX(-5px) scale(0.8);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-10px) translateX(3px) scale(1.1);
        opacity: 0.6;
    }
}

.trust-bar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #00430E;
}
 
.trust-bar-icon svg {
    display: block;
}

.trust-bar-text {
    font-weight: 900 !important;
    font-size: 22px !important;
    color: #333333;
    letter-spacing: 0.3px;
    line-height: 1.5;
}

@media (max-width: 576px) {
    .trust-bar-section {
        height: 60px;
    }

    .trust-bar-text {
        font-weight: 900 !important;
        font-size: 18px !important;
        color: #333333;
        letter-spacing: 0.3px;
        line-height: 1.5;
    }

    .trust-bar-icon svg {
        width: 20px;
        height: 20px;
    }

    .trust-bar-particles .particle {
        width: 3px;
        height: 3px;
    }
}

/* ============================================
   Button Font Size and Spacing Fixes - v1.1
   تاریخ آخرین به‌روزرسانی: 2025
   شامل اصلاح اندازه فونت و فاصله دکمه‌ها
   ============================================ */

/* Fix button font size and spacing for action buttons */
.btn-primary, .btn-success {
    font-size: 0.875rem !important;
    padding: 0.375rem 0.75rem !important;
}

.me-2 {
    margin-left: 0.5rem !important;
}
}