/* ============================================================
   BELAIR HILL JUNIOR SCHOOL
   CAREERS & VACANCIES
   ADMISSIONS-STYLE VISUAL SYSTEM
============================================================ */

/* ============================================================
   SECTION
============================================================ */

.opportunities-section {
    position: relative;
    padding: 110px 0 115px;
    background: linear-gradient(
        180deg,
        #faf9f5 0%,
        #f5f8f5 100%
    );
    overflow: hidden;
}

/* ============================================================
   DECORATIVE BACKGROUND SHAPES
============================================================ */

.opportunities-section::before {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    top: -210px;
    right: -150px;
    border-radius: 50%;
    background: rgba(
        200,
        167,
        93,
        0.10
    );
    filter: blur(5px);
    pointer-events: none;
}

.opportunities-section::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    bottom: -180px;
    left: -140px;
    border-radius: 50%;
    background: rgba(
        156,
        41,
        56,
        0.07
    );
    filter: blur(5px);
    pointer-events: none;
}

/* ============================================================
   HEADER
============================================================ */

.opportunities-header {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto 58px;
    text-align: center;
}

.opportunities-header .section-eyebrow,
.opportunities-cta .section-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(
        200,
        167,
        93,
        0.14
    );
    border: 1px solid rgba(
        200,
        167,
        93,
        0.30
    );
    color: #9b7c32;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.opportunities-header h2 {
    margin: 0 0 18px;
    color: #043c2d;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(
        2.35rem,
        4.5vw,
        4rem
    );
    font-weight: 700;
    line-height: 1.08;
}

.opportunities-header p {
    max-width: 690px;
    margin: 0 auto;
    color: #66736d;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 1.02rem;
    line-height: 1.75;
}

/* ============================================================
   FILTERS
============================================================ */

.opportunity-filters {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 42px;
}

.opportunity-filter {
    border: 1px solid rgba(
        7,
        91,
        67,
        0.15
    );
    border-radius: 999px;
    padding: 11px 19px;
    background: rgba(
        255,
        255,
        255,
        0.80
    );
    color: #075b43;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(
        4,
        60,
        45,
        0.05
    );
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* ============================================================
   FILTER HOVER
============================================================ */

.opportunity-filter:hover {
    transform: translateY(-2px);
    border-color: rgba(
        7,
        91,
        67,
        0.30
    );
    background: #ffffff;
    color: #075b43;
    box-shadow: 0 12px 28px rgba(
        4,
        60,
        45,
        0.09
    );
}

/* ============================================================
   ACTIVE FILTER
============================================================ */

.opportunity-filter.active {
    border-color: #075b43;
    background: #075b43;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(
        7,
        91,
        67,
        0.22
    );
}

.opportunity-filter.active:hover {
    border-color: #043c2d;
    background: #043c2d;
    color: #ffffff;
}

/* ============================================================
   GRID
============================================================ */

.opportunities-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(
        2,
        minmax(0, 1fr)
    );
    gap: 25px;
}

/* ============================================================
   CARD
============================================================ */

.opportunity-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 30px;
    border: 1px solid #dce5e0;
    border-radius: 24px;
    background: rgba(
        255,
        255,
        255,
        0.92
    );
    box-shadow: 0 5px 20px rgba(
        4,
        60,
        45,
        0.06
    );
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.opportunity-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 28px;
    bottom: 28px;
    width: 4px;
    border-radius: 0 8px 8px 0;
    background: linear-gradient(
        180deg,
        #075b43,
        #9c2938
    );
}

.opportunity-card:hover {
    transform: translateY(-6px);
    border-color: rgba(
        7,
        91,
        67,
        0.22
    );
    box-shadow: 0 20px 55px rgba(
        4,
        60,
        45,
        0.11
    );
}

.opportunity-card[hidden] {
    display: none;
}

/* ============================================================
   CARD TOP
============================================================ */

.opportunity-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

/* ============================================================
   BADGE
============================================================ */

.opportunity-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(
        7,
        91,
        67,
        0.09
    );
    color: #075b43;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ============================================================
   STATUS
============================================================ */

.opportunity-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #39745d;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
}

.opportunity-status::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #39745d;
    box-shadow: 0 0 0 4px rgba(
        57,
        116,
        93,
        0.10
    );
}

