/* ==========================================
   FAQ Page Styles
   Responsive & RTL Ready
========================================== */

/* Breadcrumb */
.breadcrumb-wrapper {
    padding: 120px 0 60px;
    position: relative;
}

.breadcrumb-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.page-heading {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-heading h1 {
    color: #fff;
    font-size: 48px;
    margin-bottom: 15px;
}

.breadcrumb-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-items li {
    color: #fff;
}

.breadcrumb-items a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.breadcrumb-items a:hover {
    color: #951010;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}

.faq-section .row {
    margin-left: -15px;
    margin-right: -15px;
}

.faq-section .row > [class*='col-'] {
    padding-left: 15px;
    padding-right: 15px;
}

.section-padding {
    padding: 80px 0;
}

.mb-60 {
    margin-bottom: 60px;
}

.section-title {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-title .sub-title {
    color: #951010;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.section-title h2 {
    font-size: 42px;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

/* FAQ Categories */
.faq-categories-wrapper {
    position: sticky;
    top: 100px;
}

.faq-categories-wrapper h4 {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 25px;
    padding: 0 5px;
}

.faq-category-list {
    list-style: none;
    padding: 20px 15px;
    margin: 0 0 30px 0;
    background: #f8f8f8;
    border-radius: 8px;
}

.faq-category-list li {
    padding: 15px 20px;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    color: #666;
    font-weight: 500;
    text-align: left;
}

.faq-category-list li:last-child {
    margin-bottom: 0;
}

.faq-category-list li i {
    font-size: 18px;
    color: #951010;
    width: 20px;
}

.faq-category-list li:hover,
.faq-category-list li.active {
    background: #fff;
    color: #222;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* FAQ Contact Box */
.faq-contact-box {
    background: linear-gradient(135deg, #951010 0%, #b8883c 100%);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    color: #fff;
}

.faq-contact-box .icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.faq-contact-box .icon i {
    font-size: 32px;
    color: #fff;
}

.faq-contact-box h5 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.faq-contact-box p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
    line-height: 1.6;
}

.faq-contact-box .theme-btn {
    background: #fff;
    color: #951010;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.faq-contact-box .theme-btn:hover {
    background: #222;
    color: #fff;
}

/* FAQ Accordion */
.faq-accordion-wrapper {
    background: #fff;
    margin-top: 0;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 0;
    overflow: hidden;
}

.accordion-item:last-child {
    margin-bottom: 0;
}

.accordion-button {
    padding: 20px 60px 20px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    background: #fff;
    border: none;
    text-align: left;
    width: 100%;
    position: relative;
    transition: 0.3s;
}

/* Hide default Bootstrap arrow and background image */
.accordion-button::before {
    display: none !important;
    content: none !important;
}

.accordion-button::-webkit-details-marker {
    display: none;
}

.accordion-button {
    background-image: none !important;
}

.accordion-button:not(.collapsed) {
    background: #f8f8f8;
    color: #951010;
    box-shadow: none;
    background-image: none !important;
}

/* Force hide Bootstrap's chevron icon */
.accordion-button[data-bs-toggle="collapse"]::before {
    background-image: none !important;
}

.accordion-button::after {
    content: '+' !important;
    font-family: inherit !important;
    font-weight: 700 !important;
    position: absolute !important;
    right: 25px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: 0.3s !important;
    color: #951010 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    background-image: none !important;
    width: auto !important;
    height: auto !important;
}

.accordion-button:not(.collapsed)::after {
    content: '−' !important;
    background-image: none !important;
}

.accordion-button:hover {
    background: #f8f8f8;
}

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

.accordion-body {
    padding: 20px 25px;
    color: #666;
    line-height: 1.8;
    background: #fff;
}

/* Responsive Design */
@media (max-width: 991px) {
    .faq-categories-wrapper {
        position: static;
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 36px;
    }

    .page-heading h1 {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .section-title h2 {
        font-size: 28px;
    }

    .page-heading h1 {
        font-size: 28px;
    }

    .breadcrumb-wrapper {
        padding: 100px 0 50px;
    }

    .faq-section {
        padding: 60px 0;
    }

    .accordion-button {
        padding: 15px 50px 15px 20px;
        font-size: 15px;
    }

    .accordion-button::after {
        right: 20px;
    }

    .accordion-body {
        padding: 15px 20px;
    }

    .faq-contact-box {
        padding: 30px 20px;
    }
}

/* ==========================================
   RTL Support
========================================== */
html[dir="rtl"] .page-heading {
    direction: rtl;
}

html[dir="rtl"] .page-heading h1 {
    text-align: center;
    direction: rtl;
}

html[dir="rtl"] .breadcrumb-items {
    flex-direction: row-reverse;
}

html[dir="rtl"] .breadcrumb-items i {
    transform: rotate(180deg);
}

html[dir="rtl"] .section-title {
    text-align: center;
    direction: rtl;
}

html[dir="rtl"] .section-title .sub-title {
    text-align: center;
}

html[dir="rtl"] .section-title h2 {
    text-align: center;
}

html[dir="rtl"] .section-title p {
    text-align: center;
}

html[dir="rtl"] .faq-categories-wrapper {
    direction: rtl;
}

html[dir="rtl"] .faq-categories-wrapper h4 {
    text-align: right;
    padding: 0 5px;
}

html[dir="rtl"] .faq-category-list {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .faq-category-list li {
    flex-direction: row-reverse;
    text-align: right;
    justify-content: space-between;
}

html[dir="rtl"] .faq-category-list li i {
    margin-right: 0;
    margin-left: 0;
    order: 2;
}

html[dir="rtl"] .faq-category-list li span {
    text-align: right;
    order: 1;
    flex: 1;
}

html[dir="rtl"] .faq-contact-box {
    direction: rtl;
    text-align: center;
}

html[dir="rtl"] .faq-contact-box h5 {
    text-align: center;
}

html[dir="rtl"] .faq-contact-box p {
    text-align: center;
}

html[dir="rtl"] .faq-contact-box .theme-btn {
    flex-direction: row-reverse;
}

html[dir="rtl"] .faq-contact-box .theme-btn i {
    margin-right: 8px;
    margin-left: 0;
}

html[dir="rtl"] .faq-accordion-wrapper {
    direction: rtl;
}

html[dir="rtl"] .accordion-item {
    direction: rtl;
}

html[dir="rtl"] .accordion-button {
    text-align: right;
    padding-right: 25px;
    padding-left: 60px;
    direction: rtl;
}

html[dir="rtl"] .accordion-button::after {
    right: auto !important;
    left: 25px !important;
}

html[dir="rtl"] .accordion-body {
    text-align: right;
    direction: rtl;
}

@media (max-width: 767px) {
    html[dir="rtl"] .accordion-button {
        padding-right: 20px;
        padding-left: 50px;
    }

    html[dir="rtl"] .accordion-button::after {
        left: 20px;
    }
}
