body {
    overflow-y: scroll;
}

#faq-top-photo-responsive {
    width: 100vw;
}

#top-section-title-and-greeting {
    padding: 0 2rem;
}

#top-section-title-and-greeting > h1 {
    margin: 1rem;
}

#top-section-title-and-greeting > p {
    margin: 0;
    margin-bottom: 1rem;
}

#photo-section {
    display: none;
}

.accordion {
    display: grid;
    grid-auto-flow: row;
    gap: 1rem;
    padding: 1rem;
    justify-content: center; /* centers the cards on the page */
}

.accordion > label {
    background: #354A5F;
    width: 100%;       /* full width of container */
    border-radius: 1rem;
    padding: 1rem;
    display: grid;
    grid-auto-flow: row;
    gap: 0rem;
    cursor: pointer;
    transition: gap 400ms ease;
    text-align: left;  /* keep text left-aligned */
}

.accordion > label:has(input[type=radio]:checked) {
    gap: 2rem; /* spacing when selected */
}

.accordion > label > .accordion-header {
    font-size: 1rem;
    font-weight: bold;
    color: rgb(255,255,255);
    margin: 0;
    padding: 0;
    border: 0;
    text-align: left;
}

.accordion > label > .accordion-body {
    padding: 0 0 0 2rem;
    border-left: 1rem solid var(--color2);
    height: fit-content;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: 
        max-height 600ms ease-in-out,
        opacity 400ms ease-in-out,
        padding 400ms ease-in-out;
    color: rgb(255,255,255);
    margin: 0;
    border: 0;
}

.accordion > label > input[type=radio] {
    display: none;
}

.accordion > label > input[type=radio]:checked ~ .accordion-body {
    max-height: 100rem; /* enough to fit longest FAQ */
    opacity: 1;
    padding-bottom: 1rem; /* smooth vertical expansion */
}

.accordion > label > input[type=radio]:checked ~ .accordion-header {
    color: var(--color2); /* change color of heading in FAQ when selected */
}

#private-pilot-link {
    color: white;
}

@media all and (min-width: 450px) {
    #faq-top-photo-responsive {
        width: 450px;
        padding-top: 2rem;
    }
}

@media all and (min-width: 900px) {
    #faq-top-photo-responsive {
        display: none;
    }

    .accordion {
        width: 60vw;
    }

    #photo-section {
        display: flex;
        align-self: stretch;
        width: 30vw;
        justify-content: space-around;
    }

    .photo-section-photo {
        width: 80%;
    }
}