/* ============================================================
   ICON
============================================================ */

.opportunity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
    border: 1px solid rgba(
        200,
        167,
        93,
        0.25
    );
    border-radius: 16px;
    background: linear-gradient(
        145deg,
        rgba(
            200,
            167,
            93,
            0.16
        ),
        rgba(
            7,
            91,
            67,
            0.08
        )
    );
    color: #075b43;
    font-size: 1.55rem;
    box-shadow: inset 0 1px 0 rgba(
        255,
        255,
        255,
        0.85
    );
}

/* ============================================================
   TITLE
============================================================ */

.opportunity-card h3 {
    margin: 0 0 12px;
    color: #043c2d;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

/* ============================================================
   SUMMARY
============================================================ */

.opportunity-summary {
    margin: 0 0 25px;
    color: #66736d;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.92rem;
    line-height: 1.75;
}

/* ============================================================
   META INFORMATION
============================================================ */

.opportunity-meta {
    display: grid;
    grid-template-columns: repeat(
        3,
        minmax(0, 1fr)
    );
    gap: 10px;
    margin-bottom: 27px;
}

.opportunity-meta > div {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(
        7,
        91,
        67,
        0.08
    );
    border-radius: 13px;
    background: rgba(
        237,
        246,
        241,
        0.55
    );
}

.opportunity-meta span {
    display: block;
    margin-bottom: 5px;
    color: #82918b;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.opportunity-meta strong {
    display: block;
    color: #174c3d;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.35;
}

/* ============================================================
   ACTIONS
============================================================ */

.opportunity-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.opportunity-details-btn,
.opportunity-apply-btn {
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 999px;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

/* ============================================================
   DETAILS BUTTON
============================================================ */

.opportunity-details-btn {
    border: 1px solid rgba(
        7,
        91,
        67,
        0.18
    );
    background: #ffffff;
    color: #075b43;
}

.opportunity-details-btn:hover {
    transform: translateY(-2px);
    border-color: #075b43;
    background: #f5faf7;
    color: #043c2d;
    box-shadow: 0 8px 20px rgba(
        7,
        91,
        67,
        0.08
    );
}

/* ============================================================
   APPLY BUTTON
============================================================ */

.opportunity-apply-btn {
    border: 1px solid #075b43;
    background: linear-gradient(
        135deg,
        #075b43,
        #043c2d
    );
    color: #ffffff;
    box-shadow: 0 9px 20px rgba(
        7,
        91,
        67,
        0.18
    );
}

.opportunity-apply-btn:hover {
    transform: translateY(-2px);
    border-color: #043c2d;
    background: linear-gradient(
        135deg,
        #086e51,
        #075b43
    );
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(
        7,
        91,
        67,
        0.25
    );
}

/* ============================================================
   EMPTY STATE
============================================================ */

.opportunities-empty {
    position: relative;
    z-index: 1;
    margin-top: 25px;
    padding: 55px 25px;
    border: 1px dashed rgba(
        7,
        91,
        67,
        0.20
    );
    border-radius: 22px;
    background: rgba(
        255,
        255,
        255,
        0.65
    );
    text-align: center;
}

.opportunities-empty[hidden] {
    display: none;
}

.empty-icon {
    margin-bottom: 12px;
    color: #075b43;
    font-size: 2rem;
}

.opportunities-empty h3 {
    margin: 0 0 8px;
    color: #043c2d;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.5rem;
}

.opportunities-empty p {
    max-width: 560px;
    margin: 0 auto;
    color: #687771;
    font-family: "DM Sans", Arial, sans-serif;
    line-height: 1.7;
}

/* ============================================================
   APPLICATION AREA
============================================================ */

.opportunity-application {
    position: relative;
    z-index: 3;
    margin-top: 50px;
    scroll-margin-top: 100px;
}

.opportunity-application[hidden] {
    display: none;
}

.opportunity-application-inner {
    position: relative;
    width: 100%;
    padding: 42px;
    border: 1px solid #dce5e0;
    border-radius: 28px;
    background: rgba(
        255,
        255,
        255,
        0.96
    );
    box-shadow:
        0 22px 60px rgba(
            4,
            60,
            45,
            0.12
        ),
        0 3px 12px rgba(
            4,
            60,
            45,
            0.04
        );
    overflow: hidden;
}

.opportunity-application-inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg,
        #075b43,
        #c8a75d,
        #9c2938
    );
}

