/*
 * Section heading — tagline above + IvyJournal title below.
 * Figma pattern used across homepage sections and throughout the site.
 * Variants: default (left-aligned), centered, and one with a right-hand CTA.
 */

.redesign .section-heading {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 768px;
}

.redesign .section-heading--center {
    align-self: center;           /* when inside a flex/grid parent (e.g. .stack) */
    margin-inline: auto;          /* fallback for plain block parents (e.g. .container) */
    text-align: center;
    align-items: center;
}

.redesign .section-heading__tagline {
    color: var(--text-heading);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.redesign .section-heading__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: var(--fs-h2);
    line-height: var(--lh-h2);
    color: var(--text-heading);
    margin: 0;
}

/* Mobile-only line breaks inside section titles. Used by headings that
 * Figma designs with a specific wrap on 393 px (e.g. Resources heading
 * wraps to 3 lines per node 11490:421). Desktop stays a single <br>-free
 * flow that wraps per its natural width. */
.redesign .title-br--mobile { display: none; }

@media (max-width: 768px) {
    .redesign .title-br--mobile { display: inline; }
}

.redesign .section-heading__sub {
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-paragraph);
    margin: 0;
}

/* Heading row — title on left, CTA on right. Used on "Featured Articles". */
.redesign .heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.redesign .heading-row .section-heading {
    flex: 1 1 480px;
}

/* Mobile Featured Articles header (Figma node 11490:538 Title).
 * Figma stacks the tagline + heading + "More Articles" button
 * centered in the column, not a left-heading + right-CTA split. */
@media (max-width: 768px) {
    .redesign .heading-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    .redesign .heading-row .section-heading {
        flex: 0 0 auto;
        align-items: center;
        text-align: center;
        width: 100%;
    }
}

/* Service tile — used in the "Services" strip on homepage */
.redesign .service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 900px) {
    .redesign .service-grid { grid-template-columns: 1fr; gap: 24px; }
}

.redesign .service {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 32px;
    background: var(--neutral-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.redesign .service:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.redesign .service__icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-sea-green);
    background: var(--brand-offwhite-peach);
    border-radius: 50%;
    margin-bottom: 8px;
}

.redesign .service__icon svg {
    width: 24px;
    height: 24px;
}

.redesign .service__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 24px;
    line-height: 1.3;
    color: var(--text-heading);
    margin: 0;
}

.redesign .service__title a {
    color: inherit;
    text-decoration: none;
}

.redesign .service__title a:hover {
    color: var(--brand-sea-green);
    text-decoration: none;
}

.redesign .service__desc {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-paragraph);
    margin: 0;
}

/* Feature trio grid — 3 columns, stacks to 1 on mobile */
.redesign .feature-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

@media (max-width: 900px) {
    .redesign .feature-trio { grid-template-columns: 1fr; gap: 40px; }
}
