/* =========================
   FAQ Layout
========================= */

.faq-hero {
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    /* background: linear-gradient(180deg, #a388c7, transparent); */
}

.faq-hero h1 {
    font-size: 5rem;
    margin: 0;
}

.faq-hero p {
    font-size: 3rem;
    opacity: 0.8;
    margin-top: 0;
}

.faq__content {
    width: 100vw;
    padding: 0 25vw;
    min-height: 40vh;
}

.faq__container {
    /* max-width: 800px; */
    width: 100%;
    height: 100%;
    padding: 30px;
    margin: 0 auto;
}

.faq__category {
    margin-top: 40px;
}

.faq__questions-category {
    margin-left: -25px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.faq__questions-category h1 {
    font-size: 3rem;
}

/* =========================
   Search Bar
========================= */

.faq__search_bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;

    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    justify-content: space-between;
}

.faq__search_bar input {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    color: white;
    font-family: "Indie Flower", cursive;
    outline: none;

    font-weight: bold;
    
}

.faq__search_bar input::placeholder {
    color: rgba(233, 233, 233, 0.6); /* soft light version of your text */
    opacity: 1; /* ensures consistency across browsers */
}

.faq__search_bar .faq__icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.faq__no-results {
    margin-top: 100px;
    text-align: center;
    font-size: 2rem;
}

.faq__item span {
    color: #ffb2c7;
    font-weight: bold;
}

/* =========================
   FAQ Item
========================= */

.faq__item {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* =========================
   Question (Button)
========================= */

.faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;

    text-align: left;
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 1.2rem 1.5rem;
    cursor: pointer;

    color: white;
    font-family: inherit;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.faq__question h2 {
    font-size: 1.6rem;
    margin: 0;
}

/* Hover feel */
.faq__question:hover {
    background: rgba(255,255,255,0.15);
}

/* =========================
   Icon (SVG)
========================= */

.faq__icon {
    width: 20px;
    height: 20px;
    margin-left: 40px;

    stroke: currentColor;
    fill: none;
    stroke-width: 2;

    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Rotate when open */
.faq__item.active .faq__icon {
    transform: rotate(180deg);
}

/* =========================
   Answer (Expandable)
========================= */

.faq__answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;

    background: rgba(255,255,255,0.05);
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

/* Inner content */
.faq__answer p {
    padding: 1.2rem 1.5rem;
    margin: 0;
    color: white;
    line-height: 1.6;
    font-size: 1.4rem;
}

/* Optional subtle divider */
.faq__item.active .faq__question {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.faq__item.active .faq__answer {
    opacity: 1;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.faq__item {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq__question {
    transition: background 0.2s ease;
}

.faq__answer {
    transition: max-height 0.4s ease, opacity 0.3s ease;
}