/* =========================================================
   BPP Scholar Design System – Brand Tokens
   Source: https://zeroheight.com/17b2382d1/v/0/p/8093b1-components
   ========================================================= */

:root {
    /* --- Granite (Neutrals) --- */
    --bpp-granite-000: #FFFFFF;
    --bpp-granite-010: #F1F1F1;
    --bpp-granite-020: #D9D9D9;
    --bpp-granite-030: #BABABA;
    --bpp-granite-040: #9E9E9E;
    --bpp-granite-050: #848484;
    --bpp-granite-060: #6A6A6A;
    --bpp-granite-070: #525252;
    --bpp-granite-080: #3B3B3A;
    --bpp-granite-090: #272524;
    --bpp-granite-100: #111110;

    /* --- Cobalt (Primary Blue – Interactive) --- */
    --bpp-cobalt-010: #E9F1FF;
    --bpp-cobalt-020: #C7DAFF;
    --bpp-cobalt-030: #94BCFF;
    --bpp-cobalt-040: #669DFD;
    --bpp-cobalt-050: #4481EC;
    --bpp-cobalt-060: #2A65CE;
    --bpp-cobalt-070: #0E4CB1;
    --bpp-cobalt-080: #003195;
    --bpp-cobalt-090: #00147B;
    --bpp-cobalt-100: #09004A;
    --bpp-cobalt-110: #518FFB;

    /* --- Red (Negative / Errors) --- */
    --bpp-red-010: #FFEDF3;
    --bpp-red-020: #FFCCD0;
    --bpp-red-030: #FBA2AA;
    --bpp-red-040: #F37887;
    --bpp-red-050: #E84A67;
    --bpp-red-060: #D30047;
    --bpp-red-070: #A70026;
    --bpp-red-080: #7D0006;
    --bpp-red-090: #550000;
    --bpp-red-100: #2D0000;
    --bpp-red-110: #DF1156;

    /* --- Green (Positive / Success) --- */
    --bpp-green-010: #DBFAED;
    --bpp-green-020: #B4E4CF;
    --bpp-green-030: #7DCAA8;
    --bpp-green-040: #4EB186;
    --bpp-green-050: #2F9569;
    --bpp-green-060: #007A46;
    --bpp-green-070: #005F2D;
    --bpp-green-080: #004514;
    --bpp-green-090: #002E12;
    --bpp-green-100: #001600;
    --bpp-green-110: #00E582;

    /* --- Purple (Informative) --- */
    --bpp-purple-010: #F2EEFC;
    --bpp-purple-070: #6332B9;

    /* --- Semantic aliases --- */
    --bpp-primary: var(--bpp-cobalt-050);
    --bpp-primary-hover: var(--bpp-cobalt-060);
    --bpp-primary-dark: var(--bpp-cobalt-080);
    --bpp-heading: var(--bpp-granite-100);
    --bpp-body-text: var(--bpp-granite-090);
    --bpp-secondary-text: var(--bpp-granite-060);
    --bpp-bg: var(--bpp-granite-000);
    --bpp-bg-section: #F8F7F5;
    --bpp-bg-light: var(--bpp-cobalt-010);
    --bpp-border: var(--bpp-granite-020);
    --bpp-disabled: var(--bpp-granite-030);
    --bpp-error: var(--bpp-red-060);
    --bpp-error-bg: var(--bpp-red-010);
    --bpp-success: var(--bpp-green-060);
    --bpp-success-bg: var(--bpp-green-010);
    --bpp-info: var(--bpp-purple-070);
    --bpp-info-bg: var(--bpp-purple-010);

    /* --- Font families --- */
    --bpp-font-display: 'Poppins', sans-serif;
    --bpp-font-body: 'Open Sans', sans-serif;

    /* --- Legacy variable aliases (for shared components that use old names) --- */
    --clr-BPPBlue: var(--bpp-primary-dark);
    --clr-BPPGreen: var(--bpp-primary);
    --clr-BPPLighterGreen: var(--bpp-primary-hover);
    --clr-BPPLightBlue: var(--bpp-primary);
    --clr-BPPLightBlueButtonBorder: rgba(68, 129, 236, 0.4);
    --clr-BPPBackgroundLightBlue: var(--bpp-bg-light);
    --clr-Grey: var(--bpp-granite-010);
}

/* =========================================================
   Global typography
   ========================================================= */

