:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --navbar-bg: #E16539;
    --navbar-border: #E16539;
    --nav-link-color: #000000;
    --nav-link-hover: #E16539;
    --btn-bg: #E16539;
    --btn-hover: #ff6659;
    --btn-text: #000;
    --primary-light: #E16539; /* قرمز لوگو */
    --primary-dark: #333;
    --toggle-bg-light: var(--primary-light);
    --toggle-bg-dark: #444;
    --text-color-muted: #262626; /* رنگ خاکستری مشابه text-muted */
    --navbar-toggler-border-color: #ccc; /* رنگ حاشیه برای حالت لایت */
    --navbar-toggler-bg-color: #fff; /* رنگ پس‌زمینه برای حالت لایت */
    --navbar-toggler-icon-color: #333; /* رنگ ایکون برای حالت لایت */
    --footer-copyright: #142657;
    --footer-copyright--text: #B1B2B2
}

@font-face {
    font-family: BYekan;
    font-style: normal;
    font-weight: normal;
    src: url("/static/fonts/BYekan.eot");/* IE9 Compat Modes */
    src: url("/static/fonts/BYekan.woff") format('woff'),
    url("/static/fonts/BYekan.woff") format('woff2'), /* Super Modern Browsers */ url("../../static/fonts/BYekan.ttf") format('truetype') /* Safari, Android, iOS */
}


* {
    box-sizing: border-box;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
    font-family: BYekan, serif !important;
    margin: 0;

}


body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

/* حالت دارک */
body.dark-mode {
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* استایل کلی برای هدر */
.navbar {
    transition: all 0.3s ease-in-out;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

/* وقتی کاربر اسکرول کرد، هدر جمع بشه کمی */
.navbar.shrink {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* لوگو */
.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: #E16539 !important; /* Bootstrap primary */
}

/* لینک‌های منو */
.navbar-nav .nav-link {
    color: rgba(68, 68, 68, 0.9) !important;
    font-weight: 400; /* یا 600 اگه خیلی نازکه */
    font-size: 1rem; /* یا 1.1rem اگه می‌خوای بزرگ‌تر شه */
    margin: 0 0.5rem;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: black;
    font-weight: 500;
}

/* دکمه‌های ورود/ثبت‌نام */
.btn-outline-primary {
    border-width: 2px;
}

.btn-primary {
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.2);
}

/* حالت موبایل */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: #fff;
        padding: 1rem;
        border-top: 1px solid #eee;
    }

    .navbar-nav .nav-link {
        margin: 0.5rem 0;
    }
}

.btn {
    background-color: #E16539;
    border-color: transparent;
    color: white;
    cursor: pointer;
}

ul {
    list-style-type: none;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #fff;
    padding-left: 5px;
}

.social-icon {
    color: #ccc;
    font-size: 1.2rem;
    transition: 0.3s;
}

.social-icon:hover {
    color: #fff;
    transform: scale(1.2);
}

.social-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* رنگ شبکه‌های اجتماعی */

.bg-instagram {
    background: #E1306C;
}

.bg-linkedin {
    background: #0077B5;
}

.bg-telegram {
    background: #0088cc;
}

.bg-whatsapp {
    background: #25D366;
}

section h1 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    font-family: 'BYekan', sans-serif;
}

section p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-color-muted);
}

.btn-primary {
    background-color: var(--btn-bg);
    border-color: var(--btn-bg);
    font-weight: 600;
}

.btn-outline-secondary {
    color: var(--btn-bg);
    border: 2px solid var(--btn-bg);
}

.btn-outline-secondary:hover {
    background-color: var(--btn-hover);
    color: white;
    border-color: var(--btn-hover);
}

