/* ==========================================================================
   FAQ Section
   ========================================================================== */

   .faq-section {
    background: #FEF6F0;
    padding: 80px 0 0;
}

.faq-section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.faq-section-layout {
    display: flex;
    /* flex-direction: row-reverse; */ /* RTL: Content on right, FAQ on left */
    gap: 80px;
    align-items: flex-start;
}

/* Right Side - Content */
.faq-section-content {
    flex: 0 0 380px;
    position: sticky;
    top: 120px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.faq-section.animate-in .faq-section-content {
    opacity: 1;
    transform: translateY(0);
}

.faq-section-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
    line-height: 1.2;
    white-space: pre-line;
    word-wrap: break-word;
    overflow-wrap: break-word;
    direction: rtl;
}

.faq-section-title br {
    display: block !important;
    margin: 0;
    line-height: 0.5em;
    height: 0.5em;
}

.faq-section-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Tabs - Vertical with arrows */
.faq-tabs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.faq-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 21px 8px 8px;
    background: white;
    border: none;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: right;
}

.faq-tab:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

.faq-tab.active {
    background: #F6B38D;
    color: black;
}

.faq-tab-text {
    flex: 1;
}

.faq-tab-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    color: #1a1a1a;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-tab.active .faq-tab-arrow {
    opacity: 1;
}

.faq-tab-arrow svg {
    width: 16px;
    height: 16px;
}

/* CTA - Desktop */
.faq-cta-wrapper {
    text-align: right;
}

.faq-cta-text {
    font-size: 15px;
    color: #666;
    margin: 0 0 16px;
}

.faq-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--color-primary, #153C6D);
    color: white;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.faq-cta-button:hover {
    background: #0f2d52;
    transform: translateY(-2px);
}

/* CTA - Mobile (hidden on desktop) */
.faq-cta-wrapper-mobile {
    display: none;
}

/* Left Side - Accordion */
.faq-section-accordion {
    flex: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.faq-section.animate-in .faq-section-accordion {
    opacity: 1;
    transform: translateY(0);
}

.faq-accordion-content {
    display: none;
}

.faq-accordion-content.active {
    display: block;
}

/* FAQ Item */
.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-item-header {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: right;
    transition: all 0.3s ease;
    /* flex-direction: row-reverse; */ /* RTL: indicator on right */
}

.faq-item-header:hover {
    background: rgba(246, 179, 141, 0.1);
}

.faq-item-indicator {
    flex-shrink: 0;
}

.faq-item-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    text-align: right;
}

.faq-item-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
}

.faq-item-icon svg {
    width: 16px;
    height: 16px;
}

.faq-item-icon .vertical {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-item.active .faq-item-icon .vertical {
    transform: rotate(90deg);
    opacity: 0;
}

/* FAQ Content */
.faq-item-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-item-content {
    max-height: 500px;
}

.faq-item-answer {
    padding: 0 24px 24px 24px;
    padding-right: 60px;
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    text-align: right;
}

.faq-item-answer p {
    margin: 0 0 12px;
}

.faq-item-answer p:last-child {
    margin-bottom: 0;
}

/* No FAQs message */
.no-faqs {
    text-align: center;
    padding: 48px;
    color: #999;
    font-size: 16px;
}

/* Bottom Line */
.faq-section-bottom-line {
    height: 8px;
    background: #F6B38D;
    margin-top: 80px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
    .faq-section-container {
        padding: 0 32px;
    }
    
    .faq-section-layout {
        gap: 60px;
    }
    
    .faq-section-content {
        flex: 0 0 320px;
    }
    
    .faq-section-title {
        font-size: 36px;
    }
}

@media (max-width: 1024px) {
    .faq-section {
        padding: 60px 0 80px;
    }
    
    .faq-section-layout {
        flex-direction: column;
        gap: 0;
    }
    
    .faq-section-content {
        flex: none;
        width: 100%;
        position: static;
        text-align: center;
        order: 1; /* Title first on mobile */
    }
    
    .faq-section-accordion {
        order: 2; /* Accordion after tabs */
    }
    
    .faq-section-title {
        font-size: 32px;
    }
    
    .faq-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .faq-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .faq-tab-arrow {
        width: 28px;
        height: 28px;
    }
    
    /* Hide desktop CTA, show mobile CTA */
    .faq-cta-wrapper {
        display: none;
    }
    
    .faq-cta-wrapper-mobile {
        display: block;
        text-align: center;
        margin-top: 40px;
    }
    
    .faq-cta-wrapper-mobile .faq-cta-button {
        background: #153C6D;
        width: 100%;
        max-width: 300px;
    }
    
    .faq-cta-wrapper-mobile .faq-cta-button:hover {
        background: #e5a27c;
    }
    
    .faq-section-accordion {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 48px 0 70px;
    }
    
    .faq-section-container {
        padding: 0 24px;
    }
    
    .faq-section-title {
        font-size: 28px;
    }
    
    .faq-section-title br {
        display: block !important;
        margin: 0;
        line-height: 0.5em;
        height: 0.5em;
    }
    
    .faq-section-description {
        font-size: 15px;
        margin-bottom: 24px;
    }
    
    .faq-tabs {
        margin-bottom: 32px;
    }
    
    .faq-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .faq-tab-arrow {
        width: 24px;
        height: 24px;
    }
    
    .faq-tab-arrow svg {
        width: 14px;
        height: 14px;
    }
    
    .faq-item-header {
        padding: 16px 20px;
        gap: 12px;
    }
    
    .faq-item-title {
        font-size: 15px;
    }
    
    .faq-item-answer {
        padding: 0 20px 20px 20px;
        padding-right: 48px;
        font-size: 14px;
    }
    
    .faq-cta-wrapper-mobile .faq-cta-button {
        max-width: 50%;
        padding: 16px 32px;
    }
}

@media (max-width: 480px) {
    .faq-section {
        padding: 40px 0 0;
    }
    
    .faq-section-container {
        padding: 0 16px;
    }
    
    .faq-section-title {
        font-size: 24px;
    }
    
    .faq-section-title br {
        display: block !important;
        margin: 0;
        line-height: 0.5em;
        height: 0.5em;
    }
    
    .faq-tabs {
        gap: 6px;
    }
    
    .faq-tab {
        padding: 8px 14px;
        font-size: 12px;
        gap: 8px;
        justify-content: center;
    }
    
    .faq-tab-arrow {
        width: 22px;
        height: 22px;
        display: none;
    }
    
    .faq-item-header {
        padding: 14px 16px;
        gap: 10px;
    }
    
    .faq-item-indicator svg {
        width: 10px;
        height: 10px;
    }
    
    .faq-item-title {
        font-size: 14px;
    }
    
    .faq-item-answer {
        padding: 0 16px 16px 16px;
        padding-right: 40px;
        font-size: 13px;
    }
}
