:root {
    --color-primary: #ccc;
    --color-text: #545d7a;
    --color-white: #fff;
    --color-title: #242e4c;
    --color-background: #f7f8fb;
    --color-border: #dae1f5;

    /* Fonts */
    font-family: "nunito", sans-serif !important;

    --fs-sm: 1.4rem;
    --fs-md: 1.6rem;
    --fs-lg: 2.2rem;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-bold: 700;

    /* Transition & Box Shadow */
    --transition: 0.4s ease-in-out;
    --shadow: 0px 60px 56px -12px rgba(9, 40, 163, 0.05);

}


.faqs-container {
    font-family: "nunito", sans-serif !important;

    margin: 10rem auto;
    display: grid;
    place-items: center;
}

.accordion__wrapper {
    font-family: "nunito", sans-serif !important;

    background-color: #fff;
    box-shadow: var(--shadow);
    border-radius: 1rem;
    width: 100%;
    max-width: 65rem;
    padding: 3rem !important;
}

.accordion__title {
    font-size: 1.6rem;
    font-weight: var(--fw-bold);
    color: var(--color-title);
    text-align: center;
    margin-bottom: 2rem;
}

.accordion {
    border-bottom: 0.1rem solid var(--color-border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.accordion__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.accordion__icon {
    background: #333;
    width: 2rem;
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: #292e33;
    flex-shrink: 0;
}

.accordion__icon i {
    color: #fff;
    font-weight: bold;
}

.accordion__question {
    font-size: 1.1rem;
    font-weight: var(--fw-medium);
    color: var(--color-title);

}

.accordion__answer {
    padding: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #545d7a;
    opacity: 1;
    height: auto;
    white-space: pre-wrap;
    line-height: 1.5;
    transition: opacity 0.2s ease-in-out;
    /* Smooth text reveal */

}

.accordion__content {
    overflow: hidden;
    transition: max-height 0.4s ease;
    /* Smooth expand/collapse */
    max-height: 0;
    /* Closed state */
}

@media screen and (min-width: 580px) {
    .accordion__wrapper {
        padding: 5rem 8rem;
    }
}

@media screen and (min-width: 1920px) {

    .faqs-container {
        font-family: "nunito", sans-serif !important;

        margin: 12rem auto;
        display: grid;
        place-items: center;
    }

    
    .accordion__wrapper {
        font-family: "nunito", sans-serif !important;

        background-color: #fff;
        box-shadow: var(--shadow);
        border-radius: 1rem;
        width: 100%;
        max-width: 70%;
        padding: 3rem !important;
    }

    .faq-heading {
        font-size: 2.2rem;
    }

}

.pages-header {
    background: rgba(0, 0, 0, 0.8);

}

 /* Default style: centered on larger screens */
 .faq-heading {
    text-align: center;
    color: #fff;
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
}

 /* Media query for small screens */
 @media (max-width: 768px) {
    .faq-heading {

        text-align: right;
        font-size: 1.2rem;
        margin-top: 1px;


        padding-right: 2.5rem; /* Optional: add some padding for alignment */
    }
}

     /* Media query for small screens */
     @media (max-width: 358px) {
    .faq-heading {
  
        text-align: right;
        font-size: 0.8rem;
        margin-top: 1px;

        padding-right: 1.4rem; /* Optional: add some padding for alignment */
    }
}



/* Ultra-wide screens - 3840px */
@media (min-width: 3840px) {

    .faq-heading {
        font-size: 3.5rem;
    }
}

/* Extremely large screens - 7680px */
@media (min-width: 7680px) {

    .faq-heading {
        font-size: 6rem;
    }
}

