.taitel {
    margin-top: 25px;
    margin-right: 30px;
    margin-left: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(15, 42, 61, 0.1);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary-dark, #0f2a3d);
}
 
/* نگهدارنده کارت‌ها — چیدمان انعطاف‌پذیر و مرکزگرا */
.honoor-container {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
    align-items: stretch;
    padding: 25px 30px;
}
 
/* ========== کارت مدرن نفرات برتر ========== */
.hooner-card {
    width: 280px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border: 1px solid rgba(15, 42, 61, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(15, 42, 61, 0.07);
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 16px 0;
    position: relative;
    animation: cardFadeIn 0.5s ease both;
}
 
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
 
/* نوار رنگی بالای کارت */
.hooner-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, #c9973e, #f6c667, #c9973e);
}
 
.hooner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(15, 42, 61, 0.16);
    border-color: rgba(201, 151, 62, 0.45);
}
 
/* ========== نشان رتبه (بالای گوشه کارت) ========== */
.rank-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary-dark, #0f2a3d);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(15, 42, 61, 0.25);
    z-index: 2;
    border: 2px solid #fff;
}
 
/* نشان ویژه معدل کامل (۲۰) */
.rank-badge.perfect {
    background: linear-gradient(145deg, #ffdf8c, #d9a017);
    color: #5a3d00;
    box-shadow: 0 4px 14px rgba(217, 160, 23, 0.55);
    animation: badgePulse 2.4s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(217, 160, 23, 0.55); }
    50% { box-shadow: 0 4px 20px rgba(217, 160, 23, 0.85); }
}
 
/* برجسته‌سازی کل کارت معدل کامل */
.hooner-card.perfect-score {
    border-color: rgba(217, 160, 23, 0.5);
    box-shadow: 0 10px 30px rgba(217, 160, 23, 0.18);
}
.hooner-card.perfect-score::before {
    background: linear-gradient(90deg, #d9a017, #ffdf8c, #d9a017);
    height: 6px;
}
.hooner-card.perfect-score .student-img img {
    box-shadow: 0 0 0 3px #d9a017, 0 8px 20px rgba(217, 160, 23, 0.35);
}
.hooner-card.perfect-score .score-chip {
    background: linear-gradient(145deg, #ffdf8c, #d9a017);
    box-shadow: 0 4px 14px rgba(217, 160, 23, 0.45);
}
 
/* ========== عکس دانش‌آموز با حلقه طلایی ========== */
.student-img {
    display: flex;
    justify-content: center;
    margin: 0 0 14px 0;
}
.student-img img {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    /* contain به‌جای cover تا تصویر بدون برش و زوم اضافه نمایش داده شود */
    object-fit: contain;
    object-position: center;
    background: #f4f6f8;
    padding: 6px;
    box-sizing: border-box;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px #c9973e, 0 6px 16px rgba(15, 42, 61, 0.18);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.hooner-card:hover .student-img img {
    transform: scale(1.04);
}
 
/* ========== نام و نشان معدل ========== */
.student-info {
    text-align: center;
    margin-bottom: 16px;
    width: 100%;
}
.student-info h4 {
    margin: 0 0 10px 0;
    font-size: 1.08rem;
    color: var(--color-primary-dark, #0f2a3d);
    font-weight: 800;
}
 
/* نشان طلایی معدل/رتبه — کاملاً به چشم می‌آید */
.score-chip {
    display: inline-block;
    background: linear-gradient(145deg, #f6c667, #e6a02c);
    color: #0f2a3d;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 6px 22px;
    border-radius: 22px;
    box-shadow: 0 4px 12px rgba(230, 160, 44, 0.35);
}
 
/* ========== جزئیات پایین کارت (بدون کلاس) ========== */
.details {
    width: 100%;
    margin-top: auto;
    border-top: 1px dashed rgba(15, 42, 61, 0.15);
    background: rgba(15, 42, 61, 0.02);
}
.details p {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(15, 42, 61, 0.05);
    margin: 0;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.details p:last-child {
    border-bottom: none;
}
.details p span:first-child {
    color: #8a94a3;
    font-weight: 600;
}
.details p span:last-child {
    color: #0f2a3d;
    font-weight: 700;
}
 
/* ==========================================
   تنظیمات اختصاصی ریسپانسیو برای موبایل
   ========================================== */
@media (max-width: 768px) {
    .taitel {
        margin-right: 15px;
        margin-left: 15px;
        font-size: 1.15rem;
    }
    .filter-tabs {
        margin: 15px 15px 5px 15px;
    }
    .honoor-container {
        padding: 15px 10px;
        gap: 20px;
    }
    .hooner-card {
        width: 100%;
        max-width: 340px;
    }
}