/* ============================================
   Variant: faq — Accordion (faq) [AEM Parity]
   ============================================ */

/* Section heading wrapper (matches AEM main-title behavior) */
.section.accordion-container:has(.accordion.faq)>.default-content-wrapper {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section.accordion-container:has(.accordion.faq)>.default-content-wrapper h2 {
    font-size: 32px;
    font-weight: 800;
    line-height: 38px;
    margin: 0 0 20px;
    text-align: center;
    color: #222;
}

main .section.sectionpadding-large.accordion-container {
    padding-right: 18%;
    padding-left: 18%;
}

main .section.sectionpadding.accordion-container {
    padding-right: 4%;
    padding-left: 4%;
}

/* Container */
.accordion.faq {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Each FAQ item = AEM each-container */
.accordion.faq details:not([open]) {
    padding: 23px 0 5px 0;
}
.accordion.faq details {
    border: none;
    border-bottom: 1px solid #CACBCC;
    border-radius: 0;
    background: transparent;
    padding: 23px 0;
}

.accordion.faq details:last-child {
    border-bottom: none;
}

/* .accordion.faq details:first-of-type {
    border-top: 1px solid #CACBCC;
} */

/* No extra gap between items */
.accordion.faq details+details {
    margin-top: 0;
}

/* SUMMARY = AEM accord row */
.accordion.faq details summary {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0;
    cursor: pointer;
    list-style: none;
    background: transparent;
    transition: none;
    font-size: 18px;
    font-weight: 800;
    line-height: 23.4px;
    color: var(--faq-heading-color, #373737);
    margin: 0;
}

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

/* Normalize wrapped text */
.accordion.faq details summary p {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    font-family: inherit;
}

/* Remove hover/open backgrounds */
.accordion.faq details[open] summary,
.accordion.faq details summary:hover,
.accordion.faq details summary:focus {
    background: transparent;
}


/* =================================================
   ICON LOGIC — EXACT LIVE AEM BEHAVIOR
   ================================================= */

/* CLOSED STATE (PLUS) — COMPLETELY TRANSPARENT */
.accordion.faq details summary::after {
    content: '';
    flex: 0 0 auto;

    width: 48px;
    height: 48px;
    border-radius: 50%;

    background-color: transparent;
    border: none;

    margin-top: 2px;
    margin-right: 3px;

    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;

    transform: translateX(20px);

    /* PLUS icon */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23373737' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
}

/* OPEN STATE (CROSS) — GREY BACKGROUND */
.accordion.faq details[open] summary::after {
    background-color: #EFEFEF;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23373737' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}

/* =================================================
   ANSWER OPEN / CLOSE ANIMATION (ONLY CHANGE)
   ================================================= */

/* Closed state */
.accordion.faq details .accordion-item-body {
    padding: 0;
    width: 92%;
    box-sizing: border-box;

    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

/* Open state */
.accordion.faq details[open] .accordion-item-body {
    max-height: 1000px;
    opacity: 1;
    border-top: none;
    background: transparent;
}

/* Answer text — match live (lighter, not bold) */
.accordion.faq details .accordion-item-body p {
    margin: 0;
    font-family: Manrope, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    color: #53565A;
    padding-bottom: 13px;
    letter-spacing: 0.5px;
}

.ids-faq .accordion.faq details .accordion-item-body p:not(:first-child):not(:last-child) {
    padding-bottom: 0;
}

/* Links inside answer */
.accordion.faq details .accordion-item-body a {
    color: #0000EE !important;
    text-decoration: underline !important;
}

/* View all button */
.accordion-faq-view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 30px 0 0;
    padding: 10px 16px;

    background: transparent;
    border: 1px solid #000;
    border-radius: 45px;

    font-family: Manrope, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    line-height: 24px;
    letter-spacing: 0.86px;

    cursor: pointer;
    transition: background-color 0.2s ease;
    width: fit-content;
    text-align: center;
}

.accordion-faq-view-all::after {
    content: '';
    width: 12px;
    height: 12px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* Hover background */
.accordion-faq-view-all:hover,
.accordion-faq-view-all:focus-visible {
    background-color: #fff7e8;
    border: 1px solid currentColor;
    color: #000;
    outline: none;
}

/* Mobile parity */
@media (width <=600px) {
    .accordion.faq {
        padding-bottom: 0;
    }
    .accordion.faq details summary::after {
        transform: unset;
    }
    .accordion.faq details {
        padding: 40px 0 23px 0;
    }
    .accordion.faq details:not([open]) {
    padding: 40px 0 30px 0;
}
    main .section.sectionpadding-large.accordion-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section.accordion-container:has(.accordion.faq) {
        margin-top: 4rem;
    }

    .section.accordion-container:has(.accordion.faq)>.default-content-wrapper {
        padding: 0;
    }

    .section.accordion-container:has(.accordion.faq)>.default-content-wrapper h2 {
        font-size: 20px;
        font-weight: 700;
        line-height: 28px;
        text-align: left;
        margin-bottom: 0px;
    }

    .accordion.faq details summary {
        font-size: 16px;
        font-weight: 700;
        line-height: 24px;
    }

    .accordion.faq details summary p {
        max-width: 85%;
    }

    .accordion.faq details summary::after {
        margin-top: 2px;
        margin-right: -1px;
    }

    .accordion.faq details .accordion-item-body {
        width: 100%;
    }

    .accordion.faq details .accordion-item-body p {
        font-size: 12px;
        font-weight: 400;
        line-height: 18px;
        padding-top: 10px;
    }
}

@media (max-width:991px){
    .royal-play-faq{
        margin-top: 0 !important;
        padding-left: 8% !important;
        padding-right: 8% !important;
}
}



/* .section.ids-faq #faqs {
    font-weight: 800;
}

 .section.ids-faq .accordion.faq details summary {
    font-weight: 800;
} */