html,
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--bpp-body-text);
    background-color: var(--bpp-bg);
    font-size: 16px;
    line-height: 150%;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif !important;
}

p, a {
    font-family: 'Open Sans', sans-serif !important;
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    color: var(--bpp-heading);
    margin-top: 0;
    text-transform: none;
    letter-spacing: normal;
}

h5 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.46;
}

/* Regular body copy */
p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Scoped list styling used in rich content blocks */
.details ul {
    padding-left: 1.5rem !important;
    list-style-type: disc !important;
    margin-block: 1rem;
}

.details ol {
    padding-left: 1.5rem !important;
    list-style-type: decimal !important;
    margin-block: 1rem;
}

/* =========================================================
   Links & buttons
   ========================================================= */

a,
button {
    font-family: 'Open Sans', sans-serif;
    letter-spacing: normal;
    font-weight: 400;
}

a,
.btn-link {
    color: var(--bpp-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: none;
}

    a:hover,
    a:focus,
    .btn-link:hover,
    .btn-link:focus {
        color: var(--bpp-primary-hover);
        text-decoration: underline;
    }

/* BPP Scholar button base */
.btn,
.btn-txt {
    --bs-btn-padding-x: 0;
    --bs-btn-padding-y: 0;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    border-radius: 8px;
    padding: 12px 16px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    max-height: 48px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* BPP primary button — Scholar: cobalt-060 fill, white text */
.btn-primary,
.bpp-btn-primary {
    background-color: var(--bpp-cobalt-060) !important;
    border-color: var(--bpp-cobalt-060) !important;
    color: #ffffff !important;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0px;
    text-align: center;
    border-radius: 8px;
}

.btn-primary:hover,
.bpp-btn-primary:hover {
    background-color: var(--bpp-cobalt-080) !important;
    border-color: var(--bpp-cobalt-080) !important;
}

.btn-primary:active,
.btn-primary:focus,
.bpp-btn-primary:active,
.bpp-btn-primary:focus {
    background-color: var(--bpp-cobalt-080) !important;
    border-color: var(--bpp-cobalt-080) !important;
}

/* BPP secondary/outline button — Scholar: cobalt-060 border + text, transparent bg */
.btn-outline-primary,
.bpp-btn-secondary {
    background-color: transparent !important;
    border: 2px solid var(--bpp-cobalt-060) !important;
    color: var(--bpp-cobalt-060) !important;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0px;
    text-align: center;
    border-radius: 8px;
}

.btn-outline-primary:hover,
.bpp-btn-secondary:hover {
    background-color: var(--bpp-cobalt-010) !important;
}

.btn-outline-primary:active,
.btn-outline-primary:focus,
.bpp-btn-secondary:active,
.bpp-btn-secondary:focus {
    background-color: var(--bpp-cobalt-010) !important;
}

/* BPP tertiary button — Scholar: no border/outline, cobalt-060 text only */
.bpp-btn-tertiary {
    background-color: transparent !important;
    border: none !important;
    color: var(--bpp-cobalt-060) !important;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
}

.bpp-btn-tertiary:hover {
    background-color: var(--bpp-cobalt-010) !important;
}

/* BPP negative/destructive — primary: red-060 fill, white text */
.bpp-btn-negative {
    background-color: var(--bpp-red-060) !important;
    border-color: var(--bpp-red-060) !important;
    color: #ffffff !important;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0px;
    text-align: center;
    border-radius: 8px;
}

.bpp-btn-negative:hover {
    background-color: var(--bpp-red-070) !important;
    border-color: var(--bpp-red-070) !important;
}

/* BPP negative — secondary: red-060 outline, red-060 text */
.bpp-btn-negative-secondary {
    background-color: transparent !important;
    border: 2px solid var(--bpp-red-060) !important;
    color: var(--bpp-red-060) !important;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0px;
    text-align: center;
    border-radius: 8px;
}

.bpp-btn-negative-secondary:hover {
    background-color: var(--bpp-red-010) !important;
}

/* BPP negative — tertiary: no border, red-060 text only */
.bpp-btn-negative-tertiary {
    background-color: transparent !important;
    border: none !important;
    color: var(--bpp-red-060) !important;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
}

.bpp-btn-negative-tertiary:hover {
    background-color: var(--bpp-red-010) !important;
}

/* Small button variant */
.bpp-btn-sm,
.btn-sm {
    height: 36px;
    max-height: 36px;
    padding: 8px 12px !important;
    font-size: 14px;
    line-height: 16px;
}

/* Disabled button state */
.btn:disabled,
.btn.disabled,
.bpp-btn-primary:disabled,
.bpp-btn-secondary:disabled,
.bpp-btn-tertiary:disabled,
.bpp-btn-negative:disabled {
    background-color: #F1EFEB !important;
    border-color: #F1EFEB !important;
    color: var(--bpp-granite-040) !important;
    cursor: not-allowed;
    pointer-events: none;
}

/* =========================================================
   BPP Scholar Chips / Tags
   ========================================================= */

.bpp-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 16px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0px;
    white-space: nowrap;
}

/* Primary chip — dark warm fill, white text */
.bpp-chip--primary {
    background-color: #3E3A35;
    color: #ffffff;
}

/* Accent chip — sky blue fill, black text */
.bpp-chip--accent {
    background-color: #23CEFD;
    color: #111110;
}

/* Yellow chip — yellow fill, black text */
.bpp-chip--yellow {
    background-color: #FFDB46;
    color: #111110;
}

/* Subtle chip — granite-010 fill, dark text */
.bpp-chip--subtle {
    background-color: var(--bpp-granite-010);
    color: var(--bpp-granite-090);
}

/* Interactive chip — cobalt-060 fill, white text */
.bpp-chip--interactive {
    background-color: var(--bpp-cobalt-060);
    color: #ffffff;
}

/* =========================================================
   Cards — Scholar Storybook component
   Source: @bpp-education-group/scholar-react
   ========================================================= */

.bpp-card {
    background-color: var(--bpp-granite-010);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.bpp-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.bpp-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.bpp-card__body {
    padding: 24px;
    flex-grow: 1;
}

.bpp-card__heading {
    font-family: var(--bpp-font-display);
    font-weight: 700;
    color: var(--bpp-granite-100);
    margin: 0;
}

.bpp-card__subheading {
    font-family: var(--bpp-font-body);
    font-weight: 700;
    color: var(--bpp-granite-100);
    margin-top: 8px;
    display: block;
}

.bpp-card__text {
    font-family: var(--bpp-font-body);
    font-weight: 400;
    color: var(--bpp-granite-100);
    margin-top: 4px;
    display: block;
}

/* Clickable card (anchor wrapper) */
a.bpp-card {
    text-decoration: none;
    color: inherit;
}

a.bpp-card:focus {
    outline: 2px solid var(--bpp-cobalt-050);
    outline-offset: 2px;
}

/* =========================================================
   Links — Scholar Storybook component
   Source: @bpp-education-group/scholar-react
   ========================================================= */

.bpp-link {
    font-family: var(--bpp-font-body);
    font-weight: 700;
    color: var(--bpp-cobalt-050);
    text-decoration: underline;
    text-underline-offset: 2px;
    border-radius: 2px;
    transition: color 0.15s ease;
}

.bpp-link:hover {
    color: var(--bpp-cobalt-060);
}

.bpp-link:active {
    color: var(--bpp-cobalt-080);
}

.bpp-link:focus {
    outline: 2px solid var(--bpp-cobalt-050);
    outline-offset: 2px;
    color: var(--bpp-cobalt-080);
}

/* Link with external icon */
.bpp-link__icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-left: 8px;
}

.bpp-link__icon svg {
    width: 100%;
    height: 100%;
}

/* =========================================================
   Loader / Spinner — Scholar Storybook component
   Source: @bpp-education-group/scholar-react/core/loader
   ========================================================= */

.bpp-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bpp-cobalt-060);
}

