/* ===== FAQ Page Background ===== */
html,
body.page-template-faq {
    background-color: #F8F9FC;
}

/* Horizontal scroll na aave e mate */
.dmw-faq-hero-section,
.dmw-faq-content-section,
.dmw-faq-last-section {
    overflow-x: clip;
}

.dmw-faq-main,
.dmw-faq-cta,
.dmw-faq-last-box,
.dmw-faq-toc,
.dmw-faq-item {
    box-sizing: border-box;
}

.dmw-faq-main,
.dmw-faq-toc,
.dmw-faq-last-content,
.dmw-faq-last-image {
    min-width: 0;
}


/* ===== FAQ Hero Section ===== */
.dmw-faq-hero-section {
    background: transparent;
    padding: 100px 50px 100px 50px;
}
.dmw-faq-hero-container {
    margin-top: 100px;
}
.dmw-faq-hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 66px;
    color: #081426;
    margin: 0 0 20px;
    text-align: center;
    font-family: 'Satoshi';
}

.dmw-faq-hero-desc {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.7;
    color: #536176;
    font-family: 'Satoshi';
    text-align: center;
    margin: 0 auto;
    width: 100%;
    max-width: 42%;
}


/* =========================================================
   FAQ  -  Second section
   ========================================================= */

.dmw-faq-content-section {
    padding:0px 50px 100px 50px;
    background: transparent;
    color: #081426;
    font-family: "Satoshi";
    margin: 0 !important;
}

.dmw-faq-container {
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 40px;
    align-items: start;
}


/* ---------- Main card ---------- */

.dmw-faq-main {
    padding: 30px;
    border: 1px solid #53617626;
    border-radius: 20px;
}

.dmw-faq-category {
    padding-top: 0;
    padding-bottom: 50px;
    scroll-margin-top: 120px;
    border-bottom: 1px solid #1414140D;
}


.dmw-faq-category + .dmw-faq-category {
    padding-top: 40px;
}

.dmw-faq-category:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}


.dmw-faq-category.has-cta {
    margin-bottom: 50px;
    padding-bottom: 0;
    border-bottom: 0;
}

.dmw-faq-category h2 {
    margin: 0 0 40px;
    font-size: 38px;
    line-height: 1.5;
    font-weight: 700;
    color: #081426;
    font-family: 'Satoshi';
}


/* ---------- Accordion ---------- */

.dmw-faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dmw-faq-item {
    border: 1px solid #1414140D;
    border-radius: 15px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.dmw-faq-item.is-open {
    border-color: #1414140D;
    background: #14141408;
}

.dmw-faq-question {
    margin: 0;
}

.dmw-faq-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 20px 30px 20px 30px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    font-family: 'Satoshi';
    font-size: 20px;
    line-height: normal;
    font-weight: 500;
    text-align: left;
    color: #536176;
    cursor: pointer;
    transition: padding 0.3s ease;
    overflow-wrap: anywhere;
}

.dmw-faq-item.is-open .dmw-faq-toggle {
    padding-bottom: 18px;
    color: #081426 !important;
}

.dmw-faq-toggle:focus-visible {
    outline: 2px solid #1a85ff;
    outline-offset: 2px;
}

/* Plus / minus icon */
.dmw-faq-icon {
    position: relative;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: #081426;
    transition: color 0.3s ease;
}

.dmw-faq-icon::before,
.dmw-faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 3px;
    margin: -1px 0 0 -9px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s ease;
}

.dmw-faq-icon::after {
    transform: rotate(90deg);
}

.dmw-faq-item.is-open .dmw-faq-icon {
    color: #1382F9;
}

.dmw-faq-item.is-open .dmw-faq-icon::after {
    transform: rotate(0deg);
}

.dmw-faq-panel {
    display: block;
}

.dmw-faq-panel-inner {
    overflow: hidden;
    height: 0;
    visibility: hidden;
}

.dmw-faq-answer {
    padding: 0 34px 20px 30px;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 400;
    color: #536176;
    font-family: 'Satoshi';
    overflow-wrap: anywhere;
}

.dmw-faq-answer p {
    margin: 0 0 10px;
}

.dmw-faq-answer p:last-child {
    margin-bottom: 0;
}

.dmw-faq-answer strong,
.dmw-faq-answer b {
    font-weight: 500;
    color: #536176;
}

.dmw-faq-answer ul,
.dmw-faq-answer ol {
    margin: 0 0 10px;
    padding-left: 20px;
}

.dmw-faq-answer a {
    color: #1a85ff;
}


/* ---------- CTA banner (Build the Future...) ---------- */

.dmw-faq-cta {
    margin: 0 0 50px;
    padding: 40px 40px 36px;
    border-radius: 20px;
    background-color: #081426;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
}

.dmw-faq-cta h3 {
    margin: 0 0 15px;
    font-size: 35px;
    line-height: normal;
    font-weight: 500;
    color: #FFFFFF;
    font-family: 'Satoshi';
}

