/* ---------- BASE STYLES ---------- */
body {
    font-family: Arial, sans-serif;
    background-color: #000;
    background-image: url('../img/questions-background.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    color: #fff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-x: hidden;
}

.faq-container {
    width: 100%;
    padding: 120px 60px;
    background-color: transparent;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: flex-start; /* Left align */
}

.faq-header {
    margin-bottom: 50px;
    width: 90%;
}

.faq-subheading {
    color: #a0a0a0;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.faq-main-heading {
    font-size: 2.8em;
    font-weight: 500;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

/* ---------- ACCORDION ---------- */
.accordion-wrapper {
    width: 100%;
    margin-top: 0;
}

.accordion-item {
    background-color: transparent;
    border-bottom: 1px solid #333;
    margin-bottom: 0;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    color: #fff;
    transition: color 0.3s ease;
}

.accordion-title:hover,
.accordion-title:focus {
    color: #f0f0f0;
}

.accordion-title::-webkit-details-marker {
    display: none;
}

.accordion-title-text {
    flex-grow: 1;
    line-height: 1.4;
}

.accordion-icon {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.accordion-icon svg {
    width: 16px;
    height: 16px;
    fill: #fff;
    transition: transform 0.3s ease;
}

.accordion-icon .icon-minus {
    display: none;
}

.accordion-item[open] .accordion-icon .icon-minus {
    display: block;
}

.accordion-item[open] .accordion-icon .icon-plus {
    display: none;
}

.accordion-item[open] .accordion-title-text {
    color: #ff3b3b; /* Red active color like your screenshot */
    font-weight: bold;
}

.accordion-content {
    padding: 0 0 20px 0;
    color: #ccc;
    font-size: 0.95em;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.accordion-item[open] .accordion-content {
    max-height: 800px;
    padding-top: 10px;
    padding-bottom: 20px;
}

/* ---------- RESPONSIVE BREAKPOINTS ---------- */

/* Tablet landscape and small laptops */
@media (max-width: 1024px) {
    .faq-container {
        max-width: 85%;
        padding: 100px 40px;
        flex-direction: column;
    }

    .faq-main-heading {
        font-size: 2.4em;
    }
}

/* Tablets and large phones */
@media (max-width: 768px) {
    body {
        background-position: center center;
    }

    .faq-container {
        padding: 80px 25px;
        align-items: center;
        text-align: center;
        max-width: 100%;
    }

    .faq-main-heading {
        font-size: 2em;
    }

    .accordion-title {
        font-size: 1em;
    }

    .accordion-content {
        font-size: 0.9em;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .faq-container {
        padding: 60px 20px;
        text-align: center;
    }

    .faq-subheading {
        font-size: 0.75em;
    }

    .faq-main-heading {
        font-size: 1.6em;
    }

    .accordion-title {
        font-size: 0.95em;
        padding: 12px 0;
    }

    .accordion-content {
        font-size: 0.85em;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .faq-container {
        padding: 40px 15px;
    }

    .faq-main-heading {
        font-size: 1.4em;
    }

    .accordion-title {
        font-size: 0.9em;
    }
}