.bpp-loader svg {
    width: 48px;
    height: 48px;
}

.bpp-loader--sm svg {
    width: 24px;
    height: 24px;
}

.bpp-loader--lg svg {
    width: 80px;
    height: 80px;
}

/* Full-page overlay loader */
.bpp-loader--overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    z-index: 50;
}

/* Generic focus ring — Scholar style */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    outline: 2px solid var(--bpp-primary);
    outline-offset: 2px;
    box-shadow: none;
}

/* =========================================================
   Layout helpers
   ========================================================= */

/* Match Bootstrap 4 container max-width (1140px) instead of BS5's 1320px */
.container {
    max-width: 1140px !important;
}

.content {
    padding-top: 2rem;
}

/* =========================================================
   Forms & validation
   ========================================================= */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--bpp-success);
}

.invalid {
    outline: 1px solid var(--bpp-error);
}

.validation-message {
    color: var(--bpp-error);
    font-size: 0.85rem;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

form label {
    font-size: clamp(0.5rem, 2.5vw, 0.8rem);
}

.form-floating > .form-control,
.form-floating > .form-control-plaintext,
.form-floating > .form-select {
    font-size: clamp(1rem, 3.2vw, 1.5rem);
}

.form-floating > .form-select {
    padding-top: 0.6rem;
}

.rz-datepicker,
rz-inputtext {
    --rz-border-radius: 0.5rem;
    --rz-input-border-radius: 0.5rem;
}

/* =========================================================
   Animation utilities
   ========================================================= */

@keyframes fade-in-up {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

/* =========================================================
   Text utilities
   ========================================================= */

.truncate {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2-style {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================================
   Blazor error boundary
   ========================================================= */

.blazor-error-boundary {
    background: var(--bpp-primary-dark);
    padding: 1rem 1rem 1rem 3.7rem;
    color: #ffffff;
    position: relative;
}

    .blazor-error-boundary::before {
        content: "!";
        position: absolute;
        left: 1.2rem;
        top: 50%;
        transform: translateY(-50%);
        width: 1.9rem;
        height: 1.9rem;
        border-radius: 50%;
        border: 2px solid #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
    }

    .blazor-error-boundary::after {
        content: "An error has occurred.";
        font-family: 'Open Sans', sans-serif;
        text-transform: none;
        letter-spacing: 0;
    }

/* =========================================================
   Brand imagery helpers
   ========================================================= */

.brandimage {
    height: 40px;
}

.powerbyimage {
    height: 60px;
}

/* =========================================================
   Radzen dialog tweaks
   ========================================================= */

.rz-dialog .rz-dialog-content {
    padding-top: 0.75rem;
    padding-bottom: 1rem;
}

.rz-dialog .rz-dialog-titlebar {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--bpp-border);
    background-color: var(--bpp-bg);
    color: var(--bpp-heading);
    font-family: 'Poppins', sans-serif;
}

/* =========================================================
   Blazor reconnect modal
   ========================================================= */

#components-reconnect-modal {
    display: none !important;
}


/* =========================================================
   OPPORTUNITY DETAILS – BPP styled
   ========================================================= */

.opp-wrapper {
    background: var(--bpp-bg);
}

/* --- HERO BAND --- */

.opp-hero {
    display: flex;
    position: relative;
    background: var(--bpp-primary-dark);
    color: #ffffff;
    padding: 3rem 0 3.5rem;
    min-height: 300px;
    overflow: hidden;
    z-index: 0;
}

.opp-hero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.opp-hero__breadcrumb {
    margin: 0 0 0.6rem;
    font-size: 0.85rem;
}

    .opp-hero__breadcrumb a {
        color: #ffffff;
        text-decoration: none;
    }

        .opp-hero__breadcrumb a:hover,
        .opp-hero__breadcrumb a:focus {
            text-decoration: underline;
        }

.opp-hero__breadcrumb-sep {
    margin: 0 0.25rem;
}

.opp-hero__breadcrumb-current {
    color: var(--bpp-cobalt-030);
}

.opp-hero__label {
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    color: var(--bpp-cobalt-030);
    margin-bottom: 0.5rem;
}

.opp-hero__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.15;
    margin: 0;
    color: #ffffff;
    text-transform: none;
    letter-spacing: normal;
}

.opp-hero__title--loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
}

