/* Profile page — same green identity as the site */
.profile-page {
    flex: 1;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.profile-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 44px 60px 36px;
    border-radius: 8px 8px 0 0;
    color: #fff;
    background: linear-gradient(135deg, #112e4e 0%, #112e4e 100%);
}

.profile-hero-id {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-hero-side {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 22px;
    text-align: right;
    max-width: 420px;
}

.profile-hero-item h3 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.profile-hero-item p { font-size: 15px; opacity: .95; }

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #fff;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

.profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.profile-hero-id h2 { margin-top: 16px; font-size: 24px; font-weight: 700; }
.profile-hero-id p { margin-top: 2px; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; opacity: .95; }

.profile-stats {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e9eef5;
    border-top: none;
    border-radius: 0 0 8px 8px;
    margin-bottom: 36px;
}

.profile-stat {
    padding: 18px 28px;
    font-size: 15px;
    color: #333;
    border-left: 1px solid #e9eef5;
}

.profile-stat:last-child { border-left: none; }
.profile-stat span { color: #5d6f85; }
.profile-stat strong { color: #112e4e; margin-right: 4px; }

.profile-stat-action {
    color: #112e4e;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .25s ease;
}

.profile-stat-action:hover { background: #e9eef5; }
.profile-stat-action i { margin-left: 6px; }

.profile-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.profile-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(17,46,78, .06);
}

.profile-card-head {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    font-family: Cairo, sans-serif;
    background: linear-gradient(135deg, #112e4e, #112e4e);
}

.profile-card-head i { transition: transform .25s ease; }
.profile-card.collapsed .profile-card-head i { transform: rotate(180deg); }
.profile-card.collapsed .profile-card-body { display: none; }

.profile-card-body { padding: 4px 24px 8px; }

.profile-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e9eef5;
}

.profile-row:last-child { border-bottom: none; }
.profile-row dt { font-weight: 700; color: #222; white-space: nowrap; }
.profile-row dd { color: #5d6f85; text-align: left; word-break: break-word; }

.profile-empty {
    max-width: 480px;
    margin: 60px auto;
    padding: 50px 30px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(17,46,78, .06);
}

.profile-empty i { font-size: 44px; color: #c9962b; }
.profile-empty h2 { margin: 16px 0 6px; color: #112e4e; }
.profile-empty p { color: #5d6f85; margin-bottom: 22px; }

.profile-btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 3px;
    background: #112e4e;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background-color .25s ease;
}

.profile-btn:hover { background: #112e4e; }

@media (max-width: 960px) {
    .profile-cards { grid-template-columns: 1fr; }
    .profile-hero { flex-direction: column-reverse; padding: 32px 24px; }
    .profile-hero-side { max-width: none; width: 100%; }
    .profile-stat { flex: 1 1 100%; border-left: none; border-bottom: 1px solid #e9eef5; }
}

.profile-card-wide { grid-column: 1 / -1; }
.profile-quals-empty { padding: 20px 0; color: #5d6f85; }
.profile-stat-link { color: #333; text-decoration: none; transition: background-color .25s ease; }
.profile-stat-link:hover { background: #e9eef5; }

/* ===== تصغير الخطوط والتصميم ===== */
.profile-page{max-width:1060px;padding:24px 16px 40px}
.profile-hero{padding:24px 36px 20px;gap:20px;border-radius:8px 8px 0 0}
.profile-hero-side{gap:12px;max-width:340px}
.profile-hero-item h3{font-size:16px;margin-bottom:2px}
.profile-hero-item p{font-size:13.5px}
.profile-avatar{width:96px;height:96px;border-width:3px}
.profile-hero-id h2{margin-top:10px;font-size:19px}
.profile-hero-id p{font-size:12.5px}
.profile-stats{margin-bottom:22px}
.profile-stat{padding:11px 18px;font-size:13.5px}
.profile-cards{gap:16px}
.profile-card-head{padding:11px 18px;font-size:15px}
.profile-card-body{padding:2px 18px 4px}
.profile-row{padding:9px 0;gap:12px;font-size:13.5px;line-height:1.6}
.profile-empty h2{font-size:19px}.profile-empty p{font-size:14px}
.profile-btn{font-size:14px;padding:8px 22px}
.profile-quals-empty{padding:12px 0;font-size:13.5px}
@media(max-width:960px){.profile-hero{padding:20px 16px}}

/* الشهادات والمستندات */
.profile-docs-group{margin-bottom:18px}.profile-docs-group:last-child{margin-bottom:0}
.profile-docs-group h4{margin:0 0 10px;font-size:.95rem;font-weight:800;color:#112e4e}
.profile-docs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.profile-doc{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px;border:1px solid #dae2ed;border-radius:12px;background:#f8f9fb;color:#112e4e;text-decoration:none;font-size:.8rem;font-weight:700;text-align:center;word-break:break-all}
.profile-doc:hover{border-color:#c9962b;background:#eef2f7}
.profile-doc img{width:100%;height:110px;object-fit:cover;border-radius:8px}
.profile-doc i{font-size:2.4rem;color:#1c4670;height:110px;display:grid;place-items:center}
.profile-card[hidden]{display:none}
