.faq-wrapper {
    --faq-primary: #2E2624;
    --faq-accent: #f3c11b;
    --faq-bg: #f7f1ea;

    max-width: 2500px;
    margin: auto;
    padding: 10px;
    color: var(--faq-primary);
    font-family: inherit;
}

/* =========================================================
   SEARCH
========================================================= */

.faq-search {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.faq-search input {
    width: 80%;
    max-width: 100%;
    height: 75px;

    border: 1px solid var(--faq-primary);
    background: var(--faq-bg);

    font-size: 30px;
    color: var(--faq-primary);

    margin-bottom: 3%;
    padding: 50px 60px;

    font-family: Retorbold;
    box-sizing: border-box;
}

.faq-search input::placeholder {
    color: var(--faq-primary);
    font-size: 30px;
    font-family: Retorbold;
}


/* =========================================================
   INTRO
========================================================= */

.faq-intro {
    text-align: center;

    margin-bottom: 10%;
    margin-top: 4%;

    font-size: 30px;
    font-weight: 700;

    color: var(--faq-primary);
    font-family: RetorRegular;
}


/* =========================================================
   TABS
========================================================= */

.faq-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 25px;
    margin-bottom: 60px;
}

.tab-btn {
    width: 100%;

    border: 1px solid var(--faq-primary);
    border-radius: 0;

    background: var(--faq-bg);
    color: var(--faq-primary);

    cursor: pointer;

    font-family: ClaudiaShouter;
    font-size: clamp(16px, 1.8vw, 28px);
    font-weight: 900;

    text-transform: uppercase;

    /* IMPORTANT FOR CUSTOM FONT */
    line-height: 1;

    /* Flex gives consistent vertical alignment */
    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    min-height: 90px;

    padding: 10px 15px;

    box-sizing: border-box;

    vertical-align: middle;

    transition: all .3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--faq-accent);
    color: var(--faq-primary);

    font-weight: 200;

    transform: scale(0.97);
}


/* =========================================================
   TAB CONTENT
========================================================= */

.tab-content {
    display: none;
    padding: 0 60px;
}

.tab-content.active {
    display: block;
}


/* =========================================================
   FAQ ITEMS
========================================================= */

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 25px 0;

    border-bottom: 1px solid var(--faq-primary);

    cursor: pointer;
}

.question-text {
    font-size: 50px;
    font-weight: 900;

    text-transform: uppercase;

    padding-bottom: 10px;

    font-family: ClaudiaShouter;
}

.icon {
    font-size: 65px !important;
    font-weight: 800;

    line-height: 1;

    color: #2E2624;
}

.faq-answer {
    display: none;

    padding-bottom: 30px;

    max-width: 100%;
}

.faq-answer p {
    font-size: 30px;

    line-height: 1.3;

    margin-bottom: 20px;

    padding-bottom: 30px;
    padding-top: 30px;

    font-family: RetorRegular;
}

.faq-image {
    margin-top: 20px;
    width: 20%;
}