.opp-title-spinner {
    width: 32px;
    height: 32px;
    display: block;
}

.opp-title-spinner__fallback {
    font-size: 0.9rem;
    color: #ffffff;
}

/* Hero accent shapes */
.opp-hero__triangle-left,
.opp-hero__triangle-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30%;
    pointer-events: none;
    z-index: 1;
}

.opp-hero__triangle-left {
    left: 0;
    background: var(--bpp-cobalt-030);
    opacity: 0.15;
    clip-path: polygon(0 60%, 0 100%, 50% 100%);
}

.opp-hero__triangle-right {
    right: 0;
    background: var(--bpp-primary);
    opacity: 0.15;
    clip-path: polygon(50% 0, 100% 0, 100% 40%);
}

/* --- JOB SUMMARY PANEL --- */

.opp-summary {
    background: var(--bpp-bg);
}

.opp-summary__inner {
    position: relative;
    z-index: 2;
    background: var(--bpp-bg-light);
    border: 1px solid var(--bpp-border);
    border-radius: 8px;
    margin: -2.5rem auto 0;
    padding: 2rem 2rem 2.5rem;
    color: var(--bpp-body-text);
}

.opp-summary__heading {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
    color: var(--bpp-heading);
    text-transform: none;
    letter-spacing: normal;
}