/* ============================================================
   APPLICATION LOADING
============================================================ */

.opportunity-application-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 180px;
    gap: 12px;
    text-align: center;
}

.opportunity-application-loading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(
        7,
        91,
        67,
        0.08
    );
    color: #075b43;
    font-size: 1.4rem;
}

.opportunity-application-loading p {
    margin: 0;
    color: #66736d;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.9rem;
}

/* ============================================================
   APPLICATION FORM
   These styles apply to all dynamically loaded forms.
============================================================ */

.opportunity-application form {
    position: relative;
    width: 100%;
}

.opportunity-application form h2,
.opportunity-application form h3 {
    color: #043c2d;
    font-family: "Playfair Display", Georgia, serif;
}

.opportunity-application form h2 {
    margin: 0 0 10px;
    font-size: clamp(
        1.8rem,
        3vw,
        2.5rem
    );
    line-height: 1.15;
}

.opportunity-application form h3 {
    margin: 28px 0 16px;
    font-size: 1.25rem;
}

.opportunity-application form p {
    color: #66736d;
    font-family: "DM Sans", Arial, sans-serif;
    line-height: 1.7;
}

/* ============================================================
   APPLICATION HEADER
============================================================ */

.opportunity-application-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e9e5;
}

.opportunity-application-title {
    min-width: 0;
}

.opportunity-application-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    color: #9b7c32;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.opportunity-application-title h2 {
    margin: 0;
}

.opportunity-application-title p {
    max-width: 720px;
    margin: 10px 0 0;
}

/* ============================================================
   CLOSE APPLICATION
============================================================ */

.opportunity-application [data-close-application] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(
        7,
        91,
        67,
        0.15
    );
    border-radius: 50%;
    background: #ffffff;
    color: #075b43;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.opportunity-application [data-close-application]:hover {
    transform: rotate(90deg);
    border-color: #075b43;
    background: #075b43;
    color: #ffffff;
}

/* ============================================================
   APPLICATION FIELD GRID
============================================================ */

.opportunity-application .form-row,
.opportunity-application .application-form-row,
.opportunity-application [data-form-row] {
    display: grid;
    grid-template-columns: repeat(
        2,
        minmax(0, 1fr)
    );
    gap: 20px;
}

/* ============================================================
   FORM GROUP
============================================================ */

.opportunity-application .form-group,
.opportunity-application .application-form-group,
.opportunity-application [data-form-group] {
    min-width: 0;
    margin-bottom: 20px;
}

/* ============================================================
   LABELS
============================================================ */

.opportunity-application label {
    display: block;
    margin-bottom: 7px;
    color: #174c3d;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
}

.opportunity-application label .required,
.opportunity-application label span.required {
    color: #9c2938;
}

/* ============================================================
   INPUTS / SELECTS / TEXTAREAS
============================================================ */

.opportunity-application input,
.opportunity-application select,
.opportunity-application textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d7e2dc;
    border-radius: 12px;
    background: #ffffff;
    color: #243b34;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.9rem;
    line-height: 1.45;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
    box-sizing: border-box;
}

.opportunity-application textarea {
    min-height: 125px;
    resize: vertical;
}

.opportunity-application input::placeholder,
.opportunity-application textarea::placeholder {
    color: #9aa7a1;
}

.opportunity-application input:hover,
.opportunity-application select:hover,
.opportunity-application textarea:hover {
    border-color: #b9cbc2;
}

.opportunity-application input:focus,
.opportunity-application select:focus,
.opportunity-application textarea:focus {
    border-color: #075b43;
    background: #ffffff;
    box-shadow:
        0 0 0 3px rgba(
            7,
            91,
            67,
            0.10
        );
}

/* ============================================================
   CHECKBOXES / RADIO BUTTONS
============================================================ */

.opportunity-application input[type="checkbox"],
.opportunity-application input[type="radio"] {
    width: 17px;
    height: 17px;
    min-height: 17px;
    margin: 0;
    padding: 0;
    accent-color: #075b43;
}

.opportunity-application .checkbox-group,
.opportunity-application .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.opportunity-application .checkbox-label,
.opportunity-application .radio-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #52635c;
    font-weight: 600;
    cursor: pointer;
}

