/*
Theme Name:  Rastad
Theme URI: https://rastad.io/
Author: hasan varaseh
Author URI: hasan.varaseh2003@gmail.com
Description:
Requires at least: 6.1
Tested up to: 6.1
Requires PHP: 8.5
Version: 1.0.0
Text Domain: rastad
Domain Path: /languages

 */
/* CSS Document */
/*---------------------------*/
/* https://rastad.io */
/*---------------------------*/
@font-face {
    font-family: 'Estedad-Bold';
    src: url('assets/fonts/Estedad-Bold.woff2') format('woff2'),
    url('assets/fonts/Estedad-Bold.woff') format('woff');
    font-style: normal;
    font-weight: 700;  /* Set font-weight to bold for the bold font */
    font-display: fallback;
}

@font-face {
    font-family: 'Estedad-Regular';
    src: url('assets/fonts/Estedad-Regular.woff2') format('woff2'),
    url('assets/fonts/Estedad-Regular.woff') format('woff');
    font-style: normal;
    font-weight: 400;  /* Assuming this is the regular weight */
    font-display: fallback;
}

html {
    overflow-x: hidden;
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}

body {
    font-family: "Estedad-Regular";
    direction: rtl;
    font-size: 1rem;
    margin: 0;
    padding: 0;
    /*background-color: #0C0A1A;*/
    background-image: linear-gradient(to right top, #1c135b, #18134f, #151243, #131137, #120f2b, #120f2b, #120f2b, #120f2b, #131137, #151243, #18134f, #1c135b);
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: white;
}

.text-justify {
    text-align: justify;
}

.font-weight-900 {
    font-weight: 900;
}

.font-size-20 {
    font-size: 20px;
}

.font-size-24 {
    font-size: 24px;
}

.font-size-14 {
    font-size: 14px;
}

.font-size-12 {
    font-size: 12px;
}

.font-size-36 {
    font-size: 36px;
}

.font-size-16 {
    font-size: 16px;
}

.font-size-44 {
    font-size: 44px;
}

/* =========================================
   Base Navbar & Brand
========================================= */
.navbar {
    padding: 15px 9px;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.brand-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.logo-img {
    width: 90%;
    height: auto;
    max-height: 50px;
}
@media (min-width: 988px) {
    .margin-logo {
        margin-top: -18px; /* اگر فقط جهت خاصی مدنظر است، مثلاً margin-top یا margin-bottom بذار */
    }
}
/* =========================================
   Desktop Navigation Links
========================================= */
.navbar-nav {
    padding-right: 5px;
}

.navbar-nav .nav-link {
    color: #ccc;
    margin-left: 20px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid transparent; /* جلوگیری از پرش در زمان هاور */
    border-radius: var(--box-radius);
    padding: 8px 12px;
}

/* حل مشکل رنگ مشکی و استایل هاور/اکتیو */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.show {
    background-color: #CCCCCC26;
    border-color: #CCCCCC33;
    color: #ffffff !important;
}

/* =========================================
   Dropdown (زیرمنو)
========================================= */
/* تنظیم آیکون فلش بوت‌استرپ برای سایت راست‌چین */
.dropdown-toggle::after {
    margin-right: 0.5em;
    margin-left: 0;
    vertical-align: middle;
}

.rst-dropdown {
    background-color: #272545; /* رنگ تیره بک‌گراند زیرمنو */
    border-radius: var(--box-radius);
    padding: 10px 0;
    text-align: right;
    min-width: 250px;
}

.rst-dropdown .dropdown-item {
    color: #7C88FF;
    font-size: 0.95rem;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.rst-dropdown .dropdown-item:hover,
.rst-dropdown .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding-right: 25px; /* افکت نرم حرکت متن به سمت راست موقع هاور */
}

/* باز شدن زیرمنو با هاور در دسکتاپ */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeIn 0.3s ease;
    }
}

/* انیمیشن نرم باز شدن منو */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Search Form
========================================= */
.search-container {
    position: relative;
    width: 418px;
}

.search-input {
    background-color: var(--gray);
    border: 1px solid #4a4953;
    border-radius: var(--box-radius);
    color: #fff;
    padding-right: 40px;
    height: 40px;
}

.search-input::placeholder {
    color: white;
}

.search-input:focus {
    background-color: #2f2e40;
    color: #fff;
    box-shadow: none;
    border: 1px solid #6366f1;
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

/* =========================================
   Buttons (ورود و عضویت)
========================================= */
.btn-custom-login {
    background-color: var(--gray);
    color: #fff;
    border-radius: var(--box-radius);
    border: 1px solid #4a4953;
    padding: 8px 20px;
    margin-right: 10px;
}

.btn-custom-login:hover {
    background-color: #fff;
    color: #000;
    transition: ease 1s;
}

.btn-custom-signup {
    background: linear-gradient(180deg, var(--one-color) 0%, var(--two-color) 100%);
    color: #fff;
    border: none;
    border-radius: var(--box-radius);
    padding: 8px 20px;
    margin-right: 10px;
}

.btn-custom-signup:hover {
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.25), 0 0 11.5px #4250E2;
    border-color: #4250E2;
    color: white;
}


