/**
 * FAQ Dual Block Styles
 */

.faq-dual {
    width: 100%;
    padding: 100px 0 100px 0;
    background: #fff;
    font-family: 'Urbano', sans-serif;
}

/* Main Heading */
.faq-dual__main-header {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.faq-dual__subheading {
    font-size: 35px;
    font-weight: 400;
    color: #F7931D;
    margin: 0 0 30px 0;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.faq-dual__description {
    font-size: 22px;
    font-weight: 400;
    color: #000;
    margin: -20px 0 40px 0;
    text-align: left;
    line-height: 1.5;
    max-width: 800px;
}

.faq-dual__main-heading {
    font-size: 65px;
    font-weight: 400;
    color: #000;
    margin: 0;
    line-height: 70px;
    max-width: 900px;
    margin: 0 auto;
}

/* Rich text heading styles */
.faq-dual__main-heading p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
}

.faq-dual__main-heading strong {
    font-weight: 600;
}

.faq-dual__main-heading em {
    font-style: italic;
}

.faq-dual__main-heading a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.faq-dual__main-heading a:hover {
    color: #0970B8;
    text-decoration: underline;
}

/* FAQ Container */
.faq-dual__container {
    max-width: 1820px;
    margin: 0 auto;
    padding: 0 40px;
}

.faq-dual__items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* FAQ Row - Contains 2 FAQs side by side */
.faq-dual__row {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* FAQ Item */
.faq-dual__item {
    background: #fff;
    border-radius: 35px;
    box-shadow: 0 0 46px #0000001C;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 4px solid transparent;
    will-change: transform, box-shadow, border-color;
    backface-visibility: hidden;
    transform: translateZ(0);
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
}

.faq-dual__item--placeholder {
    visibility: hidden;
    pointer-events: none;
}

.faq-dual__item--open {
    border-color: #F7931D;
    transform: translateY(-4px) translateZ(0);
    box-shadow: 0 12px 80px #00000030;
}

/* FAQ Question */
.faq-dual__question {
    padding: 30px 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.faq-dual__question-text {
    font-size: 28px;
    font-weight: 500;
    color: #000;
    margin: 0;
    line-height: 32px;
    max-width: calc(100% - 60px);
    padding-right: 15px;
    transition: color 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-dual__item--open .faq-dual__question-text {
    color: #000;
}

/* Toggle Icon */
.faq-dual__toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #fff;
    color: #e67e22;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
    position: relative;
    will-change: transform, background-color;
    backface-visibility: hidden;
    border: 3px solid #9FAAB2;
}

.faq-dual__item--open .faq-dual__toggle-icon {
    transform: rotate(180deg);
    background-color: #fff;
    border-color: #9FAAB2;
}

.faq-dual__icon {
    width: 26px;
    height: 26px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-dual__icon--plus,
.faq-dual__icon--minus {
    transition: opacity 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-dual__icon--plus {
    opacity: 1;
}

.faq-dual__icon--minus {
    opacity: 0;
}

.faq-dual__item--open .faq-dual__icon--plus {
    opacity: 0;
}

.faq-dual__item--open .faq-dual__icon--minus {
    opacity: 1;
}

/* FAQ Answer - Simplified for JS control */
.faq-dual__answer {
    height: 0;
    overflow: hidden;
    will-change: height;
}

.faq-dual__answer-content {
    padding: 0 40px 40px 40px;
    transform: translateY(0);
    opacity: 1;
}

.faq-dual__answer-content p {
    font-size: 22px;
    font-weight: 300;
    color: #000;
    line-height: 32px;
    margin: 0 0 15px 0;
}

.faq-dual__answer-content p:last-child {
    margin-bottom: 0;
}

/* Additional WYSIWYG content styling */
.faq-dual__answer-content h1,
.faq-dual__answer-content h2,
.faq-dual__answer-content h3,
.faq-dual__answer-content h4,
.faq-dual__answer-content h5,
.faq-dual__answer-content h6 {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
    margin: 20px 0 15px 0;
}

.faq-dual__answer-content ul,
.faq-dual__answer-content ol {
    font-size: 22px;
    font-weight: 400;
    color: #000;
    line-height: 32px;
    margin: 15px 0;
    padding-left: 25px;
}

.faq-dual__answer-content li {
    margin-bottom: 8px;
}

.faq-dual__answer-content a {
    color: #0970B8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.faq-dual__answer-content a:hover {
    color: #F7931D;
    text-decoration: underline;
}

.faq-dual__answer-content strong {
    font-weight: 600;
    color: #000;
}

.faq-dual__answer-content em {
    font-style: italic;
}

.faq-dual__answer-content br {
    line-height: 32px;
}

/* Add smooth hover effects */
.faq-dual__question:hover .faq-dual__toggle-icon {
    transform: scale(1.05);
    border-color: #F7931D;
}

.faq-dual__item--open .faq-dual__question:hover .faq-dual__toggle-icon {
    transform: rotate(180deg) scale(1.05);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .faq-dual__question-text {
        font-size: 24px;
        line-height: 28px;
    }

    .faq-dual__answer-content p {
        font-size: 18px;
        line-height: 26px;
    }

    .faq-dual__answer-content h1,
    .faq-dual__answer-content h2,
    .faq-dual__answer-content h3,
    .faq-dual__answer-content h4,
    .faq-dual__answer-content h5,
    .faq-dual__answer-content h6 {
        font-size: 20px;
    }

    .faq-dual__answer-content ul,
    .faq-dual__answer-content ol {
        font-size: 18px;
        line-height: 26px;
    }
}

@media (max-width: 768px) {
    .faq-dual {
        padding: 40px 0;
    }

    .faq-dual__main-header {
        padding: 0 20px;
        margin-bottom: 40px;
    }

    .faq-dual__subheading {
        font-size: 16px;
        margin: 0 0 20px 0;
        letter-spacing: 0.5px;
    }

    .faq-dual__description {
        font-size: 14px;
        margin: -10px 0 30px 0;
        line-height: 1.4;
    }

    .faq-dual__main-heading {
        font-size: 36px;
        line-height: 42px;
    }

    .faq-dual__container {
        padding: 0 20px;
    }

    .faq-dual__items {
        gap: 16px;
    }

    /* Stack FAQs vertically on mobile */
    .faq-dual__row {
        flex-direction: column;
        gap: 16px;
    }

    .faq-dual__question {
        padding: 24px 20px;
    }

    .faq-dual__question-text {
        font-size: 20px;
        line-height: 26px;
        max-width: calc(100% - 50px);
    }

    .faq-dual__toggle-icon {
        width: 36px;
        height: 36px;
    }

    .faq-dual__icon {
        width: 18px;
        height: 18px;
    }

    .faq-dual__answer-content {
        padding: 0 20px 24px 20px;
    }

    .faq-dual__answer-content p {
        font-size: 14px;
        line-height: 20px;
    }

    .faq-dual__answer-content h1,
    .faq-dual__answer-content h2,
    .faq-dual__answer-content h3,
    .faq-dual__answer-content h4,
    .faq-dual__answer-content h5,
    .faq-dual__answer-content h6 {
        font-size: 18px;
        line-height: 1.3;
        margin: 15px 0 10px 0;
    }

    .faq-dual__answer-content ul,
    .faq-dual__answer-content ol {
        font-size: 14px;
        line-height: 20px;
        margin: 10px 0;
        padding-left: 20px;
    }

    .faq-dual__answer-content li {
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .faq-dual__subheading {
        font-size: 14px;
        margin: 0 0 15px 0;
        letter-spacing: 0.3px;
    }

    .faq-dual__description {
        font-size: 12px;
        margin: -8px 0 20px 0;
        line-height: 1.3;
    }

    .faq-dual__main-heading {
        font-size: 28px;
        line-height: 34px;
    }

    .faq-dual__question {
        padding: 20px 16px;
    }

    .faq-dual__question-text {
        font-size: 18px;
        line-height: 24px;
    }

    .faq-dual__toggle-icon {
        width: 32px;
        height: 32px;
    }

    .faq-dual__icon {
        width: 16px;
        height: 16px;
    }

    .faq-dual__answer-content {
        padding: 0 16px 20px 16px;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .faq-dual__item,
    .faq-dual__question,
    .faq-dual__question-text,
    .faq-dual__toggle-icon,
    .faq-dual__icon,
    .faq-dual__answer,
    .faq-dual__answer-content {
        transition-duration: 0.2s;
    }
}