.dmw-faq-cta p {
    max-width: 41%;
    width: 100%;
    margin: 30px 0 0 0;
    font-size: 16px;
    line-height: 1.7;
    color: #FFFFFF;
    font-family: 'Satoshi';
}



/* ---------- Table of content ---------- */

.dmw-faq-toc {
    position: sticky;
    top: 150px;
}

.dmw-faq-toc-title {
    margin-bottom: 20px;
    font-size: 20px;
    line-height: normal;
    font-weight: 500;
    color: #081426;
    font-family: 'Satoshi';
}

.dmw-faq-toc-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dmw-faq-toc-list a {
    padding: 10px 0 10px 20px;
    border-left: 3px solid transparent;
    font-size: 16px;
    font-family: 'Satoshi';
    line-height: 20px;
    font-weight: 400;
    color: #536176;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.dmw-faq-toc-list a:hover {
    color: #111a2b;
}

.dmw-faq-toc-list a.active {
    border-left-color: #1382F9;
    font-weight: 500;
    color: #081426;
}


/* ---------- Last section ---------- */

.dmw-faq-last-section {
    padding: 0;
    background: #f7f9fc;
    font-family: "Satoshi";
    margin: 0 !important;
}


.wp-site-blocks > p:empty {
    display: none !important;
    margin: 0;
    padding: 0;
}

.dmw-faq-last-section + p,
.dmw-faq-content-section + p:empty {
    display: none;
    margin: 0;
    padding: 0;
}

.wp-block-template-part {
    margin: 0 !important;
}

.dmw-faq-last-content p {
    margin: 0 !important;
}

.dmw-faq-last-box {
    display: flex;
    align-items: stretch;
    padding: 0 50px 0 50px;
    background-color: #020b2a;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    color: #fff;
    overflow: hidden;
}

/* Left content */
.dmw-faq-last-content {
    flex: 0 1 55%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 90px 0;
}

.dmw-faq-last-title {
    color: #F8F9FC;
    font-family: 'Satoshi';
    font-weight: 700;
    font-size: 48px;
    line-height: 1.5;
    width: 100%;
    max-width: 54%;
    margin: 0 !important;
}

.dmw-faq-last-title em {
    font-style: normal !important;
    color: #1382F9 !important;
}

.italicStyle {
    font-style: italic;
    font-weight: 400;
}

.dmw-faq-last-desc {
    font-family: 'Satoshi';
    font-size: 20px;
    font-weight: 400;
    line-height: 1.7;
    color: #FFFFFFCC;
    padding-top: 15px !important;
    width: 100%;
    max-width: 52%;
}

/* White button + blue text + arrow */
.dmw-faq-last-box .dmw-faq-cta-button {
    background: #FFFFFF;
    color: #1382F9;
}

.dmw-faq-last-box .dmw-faq-cta-button::after {
    content: "\2197";
    display: inline-block;
    font-size: 16px;
    line-height: normal;
    color: #1382F9 !important;
    font-weight: 600;
    transform: rotate(0deg);
    transform-origin: center;
    transition: transform 0.4s ease, color 0.4s ease;
}

/* Hover: arrow ↗ -> → (45deg rotate) */
.dmw-faq-last-box .dmw-faq-cta-button:hover::after {
    transform: rotate(45deg);
}


.dmw-faq-last-image {
    flex: 0 1 38%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding-top: 50px;
}

.dmw-faq-last-image img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 420px;
    height: auto;
    object-fit: contain;
    object-position: bottom right;
}
@media only screen and (min-width: 1341px) and (max-width: 1650px){

    .dmw-faq-cta p {
        max-width: 90% !important;
    } 
    .dmw-faq-last-title {
        max-width: 90% !important;
    }

}

/* ---------- Laptop view (993 to 1200) ---------- */
@media only screen and (min-width: 993px) and (max-width: 1340px) {

    .dmw-faq-hero-section {
        padding-bottom: 100px;
        padding-left: 35px;
        padding-right: 35px;
    }

    .dmw-faq-hero-title {
        font-size: 48px;
        line-height: 58px;
    }

    .dmw-faq-hero-desc {
        font-size: 20px;
        max-width: 60%;
    }

    .dmw-faq-content-section {
        padding:0 35px 100px 35px;
    }

    .dmw-faq-container {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 32px;
    }


    .dmw-faq-cta h3 {
        font-size: 30px;
    }

    .dmw-faq-cta p {
        max-width: 80%;
    }

    .dmw-faq-last-content {
        padding: 70px 0;
    }

    .dmw-faq-last-title {
        max-width: 80%;
    }

    .dmw-faq-last-desc {
        font-size: 18px;
        max-width: 65%;
    }

    .dmw-faq-last-image img {
        max-height: 380px;
    }
    .dmw-faq-toggle {
        padding: 20px !important;
    }
    .dmw-faq-main {
        padding: 25px !important;
    }
}


