/* =========================================================
   FIRST LADY PROJECTS - PREMIUM FEATURE + TIMELINE
   Readable on LIGHT backgrounds
   Scoped to: body.page-template-page-first-lady-projects-php
========================================================= */

body.page-template-page-first-lady-projects-php {
    background:
        radial-gradient(1200px 700px at 20% 5%, rgba(90, 0, 17, .08), transparent),
        #f2f2f2;
}

body.page-template-page-first-lady-projects-php .flp-page {
    padding: 0 0 96px;
    width: 100%;
    margin-inline: 0;
}



/* -----------------------------------------
   Type + base readability (light page)
----------------------------------------- */
body.page-template-page-first-lady-projects-php .flp-page {
    color: rgba(25, 18, 22, .88);
}

body.page-template-page-first-lady-projects-php .flp-page h2,
body.page-template-page-first-lady-projects-php .flp-page h3 {
    color: rgba(63, 0, 12, .98);
}

body.page-template-page-first-lady-projects-php .section-head p {
    color: rgba(40, 34, 38, .78);
    line-height: 1.65;
    margin: 10px 0 0;
    max-width: 860px;
}

/* Gold underline like your site */
body.page-template-page-first-lady-projects-php .section-head h2 {
    position: relative;
    margin: 0 0 12px;
    letter-spacing: -.01em;
}

body.page-template-page-first-lady-projects-php .section-head h2:after {
    content: "";
    display: block;
    width: 72px;
    height: 2px;
    background: linear-gradient(90deg, rgba(246, 199, 76, .95), rgba(246, 199, 76, 0));
}

/* =========================
   Intro (single premium panel)
========================= */
body.page-template-page-first-lady-projects-php .flp-intro {
    margin: 0 auto 34px;
    max-width: var(--max);
}

body.page-template-page-first-lady-projects-php .flp-intro .section-head {
    border-radius: var(--radiusLg, 18px);
    border: 1px solid rgba(0, 0, 0, .06);
    background:
        radial-gradient(900px 420px at 18% 8%, rgba(246, 199, 76, .18), rgba(0, 0, 0, 0)),
        linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .78));
    box-shadow:
        0 8px 22px rgba(0, 0, 0, .09),
        inset 0 1px 0 rgba(255, 255, 255, .72);
    padding: 22px 24px;
}

body.page-template-page-first-lady-projects-php .flp-kicker {
        display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: .20em;
    text-transform: uppercase;

    position: relative;
    isolation: isolate;

    background:
        radial-gradient(120% 180% at 20% 10%, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 55%),
        linear-gradient(180deg, #6a0015 0%, #4a000f 55%, #36000b 100%);
    color: #f7d36a;

    border: 1px solid rgba(246, 199, 76, .42);
    box-shadow:
        0 10px 26px rgba(0, 0, 0, .18),
        inset 0 1px 0 rgba(255, 255, 255, .14),
        inset 0 -1px 0 rgba(0, 0, 0, .18);

    transition: transform .16s ease, box-shadow .16s ease;
}

body.page-template-page-first-lady-projects-php .flp-kicker::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 42%);
    opacity: .55;
    pointer-events: none;
    z-index: -1;
}

body.page-template-page-first-lady-projects-php .flp-kicker:hover {
    transform: translateY(-1px);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255, 255, 255, .16),
        inset 0 -1px 0 rgba(0, 0, 0, .20);
}

body.page-template-page-first-lady-projects-php .flp-prose {
    margin-top: 12px;
    color: rgba(25, 18, 22, .86);
    line-height: 1.75;
}

body.page-template-page-first-lady-projects-php .flp-prose p {
    margin: 0 0 12px;
}

body.page-template-page-first-lady-projects-php .flp-prose p:last-child {
    margin-bottom: 0;
}

/* =========================
   Current Project - feature split (no card)
========================= */
body.page-template-page-first-lady-projects-php .flp-current {
    padding-top: 22px;
    border-top: 1px solid rgba(0, 0, 0, .06);
}

