/* ============================================================
   JOIN PTA PAGE
   ============================================================ */

:root {
    --jp-blue:       #032d47;
    --jp-blue-mid:   #064164;
    --jp-green:      #068D4D;
    --jp-green-dk:   #044f2b;
    --jp-mint:       #5adba0;
    --jp-text:       #1e2d3a;
    --jp-muted:      #4f6475;
    --jp-bg:         #f4f7fa;
    --jp-border:     #dde8f0;
}

/* ── Hero ── */
.joinpta-hero {
    position: relative;
    overflow: hidden;
    padding: 84px 24px 96px;
    text-align: center;
    background: var(--jp-blue);
}

.joinpta-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 65% at 15% 70%, rgba(6,141,77,.3)  0%, transparent 55%),
        radial-gradient(ellipse 60% 80% at 85% 15%, rgba(6,65,100,.55) 0%, transparent 50%),
        linear-gradient(155deg, #032d47 0%, #042e3b 45%, #053428 100%);
    background-image:
        radial-gradient(ellipse 80% 65% at 15% 70%, rgba(6,141,77,.3)  0%, transparent 55%),
        radial-gradient(ellipse 60% 80% at 85% 15%, rgba(6,65,100,.55) 0%, transparent 50%),
        linear-gradient(155deg, #032d47 0%, #042e3b 45%, #053428 100%),
        repeating-linear-gradient(
            -45deg,
            transparent, transparent 40px,
            rgba(90,219,160,.025) 40px, rgba(90,219,160,.025) 80px
        );
}

.joinpta-hero__inner {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.joinpta-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--jp-mint);
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-bottom: 22px;
}
.joinpta-hero__eyebrow::before,
.joinpta-hero__eyebrow::after {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: rgba(90,219,160,.4);
    flex-shrink: 0;
}

.joinpta-hero__title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: clamp(40px, 7vw, 68px);
    font-weight: 900;
    color: #fff;
    line-height: 1.06;
    letter-spacing: -.02em;
    margin-bottom: 22px;
}

.joinpta-hero__sub {
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255,255,255,.68);
    max-width: 580px;
    margin: 0 auto 36px;
}

.joinpta-hero__chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.joinpta-hero__chips span {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 40px;
    padding: 7px 16px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.78);
    letter-spacing: .03em;
    backdrop-filter: blur(6px);
}

/* ── Page body ── */
.joinpta-wrap {
    background: var(--jp-bg);
    min-height: 50vh;
}

.joinpta-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

/* ── Content ── */
.joinpta-body {
    font-size: 15.5px;
    line-height: 1.78;
    color: var(--jp-text);
}

.joinpta-body p  { margin-bottom: 18px; }
.joinpta-body ul { margin: 0 0 18px 1.4em; }
.joinpta-body a  { color: var(--jp-green); }
.joinpta-body a:hover { text-decoration: underline; }

/* Lead: first real paragraph */
.joinpta-body > p:first-child,
.joinpta-body > div:first-child > p:first-child {
    font-size: 17.5px;
    line-height: 1.7;
    color: var(--jp-muted);
    border-left: 3px solid var(--jp-green);
    padding-left: 20px;
    margin-bottom: 32px;
}

/* Legacy "heading" spans (18pt bold in old content) */
.joinpta-body span[style*="18pt"],
.joinpta-body span[style*="18.0pt"] {
    display: block;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 17px !important;
    font-weight: 800 !important;
    color: var(--jp-blue-mid) !important;
    margin-top: 44px;
    margin-bottom: 6px;
    padding-left: 14px;
    border-left: 4px solid var(--jp-green);
    line-height: 1.3;
}

/* Proper h2 elements */
.joinpta-body h2 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 21px;
    font-weight: 800;
    color: var(--jp-blue);
    margin-top: 48px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--jp-border);
    position: relative;
}

.joinpta-body h2::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 52px; height: 2px;
    background: var(--jp-green);
}

/* ── CTA Buttons ── */

