/* ==========================================================
   BATTLES OF THE BRAIN
   FAQ - COMPLETE CSS
   Header + FAQ Page + Footer + Responsive
   Matches button-based accordion markup
   ========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    color: #17324a;
    background: #eaf9ff;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 88px;
    padding: 0 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    background: rgba(226, 248, 255, 0.25);
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.header.scrolled {
    background: rgba(237, 250, 255, 0.96);
    border-bottom-color: rgba(27, 105, 140, 0.12);
    box-shadow: 0 5px 22px rgba(27, 78, 101, 0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    width: auto;
    height: 70px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.55rem;
}

.nav-link {
    position: relative;
    padding: 0.45rem 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #153e59;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #148cb0;
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: #087b9e;
}

.nav-link:hover::after {
    width: 100%;
}

.explore-button {
    min-width: 92px;
    padding: 0.65rem 1.25rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #138caf, #2357a5);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(20, 112, 157, 0.20);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.explore-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 112, 157, 0.27);
}

.hamburger {
    display: none;
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 4px;
    background: #164d68;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.faq-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding-top: 88px;
    padding-bottom: 5rem;
    background-image: linear-gradient(rgba(222, 246, 255, 0.67), rgba(237, 250, 255, 0.88)), url('/assets/frontpage/images/i-bg.jpg');
    background-size: cover;
    background-position: top center;
    background-repeat: repeat-y;
    background-attachment: fixed;
}

.faq-bg {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 4.2rem 1.5rem 3rem;
    text-align: center;
}

.faq-title-main {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0.06em;
    color: #133950;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.55);
}

.faq-subtitle-main {
    max-width: 800px;
    margin: 1rem auto 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.05rem, 2.1vw, 1.4rem);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.05em;
    color: #37677f;
}

.faq-content {
    width: min(1050px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.faq-card {
    width: 100%;
    padding: 2.8rem;
    border: 1px solid rgba(24, 132, 170, 0.15);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 40px rgba(20, 73, 101, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.faq-card-title {
    margin: 0 0 1.7rem;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.06em;
    color: #105b78;
}

.faq-intro-card {
    text-align: center;
    padding-left: clamp(2rem, 6vw, 5rem);
    padding-right: clamp(2rem, 6vw, 5rem);
}

.faq-intro-content {
    max-width: 780px;
    margin: 0 auto;
}

.faq-intro-content p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #4b6575;
}

.faq-accordion {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.faq-item {
    overflow: hidden;
    border: 1px solid rgba(29, 139, 173, 0.14);
    border-radius: 16px;
    background: #f8fcfe;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.faq-item:hover {
    border-color: rgba(29, 139, 173, 0.26);
    box-shadow: 0 5px 18px rgba(25, 95, 123, 0.06);
}

.faq-item.active {
    background: #ffffff;
    border-color: rgba(26, 144, 181, 0.24);
    box-shadow: 0 7px 22px rgba(25, 95, 123, 0.07);
}

.faq-question {
    width: 100%;
    min-height: 68px;
    padding: 1.1rem 1.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 0;
    outline: none;
    background: transparent;
    color: #244c62;
    text-align: left;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
}

.faq-question:hover {
    color: #0e6f90;
}

.faq-question:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(25, 142, 177, 0.14);
}

.faq-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e8f7fb;
    color: #1381a3;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: #1488aa;
    color: #ffffff;
}

.faq-answer {
    display: none;
    padding: 0 1.3rem 1.4rem;
    border-top: 1px solid rgba(27, 130, 165, 0.09);
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    margin: 1rem 0 0;
    font-size: 0.99rem;
    line-height: 1.75;
    color: #506978;
}

.faq-answer strong {
    color: #28566d;
}

.faq-answer a {
    color: #08799c;
    font-weight: 700;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-process {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1.1rem 0 0;
    padding: 1rem;
    border-radius: 14px;
    background: #edf9fc;
}

.faq-process span {
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    background: #ffffff;
    color: #1b536c;
    font-size: 0.9rem;
    font-weight: 700;
}

.faq-process span:nth-child(even) {
    padding-left: 0.1rem;
    padding-right: 0.1rem;
    background: transparent;
    color: #42a5c0;
    font-size: 1.15rem;
}

.faq-inline-link {
    color: #08799c !important;
    font-weight: 700;
}

.faq-inline-link:hover {
    text-decoration: underline;
}

.faq-support-details {
    margin-top: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    background: #f0f9fc;
}

.faq-support-details p {
    margin: 0.35rem 0;
}

.faq-support-details a {
    color: #08799c;
    font-weight: 800;
}

.faq-contact-box {
    padding: 3.4rem 2.5rem;
    text-align: center;
    border-radius: 27px;
    background: linear-gradient(135deg, rgba(18, 83, 114, 0.98), rgba(23, 131, 160, 0.96));
    box-shadow: 0 18px 45px rgba(16, 78, 105, 0.18);
    color: #ffffff;
}

.faq-contact-small-title {
    display: block;
    margin-bottom: 0.9rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    color: #c9f5ff;
}

.faq-contact-box h2 {
    margin: 0 auto 1rem;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    line-height: 1.35;
}

.faq-contact-box p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.02rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
}

.faq-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 165px;
    margin-top: 1.6rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    background: #ffffff;
    color: #126987;
    font-weight: 800;
    box-shadow: 0 7px 18px rgba(7, 49, 67, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.faq-contact-button:hover {
    transform: translateY(-2px);
    background: #f0fbff;
    box-shadow: 0 10px 24px rgba(7, 49, 67, 0.24);
}

.simple-footer {
    width: 100%;
    padding: 1.5rem 4% 1.8rem;
    text-align: center;
    background: #eaf8fd;
}

.footer-line {
    width: min(1050px, 90%);
    height: 1px;
    margin: 0 auto 1.2rem;
    background: rgba(22, 97, 128, 0.18);
}

.footer-text {
    margin: 0;
    color: #567183;
    font-size: 0.9rem;
}

@media (max-width: 1000px) {
    .header {
        padding: 0 3%;
    }

    .nav {
        gap: 0.9rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 820px) {
    .header {
        height: 78px;
        padding: 0 22px;
        background: rgba(236, 250, 255, 0.96);
        box-shadow: 0 3px 15px rgba(30, 87, 110, 0.08);
    }

    .logo {
        height: 58px;
    }

    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 78px;
        right: -100%;
        width: min(310px, 86vw);
        height: calc(100vh - 78px);
        padding: 2rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(242, 251, 255, 0.99);
        box-shadow: -10px 15px 30px rgba(30, 77, 100, 0.12);
        transition: right 0.3s ease;
    }

    .nav.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(18, 99, 132, 0.10);
        font-size: 1.05rem;
    }

    .nav-link::after {
        display: none;
    }

    .explore-button {
        width: 100%;
        margin-top: 1.5rem;
        padding: 0.8rem 1.2rem;
    }

    .faq-section {
        padding-top: 78px;
        background-attachment: scroll;
    }
}

@media (max-width: 650px) {
    .faq-section {
        padding-bottom: 3rem;
    }

    .faq-bg {
        width: calc(100% - 26px);
        padding: 2.6rem 0.6rem 2rem;
    }

    .faq-title-main {
        font-size: 1.9rem;
        letter-spacing: 0.04em;
    }

    .faq-subtitle-main {
        font-size: 1rem;
    }

    .faq-content {
        width: calc(100% - 26px);
        gap: 1.6rem;
    }

    .faq-card {
        padding: 1.6rem 1.2rem;
        border-radius: 20px;
    }

    .faq-card-title {
        font-size: 1.03rem;
    }

    .faq-question {
        min-height: 62px;
        padding: 0.95rem 1rem;
        font-size: 0.96rem;
    }

    .faq-icon {
        width: 31px;
        height: 31px;
        font-size: 1.2rem;
    }

    .faq-answer {
        padding: 0 1rem 1.2rem;
    }

    .faq-answer p {
        font-size: 0.96rem;
        line-height: 1.65;
    }

    .faq-process {
        justify-content: center;
    }

    .faq-contact-box {
        padding: 2.6rem 1.3rem;
        border-radius: 21px;
    }
}

@media (max-width: 400px) {
    .header {
        padding: 0 15px;
    }

    .logo {
        height: 52px;
    }

    .faq-title-main {
        font-size: 1.65rem;
    }

    .faq-subtitle-main {
        font-size: 0.92rem;
    }

    .faq-card {
        padding: 1.35rem 0.9rem;
    }

    .faq-question {
        font-size: 0.92rem;
    }

    .faq-answer p {
        font-size: 0.94rem;
    }
}
