/* Join page — extends home-redesign.css */

.join-page {
    --amx-navy: #020c41;
    --amx-blue: #030d75;
    --amx-pink: #fa0073;
    --amx-surface: #f4f6fb;
    --amx-radius: 1.25rem;
    background: var(--amx-surface);
}

.join-hero {
    min-height: 100vh;
    min-height: 100dvh;
}
.join-hero__bg {
    background:
        linear-gradient(160deg, rgba(2, 12, 65, 0.88) 0%, rgba(3, 13, 117, 0.72) 42%, rgba(2, 12, 65, 0.9) 100%),
        url('../images/gallery/amx/amx-03.png') center 35% / cover no-repeat;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Application process — single timeline panel */
.join-process {
    position: relative;
}

.join-timeline {
    list-style: none;
    margin: 0 auto;
    padding: 1.75rem 1.35rem 1.6rem;
    max-width: 68rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    background: #fff;
    border: 1px solid rgba(3, 13, 117, 0.08);
    border-radius: 1.5rem;
    box-shadow: 0 18px 48px rgba(2, 12, 65, 0.06);
}

@media (min-width: 900px) {
    .join-timeline {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
        padding: 2rem 1.5rem 1.85rem;
    }
}

.join-timeline__item {
    position: relative;
    margin: 0;
    display: grid;
    grid-template-columns: 2.75rem 1fr;
    gap: 0.9rem;
    align-items: start;
    padding: 0 0.35rem;
}

@media (min-width: 900px) {
    .join-timeline__item {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding: 0 1rem;
        gap: 0;
    }
}

/* Vertical rail (mobile) */
.join-timeline__track {
    position: relative;
    display: flex;
    justify-content: center;
    min-height: 100%;
}

.join-timeline__track::before {
    content: '';
    position: absolute;
    top: 2.6rem;
    bottom: -1.5rem;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: rgba(3, 13, 117, 0.1);
}

.join-timeline__item:last-child .join-timeline__track::before {
    display: none;
}

/* Horizontal rail (desktop) */
@media (min-width: 900px) {
    .join-timeline__track {
        width: 100%;
        min-height: 0;
        margin-bottom: 1.25rem;
    }

    .join-timeline__track::before {
        top: 50%;
        bottom: auto;
        left: 50%;
        right: -50%;
        width: auto;
        height: 2px;
        transform: translateY(-50%);
        background: rgba(3, 13, 117, 0.12);
    }

    .join-timeline__item:last-child .join-timeline__track::before {
        display: none;
    }
}

.join-timeline__dot {
    position: relative;
    z-index: 1;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background: var(--amx-navy);
    box-shadow: 0 0 0 6px #fff;
}

.join-timeline__item:nth-child(3) .join-timeline__dot,
.join-timeline__item:nth-child(4) .join-timeline__dot {
    background: var(--amx-navy);
}

.join-timeline__item:first-child .join-timeline__dot {
    background: linear-gradient(135deg, var(--amx-pink), #e91e6e);
}

.join-timeline__body {
    min-width: 0;
    padding-top: 0.15rem;
}

@media (min-width: 900px) {
    .join-timeline__body {
        padding-top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.join-timeline__icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
    color: var(--amx-navy);
    background: rgba(3, 13, 117, 0.06);
}

.join-timeline__title {
    margin: 0 0 0.4rem;
    font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--amx-navy);
    line-height: 1.25;
}

.join-timeline__text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #64748b;
    max-width: 16.5rem;
}

/* Requirements */
.join-req-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}
@media (min-width: 768px) {
    .join-req-grid { grid-template-columns: repeat(2, 1fr); }
}
.join-req-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1.5rem 1.35rem;
    background: #fff;
    border-radius: 1.35rem;
    border: 1px solid rgba(3, 13, 117, 0.07);
    box-shadow:
        0 1px 2px rgba(2, 12, 65, 0.04),
        0 12px 32px rgba(2, 12, 65, 0.07);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.join-req-card:hover {
    transform: translateY(-5px);
    border-color: rgba(250, 0, 115, 0.14);
    box-shadow:
        0 1px 2px rgba(2, 12, 65, 0.04),
        0 22px 48px rgba(2, 12, 65, 0.1);
}
.join-req-card__logo {
    display: block;
    height: 4.5rem;
    width: auto;
    max-width: 100%;
    margin: 0.25rem auto 1rem;
    object-fit: contain;
}
@media (min-width: 768px) {
    .join-req-card__logo { height: 5.25rem; }
}
.join-req-card__tag {
    display: inline-flex;
    margin: 0 auto 1.15rem;
}
.join-req-list {
    list-style: none;
    margin: 0 0 1.35rem;
    padding: 0;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.join-req-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #475569;
    text-align: justify !important;
    text-justify: inter-word;
    text-align-last: center !important;
}
.join-req-list li span {
    flex: 1;
    text-align: justify !important;
    text-justify: inter-word;
    text-align-last: center !important;
}
.join-req-list i {
    color: var(--amx-pink);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Join CTA band polish */
.join-cta-band {
    margin-top: 2.5rem;
}
.join-cta-band .home-cta-band__title--closed {
    margin-bottom: 0.85rem;
}
.join-cta-band .home-cta-band__text {
    margin-bottom: 1.5rem;
}

/* —— Mobile only: process + requirements —— */
@media (max-width: 767px) {
    .join-process .home-section__head {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
        margin-bottom: 1.35rem;
    }

    .join-timeline {
        margin: 0 1.15rem;
        padding: 0;
        max-width: none;
        gap: 0.75rem;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .join-timeline__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        grid-template-columns: none;
        gap: 0;
        padding: 1.15rem 1.1rem 1.2rem;
        background: #fff;
        border: 1px solid rgba(3, 13, 117, 0.08);
        border-radius: 1.15rem;
        box-shadow: 0 8px 22px rgba(2, 12, 65, 0.05);
        text-align: center;
    }

    .join-timeline__track {
        display: flex;
        justify-content: center;
        width: 100%;
        min-height: 0;
        margin-bottom: 0.7rem;
    }

    .join-timeline__track::before {
        display: none;
    }

    .join-timeline__dot {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.72rem;
        margin: 0 auto;
        box-shadow: 0 0 0 4px rgba(250, 0, 115, 0.12);
    }

    .join-timeline__body {
        padding-top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        text-align: center;
    }

    .join-timeline__icon {
        display: none;
    }

    .join-timeline__title {
        margin: 0 0 0.35rem;
        font-size: 1rem;
        text-align: center;
        width: 100%;
    }

    .join-timeline__text {
        max-width: 22rem;
        margin: 0 auto;
        font-size: 0.8125rem;
        line-height: 1.55;
        text-align: center;
        color: #64748b;
    }

    .join-req-grid {
        gap: 1rem;
        padding: 0 1.15rem;
    }

    .join-req-card {
        align-items: stretch;
        text-align: left;
        padding: 1.15rem 1.1rem 1.15rem;
        border-radius: 1.15rem;
    }

    .join-req-card:hover {
        transform: none;
    }

    .join-req-card__logo {
        height: 3.25rem;
        margin: 0 auto 0.75rem;
    }

    .join-req-card__tag {
        margin: 0 auto 0.95rem;
    }

    .join-req-list {
        gap: 0.65rem;
        margin-bottom: 1.05rem;
    }

    .join-req-list li,
    .join-req-list li span {
        text-align: left !important;
        text-align-last: left !important;
        text-justify: auto;
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    .join-req-card .home-va-card__link {
        align-self: stretch;
        justify-content: center;
        text-align: center;
    }

    .join-cta-band {
        width: calc(100% - 2.3rem);
        margin: 1.75rem auto 0;
        padding: 1.85rem 1.15rem 1.75rem;
        border-radius: 1.2rem;
    }

    .join-cta-band .home-cta-band__title--closed {
        font-size: clamp(1.35rem, 6.5vw, 1.7rem);
        margin-bottom: 0.55rem;
    }

    .join-cta-band .home-cta-band__text {
        font-size: 0.9rem;
        line-height: 1.55;
        margin-bottom: 1.15rem;
        max-width: 22rem;
        text-align: center;
        text-align-last: center;
    }

    .join-cta-band .home-cta-band__actions {
        width: 100%;
    }

    .join-cta-band .home-btn {
        width: 100%;
        justify-content: center;
    }
}

/* FAQ */
.join-faq {
    position: relative;
    padding: 5rem 0;
    background:
        radial-gradient(ellipse 70% 55% at 12% 20%, rgba(29, 78, 216, 0.28), transparent 60%),
        radial-gradient(ellipse 65% 50% at 88% 75%, rgba(250, 0, 115, 0.16), transparent 58%),
        radial-gradient(ellipse 90% 40% at 50% 100%, rgba(2, 12, 65, 0.9), transparent 70%),
        linear-gradient(165deg, #01082e 0%, #020c41 28%, #030d75 62%, #04145c 100%);
    overflow: hidden;
}
.join-faq::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.14;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, black, transparent);
    pointer-events: none;
}
.join-faq__glow {
    position: absolute;
    top: -15%;
    right: -8%;
    width: 32rem;
    height: 32rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(250, 0, 115, 0.22), transparent 68%);
    filter: blur(70px);
    pointer-events: none;
}
.join-faq__head {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2.75rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}
.join-faq__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 0.75rem;
}
.join-faq__desc {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.68);
}
.join-faq__list {
    max-width: 44rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}
.join-faq__item {
    border-radius: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.join-faq__item:hover,
.join-faq__item.is-open {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}
.join-faq__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: center;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
}
.join-faq__toggle span {
    flex: 1;
    text-align: center;
}
.join-faq__toggle i {
    color: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
    font-size: 0.85rem;
    transition: transform 0.2s ease, color 0.15s ease;
}
.join-faq__item.is-open .join-faq__toggle i {
    transform: rotate(180deg);
    color: var(--amx-pink);
}
.join-faq__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.2s ease-out;
}
.join-faq__item.is-open .join-faq__panel {
    grid-template-rows: 1fr;
}
.join-faq__panel-inner {
    overflow: hidden;
}
.join-faq__panel-inner p {
    margin: 0;
    padding: 0 1.5rem 1.35rem;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.78);
    text-align: justify !important;
    text-justify: inter-word;
    text-align-last: center !important;
}
.join-faq__panel-inner strong { color: #fff; }
.join-faq__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    margin-top: 2.5rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}