/* All buttons in content: pill green primary */
.joinpta-body button {
    background: var(--jp-green);
    color: #fff;
    border: 2px solid var(--jp-green);
    border-radius: 40px;
    padding: 0;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 4px 0 var(--jp-green-dk), 0 8px 22px rgba(6,141,77,.3);
    transition: transform .12s ease, box-shadow .12s ease, background .12s;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.joinpta-body button::before {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
    transform: skewX(-20deg);
    transition: left .4s ease;
}

.joinpta-body button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 0 var(--jp-green-dk), 0 14px 28px rgba(6,141,77,.4);
}
.joinpta-body button:hover::before { left: 130%; }
.joinpta-body button:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--jp-green-dk); }

/* Second CTA button → outlined blue */
.joinpta-body p:has(button) + p:has(button) button {
    background: transparent;
    color: var(--jp-blue-mid);
    border-color: var(--jp-blue-mid);
    box-shadow: 0 4px 0 var(--jp-blue), 0 8px 18px rgba(6,65,100,.15);
}
.joinpta-body p:has(button) + p:has(button) button:hover {
    background: var(--jp-blue-mid);
    color: #fff;
    box-shadow: 0 7px 0 var(--jp-blue), 0 14px 24px rgba(6,65,100,.25);
}
.joinpta-body p:has(button) + p:has(button) button::before { display: none; }

/* Strip inline styles from links inside buttons; padding here (not on button) makes full area clickable */
.joinpta-body button a {
    color: inherit !important;
    font-size: inherit !important;
    font-family: inherit !important;
    font-weight: inherit !important;
    text-decoration: none !important;
    background: none !important;
    display: block;
    padding: 16px 38px;
    line-height: inherit;
}

/* Lay consecutive button paragraphs side by side */
.joinpta-body p:has(button) {
    display: inline-block;
    margin-right: 14px;
    vertical-align: top;
}

/* ── Thank you callout ── */
.joinpta-body .yj6qo,
.joinpta-body .ajU {
    margin-top: 48px;
    background: linear-gradient(135deg, var(--jp-blue) 0%, #053428 100%);
    border-radius: 14px;
    padding: 36px 32px;
    text-align: center;
}

.joinpta-body .yj6qo h2,
.joinpta-body .ajU h2 {
    font-size: 20px;
    color: #fff !important;
    border: none !important;
    margin: 0;
    padding: 0;
}

.joinpta-body .yj6qo h2::after,
.joinpta-body .ajU h2::after { display: none; }

/* ── Hero CTA Bar ── */
.joinpta-cta-bar {
    background: linear-gradient(180deg, #042e3b 0%, #032d47 100%);
    padding: 36px 24px 40px;
    text-align: center;
    border-bottom: 3px solid rgba(6,141,77,.3);
}

.joinpta-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--jp-green);
    color: #fff;
    text-decoration: none;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 22px 52px;
    border-radius: 60px;
    box-shadow: 0 6px 0 var(--jp-green-dk), 0 12px 36px rgba(6,141,77,.38);
    transition: transform .12s ease, box-shadow .12s ease;
    position: relative;
    overflow: hidden;
}

.joinpta-cta-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
    transform: skewX(-20deg);
    transition: left .4s ease;
}

.joinpta-cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 0 var(--jp-green-dk), 0 18px 40px rgba(6,141,77,.48);
    color: #fff;
    text-decoration: none;
}

.joinpta-cta-btn:hover::before { left: 130%; }

.joinpta-cta-btn:active {
    transform: translateY(3px);
    box-shadow: 0 3px 0 var(--jp-green-dk);
}

.joinpta-cta-btn__arrow {
    font-size: 24px;
    line-height: 1;
    transition: transform .12s ease;
}

.joinpta-cta-btn:hover .joinpta-cta-btn__arrow { transform: translateX(4px); }

/* ── Responsive ── */
@media (max-width: 600px) {
    .joinpta-hero { padding: 60px 20px 72px; }

    .joinpta-hero__chips { gap: 8px; }
    .joinpta-hero__chips span { font-size: 11px; padding: 6px 13px; }

    .joinpta-cta-bar { padding: 28px 20px 32px; }
    .joinpta-cta-btn { font-size: 15px; padding: 18px 32px; width: 100%; justify-content: center; box-sizing: border-box; }

    .joinpta-inner { padding: 40px 18px 56px; }

    .joinpta-body button { width: 100%; display: block; margin-right: 0; text-align: center; }
    .joinpta-body p:has(button) { display: block; width: 100%; margin-right: 0; }
}
