/* ==========================================================================
   Barsava Overrides روی قالب Inva
   - فونت وزیرمتن جایگزین فونت‌های غایب قالب
   - رنگ برند بارثاوا ابتکار یگانه ( کهربایی )
   ========================================================================== */

/* فونت وزیرمتن برای کل سایت */
body,
body * {
    font-family: 'Vazirmatn', 'Vazir-Regular-FD', Tahoma, sans-serif !important;
}

/* رنگ برند بارثاوا ابتکار یگانه روی دکمه‌های قالب */
.common-btn,
.common-btn span {
    background-color: #d97706;
}
.common-btn:hover {
    background-color: #b45309;
}

.services-item.card-overlay.active {
    background-color: #d97706;
}

/* لینک‌های فوتر - راست‌چین */
.footer-link li,
.footer-hours li,
.footer-contact li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* آیکون‌های فوتر در RTL */
.footer-link li i {
    order: 2;
}

/* تیتر بخش‌ها - بهبود خوانایی فارسی */
.section-title h2 {
    line-height: 1.6;
}

/* سرچ اورلی - راست‌چین */
#search-box .form-control {
    text-align: right;
}

/* لینک‌های منوی اصلی - رنگ برند */
.navbar-nav .nav-item .nav-link:hover {
    color: #d97706;
}

.mean-container .mean-nav ul li a:hover,
.mean-container .mean-nav ul li a.active {
    color: #d97706;
}

/* دکمه‌های owl carousel در RTL */
.owl-nav button.owl-prev,
.owl-nav button.owl-next {
    color: #d97706;
}

/* ستاره‌های نظرات */
.testimonials-item .bxs-star {
    color: #d97706;
}

/* سال در باکس About */
.about-img .years h3 {
    color: #d97706;
}

/* گوشه بالا - دکمه بازگشت */
.go-top {
    background-color: #d97706;
}
.go-top:hover {
    background-color: #b45309;
}

/* پس‌زمینه سفید قالب اصلی Inva ( جایگزین خاکستری barsava-theme ) */
body {
    background-color: #fff !important;
    color: #444;
    font-family: 'Vazir-Regular-FD', 'Segoe UI', Tahoma, sans-serif;
}

/* --- صفحه درباره ما: هم‌رنگ‌سازی با برند کهربایی --- */
.section-title .sub-title {
    color: #d97706;
}

.founder-area .founder-content .nav-pills .nav-link {
    color: #b45309;
    background-color: #d977061f;
}

.founder-area .founder-content .nav-pills .nav-link.active,
.founder-area .founder-content .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #d97706;
}

.founder-area .founder-content .tab-pane ul li::before {
    background-color: #d97706;
}

/* نوار دعوت به اقدام (CTA) درباره ما */
.subscribe-area.four:before {
    background-color: #d97706;
}

.subscribe-area.four .subscribe-wrap .section-title.two {
    text-align: right;
}

.subscribe-area.four .common-btn {
    background-color: #fff;
    color: #b45309;
}

.subscribe-area.four .common-btn:hover {
    background-color: #fef3c7;
}

/* تصویر بخش «چگونه کار می‌کنیم» درباره ما */
.work-area.three .work-video {
    background-image: url(../assets/img/about/about3.jpg);
}

/* خوانایی عنوان صفحه روی تصویر روشن */
.page-title-area {
    overflow: hidden;
}

.page-title-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 46, 107, .9), rgba(2, 46, 107, .55));
    z-index: 0;
}

.page-title-area .d-table {
    position: relative;
    z-index: 1;
    height: 100%;
}

/* اشکال مورب بخش‌ها با رنگ برند */
.about-area.four.section-overlay::before,
.about-area.four.section-overlay::after,
.founder-area.section-overlay::before,
.founder-area.section-overlay::after {
    border-top-color: #d97706;
    border-bottom-color: #d97706;
}

/* شماره/کلمه رنگی تیترها با رنگ برند */
.section-title h2 span {
    color: #d97706;
}

/* متن‌های بلند معرفی، خواناتر */
.about-area .about-content .about-p,
.founder-area .founder-content .founder-p {
    line-height: 2;
    text-align: justify;
}

