:root {
    --background-card: #c4c3e3;
    --background-page: #504e76;
    --question-box: #fdf8e2;
    --viewed: #a3b565;
    --letters-black: #000;
    --letters-white: #f4f3e6;

    --mainfont: "Saira Condensed", "Oswald";
}

/* Global Styles */
html {
    box-sizing: border-box;
    font-size: 62.5%;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-family: var(--mainfont), sans-serif;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--background-page);
}

/* FAQs Container */
.faqs-container {
    width: 90%;
    max-width: 650px;
    padding: 2rem;
    margin: 2rem auto;
    text-align: center;
}

.faqs-main {
    background-color: var(--background-card);
    padding: 3.5rem 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.faqs-main h1 {
    font-size: 3.2rem;
    color: var(--letters-black);
    margin: 0 0 3rem 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin: 0;
    flex: 1;
    text-align: left;
    font-weight: 600;
}

/* Individual FAQ Items */
.faqs {
    margin-bottom: 1.5rem;
}

.faqs:last-of-type {
    margin-bottom: 0;
}

/* Questions */
.toggle {
    display: none;
}

.question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    background: var(--question-box);
    padding: 1.8rem 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.question:hover {
    background: var(--viewed);
    color: var(--letters-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.question:active {
    transform: translateY(0);
}

/* Icon for expand/collapse */
.icon {
    width: 2rem;
    height: 2rem;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.icon::before,
.icon::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    transition: all 0.3s ease;
}

.icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.icon::after {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.toggle:checked + .question .icon {
    transform: rotate(180deg);
}

.toggle:checked + .question .icon::after {
    opacity: 0;
}

.answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, margin 0.4s ease;
    padding: 0 2rem;
}

.answer p {
    font-size: 1.7rem;
    line-height: 1.6;
    color: var(--letters-black);
    margin: 0;
    text-align: left;
}

.toggle:checked + .question + .answer {
    max-height: 20rem;
    padding: 2rem;
    margin-top: 0.5rem;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
}

/* Footer */
.footer {
    width: 100%;
    padding: 2rem 0;
    text-align: center;
    color: var(--background-card);
    font-size: 1.4rem;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .faqs-main {
        padding: 2.5rem 2rem;
    }

    .faqs-main h1 {
        font-size: 2.6rem;
        margin-bottom: 2.5rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .question {
        padding: 1.5rem 1.5rem;
    }

    .answer p {
        font-size: 1.5rem;
    }

    .toggle:checked + .question + .answer {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .faqs-container {
        width: 95%;
        padding: 1rem;
    }

    .faqs-main {
        padding: 2rem 1.5rem;
    }

    .faqs-main h1 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .question {
        padding: 1.3rem 1.2rem;
        gap: 1rem;
    }

    .icon {
        width: 1.6rem;
        height: 1.6rem;
    }

    .answer p {
        font-size: 1.4rem;
    }

    .toggle:checked + .question + .answer {
        padding: 1.2rem;
    }

    .footer {
        font-size: 1.2rem;
        padding: 1.5rem 0;
    }
}