.av24-opportunities {
    --av24-primary: #1D3D73;
    --av24-primary-soft: rgba(29, 61, 115, .08);
    --av24-secondary: #F6AD1F;
    --av24-border: #e5e7eb;
    --av24-text: #0f172a;
    --av24-muted: #64748b;
    --av24-soft: #f8fafc;
    width: 100%;
}

.av24-opportunities .av24-fa,
.av24-opportunities .av24-fa * {
    font-family: "Vazirmatn", "Vazir", Tahoma, sans-serif;
}

.av24-tabs {
    display: flex;
    align-items: flex-end;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--av24-border);
    direction: rtl;
    scrollbar-width: none;
}

.av24-tabs::-webkit-scrollbar { display: none; }

.av24-opportunities .av24-tab {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 0 13px !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #64748b !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    appearance: none;
    direction: rtl;
}

.av24-opportunities .av24-tab::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: #cbd5e1;
    transform: scaleX(0);
    transition: transform .18s ease, background-color .18s ease;
}

.av24-opportunities .av24-tab:hover,
.av24-opportunities .av24-tab:focus,
.av24-opportunities .av24-tab:focus-visible {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
    color: #475569 !important;
}

.av24-opportunities .av24-tab:hover::after,
.av24-opportunities .av24-tab:focus-visible::after {
    transform: scaleX(1);
    background: #cbd5e1;
}

.av24-opportunities .av24-tab.is-active {
    color: var(--av24-primary) !important;
    font-weight: 650;
}

.av24-opportunities .av24-tab.is-active::after {
    transform: scaleX(1);
    background: var(--av24-primary);
}

.av24-tab small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 23px;
    height: 23px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: bold;
    direction: ltr;
    color: var(--av24-secondary) !important;
    background: rgb(246 173 31 / 10%);
    font-weight: bold;
    font-size: 10px;
}



.av24-courses-layout,
.av24-jobs-layout,
.av24-investments-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    direction: ltr;
}

.av24-side-filters {
    position: sticky;
    top: 24px;
    direction: rtl;
    text-align: right;
    border-radius: 16px;
}

.av24-filter-card {
    overflow: hidden;
    border: 1px solid var(--av24-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
    padding: 10px 0;
}

.av24-filter-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid #f1f5f9;
}

.av24-filter-header h3 {
    margin: 0 0 3px;
    color: var(--av24-text);
    font-size: 17px;
    font-weight: 700;
}

.av24-filter-header p {
    margin: 0;
    color: var(--av24-muted);
    font-size: 12px;
}

.av24-filter-close { display: none; }

.av24-filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 17px 18px 18px;
}

.av24-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
}

.av24-field > span {
    color: #334155;
    font-size: 12px;
    font-weight: 600;
}

.av24-field input,
.av24-field select {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 8px 11px !important;
    border: 1px solid #d8dee8 !important;
    border-radius: 8px !important;
    outline: none !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #1e293b !important;
    font-family: inherit;
    font-size: 13px;
}

.av24-field input:focus,
.av24-field select:focus {
    border-color: rgba(29, 61, 115, .55) !important;
    box-shadow: 0 0 0 3px rgba(29, 61, 115, .08) !important;
}

.av24-field input:disabled {
    background: #f8fafc !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
    opacity: .72;
}

.av24-field-note {
    display: block;
    margin-top: 1px;
    color: #94a3b8;
    font-size: 10.5px;
    line-height: 1.65;
}

.av24-filter-form.is-salary-range-enabled .av24-field-note,
.av24-filter-form.is-investment-range-enabled .av24-field-note {
    color: #64748b;
}

.av24-switch-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
}

.av24-switch-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.av24-switch-copy strong {
    color: #334155;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.55;
}

.av24-switch-copy small {
    color: #94a3b8;
    font-size: 10.5px;
    line-height: 1.55;
}

.av24-switch-control {
    position: relative;
    flex: 0 0 40px;
    width: 40px;
    height: 22px;
    direction: ltr;
}

.av24-switch-control input {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0 !important;
}

.av24-switch-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background-color .18s ease;
}

.av24-switch-slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .18);
    transition: transform .18s ease;
}

.av24-switch-control input:checked + .av24-switch-slider {
    background: var(--av24-primary);
}

.av24-switch-control input:checked + .av24-switch-slider::after {
    transform: translateX(18px);
}

.av24-switch-control input:focus-visible + .av24-switch-slider {
    box-shadow: 0 0 0 3px rgba(29, 61, 115, .12);
}

.av24-search-wrap {
    position: relative;
}

.av24-search-wrap svg {
    position: absolute;
    top: 50%;
    left: 11px;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    fill: none;
    stroke: #94a3b8;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.av24-search-wrap input { padding-left: 36px !important; }

.av24-range-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 7px;
    align-items: center;
    direction: ltr;
}