/* ============================================================
   HELP / FIELD DESCRIPTION
============================================================ */

.opportunity-application .field-help,
.opportunity-application .form-help,
.opportunity-application small {
    display: block;
    margin-top: 6px;
    color: #82918b;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.73rem;
    line-height: 1.5;
}

/* ============================================================
   FILE INPUT
============================================================ */

.opportunity-application input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px dashed #c9d8d0;
    border-radius: 12px;
    background: #f8fbf9;
    color: #52635c;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.82rem;
    box-sizing: border-box;
}

.opportunity-application input[type="file"]:focus {
    outline: 2px solid rgba(
        7,
        91,
        67,
        0.18
    );
    outline-offset: 2px;
}

/* ============================================================
   READONLY OPPORTUNITY INFORMATION
============================================================ */

.opportunity-application [data-application-opportunity],
.opportunity-application [data-application-title],
.opportunity-application [data-application-department] {
    color: #174c3d;
    font-weight: 700;
}

.opportunity-application .application-reference,
.opportunity-application [data-application-opportunity-id] {
    color: #82918b;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.76rem;
}

/* ============================================================
   FORM ACTIONS
============================================================ */

.opportunity-application .form-actions,
.opportunity-application .application-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e2e9e5;
}

/* ============================================================
   FORM BUTTONS
============================================================ */

.opportunity-application button[type="submit"],
.opportunity-application .application-submit,
.opportunity-application [data-submit-application] {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
    border: 1px solid #c8a75d;
    border-radius: 999px;
    background: linear-gradient(
        135deg,
        #ead8a5,
        #c8a75d
    );
    color: #022d21;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 9px 20px rgba(
        200,
        167,
        93,
        0.22
    );
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.opportunity-application button[type="submit"]:hover,
.opportunity-application .application-submit:hover,
.opportunity-application [data-submit-application]:hover {
    transform: translateY(-2px);
    border-color: #9b7c32;
    background: linear-gradient(
        135deg,
        #f0dfae,
        #d2b568
    );
    color: #022d21;
    box-shadow: 0 14px 28px rgba(
        200,
        167,
        93,
        0.32
    );
}

/* ============================================================
   SECONDARY FORM BUTTON
============================================================ */

.opportunity-application .form-cancel,
.opportunity-application [data-close-application] + button {
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid #c8a75d;
    border-radius: 999px;
    background: #fffaf0;
    color: #8f7129;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.opportunity-application .form-cancel:hover,
.opportunity-application [data-close-application] + button:hover {
    border-color: #9b7c32;
    background: #ead8a5;
    color: #022d21;
}

/* ============================================================
   FORM MESSAGES
============================================================ */

.opportunity-application .form-message,
.opportunity-application .application-message,
.opportunity-application [data-form-message] {
    display: none;
    margin: 18px 0 0;
    padding: 13px 15px;
    border-radius: 12px;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.82rem;
    line-height: 1.55;
}

.opportunity-application .form-message.success,
.opportunity-application .application-message.success,
.opportunity-application [data-form-message].success {
    display: block;
    border: 1px solid rgba(
        57,
        116,
        93,
        0.20
    );
    background: rgba(
        57,
        116,
        93,
        0.08
    );
    color: #276149;
}

.opportunity-application .form-message.error,
.opportunity-application .application-message.error,
.opportunity-application [data-form-message].error {
    display: block;
    border: 1px solid rgba(
        156,
        41,
        56,
        0.20
    );
    background: rgba(
        156,
        41,
        56,
        0.06
    );
    color: #8c2635;
}

/* ============================================================
   PARTNER CARD
============================================================ */

.opportunity-partner-card {
    border-color: rgba(
        200,
        167,
        93,
        0.28
    );
}

.opportunity-partner-card::before {
    background: linear-gradient(
        180deg,
        #c8a75d,
        #075b43
    );
}

.opportunity-partner-card .opportunity-badge {
    background: rgba(
        200,
        167,
        93,
        0.13
    );
    color: #8f7129;
}

/* ============================================================
   CTA
============================================================ */

.opportunities-cta {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    margin-top: 48px;
    padding: 34px 38px;
    border-radius: 24px;
    background: linear-gradient(
        135deg,
        #022d21 0%,
        #043c2d 55%,
        #075b43 100%
    );
    box-shadow: 0 22px 55px rgba(
        4,
        60,
        45,
        0.18
    );
    overflow: hidden;
}

.opportunities-cta::before {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -160px;
    top: -180px;
    border-radius: 50%;
    background: rgba(
        200,
        167,
        93,
        0.08
    );
    border: 1px solid rgba(
        234,
        216,
        165,
        0.16
    );
}

.opportunities-cta::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    left: -120px;
    bottom: -150px;
    border-radius: 50%;
    background: rgba(
        156,
        41,
        56,
        0.14
    );
}