.opp-summary__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 3rem;
}

.opp-summary__col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.opp-summary__item {
    position: relative;
    display: flex;
    align-items: center;
}

    .opp-summary__item dt {
        font-family: 'Open Sans', sans-serif;
        font-size: 13px;
        font-weight: 600;
        color: var(--bpp-heading);
        margin-bottom: 0.1rem;
        text-transform: none;
        letter-spacing: normal;
    }

    .opp-summary__item dd {
        margin: 0;
        font-size: 14px;
        color: var(--bpp-secondary-text);
        margin-left: 0.5rem;
    }

.opp-subheading,
.opp-accordion__label {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.opp-subheading {
    letter-spacing: normal;
}

/* =========================================================
   BPP Scholar Accordion
   Source: @bpp-education-group/scholar-react Storybook
   ========================================================= */

.bpp-accordion {
    width: 100%;
}

.bpp-accordion__item {
    background-color: var(--bpp-granite-000);
    border-bottom: 1px solid var(--bpp-granite-020);
    width: 100%;
    transition: background-color 0.15s ease;
}

.bpp-accordion__item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.bpp-accordion__item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.bpp-accordion__item:hover {
    background-color: var(--bpp-granite-010);
}

.bpp-accordion__item:focus-within {
    outline: 2px solid var(--bpp-primary);
    outline-offset: -2px;
}

.bpp-accordion__trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    text-align: left;
}

.bpp-accordion__heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--bpp-heading);
    margin: 0;
    font-size: 16px;
    line-height: 24px;
}

.bpp-accordion__chevron {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    margin-left: 24px;
    color: var(--bpp-heading);
    transition: transform 0.25s ease;
}

.bpp-accordion__item[data-state="open"] .bpp-accordion__chevron {
    transform: rotate(180deg);
}

.bpp-accordion__content {
    padding: 16px 24px 24px;
    overflow: hidden;
}

.bpp-accordion__content p {
    font-family: 'Open Sans', sans-serif;
    color: var(--bpp-body-text);
    font-size: 16px;
    line-height: 24px;
    margin: 0;
}

/* Scale variants */
.bpp-accordion--small .bpp-accordion__trigger {
    padding-top: 8px;
    padding-bottom: 8px;
}

.bpp-accordion--large .bpp-accordion__trigger {
    padding-top: 24px;
    padding-bottom: 24px;
}

/* =========================================================
   BPP Scholar Breadcrumbs
   Source: @bpp-education-group/scholar-react Storybook
   ========================================================= */

.bpp-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.bpp-breadcrumb__item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bpp-breadcrumb__link {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    color: var(--bpp-granite-060);
    text-decoration: none;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.15s ease, color 0.15s ease;
    display: inline-flex;
    align-items: center;
}

.bpp-breadcrumb__link:hover {
    background-color: var(--bpp-granite-020);
    color: var(--bpp-granite-070);
}

.bpp-breadcrumb__link:active {
    background-color: var(--bpp-granite-030);
    color: var(--bpp-granite-070);
}

.bpp-breadcrumb__link:focus {
    outline: 2px solid var(--bpp-primary);
    outline-offset: 2px;
}

.bpp-breadcrumb__link--current {
    color: var(--bpp-granite-060);
    pointer-events: none;
}

.bpp-breadcrumb__home {
    width: 24px;
    height: 24px;
}

.bpp-breadcrumb__separator {
    width: 16px;
    height: 16px;
    color: var(--bpp-granite-060);
    flex-shrink: 0;
}

/* --- RESPONSIVE --- */

@media (max-width: 1024px) {
    .opp-hero {
        padding: 2rem 0 2.5rem;
        min-height: 200px;
    }

    .opp-summary__inner {
        margin-top: -2rem;
    }
}

