/* =============================================
   Works Archive — أعمالنا
   ============================================= */

/* ── Hero Banner ── */
.works-hero {
    background: linear-gradient(135deg, #082A4A 0%, #0077C8 100%);
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
    text-align: center;
    color: white;
}
.works-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../images/banners/works-header.png') center/cover;
    opacity: 0.1;
}
.works-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}
.works-hero p {
    opacity: 0.8;
    margin-top: 0.5rem;
    font-size: 1rem;
}

/* ── Filter Bar ── */
.works-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    align-items: center;
}
.works-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 1rem;
    border-radius: 25px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.works-filter-btn:hover {
    background: #E0F2FE;
    color: #0077C8;
}
.works-filter-btn.active {
    background: #0077C8;
    color: white;
}
.works-filter-btn span {
    font-size: 0.75rem;
    opacity: 0.7;
}
.works-filter-dropdowns {
    display: flex;
    gap: 0.5rem;
    margin-right: auto;
}
.works-filter-select {
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 0.85rem;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
}

/* ── Cards Grid ── */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ── Work Card ── */
.work-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.work-card-image {
    position: relative;
    display: block;
    overflow: hidden;
}
.work-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s;
}
.work-card:hover .work-card-image img {
    transform: scale(1.05);
}
.work-card-type {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(217, 119, 6, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}
.work-card-video {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.72rem;
}
.work-card-featured {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(245, 158, 11, 0.9);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.72rem;
    font-weight: 600;
}

.work-card-body {
    padding: 1rem 1.25rem;
}
.work-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
    line-height: 1.6;
}
.work-card-title a {
    color: #1e293b;
    text-decoration: none;
}
.work-card-title a:hover { color: #0077C8; }

.work-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.78rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}
.work-card-meta i {
    color: #D97706;
    margin-left: 2px;
}

.work-card-excerpt {
    color: #64748b;
    font-size: 0.83rem;
    line-height: 1.6;
    margin: 0 0 0.75rem;
}

.work-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}
.work-card-date {
    color: #94a3b8;
    font-size: 0.78rem;
}
.work-card-btn {
    color: #0077C8;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.work-card-btn:hover { color: #005fa3; }
.work-card-btn i { margin-right: 4px; transition: transform 0.2s; }
.work-card-btn:hover i { transform: translateX(-3px); }

/* ── Responsive ── */
@media (max-width: 992px) {
    .works-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .works-grid { grid-template-columns: 1fr; }
    .works-hero h1 { font-size: 1.4rem; }
    .works-filters { gap: 0.35rem; }
    .works-filter-btn { padding: 0.35rem 0.7rem; font-size: 0.78rem; }
    .works-filter-dropdowns { width: 100%; }
    .works-filter-select { flex: 1; }
    .work-card-image img { height: 180px; }
}
