/* JOIN PAGE SPECIFIC STYLES */

/* General page text */
main {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #222;
}

/* Intro Section */
.join-intro {
    text-align: center;
    padding: 4rem 1rem;
    background: #f0f6ff; /* soft airy blue */
    color: #002855;
}

.join-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.join-intro p {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: #333;
}

/* Why Join */
.why-join {
    padding: 3rem 2rem;
    background-color: #ffffff;
    text-align: center;
}

.why-join h3 {
    margin-bottom: 1rem;
    color: #004080;
    font-size: 1.8rem;
}

.why-join p {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: #444;
}

/* Expectations */
.expectations {
    padding: 3rem 2rem;
    background-color: #f9fbfd;
    text-align: center;
}

.expectations h3 {
    margin-bottom: 1rem;
    color: #004080;
    font-size: 1.8rem;
}

.expectations p {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: #444;
}

/* Opportunities Board */
/* Force Current Opportunities header to center and space out */
section.opportunities > h3 {
    display: block;
    width: 100%;
    text-align: center;        /* center the text */
    margin: 0 auto 2.5rem auto;/* top 0, bottom spacing */
    padding: 0.5rem 0;         /* little breathing room */
    color: #004080;
    font-size: 2rem;
    font-weight: 700;
}

/* Accent line */
section.opportunities > h3::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    background: #ffb347;       /* accent color */
    margin: 0.8rem auto 0 auto;/* center under text */
    border-radius: 2px;
}


.opportunities {
    padding: 3rem 2rem;
    background-color: #ffffff;
    text-align: center;
}

/* .opportunities h3 {
    margin-bottom: 2rem;
    color: #004080;
    font-size: 1.8rem;
} */

.opportunity-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.opportunity-list article {
    background: #f9fbfd;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.opportunity-list article:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.1);
}

.opportunity-list h4 {
    margin-bottom: 0.8rem;
    color: #004080;
    font-size: 1.3rem;
}

.opportunity-list p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    color: #444;
}

/* Buttons */
.opportunity-list a {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    background-color: #ffb347; /* warm orange-gold */
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.opportunity-list a:hover {
    background-color: #e89a32;
    transform: translateY(-3px);
}

/* Opportunities Board */



.opportunities {
    padding: 4rem 2rem;
    background-color: #ffffff;
    text-align: center;
}

.opportunities h3 {
    margin-bottom: 2rem;
    color: #004080;
    font-size: 2rem;
    font-weight: bold;
}

.opportunity-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1100px;
}

.opportunity-list article {
    background: #f9fbfd;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.opportunity-list article:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.1);
}

.opportunity-list h4 {
    margin-bottom: 0.6rem;
    color: #004080;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.opportunity-list h4 span {
    background: #e0ecff;
    color: #004080;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
}

/* Paragraph inside each role */
.opportunity-list p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.6;
}

/* No opportunities message */
.no-opportunities {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    color: #555;
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: #f0f6ff;
    border: 1px solid #ccd9f0;
    border-radius: 10px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}


/* Add spacing below opportunities list */
.opportunities {
    padding: 4rem 2rem;
    background-color: #ffffff;
    text-align: center;
    margin-bottom: 3rem; /* NEW: creates clear space before apply section */
}

/* Or, extra safety: add space above apply section */
.apply {
    padding: 3rem 2rem;
    background-color: #f0f6ff;
    text-align: center;
    margin-top: 2rem; /* ensures it never collides with the board */
}


/* Apply Section */
.apply {
    padding: 3rem 2rem;
    background-color: #f0f6ff; /* soft light blue */
    text-align: center;
}

.apply h3 {
    margin-bottom: 1rem;
    color: #004080;
    font-size: 1.8rem;
}

.apply p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: #333;
}

.apply a {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background-color: #ffb347; /* warm orange-gold */
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.apply a:hover {
    background-color: #e89a32;
    transform: translateY(-3px);
}

/* MOBILE */
@media (max-width: 768px) {
    .opportunity-list {
        grid-template-columns: 1fr; /* stack cards on small screens */
    }

    .apply h3 {
        font-size: 1.5rem;
    }
}


/* MOBILE */
@media (max-width: 768px) {
    main {
        font-size: 1rem;
        line-height: 1.6;
    }

    .join-intro h2 {
        font-size: 2rem;
    }

    .why-join h3,
    .expectations h3,
    .opportunities h3 {
        font-size: 1.5rem;
    }

    .opportunity-list {
        grid-template-columns: 1fr; /* stack cards */
    }
}

