/*------------------------------------------------
Hero
------------------------------------------------*/
/* Hero positioning */
.hero {
    position: relative;
}
.hero > .wp-block-group {
    position: static;
}

/* Opportunities-specific: Make constrained container static so breadcrumb positions relative to hero */
.opportunity.hero .wp-block-group.has-global-padding {
    position: static;
}

/* Hero navigation - position relative to hero section, not inner container */
.hero-nav {
    --_hero-nav-height: 40px;
    position: static;
    min-height: var(--_hero-nav-height);
    margin: 0 0 1rem 0;
}
/* Opportunities-specific: Override to position relative to hero section */
.opportunity.hero .wp-block-buttons.hero-nav {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    max-width: none;
    margin: 0;
}

@media screen and (max-width: 590px) {
    .hero-nav {
        margin-bottom: 0.5rem;
    }
}

/* Back button - with your custom colors */
.hero .back-button a {
    background-color: #2d83f5;
    color: #ffffff;
    font-weight: 700;
    transition: scale 0.25s ease;
}
.hero .back-button a::before {
    content: '‹ ';
    font-size: 1.25em;
    line-height: 1;
}
.hero .back-button a:hover {
    opacity: 0.9;
}

/*------------------------------------------------
Content
------------------------------------------------*/
.opportunities-content {
    max-width: 1000px;
}
.opportunities-divider .shape {
    position: absolute;
    right: 0;
    top: 20%;
    translate: 0 -50%;
    max-width: clamp(50px, 7%, 100px);
    z-index: 1;
}
.download-documents {
    width: 100%;
}
.download-documents > a {
    background-color: var(--wp--preset--color--tertiary);
    padding: 1em;
    border-radius: var(--border-radius);
    width: 100%;
}
.opportunities-query-card-wrapper {
    --_gap: 1.5rem;
    --_padding: 1rem;
    display: flex;
    background-color: var(--wp--preset--color--background);
    padding: var(--_padding);
    border-radius: var(--border-radius);
    gap: var(--_gap);
}
.opportunities-query-card {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--_gap);
    border-radius: var(--border-radius);
    background-color: var(--wp--preset--color--background);
}
.opportunities-query-card * {
    margin: 0;
}
.opportunities-query-card .title-wrapper {
    flex-grow: 1;
}
.opportunities-query-card .title-wrapper h3 {
    margin-block-end: 10px;
    font-weight: 600;
}
.opportunities-query-card .apply-by {
    color: var(--wp--preset--color--primary);
}
.opportunities-query-card-wrapper .opportunities-post-button .wp-element-button {
    background-color: var(--wp--preset--color--tertiary);
    color: var(--wp--preset--color--text);
}
@media screen and (max-width: 850px) {
    .opportunities-query-card-wrapper {
        background-color: transparent;
        flex-direction: column;
        padding: 0;
    }
    .opportunities-query-card {
        padding: var(--_padding);
        flex-direction: column;
    }
    .opportunities-query-card > *,
    .opportunities-query-card-wrapper :is(.opportunities-post-button, .wp-element-button) {
        width: 100%;
    }
}
.opportunities-query-card-empty {
    background-color: var(--wp--preset--color--background);
    border-radius: var(--border-radius);
    padding: 1rem;
    display: none;
}
.opportunities-query-loop:not(:has(.opportunities-query-card)) .opportunities-query-card-empty {
    display: block;
}

/*------------------------------------------------
Resources
------------------------------------------------*/
.resource-wrapper {
    --_gap: 0.8rem;
    --_padding: 1rem;
    display: flex;
    background-color: var(--wp--preset--color--background);
    padding: var(--_padding);
    border-radius: var(--border-radius);
    gap: var(--_gap);
}
.resource {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--_gap);
    border-radius: var(--border-radius);
    background-color: var(--wp--preset--color--background);
}
.resource * {
    margin: 0;
}
.resource .title-wrapper {
    flex-grow: 1;
}
.resource .title-wrapper h3 {
    margin-block-end: 10px;
}
.resource .apply-by {
    color: var(--wp--preset--color--primary);
}
.resource-wrapper .opportunities-post-button .wp-element-button {
    background-color: var(--wp--preset--color--tertiary);
    color: var(--wp--preset--color--text);
}
@media screen and (max-width: 850px) {
    .resource-wrapper {
        background-color: transparent;
        flex-direction: column;
        padding-block: 5px;
    }
    .resource {
        padding: var(--_padding);
        flex-direction: column;
    }
    .resource > *,
    .resource-wrapper :is(.opportunities-post-button, .wp-element-button) {
        width: 100%;
    }
}