body.page-template-page-first-lady-projects-php .flp-current-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 26px;
    align-items: start;
}

body.page-template-page-first-lady-projects-php .flp-current-media {
    width: 220px;
    height: 220px;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid rgba(246, 199, 76, .45);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, .18),
        0 0 0 6px rgba(90, 0, 17, .08);
    background:
        radial-gradient(320px 220px at 50% 20%, rgba(246, 199, 76, .12), rgba(63, 0, 12, .10));
}

body.page-template-page-first-lady-projects-php .flp-current-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.page-template-page-first-lady-projects-php .flp-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

body.page-template-page-first-lady-projects-php .flp-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .10);
    background: rgba(255, 255, 255, .75);
    color: rgba(63, 0, 12, .88);
    font-size: 12px;
    font-weight: 900;
}

body.page-template-page-first-lady-projects-php .flp-badge-gold {
    border-color: rgba(246, 199, 76, .55);
    background: rgba(246, 199, 76, .16);
    color: rgba(63, 0, 12, .96);
}

body.page-template-page-first-lady-projects-php .flp-current-name {
    color: rgba(63, 0, 12, .86);
    font-weight: 900;
    margin-bottom: 4px;
}

body.page-template-page-first-lady-projects-php .flp-current-title {
    margin: 0 0 8px;
    font-size: clamp(22px, 2.0vw, 28px);
}

body.page-template-page-first-lady-projects-php .flp-current-summary {
    margin: 0 0 10px;
    color: rgba(25, 18, 22, .86);
    line-height: 1.7;
    max-width: 980px;
}

body.page-template-page-first-lady-projects-php .flp-current-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* =========================
   Gallery - clean tile grid
========================= */
body.page-template-page-first-lady-projects-php .flp-gallery {
    padding-top: 22px;
    border-top: 1px solid rgba(0, 0, 0, .06);
}

body.page-template-page-first-lady-projects-php .flp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
}

body.page-template-page-first-lady-projects-php .flp-gallery-item {
    grid-column: span 4;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .14);
}

body.page-template-page-first-lady-projects-php .flp-gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
    transition: transform .35s ease, filter .35s ease;
}

body.page-template-page-first-lady-projects-php .flp-gallery-item:hover img {
    transform: scale(1.05);
    filter: saturate(1.05) contrast(1.02);
}

/* ============================
   FIRST LADY - FINAL POLISH
============================ */

/* TIMELINE WRAP */
body.page-template-page-first-lady-projects-php .flp-timeline {
    position: relative;
    padding-left: 64px;
    /* moved right */
    display: grid;
    gap: 48px;
}

/* SPINE */
body.page-template-page-first-lady-projects-php .flp-timeline:before {
    content: "";
    position: absolute;
    left: 36px;
    /* centered visually */
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: rgba(242, 182, 31, .14);
}

/* Row */
body.page-template-page-first-lady-projects-php .flp-row {
    position: relative;
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 24px;
    align-items: start;
    padding-bottom: 30px;
}

body.page-template-page-first-lady-projects-php .flp-row:not(:last-child) {
    border-bottom: 1px solid rgba(63, 0, 12, .06);
}

/* DOT */
body.page-template-page-first-lady-projects-php .flp-row:before {
    content: "";
    position: absolute;
    left: -33px;
    /* shift right */
    top: 42px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f2b61f;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .95);
    /* white halo breaks the line */
    border: 2px solid rgba(242, 182, 31, .45);
}

/* Portrait */
body.page-template-page-first-lady-projects-php .flp-row-media {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(242, 182, 31, .55);
    background: rgba(63, 0, 12, .25);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .15);
}

body.page-template-page-first-lady-projects-php .flp-row-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder (no more purple) */
body.page-template-page-first-lady-projects-php .flp-avatar {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: rgba(63, 0, 12, .30);
    color: #f2b61f;
    font-size: 20px;
    font-weight: 800;
}

