/* متغیرهای رنگ - همیشه سبز */
: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;
}

/* اصلاح رنگ 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 {
        display: none;
    }
    
    .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; }
}

/* استایل‌های منو */
.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;
}

/* خط موجی برای آیتم‌های اکتیو */
.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-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;
}

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

.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-icon {
    width: 24px;
    height: 24px;
    margin: 0 auto 5px;
}

.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: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.2);
}

.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: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;
}

.mobile-logout-link {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
}

.mobile-logout-link:hover {
    background: linear-gradient(135deg, #c82333, #a02622);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.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.6);
    backdrop-filter: blur(5px);
}

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

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

.mobile-search-header {
    padding: 20px 25px 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-search-header h5 {
    font-weight: 600;
    margin: 0;
    font-size: 18px;
}

.mobile-search-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-search-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

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

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

.mobile-search-input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

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

.mobile-search-input:focus {
    background: white;
    box-shadow: inset 0 0 0 2px var(--primary-color);
}

.mobile-search-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    padding: 0 20px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-submit:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    transform: scale(1.05);
}

.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;
}

.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;
}

/* مشاوره انتخاب دوره (آیکن + متن یک‌خطی) */
.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;
}

.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, #e6f4ea 0%, #c8e6c9 100%);
    color: #2e7d32;
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #ef6c00;
}

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

/* استایل‌های منوی چندسطحی */
.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%;
}

.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;
}

.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;
}

.newsletter-container{
    display:none;
}
.modal-backdrop{
    display:none;
}

/* استایل دکمه‌های تغییر مدرسه موبایل */
.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;}
}

/* استایل‌های انیمیشن 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;
}

.float-box-info::before {
    content: '📚';
    position: absolute;
    top: -10px;
    right: -10px;
    background: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* دکمه ورود به مدرسه تخصصی */
.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;
    }
    
    .float-box-info::before {
        top: -8px;
        right: -8px;
        width: 25px;
        height: 25px;
        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);
    }
}

/* استایل‌های اطلاعات تماس */
.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,
    #show-guide-btn {
        display: none !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;
    -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 {
    background-color: #216821 !important;
    transform: scale(1.1);
}

/* استایل‌های موبایل */
@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);
}

/* لایه نقطه‌ای روی گرادیان */
.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;}
}
