/* =========================================================
   AFDES About Subpages
   File: /assets/css/about-subpages.css
========================================================= */

.about-subpage {
    background: #f8fafc;
    color: #102033;
}

.subpage-hero {
    padding: clamp(64px, 8vw, 104px) 0;
    background:
        radial-gradient(circle at top right, rgba(4,155,206,.18), transparent 34%),
        radial-gradient(circle at bottom left, rgba(245,196,81,.12), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
    border-bottom: 1px solid var(--border);
}

.subpage-hero h1,
.subpage-section h2,
.subpage-heading h2,
.subpage-contact h2,
.partnership-box h2 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.04;
    letter-spacing: -.04em;
}

.subpage-hero h1 {
    max-width: 980px;
    font-size: clamp(2.8rem, 7vw, 5.6rem);
}

.subpage-hero p {
    max-width: 860px;
    margin: 22px 0 0;
    color: #475569;
    font-size: 1.16rem;
    line-height: 1.75;
}

.subpage-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #f5c451;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.subpage-eyebrow.dark {
    color: var(--primary);
}

.subpage-section {
    padding: 70px 0;
}

.subpage-split {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 44px;
    align-items: start;
}

.subpage-section h2,
.subpage-heading h2,
.partnership-box h2,
.subpage-contact h2 {
    font-size: clamp(2rem, 4vw, 3.35rem);
}

.subpage-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    padding: clamp(28px, 5vw, 44px);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.subpage-card::before,
.subpage-feature::before,
.leadership-panel::before,
.partnership-box::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), #7dd3fc);
}

.subpage-card p {
    margin: 0 0 16px;
    color: #475569;
    line-height: 1.75;
}

.subpage-card p:last-child {
    margin-bottom: 0;
}

.subpage-values {
    padding: 70px 0;
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.subpage-heading {
    max-width: 820px;
    margin-bottom: 32px;
}

.subpage-heading.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.subpage-heading p {
    margin: 16px 0 0;
    color: #64748b;
    line-height: 1.7;
}

.subpage-grid {
    display: grid;
    gap: 18px;
}

.subpage-grid.four {
    grid-template-columns: repeat(4, 1fr);
}

.subpage-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.subpage-feature {
    position: relative;
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 30px 24px;
    transition: .22s ease;
    overflow: hidden;
}

.subpage-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(15,23,42,.10);
    background: #fff;
}

.subpage-feature strong {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--primary);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.subpage-feature h3 {
    margin: 0 0 10px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.32rem;
}

.subpage-feature p {
    margin: 0;
    color: #475569;
    line-height: 1.65;
}

.leadership-panel,
.partnership-box {
    position: relative;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 28px;
    padding: clamp(28px, 5vw, 44px);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.leader-placeholder {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--navy));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.6rem;
    font-weight: 900;
    box-shadow: 0 18px 45px rgba(4,155,206,.20);
}

.leadership-panel span {
    display: block;
    color: var(--primary);
    font-weight: 900;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .11em;
    margin-bottom: 10px;
}

.leadership-panel h3 {
    margin: 0 0 12px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.08;
}

.leadership-panel p,
.partnership-box p {
    margin: 0;
    color: #475569;
    line-height: 1.75;
}

.partnership-box {
    grid-template-columns: 1fr;
    margin-top: 64px;
    margin-bottom: 0;
}

.subpage-contact {
    margin: 70px auto;
    padding: clamp(34px, 5vw, 52px);
    background:
        radial-gradient(circle at top right, rgba(4,155,206,.24), transparent 35%),
        linear-gradient(135deg, var(--navy), #0f2f47);
    color: #fff;
}

.subpage-contact h2 {
    color: #fff;
}

.subpage-contact p {
    max-width: 760px;
    margin: 16px 0 26px;
    color: #dbeafe;
    line-height: 1.7;
}

.subpage-contact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    margin: 4px 8px 4px 0;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.subpage-contact a:hover {
    background: var(--primary-dark);
}

.subpage-contact a.outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,.45);
}

.subpage-contact a.outline:hover {
    background: rgba(255,255,255,.12);
}

@media (max-width: 980px) {
    .subpage-split,
    .leadership-panel {
        grid-template-columns: 1fr;
    }

    .subpage-grid.four,
    .subpage-grid.three {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .subpage-grid.four,
    .subpage-grid.three {
        grid-template-columns: 1fr;
    }

    .leader-placeholder {
        width: 112px;
        height: 112px;
        font-size: 3rem;
    }

    .subpage-contact a {
        width: 100%;
        margin-right: 0;
    }
}

/* ==========================================================
   SIMPLE PAGE CLOSING
========================================================== */

.simple-page-closing {
    padding: 42px 0 70px;
    background: #ffffff;
}

.simple-page-closing p {
    max-width: 860px;
    margin: 0 auto;
    padding-top: 28px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    color: #475569;
    font-size: 1.02rem;
    line-height: 1.7;
    text-align: center;
}

.simple-page-closing a {
    color: var(--primary);
    font-weight: 900;
    text-decoration: none;
}

.simple-page-closing a:hover {
    color: var(--navy);
    text-decoration: underline;
}