/* Top meta */
body.page-template-page-first-lady-projects-php .flp-row-top {
    display: flex;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 6px;
}

body.page-template-page-first-lady-projects-php .flp-year {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    color: #f2b61f;
}

body.page-template-page-first-lady-projects-php .flp-name {
    font-weight: 800;
    color: rgba(63, 0, 12, .85);
}

/* Title */
body.page-template-page-first-lady-projects-php .flp-project {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 900;
    color: #3f000c;
    /* solid shrine maroon */
}

/* Description */
body.page-template-page-first-lady-projects-php .flp-desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(25, 20, 24, .88);
    max-width: 760px;
}

/* =========================
   CTA - single premium panel
========================= */
body.page-template-page-first-lady-projects-php .flp-cta {
    border-radius: var(--radiusLg, 18px);
    border: 1px solid rgba(0, 0, 0, .06);
    background:
        radial-gradient(900px 420px at 18% 8%, rgba(246, 199, 76, .18), rgba(0, 0, 0, 0)),
        linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .78));
    box-shadow:
        0 18px 44px rgba(0, 0, 0, .16),
        inset 0 1px 0 rgba(255, 255, 255, .75);
    padding: 22px 24px;
}

body.page-template-page-first-lady-projects-php .flp-cta-inner p {
    margin: 10px 0 0;
    color: rgba(25, 18, 22, .84);
    line-height: 1.7;
}

body.page-template-page-first-lady-projects-php .flp-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Make Past Projects use same width as legacy panel */
body.page-template-page-first-lady-projects-php .flp-timeline,
body.page-template-page-first-lady-projects-php .flp-past {
    max-width: 900px;
    /* match the legacy box width */
    margin-left: auto;
    margin-right: auto;
}

.flp-past {
    padding-top: 1rem;
}

/* First Lady Intro Section */

.flp-intro {
    padding-bottom: 10px;
}

.flp-intro .container {
    max-width: 900px;
    /* same as legacy panel */
    margin: 0 auto;
}

.flp-intro-inner {
    padding: 10px 0 0;
}

.flp-overline {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 18px;
}

.flp-intro-inner p {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 18px;
    color: var(--text-dark);
}

.flp-intro-inner p:last-child {
    margin-bottom: 0;
}

/* =========================================
   FIRST LADY PROJECTS - ALIGN CONTENT TO HERO PANEL
   (keeps Past Projects centered under the legacy box)
========================================= */

body.page-template-page-first-lady-projects-php .hero-flp .container {
    display: flex;
    justify-content: center;
}

body.page-template-page-first-lady-projects-php .flp-legacy-box {
    width: min(1100px, 100%);
}

/* Keep the page wrapper full-bleed so the shared hero fade spans the viewport */
body.page-template-page-first-lady-projects-php .flp-page > .container {
    width: 100%;
}

/* Optional: keep section-head from looking too wide if anything inside is full width */
body.page-template-page-first-lady-projects-php .section-head {
    max-width: 100%;
}

/* Optional polish: reduce the gap between the hero panel and Past Projects */
body.page-template-page-first-lady-projects-php .flp-intro {
    margin-bottom: 34px;
    /* was likely bigger */
}

body.page-template-page-first-lady-projects-php .flp-past {
    padding-top: 8px;
}



/* =========================================================
   FIRST LADY INTRO - MATCH AWARD WALL LAYOUT + STYLE
========================================================= */

body.page-template-page-first-lady-projects-php .flp-intro.page-intro {
    margin: 40px auto 34px;
}

body.page-template-page-first-lady-projects-php .flp-intro .page-intro-head {
    max-width: var(--max);
}

body.page-template-page-first-lady-projects-php .flp-intro .intro-panel {
    max-width: var(--max);
}

body.page-template-page-first-lady-projects-php .flp-intro.page-intro .intro-panel-prose {
    padding-left: 58px;
    line-height: 1.75;
    opacity: .94;
}