/* =========================================
   Mobile Menu (Offcanvas style)
========================================= */
@media (max-width: 991px) {

    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-dark);
        z-index: 1050;
        padding: 25px 20px 20px 20px;
        overflow-y: auto;
        display: block !important;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s ease, visibility 0.3s;
    }

    .navbar-collapse.show {
        visibility: visible;
        opacity: 1;
    }

    .rst-mobile-menu-wrapper {
        min-height: 100%;
    }

    .top-controls {
        flex-direction: column;
        width: 100%;
        margin-bottom: 25px;
    }

    .search-container {
        width: 100%;
    }

    /* جستجو در موبایل */
    .search-input {
        width: 100%;
        padding-right: 15px;
        padding-left: 40px;
    }

    .search-icon {
        left: 15px;
        right: auto;
    }

    /* لینک‌های منو در موبایل */
    .navbar-nav {
        text-align: right;
        width: 100%;
        padding-right: 0;
    }

    .navbar-nav .nav-item {
        margin-bottom: 10px;
    }

    .navbar-nav .nav-link {
        font-size: 1.1rem;
        margin-left: 0;
        padding: 10px 5px;
        color: #ffffff !important;
        border: none;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus,
    .navbar-nav .nav-link.show {
        background-color: transparent;
        border: none;
        color: #ffffff !important;
    }

    /* استایل زیرمنو در حالت موبایل */
    .rst-dropdown {
        background-color: rgba(255, 255, 255, 0.03) !important;
        border: none !important;
        box-shadow: none !important;
        margin-top: 5px !important;
        padding: 5px 0;
    }

    .rst-dropdown .dropdown-item {
        font-size: 1rem;
        padding: 10px 20px 10px 10px;
        color: #7C88FF;
    }

    .rst-dropdown .dropdown-item:hover,
    .rst-dropdown .dropdown-item:focus {
        color: #fff;
        background-color: transparent;
    }

    /* خط جداکننده */
    .mobile-menu-divider {
        height: 1px;
        background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
        width: 100%;
    }

    /* دکمه‌های سوشیال در موبایل */
    .mobile-social-btn {
        width: 38px;
        height: 38px;
        background-color: #3F4DE3;
        color: white;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        text-decoration: none;
        transition: 0.3s;
    }

    .mobile-social-btn:hover {
        background-color: #2b38b8;
        color: white;
    }
}
/* ==========================================
   اورراید رنگ‌های هدر (Light Mode)
========================================== */

/* 🔴 ۱. آیتم‌های منو 🔴 */
[data-bs-theme="light"] .navbar-nav .nav-link {
    color: #767FE0 !important;
}

/* هاورِ آیتم‌های منو در لایت‌مود (هاله شیشه‌ای ملایم با رنگ تیره‌تر) */
[data-bs-theme="light"] .navbar-nav .nav-link:hover,
[data-bs-theme="light"] .navbar-nav .nav-link:focus,
[data-bs-theme="light"] .navbar-nav .nav-link.show {
    background-color: rgba(118, 127, 224, 0.1) !important;
    color: #4653E3 !important;
    border-color: rgba(118, 127, 224, 0.15) !important;
}

/* 🔴 ۲. دکمه ورود (شیشه‌ای با کادر تیره) 🔴 */
[data-bs-theme="light"] .btn-custom-login {
    background-color: transparent !important;
    color: #0F0B25 !important;
    border: 1px solid #0F0B25 !important;
}

