/* الألوان */
:root {
    --primary: #267836;
    --secondary: #2bbc01;
    --dark-green: #2c5b2d;
    --light: #f0fdf4;
    --white: #ffffff;
}

/*_reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'IBM Plex Sans Arabic', sans-serif; background: #f8fafc; line-height: 1.8; color: #1e293b; }

/* قسم الفرص */
.opportunities-section {
    padding: 4rem 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* العنوان */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #64748b;
}

/* شريط التصنيف */
.categories-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* الشبكة */
.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* كارت الفرصة */
.opp-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.opp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(38,120,54,0.2);
}

/* رأس الكارت */
.opp-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark-green) 100%);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.tag {
    background: var(--secondary);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.opp-header i {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* جسم الكارت */
.opp-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.opp-body h3 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.provider {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.opp-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
}

.opp-details span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #64748b;
    background: var(--light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.opp-details span i {
    color: var(--secondary);
}

.desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}

/* ذيل الكارت */
.opp-footer {
    padding: 1rem 1.5rem 1.5rem;
    margin-top: auto;
}

.apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    padding: 0.9rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.opp-card:hover .apply-btn {
    transform: scale(1.02);
}

/* إخفاء */
.opp-card.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .opportunities-section { padding: 3rem 15px; }
    
    .categories-filter { 
        gap: 8px; 
        margin-bottom: 2rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .opportunities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-header h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .opp-header { padding: 1.2rem; }
    .opp-body { padding: 1.2rem; }
    .opp-details { gap: 6px; }
    .opp-details span { font-size: 0.7rem; }
}