* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #456789;
    min-height: 100vh;
}

.wrapper {
    width: 95%;
    max-width: 1400px;
    margin: 15px auto;
}


/* =========================
   NAVIGATION
========================= */

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
}

nav button {
    background: #2e2e2e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: .2s;
}

nav button:hover {
    background: #444;
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,.18);
}


/* SEARCH */

.search {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 5px 12px;
}

.search input {
    border: none;
    outline: none;
    width: 150px;
    font-size: 13px;
}


/* =========================
   HERO
========================= */

.banner {
    position: relative;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    display: block;
}

.banner img {
    width: 100%;
    display: block;
}

.banner-content {
    position: absolute;
    top: 24%;
    right: 5%;
    text-align: right;
    color: #287a73;
}

.banner-content h1 {
    font-size: 3rem;
}

.banner-content p {
    margin-top: 8px;
    color: #3c5d4c;
    font-size: 15px;
}

.banner-content small {
    color: #4d6f5f;
}


/* FILTER BUTTONS */

.button-row {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 18px;
}

.button-row button {
    background: white;
    border: 1px solid #9aa;
    border-radius: 20px;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: bold;
    transition: .2s;
}

.button-row button:hover,
.learn button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,.18);
}


/* LEARN MORE */

.learn {
    position: absolute;
    right: 35px;
    bottom: 18px;
}

.learn button {
    background: #3d8b70;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 18px;
    cursor: pointer;
    transition: .2s;
}


/* =========================
   ORIGINAL CARDS
========================= */

.cards {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.opportunities-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 2px 12px;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #2e2e2e #f1f1f1;
}

.opportunities-scroll::-webkit-scrollbar {
    height: 8px;
}

.opportunities-scroll::-webkit-scrollbar-thumb {
    background: #2e2e2e;
    border-radius: 999px;
}

.opportunities-scroll .card {
    flex: 0 0 min(320px, 80vw);
    min-width: 220px;
    scroll-snap-align: start;
}

.card {
    position: relative;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    transition: .25s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,.3);
}

.card img {
    width: 100%;
    display: block;
}

.badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: black;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}


/* =========================
   RESULTS SCREEN
========================= */

.results-screen {
    display: none;
    background: #f5f7f6;
    border-radius: 20px;
    padding: 30px;
    min-height: 600px;
}

.results-screen.active {
    display: block;
}

#homeScreen.hidden {
    display: none;
}

#mainNav.hidden {
    display: none;
}


/* RESULTS HEADER */

.results-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
}

.results-header h1 {
    color: #287a73;
    font-size: 2.2rem;
}

.results-header p {
    color: #52665e;
    margin-top: 5px;
}


/* BACK */

.back-button {
    background: #2e2e2e;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    cursor: pointer;
}

.back-button:hover {
    background: #444;
}


/* =========================
   FILTER OPTIONS
========================= */

.filter-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.filter-option {
    background: white;
    border: 2px solid #3d8b70;
    color: #287a73;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: .2s;
}

.filter-option:hover,
.filter-option.selected {
    background: #3d8b70;
    color: white;
    transform: translateY(-2px);
}


/* =========================
   LARGE RESULTS CARDS
========================= */

.results-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.result-card {
    background: white;
    border-radius: 18px;
    padding: 25px;
    min-height: 230px;
    box-shadow: 0 5px 15px rgba(0,0,0,.12);
    transition: .25s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,.2);
}

.result-number {
    display: inline-flex;
    width: 42px;
    height: 42px;
    background: #2e2e2e;
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 15px;
}

.result-card h2 {
    color: #287a73;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.result-card h3 {
    color: #555;
    font-size: 1rem;
    margin-bottom: 12px;
}

.result-card p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.result-info {
    color: #3d6c5b;
    font-size: .9rem;
    margin-bottom: 15px;
}

.result-link {
    display: inline-block;
    background: #3d8b70;
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 20px;
    width: fit-content;
    transition: .2s;
}

.result-link:hover {
    background: #287a73;
}


/* LOADING */

.loading {
    display: none;
    text-align: center;
    padding: 40px;
    color: #287a73;
    font-weight: bold;
}

.loading.active {
    display: block;
}


/* NO RESULTS */

.no-results {
    display: none;
    text-align: center;
    padding: 50px;
    color: #555;
}

.no-results.active {
    display: block;
}


/* =========================
   RESPONSIVE
========================= */

@media(max-width: 900px) {

    .banner-content h1 {
        font-size: 2rem;
    }

    .button-row {
        flex-wrap: wrap;
        width: 90%;
        justify-content: center;
    }

    .results-container {
        grid-template-columns: 1fr;
    }

    .results-screen {
        padding: 20px;
    }
}


@media(max-width: 600px) {

    nav {
        gap: 8px;
    }

    nav button {
        font-size: 10px;
        padding: 7px 10px;
    }

    .search {
        width: 100%;
        justify-content: center;
    }

    .search input {
        width: 90%;
    }

    .banner-content {
        top: 15%;
        right: 4%;
    }

    .banner-content h1 {
        font-size: 1.4rem;
    }

    .banner-content p,
    .banner-content small {
        font-size: 10px;
    }

    .button-row {
        bottom: 20px;
        gap: 7px;
    }

    .button-row button {
        font-size: 9px;
        padding: 7px 10px;
    }

    .learn {
        right: 15px;
        bottom: 8px;
    }

    .learn button {
        font-size: 9px;
        padding: 7px 10px;
    }

    .results-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .results-header h1 {
        font-size: 1.7rem;
    }
}

/* =========================
   USER PROFILE
========================= */

.profile-area {
    display: none;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 4px 10px 4px 5px;
    border-radius: 25px;
}

.profile-area.active {
    display: flex;
}

.profile-picture-small {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: #dfe9e5;
}

.profile-name {
    color: #2e2e2e;
    font-size: 12px;
    font-weight: bold;
    max-width: 100px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.signout-button {
    border: none;
    background: #2e2e2e;
    color: white;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    min-width: 65px;
    transition: .2s;
}

.signout-button:hover {
    background: #444;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,.2);
}