.hero-split {
    background: linear-gradient(to left, #fff, #f9f9f9);
}

.img-wrapper img {
    max-width: 90%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
}

.text-wrapper {
    border-right: 4px solid var(--primary-light); /* خط رنگی کنار متن */
}

@media (max-width: 768px) {
    .hero-split .row {
        flex-direction: column-reverse;
    }

    .text-wrapper, .img-wrapper {
        text-align: center;
    }

    .text-wrapper {
        border-right: none;
        border-top: 4px solid var(--primary-light);
    }
}

.swiper-section {
    background: linear-gradient(to right, #fff, #f9f9f9);
}

/* کارت و دکمه ثبت نام */
.register-button {
    background-color: #E16539;
    border: none;
    color: white;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.25s ease;
    font-size: 0.9rem;
}

.register-button:hover {
    background-color: #cc4a2a;
}

.swiper {
    overflow: hidden;
    padding: 20px 10px;
}

.swiper-slide {
    width: 270px !important; /* اندازه کارت‌ها */
}

.card {
    height: 100%;
}

.swiper-button-next,
.swiper-button-prev {
    background-color: #666 !important; /* زمینه خاکستری */
    color: white !important; /* فلش سفید */
    font-size: 14px !important;
    border-radius: 25px;
    width: 50px;
    height: 50px;
    padding: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* فلش‌ها رو وسط دقیق قرار بده */
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 14px !important;
    font-weight: bold;
}

/* حالت هاور */
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: #ca4c2f !important; /* رنگ برند در هاور */
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}


.card-body {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.why-hijab {
    background: linear-gradient(to left, #fff, #f9f9f9);
}

.feature-box {
    background-color: #fff;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.feature-box i {
    color: #E16539 !important;
}

.hover-shadow {
    transition: all 0.3s ease-in-out;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.faq-icon {
    font-size: 1.5rem; /* سایز آیکن */
    color: #E16539 !important;
    transition: all 0.3s ease;
}


.accordion-button {
    background-color: white !important;
}


.section-title {
    border-right: 5px solid var(--primary-light);
    padding: 5px 10px;
    text-align: center;
    font-weight: bold;
    background-color: #fff;
    transition: all 0.3s ease;

}

.more-link {
    text-decoration: none;
    font-weight: 500;
    color: var(--primary-light);
}

.more-link:hover {
    color: var(--primary-light);
}

.card img {
    height: 180px;
    object-fit: cover;
}

.pre-register {
    background-color: #f22d34;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 50%;
}

.about-hero {
    background-color: var(--primary-light) !important;
}

.login-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    width: 100%;
    max-width: 420px;
    color: white;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
}

.login-card h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.login-card p {
    text-align: center;
    font-size: 0.9rem;
    color: #eee;
}


.form-outline .toggle-password {
    position: absolute;
    right: 15px;
    top: 45%;
    transform: translateY(-45%);
    cursor: pointer;
    color: #ccc;
}

.form-wrapper {
    border-top: 4px solid var(--primary-light);
}

.btn-cta {
    background-color: #E16539;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: #b34f28; /* تیره‌تر از رنگ اصلی */
    transform: scale(1.05);
    box-shadow: 0 0.5rem 1rem rgba(225, 101, 57, 0.3);
    color: #fff;
}

.ground-box {
    display: flex;
    min-height: 400px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    background: linear-gradient(to bottom right, #e16539, #f98f4b);
}

.course-schedule-form {
    border: 1px solid #ddd;
    transition: box-shadow 0.3s ease;
}

.course-schedule-form:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.day-btn {
    border: 2px solid #E16539 !important;
    color: #E16539 !important;
    background-color: transparent;
    transition: all 0.3s ease;
}

.day-btn:hover,
.day-btn.active {
    background-color: #E16539 !important;
    color: #fff !important;
}

.day-btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.15rem rgba(225, 101, 57, 0.5); /* سایه ملایم با رنگ نارنجی */
}

/* حذف focus آبی Bootstrap */
.day-btn:focus,
.day-btn:focus-visible {
    outline: none;
    box-shadow: none;
}


.session-btn {
    border: 2px solid #E16539 !important;
    color: #E16539 !important;
    background-color: transparent;
    transition: all 0.3s ease;
}

.session-btn:hover,
.session-btn.active {
    background-color: #E16539 !important;
    color: #fff !important;
}

.session-btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.15rem rgba(225, 101, 57, 0.5); /* سایه ملایم با رنگ نارنجی */
}

/* حذف focus آبی Bootstrap */
.session-btn:focus,
.session-btn:focus-visible {
    outline: none;
    box-shadow: none;
}

.calendar-wrapper {
    max-width: 500px;
    margin-left: auto; /* تقویم می‌ره سمت راست */
    margin-right: 0;
    padding: 15px;
}


.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-day {
    height: 42px;
    font-size: 14px;
    border: 1px solid #eee;
    text-align: center;
    line-height: 42px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
}

.calendar-day:hover {
    background-color: #ffe5d0;
    border-color: #f39c12;
}

.holiday {
    background-color: #f8d7da;
    color: #721c24;
}

.today {
    border: 2px solid #E16539;
    background-color: #fff3cd;
}

.selected-day {
    background-color: #E16539;
    color: white;
    font-weight: bold;
}

/* موبایل */
@media (max-width: 576px) {
    .calendar-wrapper {
        max-width: 100%;
        padding: 0 10px;
    }

    .calendar-day {
        height: 36px;
        font-size: 12px;
        line-height: 36px;
    }

    .calendar-grid {
        gap: 4px;
    }
}

.register-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 56px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid var(--btn-bg, #E16539);
    color: var(--btn-text, #E16539);
    background-color: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    gap: 8px;
}

.register-btn:hover {
    background-color: var(--btn-bg, #E16539);
    color: #fff;
    border-color: transparent;
}

.register-btn i {
    transition: transform 0.3s ease;
}

.register-btn:hover .rtl {
    transform: translateX(-10px);
}


.register-icon {
    transition: transform 0.3s ease;
}

/* انیمیشن فلش هنگام هاور */
.register-btn:hover .next-icon.rtl {
    transform: translateX(-8px);
}

.next-icon {
    transition: transform 0.3s ease;
}

.course-description {
    background: linear-gradient(to left, #ffffff, #f9f9f9);
    color: #333;
}

.description-box {
    background-color: #fff;
    border-left: 5px solid #E16539;
    border-radius: 12px;
    font-size: 1.05rem;
    line-height: 2;
    color: #444;
    position: relative;
    overflow: hidden;
}

.description-box::before {
    content: '📝';
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 4rem;
    color: rgba(225, 101, 57, 0.1);
    transform: rotate(-20deg);
}

.description-box p {
    margin-bottom: 1.5rem;
}

.description-box p::before {
    content: "• ";
    color: #E16539;
    font-weight: bold;
}


.typography {
    color: white;
    font-size: 20px;
    margin-left: 10px;

}

.pagination-container {
    display: flex;
    justify-content: center;
}

.search-bar-container {
    display: flex;
    justify-content: center; /* مرکز کردن نوار جستجو */
    margin: 50px auto; /* فاصله از بالا و پایین */
    width: 80%; /* نوار جستجو تمام عرض را بگیرد */
    direction: rtl;
}

.search-input {
    flex: 1; /* به نوار جستجو اجازه می‌دهد تمام فضای در دسترس را پر کند */
    padding: 10px 15px; /* فاصله داخلی */
    border: 2px solid #ccc; /* حاشیه خاکستری */
    border-radius: 25px; /* گوشه‌های گرد */
    outline: none;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* سایه خفیف */
    transition: border-color 0.3s;
    text-align: right;
}

.search-input:focus {
    border-color: #E16539; /* رنگ حاشیه وقتی روی فیلد کلیک می‌شود */
}


.table-actions {
    display: flex;
    justify-content: flex-end; /* دکمه در سمت راست قرار می‌گیرد */
    margin-top: 20px;
}

.add-data-button:hover {
    background-color: #a84e2c; /* تغییر رنگ در حالت hover */
    color: #c4c4c4;
}


.custom-btn {
    background-color: #E16539; /* رنگ دلخواه */
    border: none; /* حذف حاشیه */
    color: white;
}

.custom-btn:hover {
    background-color: #a84e2c; /* تغییر رنگ در حالت hover */
    color: #c4c4c4; /* رنگ برای حالت هاور */
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
    z-index: 99;
    width: 75%;
    max-height: 150px;
    overflow-y: auto;
    background-color: white;
    box-sizing: border-box;
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
}

.autocomplete-items div:hover {
    background-color: #e9e9e9;
}

.autocomplete-active {
    background-color: #e9e9e9; /* رنگ پس‌زمینه وقتی روی آیتم هاور می‌شود */
}

.dashboard-title {
    color: #E16539;
    font-weight: 600;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
}

.table-responsive table {
    width: 100% !important;
    table-layout: auto;
}

table thead {
    background-color: #f8f9fa;
    font-weight: bold;
    text-align: center;
}

table i {
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.3s;
    font-size: 1rem; /* کوچیک‌تر برای موبایل بهتره */
    min-width: 24px;
    text-align: center;
}

table i:hover {
    background-color: #f1f1f1;
}

@media (max-width: 768px) {
    table {
        width: 100%;
        display: block;

    }

    table i {
        font-size: 0.9rem;
        padding: 2px 4px;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-left: 5px;
        padding-right: 5px;
    }

    table td, table th {
        white-space: normal; /* نذار متن بشکنه */
    }

}

.card h5, table thead th {
    color: var(--primary-light); /* رنگ برند */
    font-weight: bold;
}