/* ---------- Tab view (768 to 992) ---------- */
@media only screen and (min-width: 768px) and (max-width: 992px) {

    .dmw-faq-hero-section {
        padding-top: 100px;
        padding-bottom: 80px;
    }
    .dmw-faq-hero-container {
        margin-top: 60px;
    }

    .dmw-faq-hero-title {
        font-size: 40px;
        line-height: 50px;
    }

    .dmw-faq-hero-desc {
        font-size: 20px;
        line-height: 28px;
        max-width: 80%;
    }

    .dmw-faq-content-section {
        padding:0 25px 60px 25px;
    }

    .dmw-faq-container {
        display: flex;
        flex-direction: column-reverse;
        gap: 20px;
    }

    .dmw-faq-toc {
        position: inherit !important;
    }



    .dmw-faq-toggle {
        font-size: 18px;
    }


    .dmw-faq-cta h3 {
        font-size: 32px;
    }
    .dmw-faq-cta .dmw-faq-cta-desc{
        margin-bottom: 15px !important;
    }

    .dmw-faq-cta p {
        max-width: 80%;
        margin: 0 !important;
    }
    .dmw-faq-cta {
        padding: 30px !important;
    }

    /* Last section: column */
    .dmw-faq-last-box {
        flex-direction: column;
        padding:50px 25px 50px 25px;
    }

    .dmw-faq-last-content {
        flex: 1 1 auto;
        padding: 0 0 30px;
    }

    .dmw-faq-last-title {
        max-width: 100%;
    }

    .dmw-faq-last-desc {
        font-size: 18px;
        max-width: 80%;
    }

    .dmw-faq-last-image {
        flex: 1 1 auto;
        justify-content: center;
        padding-top: 0;
    }

    .dmw-faq-last-image img {
        max-height: 340px;
    }
}


/* ---------- Mobile view (up to 767) ---------- */
@media only screen and (max-width: 767px) {

    .dmw-faq-hero-section {
      padding: 70px 15px 0 15px;
    }
    .dmw-faq-hero-container {
        margin-top: 60px;
    }

    .dmw-faq-hero-title {
        font-size: 35px;
        line-height: 45px;
    }

    .dmw-faq-hero-desc {
        font-size: 18px;
        line-height: 24px;
        width: 100% !important;
        max-width: 100% !important;
    }

    .dmw-faq-content-section {
        padding:60px 15px 60px 15px;
    }
    .dmw-faq-cta .dmw-faq-cta-desc{
        margin-bottom: 15px !important;
    }

    .dmw-faq-container {
        display: flex;
        flex-direction: column-reverse;
        gap: 15px;
    }

    .dmw-faq-toc {
        position: inherit !important;
    }

    .dmw-faq-main {
        width: 100%;
        padding: 20px 16px;
    }

    .dmw-faq-category {
        padding-bottom: 36px;
    }

    .dmw-faq-category + .dmw-faq-category {
        padding-top: 30px;
    }

    .dmw-faq-category h2 {
        font-size: 24px;
        margin-bottom: 24px;
        line-height: normal;
    }

    .dmw-faq-list {
        gap: 14px;
    }

    .dmw-faq-toggle {
        padding: 16px 18px;
        font-size: 15px;
        gap: 10px;
    }
    .dmw-faq-icon::before, .dmw-faq-icon::after {
        width: 10px !important;
        height: 1.63px !important;
    }

    .dmw-faq-item.is-open .dmw-faq-toggle {
        padding: 14px;
    }

    .dmw-faq-answer {
        padding: 0 18px 18px;
        font-size: 15px;
    }

    .dmw-faq-cta {
        padding: 30px 20px 28px;
    }

    .dmw-faq-cta h3 {
        font-size: 26px;
    }


    .dmw-faq-cta p {
        max-width: 100%;
        margin: 0px;
    }

    /* Last section: column, full width */
    .dmw-faq-last-box {
        flex-direction: column;
        padding:40px 15px 40px 15px;
    }

    .dmw-faq-last-content {
        flex: 1 1 auto;
        width: 100%;
        padding: 0 0 30px;
    }

    .dmw-faq-last-title {
        font-size: 24px;
        line-height: normal;
        max-width: 100%;
    }

    .dmw-faq-last-desc {
        font-size: 16px;
        max-width: 100%;
    }

    .dmw-faq-last-box .dmw-faq-cta-button {
        padding: 14px 30px;
        margin-top: 24px;
    }

    .dmw-faq-last-image {
        flex: 1 1 auto;
        width: 100%;
        justify-content: center;
        padding-top: 0;
    }

    .dmw-faq-last-image img {
        max-height: 280px;
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1440px) {
    .dmw-faq-last-box {
        padding: 0 35px 0 35px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1550px) {
    .dmw-faq-category h2 {
        font-size: 32px;
        margin-bottom: 28px;
        line-height: 42px !important;
    }
    .dmw-faq-last-title {
        font-size: 32px !important;
        line-height: 42px !important;
    }
}