/* Start -> Home Screen - Question Port */

.questions {
    background-color: var(--color-primary-2);
}

.questions__container {
    padding: 4rem 6rem;
    overflow-x: auto;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.question__row {
    padding: 2rem 0rem;
    display: flex;
    justify-content: center;
}

.questions__col {
    white-space: nowrap;
}

.questions__col:first-child {
    margin-right: 6rem;
}

/* Home - Question button */
.btn-question {
    background-color: inherit;
    color: var(--color-tertiary-2);
    font-size: 4vw;
    line-height: 1.3;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.btn-question:hover {
    color: var(--color-secondary-2);
    cursor: url(/assets/icon/qna-cursor.webp), auto;
}

.popup--question,
.popup__overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 199;
    background-color: transparent;
}

#popup__question {
    display: none;
}

.popup__overlay {
    background-color: rgba(255, 255, 255, 0.95);
}

.popup__content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background-color: var(--color-primary-2);
    width: 80%;
    max-width: 1152px;
    max-height: 85%;
    z-index: 200;
    color: var(--color-tertiary-2);
    overflow-y: auto;
    transition: all 0.4s ease-in-out;
    display: none;
}

.popup__content--active {
    transform: translate(-50%, -50%) scale(1);
}

.popup__content--container {
    margin: 8% 10%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.popup__title {
    font-size: 2.5rem;
    line-height: 1.3;
    font-weight: bold;
    text-align: center;
}

.popup__desc {
    font-size: 1.12rem;
    line-height: 1.4;
    font-weight: 500;
    margin: 1.5rem auto;
    width: 70%;
    text-align: center;
}

.popup__content--pointer-outer-container {
    background-color: var(--color-primary-1);
}

.popup__content--pointer-inner-container {
    padding: 3rem 2rem;
    padding-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup__content--pointer-inner-container * {
    padding-bottom: 1rem;
}

.popup__content--pointers {
    display: flex;
    flex-direction: column;
    flex-basis: 60%;
    margin-right: 2rem;
}

.popup__content--pointers ol {
    list-style-position: inside;
}

.popup__content--image {
    height: 20%;
    flex-basis: 20%;
}

.popup__content--image img {
    aspect-ratio: 1 / 1;
}

.popup__content--contact-us {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
}

.popup__content--contact-us h5 {
    text-align: start;
    font-size: 1.12rem;
    line-height: 1.4;
    font-weight: 500;
}

.popup__content--button {
    color: var(--color-secondary-2);

    font-size: 1.12rem;
    line-height: 1.3;
    font-weight: 500;
    border: none;
    background-color: inherit;
    padding: 0.2rem 0.3rem;
    border-bottom: 1px solid var(--color-secondary-2);
    ;
}

.popup__content--cancel {
    position: absolute;
    z-index: 4;
    right: 2rem;
    top: 2rem;
}

.popup__content--cancel img {
    padding: 0.75rem;
}

/* Start -> Media Queries */

/* -- For Mobile -- */
@media screen and (max-width: 480px) {

    .btn-question {
        font-size: 6vw;
    }

    /* Home Screen - Question Port */
    .popup__content {
        width: calc(100% - 2rem);
        height: calc(100% - 2rem);
        max-height: calc(100% - 2rem);
    }

    .popup__content--container {
        margin: 3rem 1rem;
    }

    .popup__content--cancel {
        top: 0rem;
        right: 0rem;
    }

    .popup__title {
        font-size: 1.5rem;
    }

    .popup__desc {
        font-size: 0.80rem;
        width: 85%;
    }

    .popup__content--pointers {
        flex: auto;
    }

    .popup__content--image {
        display: none;
    }

    .popup__content--pointer-inner-container {
        padding: 1rem 1rem 0rem 1rem;
    }
}

/* -- For iPad / Tablets -- */
@media screen and (min-width: 481px) and (max-width: 768px) {

    /* Home Screen - Question Port */
    .popup__content {
        width: calc(100% - 4rem);
        height: calc(100% - 4rem);
        max-height: calc(100% - 4rem);
    }

    .popup__content--container {
        margin: 4rem 2rem;
    }

    .popup__content--cancel {
        top: 1rem;
        right: 1rem;
    }

    .popup__title {
        font-size: 2.0rem;
    }

    .popup__desc {
        font-size: 1rem;
    }

    .popup__content--pointers {
        flex: auto;
    }

    .popup__content--image {
        display: none;
    }

    .popup__content--pointer-inner-container {
        padding: 2rem 2rem 0rem 2rem;
    }

}

/* -- For Mobile / iPad / Tablets -- */
@media screen and (max-width: 768px) {

    /* Home Screen - Question Port */
    .questions__container {
        padding: 3rem 0rem 2rem;
        flex-direction: row;
        flex-wrap: nowrap;
        scroll-snap-type: inline mandatory;
    }

    .question__row {
        padding: 0rem 0rem;
        scroll-snap-align: start;
        scroll-snap-type: inline mandatory;
    }

    .questions__col {
        width: 100vw;
        white-space: normal;
        scroll-snap-align: start;
        scroll-snap-type: inline mandatory;
        display: flex;
        justify-content: center;
    }

    .questions__col:first-child {
        margin-right: 0.0rem;
    }

    .questions__col button {
        padding: 0rem 1rem;
    }

}

/* -- For Small Screen / Laptops / Desktops -- */
@media screen and (min-width: 769px) and (max-width: 1150px) {


    /* Home Screen - Question Port */
    .questions__container {
        padding: 2rem 2rem;
    }

    .question__row {
        padding: 1.5rem 0rem;
    }

    .questions__col:first-child {
        margin-right: 3.0rem;
    }

    .popup__content {
        width: 90%;
        height: 90%;
    }

    .popup__content--container {
        margin: 5% 8%;
    }

    .popup__title {
        font-size: 2.0rem;
    }

    .popup__desc {
        font-size: 1rem;
    }

    .popup__content--pointer-inner-container {
        padding: 2rem 2rem 0rem 2rem;
    }

}

/* -- For Large Screen / Mac -- */
@media screen and (min-width: 1151px) and (max-width: 1440px) {

    /* Home Screen - Question Port */
    .questions__container {
        padding: 3rem 6rem;
    }

    .question__row {
        padding: 1.75rem 0rem;
    }

    .questions__col:first-child {
        margin-right: 4rem;
    }

}