body.page-template-page-first-lady-projects-php .flp-intro-body {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(220px, 280px);
    gap: 18px 24px;
    align-items: start;
}

body.page-template-page-first-lady-projects-php .flp-intro-stats {
    grid-template-columns: 1fr;
    max-width: 260px;
}

body.page-template-page-first-lady-projects-php .flp-intro-stats .intro-stat {
    min-height: 158px;
}

body.page-template-page-first-lady-projects-php .flp-intro-stats .stat-label {
    font-size: 11px;
    letter-spacing: .16em;
}

body.page-template-page-first-lady-projects-php .flp-intro.page-intro .intro-panel-prose p {
    margin: 0 0 10px;
}

body.page-template-page-first-lady-projects-php .flp-intro.page-intro .intro-panel-prose>p:first-of-type {
    font-size: 16.5px;
    color: rgba(35, 24, 31, .93);
}

body.page-template-page-first-lady-projects-php .flp-intro.page-intro .intro-panel-prose>p:last-of-type {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(90, 0, 17, .10);
    font-weight: 750;
    opacity: .95;
}

@media (max-width: 700px) {
    body.page-template-page-first-lady-projects-php .flp-intro.page-intro .intro-panel-mark {
        display: none;
    }

    body.page-template-page-first-lady-projects-php .flp-intro-body {
        grid-template-columns: 1fr;
    }

    body.page-template-page-first-lady-projects-php .flp-intro-stats {
        max-width: none;
    }

    body.page-template-page-first-lady-projects-php .flp-intro.page-intro .intro-panel-prose {
        padding-left: 0;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .32s ease-out, transform .32s ease-out;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Prevent "blank section" wait on FLP page: show project sections immediately */
body.page-template-page-first-lady-projects-php .flp-current.reveal,
body.page-template-page-first-lady-projects-php .flp-gallery.reveal,
body.page-template-page-first-lady-projects-php .flp-past.reveal {
    opacity: 1;
    transform: none;
}

/* =========================
   Responsive
========================= */
@media (max-width: 980px) {
    body.page-template-page-first-lady-projects-php .flp-current-grid {
        grid-template-columns: 180px 1fr;
    }

    body.page-template-page-first-lady-projects-php .flp-current-media {
        width: 180px;
        height: 180px;
    }

    body.page-template-page-first-lady-projects-php .flp-row {
        grid-template-columns: 96px 1fr;
    }

    body.page-template-page-first-lady-projects-php .flp-row-media {
        width: 96px;
        height: 96px;
    }
}

@media (max-width: 720px) {
    body.page-template-page-first-lady-projects-php .flp-current-grid {
        grid-template-columns: 1fr;
    }

    body.page-template-page-first-lady-projects-php .flp-current-media {
        width: 160px;
        height: 160px;
    }

    body.page-template-page-first-lady-projects-php .flp-gallery-item {
        grid-column: span 6;
    }

    body.page-template-page-first-lady-projects-php .flp-gallery-item img {
        height: 200px;
    }

    body.page-template-page-first-lady-projects-php .flp-timeline {
        padding-left: 46px;
        gap: 22px;
    }

    body.page-template-page-first-lady-projects-php .flp-row {
        grid-template-columns: 86px 1fr;
        gap: 16px;
    }

    body.page-template-page-first-lady-projects-php .flp-row-media {
        width: 86px;
        height: 86px;
    }
}

@media (max-width: 480px) {
    body.page-template-page-first-lady-projects-php .flp-gallery-item {
        grid-column: span 12;
    }

    body.page-template-page-first-lady-projects-php .flp-gallery-item img {
        height: 200px;
    }

    body.page-template-page-first-lady-projects-php .flp-timeline {
        padding-left: 40px;
    }

    body.page-template-page-first-lady-projects-php .flp-row:before {
        left: -30px;
    }
}