.faq-image img {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   CTA BUTTON
========================================================= */

.faq-btn-wrap {
    position: relative;
    display: inline-block;
}

.faq-btn-shadow {
    position: absolute;

    top: 12px;
    left: -12px;

    width: 100%;
    height: 100%;

    background-color: var(--faq-primary);

    border-left: 8px solid var(--faq-primary);
    border-bottom: 8px solid var(--faq-primary);

    pointer-events: none;

    z-index: 1;
}

.faq-btn-main {
    position: relative;

    display: inline-flex;

    justify-content: center;
    align-items: center;

    padding: 30px 55px;

    background: var(--faq-bg);

    border: 1px solid var(--faq-primary);

    color: var(--faq-primary);

    text-decoration: none;

    font-size: 30px;

    z-index: 2;

    transition: transform .25s ease;

    font-family: RetorRegular;
}

.faq-btn-main:hover {
    transform: translate(12px, -12px);
}


/* =========================================================
   PAGINATION
========================================================= */

.faq-pagination {
    display: flex;

    justify-content: center;

    gap: 10px;

    margin-top: 120px;

    padding-bottom: 150px;

    position: relative;
}

.faq-pagination:after {
    content: "";

    position: absolute;

    bottom: 0;
    left: 50%;

    transform: translateX(-50%);

    width: 100%;

    height: 0.7px;

    background: var(--faq-primary);
}

.page-btn {
    width: 42px;
    height: 42px;

    border: 1px solid var(--faq-primary);

    background: #eae3da;

    cursor: pointer;

    color: #2e2624;

    display: flex;

    align-items: center;
    justify-content: center;

    font-family: RetorRegular;
}

.page-btn:hover,
.page-btn.active {
    background: var(--faq-accent);
}


/* =========================================================
   TABLET / SMALL DESKTOP
   769px - 1024px
========================================================= */

@media (max-width: 1024px) {

    .faq-wrapper {
        padding: 25px;
    }

    .faq-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

    .tab-btn {
        min-height: 80px;

        padding: 0 10px;

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 22px;
        line-height: 1;

        text-align: center;
    }

    .tab-content {
        padding: 0 20px;
    }

    .question-text {
        font-size: 35px;
    }

    .faq-answer p {
        font-size: 30px;
    }

    .icon {
        font-size: 50px;
    }

    .faq-search input {
        max-width: 100%;
        padding: 0 15px;
    }
}


/* =========================================================
   FOLDABLE / TABLET
   469px - 768px

   IMPORTANT:
   This is where your original alignment problem was.
========================================================= */

@media (min-width: 469px) and (max-width: 768px) {

    .faq-wrapper {
        padding: 20px;
    }


    /* SEARCH */

    .faq-search {
        margin-bottom: 30px;
    }

    .faq-search input {
        width: 100%;

        height: 70px;

        padding: 0 25px;

        font-size: 24px;

        box-sizing: border-box;
    }

    .faq-search input::placeholder {
        font-size: 24px;
    }


    /* INTRO */

    .faq-intro {
        font-size: 24px;

        margin: 40px 0 60px;
    }


    /* TABS */

    .faq-tabs {
        grid-template-columns: repeat(2, 1fr);

        gap: 15px;

        margin-bottom: 40px;
    }

    .tab-btn {
        /*
         * Do NOT use padding-top/bottom here.
         * Flex handles the vertical centering.
         */
        padding: 0 8px;

        min-height: 80px;

        display: flex;

        align-items: center;
        justify-content: center;

        font-family: ClaudiaShouter;

        font-size: 18px;

        /*
         * IMPORTANT:
         * ClaudiaShouter needs a tight line-height.
         */
        line-height: 1;

        text-align: center;

        box-sizing: border-box;
    }


    /* TAB CONTENT */

    .tab-content {
        padding: 0 10px;
    }


    /* FAQ QUESTION */

    .faq-question {
        padding: 20px 0;
    }

    .question-text {
        font-size: 28px;

        line-height: 1.15;

        padding-right: 15px;
    }

    .icon {
        font-size: 42px !important;

        flex-shrink: 0;
    }


    /* ANSWER */

    .faq-answer p {
        font-size: 22px;

        line-height: 1.5;

        padding: 20px 0;
    }


    /* IMAGE */

    .faq-image {
        width: 45%;

        margin-top: 20px;
    }


    /* CTA */

    .faq-btn-main {
        font-size: 22px;

        padding: 18px 30px;
    }

    .faq-btn-shadow {
        top: 8px;
        left: -8px;

        border-left: 5px solid var(--faq-primary);
        border-bottom: 5px solid var(--faq-primary);
    }

    .faq-btn-main:hover {
        transform: translate(8px, -8px);
    }


    /* PAGINATION */

    .faq-pagination {
        margin-top: 70px;

        padding-bottom: 80px;
    }

    .page-btn {
        width: 38px;
        height: 38px;

        font-size: 18px;
    }
}


/* =========================================================
   MOBILE
   468px AND BELOW
========================================================= */

@media (max-width: 468px) {

    .faq-wrapper {
        padding: 1px;
    }


    /* TABS */

    .faq-tabs {
        grid-template-columns: repeat(1, 1fr);

        padding: 20px;

        margin: 2%;

        gap: 15px;
    }

    .tab-btn {
        width: 100%;

        min-height: 65px;

        padding: 0 15px;

        display: flex;

        align-items: center;
        justify-content: center;

        font-family: ClaudiaShouter;

        font-size: 20px;

        /*
         * Tight line-height fixes custom font
         * vertical positioning.
         */
        line-height: 1;

        text-align: center;

        box-sizing: border-box;
    }


    /* CTA */

    .faq-btn-main {
        padding: 20px;

        font-size: 20px;
    }


    /* QUESTION */

    .question-text {
        font-size: 6.6vw;
    }


    /* ANSWER */

    .faq-answer p {
        font-size: 5.65vw;
    }


    /* INTRO */

    .faq-intro {
        font-size: 25px;
    }


    /* ICON */

    .icon {
        font-size: 45px !important;
    }


    /* SEARCH */

    .faq-search input {
        max-width: 100%;

        padding: 0 15px;

        height: 65px;

        font-size: 20px;
    }

    .faq-search input::placeholder {
        font-size: 20px;
    }
}


/* =========================================================
   SMALL DESKTOP
   1024px - 1200px
========================================================= */

@media (min-width: 1024px) and (max-width: 1200px) {

    .tab-btn {
        min-height: 80px;

        padding: 0 15px;

        display: flex;

        align-items: center;
        justify-content: center;

        font-family: ClaudiaShouter;

        font-size: 20px;

        line-height: 1;

        text-align: center;

        box-sizing: border-box;
    }
}


/* =========================================================
   OPTICAL FONT FIX
   ---------------------------------------------------------
   If ClaudiaShouter still appears 2-4px LOW on certain
   browsers, uncomment this section.
========================================================= */

/*
@media (min-width: 469px) and (max-width: 1200px) {

    .tab-btn {
        transform: translateY(-2px);
    }

    .tab-btn:hover,
    .tab-btn.active {
        transform: translateY(-2px) scale(0.97);
    }
}
*/