/*** faq specific css ***/

.main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.faq-section {
    background: #fff5fa;
    border: 3px dashed #ffb6d9;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    position: relative;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    background-clip: padding-box;
}

.faq-section::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
    z-index: -1;
    border-radius: 26px;
    background: linear-gradient(
        135deg,
        rgba(255, 182, 222, 0.35),
        rgba(255, 234, 255, 0.35),
        rgba(200, 255, 230, 0.35),
        rgba(255, 255, 205, 0.35)
    );
    filter: blur(10px);
}

/* FAQ heading */
.faq-title {
    display: block;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;

    font-size: 2rem;
    font-weight: 900;
    color: #cc3366;
    text-align: center;

    background: #ffeaf4;
    padding: 1rem 1.5rem;
    border-radius: 18px;
    border: 3px dashed #ffb6d9;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08);

    margin: 0 auto 2rem;
    white-space: nowrap;
}

/* FAQ questions */
.faq-item {
    background: #fff0f5;
    border: 4px dashed #ff9acb;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-item::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
    border-radius: 24px;
    background: linear-gradient(
        135deg,
        rgba(255, 182, 222, 0.45),
        rgba(255, 234, 255, 0.45),
        rgba(200, 255, 230, 0.45),
        rgba(255, 255, 205, 0.45)
    );
    z-index: -1;
    filter: blur(8px);
}

.faq-item:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

/* FAQ question text */
.faq-question {
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: #5d4c6b;
}

.faq-question:hover {
    color: #cc3366;
    text-decoration: underline;
}

/* FAQ answers */
.faq-answer {
    font-size: 1rem;
    line-height: 1.6;
}

/* Funding buttons */
.faq-funding-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;

    background-color: #ffe0f0;
    color: #b44b4b;
    padding: 0.6rem 0.5rem;
    border: 2px solid #f9c5d1;
    border-radius: 10px;

    font-weight: bold;
    font-size: clamp(6px, 2.2vw, 16px);
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.5px;

    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.faq-funding-link:hover {
    background-color: #ffd1e5;
    color: #a03c3c;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Start shrinking the FAQ heading at 834px */
@media (max-width: 834px) {
    .faq-section {
        padding: 1rem;
    }

    .faq-section > h2.faq-title {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;

        font-size: clamp(8px, calc(100vw / 55), 15px) !important;
        line-height: 1.4;
        padding: 0.5rem 2px;
        margin: 0 auto 2rem;

        white-space: nowrap;
        letter-spacing: -0.5px;
    }
}

/* Very narrow mobile screens: heading only */
@media (max-width: 360px) {
    .faq-section > h2.faq-title {
        font-size: clamp(6px, calc(100vw / 55), 8px) !important;
        padding: 0.4rem 1px;
        letter-spacing: -0.6px;
    }
}

/* Funding buttons: preserve the previous mobile sizing */
@media (max-width: 480px) {
    .faq-funding-link {
        font-size: clamp(5px, 1.8vw, 8px);
        padding: 0.3rem 0.1rem;
        letter-spacing: -0.6px;
    }
}

@media (max-width: 360px) {
    .faq-funding-link {
        font-size: 5px;
        padding: 0.2rem 0;
        letter-spacing: -0.7px;
    }
}

/*** faq specific css ***/