/* آیکون مزیت‌ها در حالت هاور */
.about-area .about-content ul:hover i {
    background-color: #d97706;
}

/* پاراگراف نوار CTA */
.subscribe-area.four .section-title.two p {
    margin-right: 0;
    margin-left: auto;
}

/* ==========================================================================
   صفحه رویدادها (بر اساس projects.html قالب Inva)
   ========================================================================== */
.events-projects .projects-item {
    position: relative;
    margin-bottom: 30px;
    text-align: right;
}

.events-projects .projects-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    background-color: #f1f5f9;
    border-radius: 14px;
}

.events-projects .projects-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 5;
    object-fit: cover;
    transition: transform .5s ease;
    border-radius: 14px;
}

.events-projects .projects-item:hover .projects-thumb img {
    transform: scale(1.05);
}

/* برچسب وضعیت رویداد */
.events-projects .events-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background-color: #022e6b;
}

.events-projects .events-badge.is-running {
    background-color: #d97706;
}

.events-projects .events-badge.is-finished {
    background-color: #64748b;
}

/* کادر اطلاعات روی تصویر */
.events-projects .projects-item .inner {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    max-width: 88%;
    margin: -45px auto 0;
    padding: 16px 18px;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .14);
    z-index: 2;
    text-align: right;
}

.events-projects .projects-item .inner h3 {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 6px;
}

.events-projects .projects-item .inner h3 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #1e293b;
}

.events-projects .projects-item .inner h3 a:hover {
    color: #d97706;
}

.events-projects .events-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    line-height: 1.9;
    color: #64748b;
}

.events-projects .events-meta i {
    font-size: 15px;
    color: #d97706;
}

/* حالت خالی */
.events-empty {
    padding: 70px 20px;
    text-align: center;
    background-color: #fcf9f7;
}

.events-empty i {
    font-size: 56px;
    color: #d97706;
}

.events-empty h3 {
    font-size: 22px;
    margin: 15px 0 10px;
}

.events-empty p {
    margin: 0;
    color: #64748b;
}

/* رنگ برند در کارت‌های پروژه/رویداد */
.projects-item .inner h3 a {
    color: #d97706;
}

.projects-item.card-overlay::before,
.projects-item.card-overlay::after {
    border-top-color: #d97706;
    border-bottom-color: #d97706;
}

/* صفحه‌بندی */
.pagination-area ul li a {
    color: #b45309;
    background-color: #d977061f;
}

.pagination-area ul li a:hover,
.pagination-area ul li a.active {
    color: #fff;
    background-color: #d97706;
}

.pagination-area ul li span.is-disabled {
    display: block;
    padding: 4px 16px;
    color: #94a3b8;
    background-color: #f1f5f9;
    cursor: not-allowed;
}

/* ==========================================================================
   صفحه تماس با ما (بر اساس contact.html قالب Inva)
   ========================================================================== */
.contact-area .form-group .form-control {
    height: 50px;
    padding: 10px 18px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #334155;
}

.contact-area .form-group textarea.form-control {
    height: auto;
    min-height: 180px;
    padding-top: 14px;
}

.contact-area .form-group .form-control:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, .12);
}

.contact-area .common-btn {
    background-color: #d97706;
    color: #fff;
    border: 0;
    padding: 14px 20px;
    -webkit-transition: .3s all ease;
    transition: .3s all ease;
}

.contact-area .common-btn:hover {
    background-color: #b45309;
    color: #fff;
}

.contact-area .contact-info ul li i {
    color: #d97706;
}

.contact-area .contact-info ul li a:hover {
    color: #d97706;
}

.contact-area .form-check a {
    color: #d97706;
}

.contact-area .form-check-input:checked {
    background-color: #d97706;
    border-color: #d97706;
}

.contact-area .form-check-input:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 .2rem rgba(217, 119, 6, .2);
}

/* آدرس چندخطی دفاتر */
.contact-area .contact-info .contact-address {
    display: block;
    white-space: pre-line;
    line-height: 2;
    color: #64748b;
}