@media (max-width: 640px) {
    .opp-hero {
        padding: 1.75rem 0 2rem;
        min-height: 160px;
    }

    .opp-hero__triangle-left,
    .opp-hero__triangle-right {
        width: 60%;
    }

    .opp-summary__inner {
        margin-top: 0;
        padding-inline: 1.25rem;
        border-radius: 0;
    }

    .opp-summary__grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Responsive filter grid (for HomeHeroSearch)
   ========================================================= */

@media (max-width: 900px) {
    .bpp-filter__grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 600px) {
    .bpp-filter__grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   Related Vacancies – flip cards
   ========================================================= */

.image-flip:hover .backside,
.image-flip.hover .backside {
    transform: rotateY(0deg);
    border-radius: 0.25rem;
}

.image-flip:hover .frontside,
.image-flip.hover .frontside {
    transform: rotateY(180deg);
}

.mainflip {
    transition: all 1s ease 0s;
    transform-style: preserve-3d;
    position: relative;
}

.frontside {
    position: relative;
    transform: rotateY(0deg);
    z-index: 2;
    margin-bottom: 30px;
}

.backside {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(-180deg);
}

.frontside,
.backside {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: all 1s ease 0s;
    transform-style: preserve-3d;
    width: 100%;
}

.frontside .card,
.backside .card {
    min-height: 360px;
    cursor: pointer;
}

.frontside .card .card-footer,
.backside .card .card-footer {
    height: 50px;
}

.frontside .card .card-body ul li {
    font-weight: 600 !important;
    font-size: 12px !important;
}

.frontside .card .card-footer {
    font-size: 14px;
}

.circle-icon {
    border-radius: 50%;
    height: 40px;
    float: right;
    top: -26px;
    position: relative;
    width: 43px;
    text-align: center;
    padding-top: 10px;
}

/* =========================================================
   Sort dropdown (results grid)
   ========================================================= */

.BPP-sort-btn {
    background-color: white !important;
    color: var(--bpp-heading) !important;
    border: 1px solid var(--bpp-border) !important;
    box-shadow: none !important;
    font-size: 15px !important;
    font-weight: 600;
    display: inline-flex !important;
    align-items: center;
}

.BPP-sort-btn:hover,
.BPP-sort-btn:focus {
    background-color: var(--bpp-granite-010) !important;
}

.BPP-sort-menu {
    border: 1px solid var(--bpp-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 0 !important;
}

.BPP-sort-item {
    color: var(--bpp-heading) !important;
    font-size: 14px;
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--bpp-granite-010);
}

.BPP-sort-item:hover {
    background-color: var(--bpp-bg-light) !important;
}

.BPP-sort-item.active {
    background-color: var(--bpp-bg-light) !important;
    font-weight: 600;
}

/* =========================================================
   Pagination (results grid)
   ========================================================= */

.pagination-touch {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.pagination-touch .btn {
    min-width: 100px;
    font-size: 14px !important;
}

/* Ensure range slider inside form-control has proper height */
input[type="range"].form-control.slider {
    padding-top: 18px;
    padding-bottom: 0;
}

/* =========================================================
   CANDIDATE PROFILE DASHBOARD – BPP Overrides
   Wrapping class: .BPP-dashboard
   ========================================================= */

/* --- Overall background --- */
.BPP-dashboard .candidate-profile {
    background-color: var(--bpp-bg) !important;
}

/* --- HERO: compact banner --- */

.BPP-dashboard .candidate-profile > div:nth-child(2) .relative.z-10 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.BPP-dashboard .candidate-profile > div:nth-child(2) .flex.flex-col.items-center {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* Hide the dark tint overlay on hero background image */
.BPP-dashboard .candidate-profile .relative.w-full.overflow-hidden > .absolute.inset-0:not(img) {
    display: none !important;
}

/* Hero text */
.BPP-dashboard .candidate-profile .relative.w-full.overflow-hidden {
    color: var(--bpp-heading) !important;
}

.BPP-dashboard .candidate-profile h1.text-white,
.BPP-dashboard .candidate-profile .relative.w-full.overflow-hidden h1 {
    color: var(--bpp-heading) !important;
}

.BPP-dashboard .candidate-profile .relative.w-full.overflow-hidden p {
    color: var(--bpp-heading) !important;
    opacity: 1 !important;
}

/* Hero H1 */
.BPP-dashboard .candidate-profile h1.Gilroy-Bold,
.BPP-dashboard .candidate-profile h1 {
    color: var(--bpp-heading) !important;
    font-family: 'Poppins', sans-serif !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: 300 !important;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem) !important;
}

/* --- MAIN CONTAINER: remove glass-morphism overlay --- */

.BPP-dashboard .candidate-profile main {
    margin-top: 0 !important;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.BPP-dashboard .candidate-profile main > div {
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* --- SIDEBAR: hide profile identity --- */
.BPP-dashboard .candidate-profile .flex.items-center.gap-3.px-3.pb-6.mb-2 {
    display: none !important;
}

/* --- SIDEBAR NAV --- */
.BPP-dashboard .cp-nav {
    gap: 10px !important;
    padding: 0 10px !important;
}

.BPP-dashboard .cp-nav-item {
    background-color: var(--bpp-bg) !important;
    border: 1px solid var(--bpp-border) !important;
    border-radius: 0.25em !important;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.06) !important;
    color: var(--bpp-primary) !important;
    height: 50px !important;
    line-height: 50px !important;
    justify-content: center !important;
    text-align: center !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    padding: 0 0.875rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    transform: none !important;
}

.BPP-dashboard .cp-nav-item:hover {
    background-color: var(--bpp-granite-010) !important;
    transform: none !important;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1) !important;
    color: var(--bpp-primary) !important;
}

.BPP-dashboard .cp-nav-item:active {
    background-color: var(--bpp-granite-010) !important;
    transform: none !important;
}

.BPP-dashboard .cp-nav-item.cp-nav-active {
    background-color: var(--bpp-primary) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    font-weight: 500 !important;
}

.BPP-dashboard .cp-nav-item.cp-nav-active:hover {
    background-color: var(--bpp-primary-hover) !important;
    color: #ffffff !important;
    transform: none !important;
    box-shadow: none !important;
}

.BPP-dashboard .cp-nav-item.cp-nav-active:active {
    background-color: var(--bpp-primary-hover) !important;
    box-shadow: none !important;
}

/* Hide nav icons */
.BPP-dashboard .cp-nav-icon {
    display: none !important;
}

/* --- SUMMARY CARDS: hide --- */
.BPP-dashboard .space-y-8 > .grid.gap-6:first-child {
    display: none !important;
}

/* --- MAIN CONTENT CARD --- */
.BPP-dashboard section.rounded-xl {
    border-radius: 0 !important;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2) !important;
    border: none !important;
    transition: 0.3s;
}

.BPP-dashboard section.rounded-xl:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2) !important;
}