.av24-range-fields > span { color: #94a3b8; }

.av24-filter-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding-top: 3px;
}

.av24-opportunities .av24-apply-filters,
.av24-opportunities .av24-reset-filters,
.av24-opportunities .av24-mobile-filter-button,
.av24-opportunities .av24-filter-close {
    box-shadow: none !important;
    outline: none !important;
}

.av24-opportunities .av24-apply-filters {
    min-height: 42px;
    padding: 0 14px !important;
    border: 1px solid var(--av24-primary) !important;
    border-radius: 8px !important;
    background: var(--av24-primary) !important;
    color: #fff !important;
    cursor: pointer;
    font-weight: 600;
}

.av24-opportunities .av24-apply-filters:hover {
    opacity: .92;
}

.av24-opportunities .av24-reset-filters {
    min-height: 42px;
    padding: 0 12px !important;
    border: 1px solid var(--av24-border) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #64748b !important;
    cursor: pointer;
}

.av24-course-main,
.av24-job-main,
.av24-investment-main { min-width: 0; direction: ltr; }

.av24-results-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    direction: rtl;
}

.av24-results-heading { text-align: right; }

.av24-results-heading h2 {
    margin: 0 0 3px;
    color: var(--av24-text);
    font-size: 20px;
    line-height: 1.5;
    font-weight: 700;
}

.av24-data-value {
    color: var(--av24-muted);
    font-size: 13px;
    direction: ltr;
    unicode-bidi: plaintext;
}

.av24-mobile-filter-button { display: none !important; }

.av24-results-shell {
    position: relative;
    min-height: 160px;
    transition: opacity .16s ease;
}

.av24-results-shell.is-loading {
    opacity: .46;
    pointer-events: none;
}

.av24-results-shell.is-loading::after {
    content: "";
    position: absolute;
    top: 28px;
    left: 50%;
    width: 28px;
    height: 28px;
    margin-left: -14px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--av24-primary);
    border-radius: 50%;
    animation: av24-spin .7s linear infinite;
}

@keyframes av24-spin { to { transform: rotate(360deg); } }

.av24-results-summary {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.av24-course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    direction: ltr;
}

.av24-course-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    padding: 20px;
    border: 1px solid var(--av24-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
    color: #0f172a;
    text-align: left;
    direction: ltr;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.av24-course-card:hover {
    border-color: rgba(29, 61, 115, .24);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    transform: translateY(-1px);
}

.av24-course-card-top {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
}

.av24-course-logo {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border: 1px solid var(--av24-border);
    border-radius: 11px;
    background: #f8fafc;
}

.av24-course-logo img {
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 6px;
    object-fit: contain;
    background: #fff;
}

.av24-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f3f6fa;
    color: var(--av24-primary);
}

.av24-logo-placeholder[hidden] { display: none !important; }

.av24-logo-placeholder svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.av24-course-heading { flex: 1; min-width: 0; }

.av24-course-heading h3 {
    margin: 0 0 5px;
    color: var(--av24-text);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.av24-course-organization {
    color: var(--av24-muted);
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.av24-course-meta,
.av24-course-formats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 15px;
}

.av24-course-meta span {
    padding: 5px 9px;
    border-radius: 6px;
    background: #f6f8fb;
    color: #475569;
    font-size: 11px;
    line-height: 1.4;
}

.av24-course-formats span {
    padding: 5px 9px;
    border-radius: 6px;
    background: var(--av24-primary-soft);
    color: var(--av24-primary);
    font-size: 11px;
    font-weight: 500;
}

.av24-course-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.av24-course-details > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.av24-course-details small {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.4;
}

.av24-course-details strong {
    color: #334155;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.av24-course-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 17px;
}

.av24-explore-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--av24-primary) !important;
    box-shadow: none !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none !important;
}

.av24-explore-link svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .15s ease;
}

.av24-explore-link:hover {
    color: var(--av24-primary) !important;
    opacity: .74;
}

.av24-explore-link:hover svg { transform: translate(1px, -1px); }


/* Jobs */
.av24-job-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    direction: ltr;
}

.av24-job-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    padding: 20px;
    border: 1px solid var(--av24-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
    color: var(--av24-text);
    text-align: left;
    direction: ltr;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.av24-job-card:hover {
    border-color: rgba(29, 61, 115, .24);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    transform: translateY(-1px);
}

.av24-job-card-head {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
}

.av24-job-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border: 1px solid #dfe6ef;
    border-radius: 11px;
    background: #f3f6fa;
    color: var(--av24-primary);
}