[data-bs-theme="light"] .btn-custom-login:hover {
    background-color: #0F0B25 !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}

/* دکمه عضویت دست نخورده باقی می‌ماند (نیازی به نوشتن کد برای آن نیست) */

/* 🔴 ۳. باکس جستجو (شیشه‌ای با کادر تیره) 🔴 */
[data-bs-theme="light"] .search-input {
    background-color: transparent !important;
    color: #0F0B25 !important;
    border: 1px solid #0F0B25 !important;
}

/* متن Placeholder (مثبت "جستجو...") در فرم */
[data-bs-theme="light"] .search-input::placeholder {
    color: rgba(15, 11, 37, 0.6) !important;
}

/* افکت فرم جستجو در زمان کلیک کردن (Focus) */
[data-bs-theme="light"] .search-input:focus {
    background-color: #ffffff !important;
    border-color: #767FE0 !important;
    box-shadow: 0 0 0 0.25rem rgba(118, 127, 224, 0.15) !important;
}

/* رنگ آیکون ذره‌بین */
[data-bs-theme="light"] .search-icon {
    color: #0F0B25 !important;
}

/* 🔴 ۴. منوی دراپ‌داون (زیرمنوها) در لایت‌مود 🔴 */
[data-bs-theme="light"] .rst-dropdown {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

[data-bs-theme="light"] .rst-dropdown .dropdown-item {
    color: #767FE0 !important;
}

[data-bs-theme="light"] .rst-dropdown .dropdown-item:hover {
    background-color: rgba(118, 127, 224, 0.05) !important;
    color: #4653E3 !important;
}

/* 🔴 ۵. بک‌گراند منوی موبایل و اصلاحات داخلی 🔴 */
@media (max-width: 991px) {
    /* بک‌گراند کل کادر منوی موبایل */
    [data-bs-theme="light"] .navbar-collapse {
        background-color: #ffffff !important;
    }

    /* دکمه بستن (ضربدر) */
    [data-bs-theme="light"] .btn-close-menu svg {
        fill: #0F0B25 !important;
    }

    /* خط جداکننده فوتر موبایل */
    [data-bs-theme="light"] .mobile-menu-divider {
        background: linear-gradient(90deg, transparent 0%, rgba(15, 11, 37, 0.1) 50%, transparent 100%) !important;
    }

    /* متون فوتر (شماره و ایمیل) در منوی موبایل */
    [data-bs-theme="light"] .rst-mobile-contact {
        color: #0F0B25 !important;
    }

    /* آیکون‌های تلفن و ایمیل در منوی موبایل */
    [data-bs-theme="light"] .rst-mobile-contact svg {
        fill: #767FE0 !important;
    }
}
/* 🔴 ۶. دکمه همبرگری موبایل در حالت لایت 🔴 */
[data-bs-theme="light"] .navbar-toggler {
    border-color: rgba(15, 11, 37, 0.2) !important; /* کادر ظریف و تیره دور دکمه */
}

[data-bs-theme="light"] .navbar-toggler-icon {
    /* جایگزینی SVG سفید با یک SVG تیره همرنگ با تم لایت (#0F0B25) */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230F0B25' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
/*footer*/
footer.rst-footer {
    background: linear-gradient(268deg, #1A1253 0%, #0D0A1A 65%);
    color: white;
}

.rst-footer-title {
    color: #7E86DF;
    font-size: 16px;
    margin-bottom: 20px;
    padding: 0;
}

.rst-footer-links li {
    margin-bottom: 12px;
}

.rst-footer-links a {
    color: #ffffff;
    text-decoration: none !important;
    font-size: 14px;
    opacity: 0.8;
    transition: 0.3s;
    display: block;
}

.rst-footer-links a:hover {
    opacity: 1;
    color: #7E86DF;
    transform: translateX(-5px);
}

.rst-social-box {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3F4DE3 0%, #7E86DF 100%);
    border-radius: var(--box-radius);
    transition: all 0.3s ease;
    position: relative;
    color: white;
    box-shadow: 0 4px 15px rgba(63, 77, 227, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}


.rst-social-box:hover {
    background: linear-gradient(135deg, #7E86DF 0%, #3F4DE3 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(63, 77, 227, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.rst-social-box svg {
    width: 24px;
    height: 24px;
    transition: 0.3s;
    stroke: white;
}

.rst-social-box::after {
    content: attr(data-title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #1a1a2e;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    pointer-events: none;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.rst-social-box::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border: 6px solid transparent;
    border-top-color: #1a1a2e;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    margin-bottom: -2px;
}

.rst-social-box:hover::after,
.rst-social-box:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.rst-desc {
    line-height: 1.5;
}
/*//lightmod*/
/* ==========================================
   اورراید رنگ‌های فوتر (Light Mode)
========================================== */

/* ۱. تغییر بک‌گراند کل فوتر به رنگ درخواستی */
[data-bs-theme="light"] footer.rst-footer {
    background: #EFF0F1 !important;
    color: #1e293b !important;
}

/* ۲. تغییر رنگ متون ساده و توضیحات فوتر (خاکستری تیره خوانا) */
[data-bs-theme="light"] footer.rst-footer .text-white {
    color: #475569 !important;
}

/* ۳. اعمال گرادینت اختصاصی روی «متنِ» عنوان منوها */
[data-bs-theme="light"] .rst-footer-title {
    background: linear-gradient(180deg, #4653E3 0%, #757EE0 100%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important; /* این خط باعث می‌شود گرادینت روی خود حروف بنشیند */
}

/* ۴. رنگ لینک‌های منو در حالت عادی */
[data-bs-theme="light"] .rst-footer-links a {
    color: #64748b !important;
    opacity: 0.9;
}

/* رنگ لینک‌های منو در زمان هاور (موس روی آن‌ها) */
[data-bs-theme="light"] .rst-footer-links a:hover {
    color: #4653E3 !important;
    opacity: 1;
    /* افکت پرش به چپ (transform) از دارک مود به ارث می‌رسد */
}

/* نکته: هیچ استایلی برای .rst-social-box در حالت لایت نوشته نشد
  بنابراین باکس شبکه‌های اجتماعی دقیقاً بدون تغییر باقی می‌مانند.
*/
/* ==========================================
   مدیریت هوشمند لوگو در حالت شب و روز
========================================== */

/* ۱. در حالت پیش‌فرض (تاریک)، لوگوی لایت مخفی است */
.rst-logo-light {
    display: none !important;
}
.rst-logo-dark {
    display: block !important;
}

/* ۲. وقتی کاربر دکمه لایت‌مود را می‌زند (حالت روشن) */
[data-bs-theme="light"] .rst-logo-dark {
    display: none !important; /* لوگوی دارک پنهان می‌شود */
}
[data-bs-theme="light"] .rst-logo-light {
    display: block !important; /* لوگوی لایت ظاهر می‌شود */
}
.rst-crumb-link,
.rst-crumb-current {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rst-crumb-link {
    background: linear-gradient(180deg, #7E86DF 0%, #5D6CFF 100%);
    color: #ffffff;
}

.rst-crumb-link:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.rst-crumb-current {
    background: #44468b;
    color: #ffffff;
}

.rst-custom-breadcrumb > *:not(:first-child) {
    margin-right: -25px;
    padding-right: 35px;
}

.rst-custom-breadcrumb > *:first-child {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
/*404*/
.error-container {
    text-align: center;
    padding: 20px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* استایل تصویر 3D */
.error-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 40px;
}

/* عنوان متن */
.error-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 35px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    letter-spacing: -0.5px;
}

/* دکمه بازگشت */
.back-btn {
    display: inline-block;
    padding: 12px 45px;
    background: linear-gradient(180deg, #3F4DE3 13.94%, #8189DF 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: var(--box-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(91, 107, 240, 0.4);
}

/* افکت هاور دکمه */
.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(91, 107, 240, 0.6);
}
/*ligthmod*/
/* ==========================================
   استایل دکمه سوئیچر تم (آیکون فعالِ سفید و درخشان)
========================================== */
.rst-theme-switch {
    position: relative;
    display: inline-block;
    width: 105px;
    height: 31px;
    margin: 0;
}

.rst-theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.rst-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #272545; /* پس‌زمینه ثابت در حالت تاریک */
    transition: 0.4s;
    border-radius: 8px;
}

/* تغییر پس‌زمینه ثابت در حالت روشن */
input:checked + .rst-slider {
    background-color: #e2e8f0;
}

/* 🔴 باکس متحرک آبی‌رنگ 🔴 */
.rst-slider:before {
    position: absolute;
    content: "";
    height: 100%;
    width: 50%;
    top: 0;
    /* در حالت تاریک (پیش‌فرض)، باکس آبی روی نیمه راست (ماه) قرار دارد */
    left: 50%;
    background: linear-gradient(180deg, #3F4DE3 23.56%, #8990DF 100%);
    transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 8px;
    z-index: 1;
}

/* در حالت روشن (تیک‌خورده)، باکس آبی به نیمه چپ (خورشید) می‌رود */
input:checked + .rst-slider:before {
    left: 0;
}

/* تنظیمات آیکون‌های ماه و خورشید */
.rst-sun, .rst-moon {
    position: absolute;
    width: 22px;
    height: 22px;
    top: 5px;
    z-index: 2;
    transition: 0.4s ease;
}

.rst-sun { left: 13px; }
.rst-moon { right: 13px; }


/* ==========================================
   مدیریت هوشمند رنگ آیکون‌ها (روشن شدن آیکون فعال)
========================================== */

/* ۱. حالت تاریک (پیش‌فرض): باکس آبی روی ماه است */
input:not(:checked) + .rst-slider .rst-moon {
    color: #ffffff; /* ماه کاملاً سفید و درخشان */
    opacity: 1;
}
input:not(:checked) + .rst-slider .rst-sun {
    color: #64748b; /* خورشید خاکستری و خاموش */
    opacity: 0.4;
}

/* ۲. حالت روشن (تیک‌خورده): باکس آبی روی خورشید است */
input:checked + .rst-slider .rst-sun {
    color: #ffffff; /* خورشید کاملاً سفید و درخشان */
    opacity: 1;
}
input:checked + .rst-slider .rst-moon {
    color: #64748b; /* ماه خاکستری و خاموش */
    opacity: 0.4;
}
[data-bs-theme="light"] body {
    background-color: #ffffff !important;
    background-image: none !important;
    color: #1e293b !important;
}