/* Section header bar */
.BPP-dashboard section.rounded-xl > .flex.items-center.justify-between {
    border-bottom: 1px solid var(--bpp-border) !important;
    padding: 1.25rem 1.5rem !important;
}

/* Section title */
.BPP-dashboard section.rounded-xl > .flex.items-center.justify-between > h2 {
    font-family: 'Poppins', sans-serif !important;
    color: var(--bpp-heading) !important;
    font-weight: 600 !important;
    font-size: 22px !important;
    line-height: 1.46 !important;
}

/* Section content padding */
.BPP-dashboard section.rounded-xl > .px-4.pb-4.pt-2 {
    padding: 1.5rem !important;
}

/* --- SAVE BUTTON: Scholar primary CTA --- */
.BPP-dashboard section.rounded-xl > .flex.items-center.justify-between > button {
    background-color: var(--bpp-cobalt-060) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 150% !important;
    letter-spacing: 0px !important;
    padding: 12px 16px !important;
    height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.15s ease !important;
}

.BPP-dashboard section.rounded-xl > .flex.items-center.justify-between > button:hover {
    background-color: var(--bpp-cobalt-080) !important;
}

.BPP-dashboard section.rounded-xl > .flex.items-center.justify-between > button:focus {
    outline: 2px solid var(--bpp-cobalt-060) !important;
    outline-offset: 2px !important;
}

/* --- FORM STYLING --- */

.BPP-dashboard label {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 400;
}

.BPP-dashboard .form-control,
.BPP-dashboard input[type="text"],
.BPP-dashboard input[type="email"],
.BPP-dashboard input[type="tel"],
.BPP-dashboard select {
    height: 46px;
    border-radius: 0;
    font-family: 'Open Sans', sans-serif;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .BPP-dashboard .cp-nav {
        padding: 0 !important;
    }
}

/* --- Remove extra spacing when cards hidden --- */
.BPP-dashboard .space-y-8 > *:first-child:not(section) + section {
    margin-top: 0 !important;
}
