﻿*, *::before, *::after {
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}
:root {
    --brand: #264EFF;
    --brand-light: #EEF1FF;
    --brand-dark: #1a38cc;
    --surface: #ffffff;
    --surface2: #f7f8fc;
    --border: #e8eaf0;
    --text-main: #0f1117;
    --text-muted: #6b7280;
    --text-hint: #9ca3af;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,.08);
    --shadow-hover: 0 8px 32px rgba(38,78,255,.12);
    --transition: all .22s ease;
}
/* ── HERO ── */
.hero {
    background: linear-gradient(135deg, #f0f4ff 0%, #f7f8fc 60%, #e8f5e9 100%);
    padding: 64px 20px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
    .hero::before {
        content: '';
        position: absolute;
        top: -80px;
        left: -80px;
        width: 320px;
        height: 320px;
        background: radial-gradient(circle, rgba(38,78,255,.08) 0%, transparent 70%);
        pointer-events: none;
    }
    .hero::after {
        content: '';
        position: absolute;
        bottom: -60px;
        right: -60px;
        width: 260px;
        height: 260px;
        background: radial-gradient(circle, rgba(38,200,120,.07) 0%, transparent 70%);
        pointer-events: none;
    }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-light);
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
    border: 1px solid rgba(38,78,255,.15);
}
/* ✅ FIX: h1 centered */
.hero h1 {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.15;
    margin: 0 auto 16px;
    letter-spacing: -0.5px;
    text-align: center;
    max-width: 800px;
}
    .hero h1 span {
        color: var(--brand);
    }
/* ✅ NEW: hero-desc styled beautifully */
.hero-desc-wrap {
    max-width: 680px;
    margin: 0 auto 40px;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(38,78,255,.1);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    backdrop-filter: blur(8px);
    position: relative;
}
    .hero-desc-wrap::before {
        content: '';
        position: absolute;
        top: 0;
        left: 28px;
        right: 28px;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--brand), transparent);
        border-radius: 100px;
    }
.hero-desc {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-muted);
    margin: 0;
    text-align: center;
}
/* ✅ NEW: 3 stat cards with colored backgrounds */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 32px;
    border-radius: var(--radius-lg);
    min-width: 140px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
    .hero-stat:hover {
        transform: translateY(-3px);
    }
    .hero-stat::after {
        content: '';
        position: absolute;
        bottom: -20px;
        right: -20px;
        width: 70px;
        height: 70px;
        border-radius: 50%;
        opacity: .15;
        background: #fff;
    }
.hero-stat-1 {
    background: linear-gradient(135deg, #264EFF 0%, #4f6fff 100%);
    box-shadow: 0 6px 24px rgba(38,78,255,.3);
}
.hero-stat-2 {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    box-shadow: 0 6px 24px rgba(14,165,233,.3);
}
.hero-stat-3 {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 6px 24px rgba(16,185,129,.3);
}
.hero-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
    .hero-stat-icon i {
        font-size: 18px;
        color: #fff;
    }
.hero-stat strong {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.hero-stat span {
    font-size: 12px;
    color: rgba(255,255,255,.85);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
}
/* ── FILTER BAR ── */
.filter-shell {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}
.filter-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 1360px;
    margin: auto;
    padding: 0 20px;
}
/* ✅ FIX: filter-group overflow visible so dropdown shows */
.filter-group {
    position: relative;
    z-index: 200;
}
.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
    .filter-btn i {
        font-size: 15px;
        color: var(--brand);
    }
    .filter-btn:hover {
        border-color: var(--brand);
        background: var(--brand-light);
        color: var(--brand);
    }
    .filter-btn .chev {
        font-size: 11px;
        color: var(--text-hint);
        transition: transform .2s ease;
    }
.filter-group.open .filter-btn {
    border-color: var(--brand);
    background: var(--brand-light);
    color: var(--brand);
}
    .filter-group.open .filter-btn .chev {
        transform: rotate(180deg);
    }
/* ✅ FIX: dropdown uses fixed positioning so it's never clipped */
.filter-dropdown {
    display: none;
    min-width: 240px;
    max-height: 280px;
    overflow-y: auto;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    z-index: 99999;
}
.filter-group.open .filter-dropdown {
    display: block;
}
.filter-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: var(--transition);
    gap: 8px;
}
    .filter-dropdown-item:last-child {
        border-bottom: 0;
    }
    .filter-dropdown-item:hover {
        background: var(--brand-light);
        color: var(--brand);
    }
    .filter-dropdown-item .count-badge {
        background: #f3f4f6;
        color: var(--text-muted);
        font-size: 11px;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: 100px;
        flex-shrink: 0;
    }
.filter-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
    .filter-sort label {
        font-size: 13px;
        color: var(--text-muted);
        white-space: nowrap;
        font-weight: 500;
    }
    .filter-sort select {
        height: 44px;
        padding: 0 12px;
        border: 1.5px solid var(--border);
        border-radius: var(--radius-md);
        font-size: 14px;
        font-weight: 600;
        color: var(--text-main);
        background: var(--surface);
        cursor: pointer;
        outline: none;
    }
        .filter-sort select:hover {
            border-color: var(--brand);
        }
.btn-clear {
    height: 44px;
    padding: 0 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
    .btn-clear:hover {
        border-color: #ef4444;
        color: #ef4444;
        background: #fff5f5;
    }
.btn-apply {
    height: 44px;
    padding: 0 22px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--brand);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(38,78,255,.25);
}
    .btn-apply:hover {
        background: var(--brand-dark);
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(38,78,255,.35);
    }
