/*!* ----------------------------- SECTION 1 ------------------------------- *!*/

@media (max-width: 1200px) {
    #main-punch-line {
        font-size: 3rem;
        line-height: 3rem;
    }

    #main-punch-line:hover {
        font-size: 3.1rem;
    }

    #secondary-punch-line {
        line-height: 1.5rem;
    }
}

@media (max-width: 850px) {
    #section-1 {
        height: 40rem;
    }
}

@media (max-width: 795px) {
    #section-1 {
        height: 35rem;
    }

    #main-punch-line {
        font-size: 2rem;
        line-height: 2rem;
    }

    #main-punch-line:hover {
        font-size: 2.1rem;
        line-height: 1.8rem;
    }

    #secondary-punch-line {
        font-size: 1rem;
    }
}

@media (max-width: 420px) {
    #section-1 {
        height: 42rem;
    }
}

/* ----------------------------- grid-container-section ------------------------------- */
.grid-container-section {
    padding-top: 1rem;
    padding-bottom: 0;
}

.card-header img {
    padding: 0.5rem;
    border-radius: 10px;
}

#first-grid-container-section .card-header img {
    background: var(--light-grey);
}

.grid-container {
    position: relative;
    top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.first-grid-footer-text p {
    font-size: 1.5rem;
    color: #6a7c8e; /* Subtle grey to match the other captions */
    text-align: center;
    line-height: 5.5;
}

@media (max-width: 1340px) {

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .first-grid-footer-text p {
        font-size: 1.2rem;
    }
}

@media (max-width: 890px) {

    .first-grid-footer-text p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {

    .grid-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 700px) {
    .grid-container {
        grid-template-columns: repeat(1, 1fr);
        /* Ensure there is no bottom margin fighting your gap */
        margin-bottom: 0;
    }

    .first-grid-footer-text {
        /* This creates the gap you are looking for */
        margin-top: 50px;
        text-align: center;
    }

    .first-grid-footer-text p {
        /* Keeping your line-height tight as discussed previously */
        line-height: 1.4;
        margin: 0;
    }
}

/* ----------------------------- SECTION 2 ------------------------------- */
#section-2 .steps-container::before {
    display: none;
}

.steps-container {
    justify-content: center;
    gap: 3rem;
}

.steps-section {
    background: white;
    height: 32rem;
}

.step {
    border: 1px solid var(--off-white-background);
}

#section-header .section-subtitle {
    position: relative;
    left: 5%; /* Matches your h1 alignment */
    width: 90%;
    top: 2.2rem; /* Sits right under the h1 */
    margin: 0 !important;
    font-size: 1.1rem;
    color: #6a7c8e;
    text-align: left;
    font-style: italic; /* Ensures it stays italicized */
}

.section-footer-text {
    position: relative;
    left: 5%;
    width: 60%; /* Keeps the text from stretching across the whole screen like in the screenshot */
    top: 6rem; /* Adjust this to provide enough space below the steps */
    margin-top: 2rem;
}

.section-footer-text p {
    font-size: 1.1rem;
    color: #6a7c8e; /* Or your preferred grey/blue color */
    line-height: 1.6;
    text-align: left;
}

@media (max-width: 900px) {
    .steps-section {
        height: 65rem !important;
    }

    .section-footer-text {
        width: 90%;
        top: 2rem;
        text-align: center;
    }

    .section-footer-text p {
        text-align: center;
    }
}

/* ----------------------------- grid-container-section-2 ------------------------------- */
.card-header img {
    padding: 0.5rem;
    border-radius: 10px;
}

#first-grid-container-section-2 .card-header img {
    background: var(--light-grey);
}

.grid-container-2 {
    position: relative;
    top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.first-grid-footer-text-2 p {
    font-size: 1.5rem;
    color: #6a7c8e; /* Subtle grey to match the other captions */
    text-align: center;
    line-height: 5.5;
}

@media (max-width: 1856px) {
    /* Target the container of the text, not just the p tag */
    .first-grid-footer-text-2 {
        margin-top: 4rem; /* Adjust this value (e.g., 20px, 1.5rem) to your liking */
        text-align: center;
    }

    .first-grid-footer-text-2 p {
        font-size: 1.2rem;
        line-height: 1.5rem;
        margin: 0; /* Ensures default paragraph margins don't interfere */
    }
}

@media (max-width: 890px) {

    .first-grid-footer-text-2 p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {

    .grid-container-2 {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 700px) {
    .grid-container-2 {
        grid-template-columns: repeat(1, 1fr);
        /* Ensure there is no bottom margin fighting your gap */
        margin-bottom: 0;
    }

    .first-grid-footer-text-2 {
        /* This creates the gap you are looking for */
        margin-top: 50px;
        text-align: center;
    }

    .first-grid-footer-text-2 p {
        /* Keeping your line-height tight as discussed previously */
        line-height: 1.4;
        margin: 0;
    }
}


/* ----------------------------- FAQ SECTION ------------------------------- */

#faq-section {
    position: relative;
    width: 100%;
    padding-top: 4rem;
    padding-bottom: 6rem;
    background: #ffffff; /* Assuming white background based on images */
    text-align: center;
}

#faq-section h1 {
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 3rem;
    line-height: 2rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
}

.faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Active state matching the orange border from screenshots */
.faq-item.active-question {
    border-color: var(--orange);
    box-shadow: 0 4px 10px rgba(251, 133, 0, 0.1);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-blue);
    font-family: inherit;
}

.faq-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background-color: rgba(251, 133, 0, 0.1); /* Light orange circle */
    color: var(--orange);
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 400;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    padding: 0 25px 25px 25px;
    margin: 0;
    color: #6a7c8e;
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
    #faq-section h1 {
        font-size: 2rem;
        padding: 0 20px;
    }

    .faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .faq-answer p {
        padding: 0 20px 20px 20px;
        font-size: 0.95rem;
    }
}

/* ----------------------------- SECTION 6 ------------------------------- */

#section-6 {
    height: 20rem;
    padding-top: 2rem;
    background: #eef9fd;
    text-align: center;
}

#section-6-card-link {
    color: var(--dark-blue);
}

#section-6-card-link:hover {
    color: var(--orange);
}


@media (max-width: 900px) {

    .section-6-card-link {
        /* This creates the vertical space between the button and the link */
        display: block;
        margin-top: 30px;
        font-size: 1.1rem;
    }

    .section-sign-up-buttons {
        /* Ensures the button container doesn't have excess bottom space */
        margin-bottom: 20px;
    }
}

@media (max-width: 810px) {


    #section-6 {
        height: 22rem;
    }

    #section-6 p {
        line-height: 1.4rem;
    }
}