/* --- HOME PAGE & DASHBOARD STYLES --- */
#home-page.active {
    background-color: #ffffff !important;
    display: flex;
    flex-direction: column;
    overflow: visible !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    margin-bottom: 0;
    padding-bottom: 0;
}

.home-section-container {
    width: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    overflow: visible !important;
    background: transparent;
}

/* Background Layer for independent cropping control */
.home-section-container::before {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    background-size: 1920px auto;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
    background-position: center;
}

.home-section-container.top::before {
    bottom: 0;
    background-image: url('../assets/sitesection1.png');
    background-position: bottom center;
    height: 100%;
}

.home-section-container.top {
    padding-top: 0;
    min-height: 1300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.home-section-container.bottom::before {
    top: 0;
    background-image: url('../assets/sitesection2.png');
    background-position: top center;
    height: 100%;
}

.home-section-container.bottom {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 1650px;
    margin-top: 0;
}

/* --- ALTERNATING BODY SECTIONS (Section 1 / Section 2) --- */
.body-sections {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 40px;
    margin-top: 500px;
    pointer-events: auto;
    box-sizing: border-box;
}

.alt-row {
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: clamp(60px, 8vh, 120px) 0;
    background: transparent;
}

.alt-row.reverse {
    flex-direction: row-reverse;
}

.alt-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.alt-row.reverse .alt-image {
    justify-content: flex-start;
}

.alt-image img {
    width: 400px;
    height: 400px;
    border: 5px solid #000;
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

.alt-text {
    flex: 1;
}

.alt-text h3 {
    font-family: var(--font-primary);
    font-size: 2rem;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    color: #000;
}

.alt-row.reverse .alt-text {
    text-align: right;
}

.alt-text p {
    font-size: 1.2rem;
    line-height: 1.5;
    font-weight: bold;
    margin: 0;
    color: #000;
}

/* --- PATHFINDER TOOL (TRIGGER & CONTAINERS) --- */
.pathfinder-text-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 0 40px 0;
    margin-top: auto;
    pointer-events: none;
    z-index: 101;
}

.pathfinder-text-container>* {
    pointer-events: auto;
}

.pathfinder-section {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    pointer-events: auto;
    padding: 40px 0;
}

.pathfinder-header {
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    line-height: 0.9;
    letter-spacing: -2px;
    color: #fff !important;
}

.pathfinder-desc {
    font-family: 'Arial Black', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.1;
    max-width: 650px;
    margin: 5px 0 0 0;
    text-transform: uppercase;
    color: #fff !important;
    letter-spacing: -1px;
    text-align: center;
}

.pathfinder-trigger {
    background: transparent;
    color: #fff;
    border: 5px solid #fff;
    font-family: 'Arial Black', Impact, sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
    display: table;
    padding: 25px 60px;
    font-size: 2rem;
    margin: 50px auto 30px auto;
    text-decoration: none;
    position: relative;
    z-index: 1000;
    pointer-events: auto !important;
    border-radius: 100px;
}

.pathfinder-trigger:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: scale(1.05);
}

.pathfinder-outer-wrapper {
    width: 100%;
    background-color: #000;
    position: relative;
    z-index: 10;
    overflow: hidden;
    max-height: 0;
    transition: none;
    margin: 0;
    padding: 0;
}

.pathfinder-container {
    width: 100%;
    overflow: hidden;
    height: auto !important;
    opacity: 0;
    background: #000;
    box-sizing: border-box;
    border: 5px solid #fff;
    margin-top: 0;
    border-radius: 50px;
}

.pathfinder-inner {
    padding: 40px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    filter: invert(1);
}

.pathfinder-inner ::selection {
    background: #000;
    color: #fff;
}

.pathfinder-inner .pf-resource-link {
    background: #fff !important;
    color: #000 !important;
    border-color: #000 !important;
}

