/* ============================================
   ABOUT PAGE — Phileo PM
   Simple editorial layout (CMS-friendly).
   ============================================ */

.about-hero__bg {
    background-image: url('../../images/projects/project_s13_img2.jpg');
}

/* --- Editorial article wrapper — full content width (1400px) --- */
.editorial {
    padding: 80px 0 96px;
}

/* --- Lead intro paragraph (full width across the content area) --- */
.editorial__lead {
    margin-bottom: 40px;
}

.editorial__intro {
    font-size: 1.45rem;
    line-height: 1.6;
    color: var(--color-primary-dark);
    font-weight: 400;
    font-family: var(--font-display);
    max-width: 1100px;
}

/* --- Featured image / figure (full content width) --- */
.editorial__figure {
    margin: 0 0 64px;
}

.editorial__figure img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    display: block;
}

.editorial__figure figcaption {
    margin-top: 12px;
    font-size: 0.88rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* --- Editorial body sections — heading column + body column,
       so the section uses the full content width but the body
       text stays at a comfortable reading line-length. --- */
.editorial__section {
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
    column-gap: 56px;
    row-gap: 0;
    padding: 40px 0;
    border-top: 1px solid var(--color-border);
}

.editorial__section:first-of-type {
    border-top: none;
    padding-top: 16px;
}

.editorial__section:last-child {
    padding-bottom: 0;
}

/* Heading sits in column 1, sticky at the top while body scrolls past. */
.editorial__section h2 {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.85rem;
    color: var(--color-primary-dark);
    line-height: 1.2;
    position: sticky;
    top: 110px;
    padding-bottom: 14px;
    margin: 0;
    align-self: start;
}

.editorial__section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent-blue), var(--color-accent-teal));
    border-radius: 2px;
}

/* Every non-heading child stacks in column 2 — paragraphs, lists, etc. */
.editorial__section>*:not(h2) {
    grid-column: 2;
}

.editorial__section p {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--color-text);
    margin-bottom: 18px;
    max-width: 760px;
}

.editorial__section p:last-child {
    margin-bottom: 0;
}

.editorial__section a {
    color: var(--color-accent-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.editorial__section a:hover {
    color: var(--color-primary-dark);
}

/* --- Editorial bullet list --- */
.editorial__list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    max-width: 760px;
}

.editorial__list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text);
}

.editorial__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 8px;
    height: 8px;
    background: var(--color-accent-blue);
    border-radius: 50%;
    transform: translateY(-50%);
}

.editorial__list li strong {
    color: var(--color-primary-dark);
    font-weight: 700;
    margin-right: 4px;
}

/* --- Responsive: stack heading on top below tablet --- */
@media (max-width: 991px) {
    .editorial {
        padding: 60px 0 72px;
    }

    .editorial__intro {
        font-size: 1.25rem;
    }

    .editorial__section {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 32px 0;
    }

    .editorial__section h2::after {
        display: none;
    }

    .editorial__section h2 {
        font-size: 1.55rem;
        position: static;
    }

    .editorial__section p,
    .editorial__list {
        max-width: none;
    }
}

@media (max-width: 575px) {
    .editorial {
        padding: 40px 0 56px;
    }

    .editorial__intro {
        font-size: 1.1rem;
    }

    .editorial__section h2 {
        font-size: 1.35rem;
    }

    .editorial__section p,
    .editorial__list li {
        font-size: 1rem;
    }
}