.opportunities-cta .section-eyebrow {
    position: relative;
    z-index: 2;
    color: #ead8a5;
}

.opportunities-cta h3 {
    position: relative;
    z-index: 2;
    margin: 0 0 7px;
    color: #ffffff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(
        1.55rem,
        3vw,
        2rem
    );
    font-weight: 700;
    line-height: 1.15;
}

.opportunities-cta p {
    position: relative;
    z-index: 2;
    margin: 0;
    color: rgba(
        255,
        255,
        255,
        0.74
    );
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ============================================================
   MAIN CTA BUTTON
   GOLD
============================================================ */

.opportunities-main-cta {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 190px;
    padding: 14px 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(
        135deg,
        #ead8a5,
        #c8a75d
    );
    color: #022d21;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(
        200,
        167,
        93,
        0.25
    );
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.opportunities-main-cta:hover {
    transform: translateY(-3px);
    background: linear-gradient(
        135deg,
        #f0dfae,
        #d2b568
    );
    color: #022d21;
    box-shadow: 0 17px 34px rgba(
        200,
        167,
        93,
        0.34
    );
}

.opportunities-main-cta span {
    font-size: 1.1rem;
}

/* ============================================================
   DETAILS STATE
============================================================ */

.opportunity-card.details-open {
    border-color: rgba(
        7,
        91,
        67,
        0.28
    );
}

.opportunity-card.details-open .opportunity-details-btn {
    border-color: #c8a75d;
    background: linear-gradient(
        135deg,
        #ead8a5,
        #c8a75d
    );
    color: #022d21;
}

/* ============================================================
   ACCESSIBILITY
============================================================ */

.opportunity-filter:focus-visible,
.opportunity-details-btn:focus-visible,
.opportunity-apply-btn:focus-visible,
.opportunity-application input:focus-visible,
.opportunity-application select:focus-visible,
.opportunity-application textarea:focus-visible,
.opportunity-application button:focus-visible {
    outline: 3px solid rgba(
        200,
        167,
        93,
        0.42
    );
    outline-offset: 3px;
}

.opportunities-main-cta:focus-visible {
    outline: 3px solid rgba(
        234,
        216,
        165,
        0.75
    );
    outline-offset: 3px;
}

/* ============================================================
   RESPONSIVE — TABLET
============================================================ */

@media (max-width: 1000px) {

    .opportunities-section {
        padding: 90px 0 95px;
    }

    .opportunities-grid {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
    }

    .opportunities-cta {
        padding: 30px;
    }

    .opportunity-application-inner {
        padding: 34px;
    }
}

/* ============================================================
   RESPONSIVE — SMALL TABLET
============================================================ */

@media (max-width: 800px) {

    .opportunities-grid {
        grid-template-columns: 1fr;
    }

    .opportunities-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .opportunities-main-cta {
        width: 100%;
    }

    .opportunity-application .form-row,
    .opportunity-application .application-form-row,
    .opportunity-application [data-form-row] {
        grid-template-columns: 1fr;
    }

    .opportunity-application-header {
        align-items: flex-start;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE
============================================================ */

@media (max-width: 600px) {

    .opportunities-section {
        padding: 70px 0 75px;
    }

    .opportunities-header {
        margin-bottom: 35px;
    }

    .opportunities-header h2 {
        font-size: 2.2rem;
    }

    .opportunities-header p {
        font-size: 0.94rem;
        line-height: 1.7;
    }

    .opportunity-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .opportunity-filters::-webkit-scrollbar {
        display: none;
    }

    .opportunity-filter {
        flex-shrink: 0;
    }

    .opportunity-card {
        padding: 24px 22px;
        border-radius: 20px;
    }

    .opportunity-card::before {
        top: 22px;
        bottom: 22px;
    }

    .opportunity-meta {
        grid-template-columns: 1fr;
    }

    .opportunity-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .opportunity-details-btn,
    .opportunity-apply-btn {
        width: 100%;
    }

    .opportunities-cta {
        padding: 27px 24px;
        border-radius: 20px;
    }

    .opportunities-cta h3 {
        font-size: 1.45rem;
    }

    .opportunities-cta p {
        font-size: 0.88rem;
    }

    .opportunity-application {
        margin-top: 35px;
    }

    .opportunity-application-inner {
        padding: 28px 20px;
        border-radius: 22px;
    }

    .opportunity-application-header {
        gap: 15px;
        margin-bottom: 24px;
        padding-bottom: 20px;
    }

    .opportunity-application-title h2 {
        font-size: 1.8rem;
    }

    .opportunity-application [data-close-application] {
        width: 38px;
        height: 38px;
    }

    .opportunity-application .form-actions,
    .opportunity-application .application-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .opportunity-application button[type="submit"],
    .opportunity-application .application-submit,
    .opportunity-application [data-submit-application],
    .opportunity-application .form-cancel {
        width: 100%;
    }
}

/* ============================================================
   VERY SMALL MOBILE
============================================================ */

@media (max-width: 450px) {

    .opportunities-section {
        padding: 60px 0 65px;
    }

    .opportunities-header h2 {
        font-size: 2rem;
    }

    .opportunity-card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .opportunity-card-top {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 20px;
    }

    .opportunity-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 17px;
    }

    .opportunity-card h3 {
        font-size: 1.35rem;
    }

    .opportunities-empty {
        padding: 45px 20px;
    }

    .opportunities-cta {
        padding: 24px 20px;
    }

    .opportunity-application-inner {
        padding: 24px 16px;
        border-radius: 18px;
    }
}

/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    .opportunity-card,
    .opportunity-filter,
    .opportunity-details-btn,
    .opportunity-apply-btn,
    .opportunities-main-cta,
    .opportunity-application input,
    .opportunity-application select,
    .opportunity-application textarea,
    .opportunity-application button {
        transition: none;
    }
}

/* ============================================================
   BELAIR HILL GOLD BUTTON SYSTEM
   Applies to Careers, Vacancies and every dynamically loaded
   application form under components/forms/.
============================================================ */

/* GOLD PALETTE
   Primary: #c8a75d
   Light:   #ead8a5
   Dark:    #9b7c32
*/

/* Opportunity filter buttons */
.opportunity-filter.active,
.opportunity-filter.active:hover {
    border-color: #c8a75d;
    background: linear-gradient(
        135deg,
        #ead8a5,
        #c8a75d
    );
    color: #022d21;
    box-shadow: 0 10px 25px rgba(
        200,
        167,
        93,
        0.28
    );
}

/* Main opportunity action buttons */
.opportunity-details-btn,
.opportunity-apply-btn {
    border-color: #c8a75d;
    background: linear-gradient(
        135deg,
        #ead8a5,
        #c8a75d
    );
    color: #022d21;
    box-shadow: 0 9px 20px rgba(
        200,
        167,
        93,
        0.22
    );
}

.opportunity-details-btn:hover,
.opportunity-apply-btn:hover {
    border-color: #9b7c32;
    background: linear-gradient(
        135deg,
        #f0dfae,
        #d2b568
    );
    color: #022d21;
    box-shadow: 0 14px 28px rgba(
        200,
        167,
        93,
        0.32
    );
}

/* Keep the details-open state gold */
.opportunity-card.details-open .opportunity-details-btn {
    border-color: #c8a75d;
    background: linear-gradient(
        135deg,
        #ead8a5,
        #c8a75d
    );
    color: #022d21;
}

/* ============================================================
   ALL DYNAMIC APPLICATION FORMS
   These selectors intentionally begin with
   .opportunity-application so they also style forms loaded
   dynamically from components/forms/.
============================================================ */

.opportunity-application form button[type="submit"],
.opportunity-application form button[type="button"],
.opportunity-application form button[type="reset"],
.opportunity-application form .application-submit,
.opportunity-application form .form-submit,
.opportunity-application form .submit-button,
.opportunity-application form .submit-btn,
.opportunity-application form [data-submit-application],
.opportunity-application form [data-form-submit] {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
    border: 1px solid #c8a75d;
    border-radius: 999px;
    background: linear-gradient(
        135deg,
        #ead8a5,
        #c8a75d
    );
    color: #022d21;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 9px 20px rgba(
        200,
        167,
        93,
        0.22
    );
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.opportunity-application form button[type="submit"]:hover,
.opportunity-application form button[type="button"]:hover,
.opportunity-application form button[type="reset"]:hover,
.opportunity-application form .application-submit:hover,
.opportunity-application form .form-submit:hover,
.opportunity-application form .submit-button:hover,
.opportunity-application form .submit-btn:hover,
.opportunity-application form [data-submit-application]:hover,
.opportunity-application form [data-form-submit]:hover {
    transform: translateY(-2px);
    border-color: #9b7c32;
    background: linear-gradient(
        135deg,
        #f0dfae,
        #d2b568
    );
    color: #022d21;
    box-shadow: 0 14px 28px rgba(
        200,
        167,
        93,
        0.32
    );
}

/* Existing form submit selectors are also explicitly gold */
.opportunity-application button[type="submit"],
.opportunity-application .application-submit,
.opportunity-application [data-submit-application] {
    border-color: #c8a75d;
    background: linear-gradient(
        135deg,
        #ead8a5,
        #c8a75d
    );
    color: #022d21;
    box-shadow: 0 9px 20px rgba(
        200,
        167,
        93,
        0.22
    );
}

.opportunity-application button[type="submit"]:hover,
.opportunity-application .application-submit:hover,
.opportunity-application [data-submit-application]:hover {
    border-color: #9b7c32;
    background: linear-gradient(
        135deg,
        #f0dfae,
        #d2b568
    );
    color: #022d21;
    box-shadow: 0 14px 28px rgba(
        200,
        167,
        93,
        0.32
    );
}

/* Form action buttons */
.opportunity-application .form-actions button,
.opportunity-application .application-actions button,
.opportunity-application .form-actions a,
.opportunity-application .application-actions a {
    border-color: #c8a75d;
}

/* Cancel / secondary form buttons also use the gold system */
.opportunity-application .form-cancel,
.opportunity-application [data-close-application] + button {
    border-color: #c8a75d;
    background: #fffaf0;
    color: #8f7129;
    box-shadow: 0 6px 16px rgba(
        200,
        167,
        93,
        0.12
    );
}

.opportunity-application .form-cancel:hover,
.opportunity-application [data-close-application] + button:hover {
    border-color: #9b7c32;
    background: #ead8a5;
    color: #022d21;
}

/* Close application button */
.opportunity-application [data-close-application] {
    border-color: #c8a75d;
    background: #fffaf0;
    color: #8f7129;
}

.opportunity-application [data-close-application]:hover {
    border-color: #9b7c32;
    background: #c8a75d;
    color: #022d21;
}

/* Gold focus ring for all Careers buttons and form controls */
.opportunity-filter:focus-visible,
.opportunity-details-btn:focus-visible,
.opportunity-apply-btn:focus-visible,
.opportunity-application button:focus-visible,
.opportunity-application a:focus-visible,
.opportunity-application input:focus-visible,
.opportunity-application select:focus-visible,
.opportunity-application textarea:focus-visible {
    outline: 3px solid rgba(
        200,
        167,
        93,
        0.42
    );
    outline-offset: 3px;
}

/* Gold checkbox/radio accent across all dynamically loaded forms */
.opportunity-application input[type="checkbox"],
.opportunity-application input[type="radio"] {
    accent-color: #c8a75d;
}

/* Gold file-upload focus treatment */
.opportunity-application input[type="file"]:focus {
    outline-color: rgba(
        200,
        167,
        93,
        0.42
    );
}

/* Mobile form buttons remain full width */
@media (max-width: 600px) {
    .opportunity-application form button[type="submit"],
    .opportunity-application form button[type="button"],
    .opportunity-application form button[type="reset"],
    .opportunity-application form .application-submit,
    .opportunity-application form .form-submit,
    .opportunity-application form .submit-button,
    .opportunity-application form .submit-btn,
    .opportunity-application form [data-submit-application],
    .opportunity-application form [data-form-submit] {
        width: 100%;
    }
}