.pathfinder-inner .pf-resource-link:hover {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

/* Inverted State */
.pathfinder-section.inverted {
    color: #fff;
    filter: invert(1);
}

.pathfinder-section.inverted * {
    color: #000 !important;
}

.pathfinder-section.inverted .pathfinder-trigger {
    background: #000;
    color: #fff !important;
    border: 5px solid #fff;
}

.pathfinder-section.inverted .pathfinder-trigger:hover {
    background: #fff;
    color: #000;
}

.pathfinder-section.inverted .pathfinder-container {
    background: #fff;
    filter: invert(1);
}

/* --- COMMUNITY & ACCOUNT SECTIONS --- */
.home-community-section {
    width: 100%;
    background-color: #000;
    padding: 100px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    color: #fff;
}

.home-account-section {
    width: 100%;
    background-color: #fff;
    padding: 100px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    color: #000;
}

.section-title {
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: 3.5rem;
    text-transform: uppercase;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: -1px;
}

.community-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.matrix-box {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid #fff;
    border-radius: 100px;
    padding: 0px 0;
    width: 150px;
    height: 150px;
    background: #000;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    text-decoration: none;
}

.matrix-box:hover {
    transform: scale(1.05);
}

.matrix-logo {
    height: 75px;
    width: auto;
}

/* --- MOBILE HOME OVERRIDES --- */
@media (max-width: 1024px) {

    .home-section-container.top,
    .home-section-container.bottom {
        min-height: auto !important;
    }

    .home-section-container::before {
        background-size: 1920px auto !important;
        background-position: center center !important;
    }

    .home-section-container.top::before {
        background-position: bottom center !important;
    }

    .home-section-container.bottom::before {
        background-position: top center !important;
    }

    .alt-row {
        flex-direction: column !important;
        text-align: center;
        gap: 0 !important;
        width: 100% !important;
        padding: 60px 0 !important;
    }

    .alt-image img {
        width: 70vw !important;
        height: 70vw !important;
        max-width: 320px !important;
        max-height: 320px !important;
        margin: 0 auto;
    }

    .alt-text {
        text-align: center !important;
        padding: 0 20px !important;
    }

    .pathfinder-header {
        font-size: clamp(2rem, 12vw, 4rem) !important;
        text-align: center !important;
        line-height: 1 !important;
    }

    .pathfinder-text-container {
        padding: 20px 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .pathfinder-trigger {
        width: fit-content !important;
        max-width: 90% !important;
        font-size: 1.2rem !important;
        padding: 15px 40px !important;
        text-align: center !important;
        margin: 40px auto !important;
        border-radius: 100px !important;
    }

    .pf-wrapper {
        width: 100% !important;
        transform: none !important;
        margin: 0 !important;
        height: auto !important;
        background: transparent !important;
        padding: 20px !important;
        box-sizing: border-box !important;
    }

    .pf-split-view {
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
    }

    .section-title {
        font-size: 2.5rem !important;
    }

    .community-buttons {
        gap: 20px;
        flex-direction: row;
    }

    .matrix-box {
        width: 135px;
        height: 135px;
    }

    .matrix-logo {
        height: 60px;
    }

    .body-sections {
        padding-top: clamp(60px, 12vh, 180px) !important;
    }
}

/* --- MISSION RECORD SLIDER (Section 1 of Home Page) --- */
.about-container {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    padding-top: 36px;
    /* SPACING: Distance from Top of Page to Mission Section */
}

.about-content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 800px;
    width: 90%;
    pointer-events: auto;
}

.about-text-box {
    position: relative;
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    padding: 30px !important;
    /* SPACING: Internal padding for Mission cards */
    width: 100%;
    text-align: left !important;
    box-sizing: border-box;
}

.about-title {
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0;
    margin-bottom: 30px;
    /* SPACING: Gap between Mission title and body */
    border-bottom: 5px solid #000 !important;
    padding-bottom: 15px;
    font-weight: 900;
    font-family: var(--font-primary);
    text-align: left !important;
    color: #000 !important;
}

.about-body {
    line-height: 1.2;
    font-size: 1.2rem;
    font-weight: 900;
    color: #000 !important;
    text-align: left !important;
    margin-bottom: 50px;
    /* SPACING: Gap below Mission text */
}

.record-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    /* SPACING: Distance between record arrow buttons */
    margin-top: 30px;
    /* SPACING: Gap between Mission card and arrows */
    margin-bottom: 60px;
    /* DISTANCE TO BOTTOM: Gap between arrows and bottom of Section 1 */
    width: 100%;
}

.record-indicator {
    display: flex;
    gap: 10px;
    margin-top: 0 !important;
}

/* --- PATHFINDER WRAPPER --- */
#pathfinder-wrapper {
    margin: 0;
    padding: 0;
}