/* پیام موفقیت فرم */
.contact-area .contact-alert {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

/* ==========================================================================
   صفحه قوانین / حریم خصوصی — استایل خوانا بر اساس قالب Inva
   ========================================================================== */
.privacy-policy-area {
    background-color: #fff;
    padding: 80px 0 80px;
}
.privacy-policy-area .container {
    position: relative;
}
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    direction: rtl;
}
.privacy-content .section-title {
    text-align: right;
    margin-bottom: 24px;
}
.privacy-content .section-title h3 {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}
.privacy-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #64748b;
    flex-wrap: wrap;
}
.privacy-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.privacy-meta i {
    color: #d97706;
}
.privacy-body {
    color: #475569;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 40px;
}
.privacy-body p {
    margin-bottom: 20px;
}
.privacy-body h4 {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin: 28px 0 12px;
    padding-right: 10px;
    border-right: 3px solid #d97706;
    display: inline-block;
}
.privacy-body h3 {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin: 32px 0 16px;
}
.privacy-body a {
    color: #d97706;
    text-decoration: underline;
    transition: color .25s ease;
}
.privacy-body a:hover {
    color: #b45309;
}
.privacy-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
    text-align: right;
    color: #64748b;
    font-size: 14px;
}
@media (max-width: 767px) {
    .privacy-policy-area {
        padding: 60px 0 60px;
    }
    .privacy-content .section-title h3 {
        font-size: 20px;
    }
    .privacy-body h4 {
        font-size: 17px;
    }
}

/* ==========================================================================
   پایان استایل‌های صفحه FAQ / بلاگ / قوانین
   ========================================================================== */

/* ==========================================================================
   صفحات بلاگ / مطالب — استایل کارت‌محور بر اساس قالب Inva
   ========================================================================== */
.blog-area {
    background-color: #fff;
    padding: 80px 0 60px;
}
.blog-area .container {
    position: relative;
}
.blog-area .section-title {
    text-align: center;
    margin-bottom: 50px;
}
.blog-area .section-title h2 {
    font-size: 36px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
}
.blog-area .section-title p {
    font-size: 16px;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
}
.blog-item {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
    margin-bottom: 30px;
}
.blog-item:hover {
    box-shadow: 0 8px 24px rgba(17, 24, 39, .12);
    border-color: #d97706;
    transform: translateY(-4px);
}
.blog-thumb {
    position: relative;
    overflow: hidden;
    height: 220px;
    background-color: #f1f5f9;
}
.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.blog-item:hover .blog-thumb img {
    transform: scale(1.05);
}
.blog-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    direction: rtl;
}
.blog-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.blog-meta ul {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.blog-meta ul li {
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}
.blog-meta ul li i {
    color: #d97706;
    font-size: 14px;
}
.blog-item h3 {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 12px;
    line-height: 1.5;
}
.blog-item h3 a {
    color: #111827;
    text-decoration: none;
    transition: color .25s ease;
}
.blog-item h3 a:hover {
    color: #d97706;
}
.blog-item p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 18px;
    flex: 1;
}
.blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #d97706;
    text-decoration: none;
    padding-top: 6px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
    transition: all .25s ease;
}
.blog-btn:hover {
    color: #b45309;
    border-top-color: #d97706;
    padding-right: 6px;
}
.blog-btn i {
    font-size: 12px;
    transition: transform .25s ease;
}
.blog-btn:hover i {
    transform: translateX(4px);
}
.blog-sidebar {
    direction: rtl;
}
.sidebar-widget {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}
.sidebar-title {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 16px;
    padding-right: 10px;
    border-right: 4px solid #d97706;
    display: inline-block;
}
.sidebar-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar-categories li {
    margin-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}
.sidebar-categories li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}
.sidebar-categories li a {
    font-size: 15px;
    color: #475569;
    text-decoration: none;
    transition: color .25s ease;
    display: block;
}
.sidebar-categories li a:hover {
    color: #d97706;
    padding-right: 6px;
}
.sidebar-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar-posts li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.sidebar-posts li:last-child {
    margin-bottom: 0;
}
.sidebar-posts li a {
    font-size: 14px;
    color: #475569;
    text-decoration: none;
    line-height: 1.6;
    transition: color .25s ease;
    display: block;
}
.sidebar-posts li a:hover {
    color: #d97706;
}
@media (max-width: 991px) {
    .blog-item {
        margin-bottom: 30px;
    }
}
@media (max-width: 767px) {
    .blog-area {
        padding: 60px 0 40px;
    }
    .blog-area .section-title h2 {
        font-size: 28px;
    }
    .blog-thumb {
        height: 180px;
    }
    .sidebar-widget {
        padding: 16px;
    }
}