/* ── GRID ── */
.wrap {
    max-width: 1360px;
    margin: auto;
    padding: 0 20px;
}
.opp-section {
    padding: 40px 0 60px;
}
.section-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}
    .section-meta h2 {
        font-size: 20px;
        font-weight: 700;
        color: var(--text-main);
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
    }
        .section-meta h2 i {
            color: var(--brand);
        }
.results-count {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--surface2);
    padding: 6px 14px;
    border-radius: 100px;
    font-weight: 600;
    border: 1px solid var(--border);
}
.opp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
/* ── CARD ── */
.opp-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
    .opp-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--brand), #6c8fff);
        opacity: 0;
        transition: opacity .22s ease;
    }
    .opp-card:hover {
        border-color: rgba(38,78,255,.25);
        box-shadow: var(--shadow-hover);
        transform: translateY(-3px);
    }
        .opp-card:hover::before {
            opacity: 1;
        }
.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 10px;
}
.card-country-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand);
    background: var(--brand-light);
    border: 1px solid rgba(38,78,255,.15);
    padding: 5px 12px;
    border-radius: 100px;
    letter-spacing: .3px;
}
    .card-country-chip i {
        font-size: 11px;
    }
.card-date-box {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-hint);
    font-weight: 500;
    background: var(--surface2);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    white-space: nowrap;
}
    .card-date-box i {
        font-size: 12px;
    }
.card-service-section {
    margin-bottom: 12px;
}
.card-main-service {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.service-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
    .service-icon-wrap i {
        font-size: 18px;
        color: var(--brand);
    }
.card-service-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}
.card-sub-service {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 100px;
    margin-top: 6px;
    margin-left: 46px;
}
    .card-sub-service i {
        font-size: 11px;
    }
.card-divider {
    height: 1px;
    background: var(--border);
    margin: 14px 0;
}
.card-brief {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
    flex: 1;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}
.card-id {
    font-size: 11px;
    color: var(--text-hint);
    font-weight: 600;
    font-family: monospace;
}
.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(38,78,255,.2);
    letter-spacing: .3px;
}
    .card-cta:hover {
        background: var(--brand-dark);
        transform: translateX(2px);
        box-shadow: 0 5px 16px rgba(38,78,255,.3);
    }
    .card-cta i {
        font-size: 13px;
    }
/* ── NO RESULTS ── */
.no-results {
    grid-column: 1/-1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
    .no-results i {
        font-size: 48px;
        color: var(--text-hint);
        display: block;
        margin-bottom: 16px;
    }
    .no-results strong {
        display: block;
        font-size: 18px;
        font-weight: 700;
        color: var(--text-main);
        margin-bottom: 8px;
    }
/* ── CTA SECTION ── */
.opp-cta {
    background: linear-gradient(135deg, var(--brand) 0%, #1a38cc 100%);
    padding: 64px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
    .opp-cta::before {
        content: '';
        position: absolute;
        top: -100px;
        right: -100px;
        width: 300px;
        height: 300px;
        border: 60px solid rgba(255,255,255,.06);
        border-radius: 50%;
        pointer-events: none;
    }
.opp-cta-inner {
    max-width: 640px;
    margin: auto;
    position: relative;
}
.opp-cta h2 {
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 14px;
}
.opp-cta p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255,255,255,.8);
    margin: 0 0 28px;
}
.btn-cta-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #fff;
    color: var(--brand);
    font-size: 15px;
    font-weight: 800;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
    .btn-cta-white:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(0,0,0,.2);
    }
/* ── FAQ ── */
.opp-faq {
    padding: 64px 20px;
    background: var(--surface2);
    border-top: 1px solid var(--border);
}
.faq-header {
    text-align: center;
    margin-bottom: 40px;
}
    .faq-header h2 {
        font-size: clamp(22px, 4vw, 34px);
        font-weight: 800;
        color: var(--text-main);
        margin: 0 0 10px;
    }
    .faq-header p {
        font-size: 15px;
        color: var(--text-muted);
        margin: 0;
    }
.faq-list {
    max-width: 720px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-item {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}
    .faq-item:hover {
        border-color: rgba(38,78,255,.2);
    }
    .faq-item.active {
        border-color: rgba(38,78,255,.3);
    }
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
}
    .faq-question:hover {
        color: var(--brand);
    }
.faq-item.active .faq-question {
    color: var(--brand);
}
.faq-question .faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}
    .faq-question .faq-icon i {
        font-size: 12px;
        transition: transform .2s ease;
    }
.faq-item.active .faq-question .faq-icon {
    background: var(--brand-light);
}
    .faq-item.active .faq-question .faq-icon i {
        color: var(--brand);
        transform: rotate(45deg);
    }
.faq-answer {
    display: none;
    padding: 14px 20px 18px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}
.faq-item.active .faq-answer {
    display: block;
}
/* ── PAGING ── */
.paging-wrap {
    padding: 20px 0 40px;
    text-align: center;
}
/* ── RTL ── */
[dir="rtl"] .filter-sort {
    margin-left: 0;
    margin-right: auto;
}
[dir="rtl"] .card-sub-service {
    margin-left: 0;
    margin-right: 46px;
}
[dir="rtl"] .card-cta:hover {
    transform: translateX(-2px);
}
[dir="rtl"] .faq-question {
    text-align: right;
}
@@media (max-width: 640px) {
    .hero {
        padding: 44px 16px 36px;
    }
    .opp-grid {
        grid-template-columns: 1fr;
    }
    .filter-inner {
        gap: 8px;
    }
    .filter-sort {
        margin-left: 0;
        width: 100%;
    }
    .hero-stats {
        gap: 12px;
    }
    .hero-stat {
        padding: 16px 24px;
        min-width: 110px;
    }
        .hero-stat strong {
            font-size: 22px;
        }
}