.av24-job-icon svg {
    width: 25px;
    height: 25px;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.av24-job-heading {
    flex: 1;
    min-width: 0;
}

.av24-job-heading h3 {
    margin: 0 0 7px;
    color: var(--av24-text);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.av24-job-category {
    display: inline-flex;
    max-width: 100%;
    padding: 5px 9px;
    border-radius: 6px;
    background: var(--av24-primary-soft);
    color: var(--av24-primary);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.av24-job-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 16px;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.av24-job-details > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.av24-job-details small {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.4;
}

.av24-job-details strong {
    color: #334155;
    font-size: 12px;
    line-height: 1.55;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.av24-job-summary {
    display: -webkit-box;
    overflow: hidden;
    margin: 16px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Investments */
.av24-investment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    direction: ltr;
}

.av24-investment-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    padding: 20px;
    border: 1px solid var(--av24-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
    color: var(--av24-text);
    text-align: left;
    direction: ltr;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.av24-investment-card:hover {
    border-color: rgba(29, 61, 115, .24);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    transform: translateY(-1px);
}

.av24-investment-card-head {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
}

.av24-investment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border: 1px solid #dfe6ef;
    border-radius: 11px;
    background: #f3f6fa;
    color: var(--av24-primary);
}

.av24-investment-icon svg {
    width: 25px;
    height: 25px;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.av24-investment-heading {
    flex: 1;
    min-width: 0;
}

.av24-investment-heading h3 {
    margin: 0 0 7px;
    color: var(--av24-text);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.av24-investment-residency {
    display: inline-flex;
    max-width: 100%;
    padding: 5px 9px;
    border-radius: 6px;
    background: rgba(246, 173, 31, .16);
    color: #815500;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.av24-investment-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 16px;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.av24-investment-details > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.av24-investment-details small {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.4;
}

.av24-investment-details strong {
    color: #334155;
    font-size: 12px;
    line-height: 1.55;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.av24-investment-summary {
    display: -webkit-box;
    overflow: hidden;
    margin: 16px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.av24-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 30px;
    direction: ltr;
}

.av24-opportunities .av24-page-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    margin: 0 !important;
    padding: 0 10px !important;
    border: 1px solid var(--av24-border) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--av24-primary) !important;
    box-shadow: none !important;
    font-size: 13px;
    cursor: pointer;
}

.av24-opportunities .av24-page-button:hover {
    border-color: rgba(29, 61, 115, .38) !important;
    background: var(--av24-primary-soft) !important;
}

.av24-opportunities .av24-page-button.is-current {
    border-color: var(--av24-primary) !important;
    background: var(--av24-primary) !important;
    color: #fff !important;
}

.av24-page-arrow svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.av24-page-dots { color: #94a3b8; padding: 0 3px; }

.av24-no-results,
.av24-placeholder {
    padding: 34px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #fff;
    text-align: center;
    direction: rtl;
}

.av24-no-results strong,
.av24-no-results span {
    display: block;
}

.av24-no-results strong { color: #334155; margin-bottom: 5px; }
.av24-no-results span { color: var(--av24-muted); font-size: 13px; }

.av24-filter-backdrop { display: none; }

@media (max-width: 1200px) {
    .av24-course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
    .av24-courses-layout,
    .av24-jobs-layout,
    .av24-investments-layout { display: block; }

    .av24-job-grid,
    .av24-investment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .av24-mobile-filter-button {
        display: inline-flex !important;
        align-items: center;
        gap: 7px;
        min-height: 40px;
        padding: 0 13px !important;
        border: 1px solid var(--av24-primary) !important;
        border-radius: 8px !important;
        background: #fff !important;
        color: var(--av24-primary) !important;
        cursor: pointer;
        font-weight: 600;
    }

    .av24-mobile-filter-button svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
    }

    .av24-side-filters {
        position: fixed;
        z-index: 100002;
        top: 50%;
        left: 50%;
        width: min(92vw, 480px);
        max-height: 86vh;
        overflow-y: auto;
        transform: translate(-50%, -48%) scale(.98);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    }

    [data-av24-filter-section].is-filter-open .av24-side-filters {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .av24-filter-backdrop {
        position: fixed;
        z-index: 100001;
        inset: 0;
        display: block;
        background: rgba(15, 23, 42, .42);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .18s ease, visibility .18s ease;
    }

    [data-av24-filter-section].is-filter-open .av24-filter-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .av24-filter-card { border-radius: 16px; }

    .av24-filter-close {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0 !important;
        border: 1px solid var(--av24-border) !important;
        border-radius: 8px !important;
        background: #fff !important;
        color: #64748b !important;
        cursor: pointer;
    }

    .av24-filter-close svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
    }
}

@media (max-width: 767px) {
    .av24-tabs { gap: 22px; }
    .av24-opportunities .av24-tab { font-size: 14px; padding-bottom: 12px !important; }
    .av24-course-grid { grid-template-columns: 1fr; }
    .av24-job-grid { grid-template-columns: 1fr; }
    .av24-investment-grid { grid-template-columns: 1fr; }
    .av24-results-toolbar { align-items: center; }
    .av24-results-heading h2 { font-size: 18px; }
}
