/* ==========================================================================
   PIMPED FAQ ACCORDION
   ========================================================================== */

:root {
    --faq-bg: rgba(17, 34, 64, 0.4);
    --faq-border: rgba(100, 255, 218, 0.15);
    --faq-accent: #64ffda; /* Teal accent */
    --faq-glow: rgba(100, 255, 218, 0.3);
}

.faq-container {
    width: 100%;
    max-width: 820px;
    margin: 40px auto;
    perspective: 1000px; /* For a bit of depth */
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--faq-bg);
    backdrop-filter: blur(10px); /* Modern glass look */
    border: 1px solid var(--faq-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Hover effect for the whole card */
.faq-item:hover {
    border-color: var(--faq-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Highlight when open */
.faq-item:has(button[aria-expanded="true"]) {
    border-color: var(--faq-accent);
    background: rgba(17, 34, 64, 0.7);
    box-shadow: 0 0 15px var(--faq-glow);
}

.faq-question {
    width: 100%;
    padding: 22px 28px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.faq-question i {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.2rem;
    color: var(--faq-accent);
    background: rgba(100, 255, 218, 0.1);
    padding: 8px;
    border-radius: 50%;
}

/* Icon transform: spins and changes color */
.faq-question[aria-expanded="true"] i {
    transform: rotate(135deg);
    background: var(--faq-accent);
    color: #0a192f; /* Dark contrast */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0, 1, 0, 1); /* Faster snap-shut */
    padding: 0 28px;
    color: #ccd6f6; /* Lighter text for readability */
    line-height: 1.8;
    font-size: 1rem;
    opacity: 0;
}

.faq-answer[aria-hidden="false"] {
    max-height: 1000px;
    transition: all 0.5s cubic-bezier(1, 0, 1, 0); /* Smooth slide-down */
    padding: 0 28px 28px 28px;
    opacity: 1;
}

/* Mobile Tweaks */
@media (max-width: 640px) {/* Add this to the bottom of faq.css */

#faq {
    /* 1. Reset Position */
    width: 100% !important;
    left: 0 !important;
    margin: 0 !important;
    position: relative !important;

    /* 2. Fix the "Halving" / Height */
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 120px 20px !important;

    /* 3. Background - The 'Cover' logic ensures no gaps */
    background-image: url('../assets/images/spot.jpg') !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* 4. Kill the ghost scrollbar that causes shifts */
html, body {
    overflow-x: hidden !important;
}

/* Ensure the container doesn't shrink the section */
.faq-container {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    z-index: 2; /* Keeps it above the background */
}
    .faq-question {
        padding: 18px 20px;
        font-size: 1.05rem;
    }
    .faq-answer {
        padding: 0 20px;
    }
}



/* Ensure the background covers the entire area even if content expands */
#faq::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: inherit;
}

/* KILL SIDE GAPS */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow-x: hidden; /* Prevents side-scrolling gaps */
}

/* Full-bleed / edge-to-edge sections (remove left/right margins & padding, force viewport width) */
#faq,
#spots,
#mentors {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100vw !important;
    position: relative;
}

.full-bleed {
    margin-left:  0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100vw !important;
    position: relative;
}

/* Ensure the background image itself ignores any container padding */
#faq {
    background-size: cover !important;
    background-origin: border-box !important;
}

/* Optional: tiny safety padding on very small screens */
@media (max-width: 480px) {
    .full-bleed {
        padding-left:  8px !important;
        padding-right: 8px !important;
    }
}