/* ===== صفحة الفريق - ثيم فاتح + كتابة سوداء ===== */

.page-title {
    text-align: center;
    font-size: 32px;
    margin: 40px 0 30px;
    color: #000;
}

/* شبكة العرض */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

/* البطاقة */
.team-card {
    background: #fafafa;
    color: #000;
    padding: 22px;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
    border: 1px solid #e3e3e3;
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* الشريط العلوي */
.team-card .color-bar {
    height: 6px;
    width: 100%;
    border-radius: 12px 12px 0 0;
    margin-bottom: 15px;
}

/* صورة الموظف */
.member-img {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 15px;
    transition: 0.3s ease;
}

/* الاسم */
.team-card h3 {
    font-size: 20px;
    margin: 10px 0 5px;
    font-weight: 700;
    color: #000;
}

/* الوظيفة */
.team-card .role {
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
}

/* الروابط الاجتماعية */
.social {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.social a {
    background: #eee;
    color: #000;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 16px;
    text-decoration: none;
    transition: 0.25s ease;
}

.social a:hover {
    background: #ddd;
}

/* زر الواتساب */
.wa-btn {
    display: block;
    text-align: center;
    background: #25d366;
    color: #fff !important;
    padding: 10px;
    border-radius: 12px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.25s ease;
}

.wa-btn:hover {
    background: #1ebe5a;
}

/* تأثير Hover */
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.team-card:hover .member-img {
    transform: scale(1.03);
}

/* ===== Popup CV ===== */

.cv-popup {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 5000;
}

.cv-box {
    background: #fff;
    padding: 25px;
    width: 350px;
    border-radius: 18px;
    text-align: center;
    color: #000;
    position: relative;
    animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 24px;
    cursor: pointer;
}

.cv-img {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 15px;
}

.cv-role {
    font-size: 16px;
    margin-bottom: 5px;
    color: #444;
}

.cv-phone {
    font-size: 17px;
    margin-bottom: 15px;
}

.cv-bio {
    margin: 10px 0 20px;
    color: #333;
}

.cv-links a {
    display: block;
    margin-bottom: 8px;
    background: #eee;
    padding: 10px;
    border-radius: 10px;
    color: #000;
    text-decoration: none;
    transition: 0.25s;
}

.cv-links a:hover {
    background: #ddd;
}

.cv-wa {
    background: #25d366 !important;
    color: #fff !important;
}

.cv-wa:hover {
    background: #1ebe5a !important;
}
