/* about.css – Equal‑width columns for the About page */

/* Main flex container */
.about-section {
    display: flex;
    flex-direction: row;
    align-items: stretch;      /* makes both columns the same height */
    justify-content: center;
    gap: 2rem;                 /* space between columns */
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

/* Both columns take equal width */
.about-image-column,
.about-text-column {
    flex: 1;                   /* equal width */
    min-width: 0;              /* prevents flex overflow */
}

/* Image styling – fills its column */
.about-image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 1 / 1;       /* square crop, matches typical portrait */
}

/* Text column styling – dark overlay for readability */
.about-text-column {
    background-color: rgba(0, 0, 0, 0.434);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

/* Typography inside text column */
.about-text-column h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.about-text-column p,
.about-text-column li {
    line-height: 1.6;
    font-size: 1.125rem;
}

.about-text-column ul {
    margin: 0.5rem 0 0 1.5rem;
}

/* Golden links */
.about-text-column a {
    color: #FFD700;
    text-decoration: underline;
}

@media (max-width: 950px) {
    .about-image-column {
        height: 500px;        /* or whatever looks good */
        align-self: stretch;  /* still fills the row height */
    }

    .about-image-column img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        aspect-ratio: unset;
    }
}

@media (max-width: 749px) {
    .about-section {
        flex-direction: column;
        gap: 1.5rem;
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .about-text-column {
        text-align: center;
        padding: 1.5rem;
    }

    .about-text-column ul {
        text-align: left;
    }

    .about-image-column {
        aspect-ratio: 1 / 1;
        height: unset;        /* let aspect-ratio take over once stacked */
    }

    .about-image-column img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        aspect-ratio: unset;
    }
}