/* Reflections Section */
.reflections-section {
    background-color: #FFFFFF;
    width: 100%;
    padding: 6.25rem 3.75rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.reflections-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
}

.reflections-header__text {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reflections-header__text>.eyebrow-label {
    margin: 0;
    width: fit-content;
}

.reflections-heading {
    width: 57%;
    color: #05121E;
    font-weight: 700;
    line-height: 48px;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
    margin: 0;
}

.reflections-paragraph {
    width: 41%;
    color: #0F172A;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 30px;
    font-family: "Bricolage Grotesque", sans-serif;
    letter-spacing: 0%;
    margin: 0;
    margin-top: 2.55rem;
}

.reflections-track-wrapper {
    width: 100%;
    overflow: hidden;
}

.reflections-track {
    position: relative; /* lets the JS measure each card's position relative to the track */
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    transition: transform 0.4s ease;
}

.reflection-card {
    width: 32%;
    flex-shrink: 0;
    border: 1px solid #CAD5E2;
    border-radius: 32px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.reflection-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-bottom: 1.25rem;
}

.reflection-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 2.8;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    padding-bottom: 0.625rem;
}

.reflection-card__date {
    width: fit-content;
    font-weight: 500;
    color: #62748E;
    font-size: 0.875rem;
    line-height: 100%;
    font-family: "Bricolage Grotesque", sans-serif;
    letter-spacing: 0%;
    margin: 0;
    padding-bottom: 0.625rem;
}

.reflection-card__title {
    color: #12181F;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 100%;
    font-family: "Bricolage Grotesque", sans-serif;
    letter-spacing: 0%;
    margin: 0;
}

.reflection-card__excerpt {
    color: #4A5568;
    font-size: 1rem;
    line-height: 100%;
    font-weight: 400;
    font-family: "Bricolage Grotesque", sans-serif;
    letter-spacing: 0%;
    margin: 0;
}

.reflection-card__link {
    width: fit-content;
    font-size: 1.25rem;
    color: var(--color-brand-blue);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.reflections-controls {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.reflections-dots {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.reflections-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: #CBD5E0;
    cursor: pointer;
    padding: 0;
}

.reflections-dot--active {
    background-color: var(--color-brand-blue);
}

.reflections-arrows {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
}

.reflections-arrow {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid #CBD5E0;
    background-color: transparent;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #12181F;
    font-size: 1.1rem;
}

.reflections-arrow--next {
    background-color: var(--color-brand-blue);
    border: none;
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .reflections-section {
        padding: 6.25rem 1rem;
        gap: 2rem;
    }

    .reflections-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .reflections-header__text {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .reflections-heading {
        width: 100%;
        text-align: center;
        font-size: clamp(1.5rem, 1.1rem + 4vw, 2rem);
        line-height: 1.2;
    }

    .reflections-paragraph {
        width: 100%; /* overrides the desktop 38% */
        text-align: center;
        font-size: 1rem;
        margin: 0;
    }

    .reflections-track {
        gap: 1rem;
    }

    .reflection-card {
        width: 100%; /* overrides the desktop 32%, so one card fills the view */
    }

    .reflection-card__image {
        aspect-ratio: 1 / 1.08; /* taller than desktop, as in the reference */
    }

    .reflection-card__title {
        line-height: 1.2; /* desktop's 100% is too tight once text wraps */
    }

    .reflection-card__excerpt {
        line-height: 1.25;
    }
}