/* ==========================================================================
   صفحات FAQ / سوالات متداول — استایل تماسك‌شده بر اساس قالب Inva
   ========================================================================== */
.faq-section {
    padding: 80px 0 60px;
    background-color: #fcf9f7;
}
.faq-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}
.faq-section .section-title h2 {
    font-size: 36px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
}
.faq-section .section-title p {
    font-size: 16px;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
}
.faq-info {
    max-width: 900px;
    margin: 0 auto;
}
.faq-category {
    margin-bottom: 20px;
}
.faq-category-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    padding-right: 12px;
    border-right: 4px solid #d97706;
    display: inline-block;
}
.faq-card details {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    transition: box-shadow .25s ease, border-color .25s ease;
}
.faq-card details[open] {
    box-shadow: 0 8px 24px rgba(17, 24, 39, .12);
    border-color: #d97706;
}
.faq-card summary {
    cursor: pointer;
    padding: 16px 20px;
    font-weight: 700;
    font-size: 16px;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    outline: none;
    transition: color .25s ease;
}
.faq-card summary::-webkit-details-marker {
    display: none;
}
.faq-card summary:hover {
    color: #d97706;
}
.faq-card details[open] summary {
    color: #d97706;
    border-bottom: 1px solid #f1f5f9;
}
.faq-card .faq-icon {
    width: 20px;
    height: 20px;
    color: #94a3b8;
    transition: transform .25s ease, color .25s ease;
    flex-shrink: 0;
    margin-left: 10px;
}
.faq-card details[open] .faq-icon {
    transform: rotate(180deg);
    color: #d97706;
}
.faq-card .faq-body {
    padding: 0 20px 18px;
    color: #475569;
    font-size: 15px;
    line-height: 1.8;
}
.faq-card .faq-body p {
    margin: 0;
}
.faq-card details[open] .faq-body {
    animation: faqSlideDown .3s ease forwards;
}
@keyframes faqSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 767px) {
    .faq-section {
        padding: 60px 0 40px;
    }
    .faq-section .section-title h2 {
        font-size: 28px;
    }
    .faq-card summary {
        font-size: 15px;
        padding: 14px 16px;
    }
}
.contact-area .contact-alert {
    padding: 14px 18px;
    border: 0;
    border-radius: 4px;
    background-color: #ecfdf5;
    color: #065f46;
    font-size: 15px;
}

.contact-area .contact-alert i {
    font-size: 22px;
    line-height: 1;
}

/* نقشه */
.map-area #map {
    border-radius: 4px;
    -webkit-filter: grayscale(.15);
    filter: grayscale(.15);
}

.map-area .map-caption {
    margin-top: 14px;
    text-align: left;
}

.map-area .map-caption a {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #d97706;
}

.map-area .map-caption a i {
    font-size: 17px;
    position: relative;
    top: 2px;
}

.map-area .map-caption a:hover {
    color: #b45309;
}

/* دکمه انتخاب زبان در هدر (پس از دکمه جستجو) */
.side-nav .nav-flag-dropdown {
    margin-right: 12px;
}

.side-nav .nav-flag-dropdown .btn:hover {
    color: #d97706;
}

.side-nav .nav-flag-dropdown .dropdown-menu a:hover {
    border-left-color: #d97706;
}

/* پیش‌بارگذار حداکثر ۲.۵ ثانیه نمایش داده می‌شود تا در صورت کندی منابع
   خارجی (فونت/نقشه) صفحه پشت آن قفل نشود. */
.loader {
    -webkit-animation: barsava-hide-loader .4s ease 2.5s forwards;
    animation: barsava-hide-loader .4s ease 2.5s forwards;
}

@-webkit-keyframes barsava-hide-loader {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

@keyframes barsava-hide-loader {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

