/* سکشن دکمه‌های فیلتر*/
:root{
    --gold:#ffc107;
    --gold-dark:#d39e00;
    --ink:#2d3748;
    --ink-2:#1a202c;
}

/* ---------- کانتینر کلی بخش فیلتر ---------- */
.filter-section{
    isolation:isolate;
    background:#2d3748;
    padding:52px 0 58px;
    margin:0;
}

/* ---------- تیتر بالای دکمه‌ها ---------- */
.filter-heading{
    text-align:center;
    margin-bottom:32px;
    direction:rtl;
}

.filter-title{
    color:#ffffff !important;
    font-size:1.5rem;
    font-weight:800;
    margin-bottom:8px;
    position:relative;
    display:inline-block;
}

.filter-subtitle{
    color:rgba(255,255,255,0.6) !important;
    font-size:0.92rem;
    font-weight:400;
    margin:0;
}

.filter-wrap{
    display:flex;
    flex-wrap:wrap;
    gap:18px;
    justify-content:center;
    margin:0;
    direction:rtl;
}

/* ---------- دکمه ---------- */
.quiz-chip{
    position:relative;
    display:flex;
    align-items:center;
    gap:0;
    border:1.5px solid rgba(45,55,72,0.08);
    background:#ffffff !important;
    padding:10px;
    cursor:pointer;
    font-family:inherit;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 1px 2px rgba(45,55,72,0.05), 0 8px 18px -10px rgba(45,55,72,0.2);
    transition:transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
    text-decoration:none !important;
}

.quiz-chip:hover{
    transform:translateY(-4px);
    border-color:rgba(255,193,7,0.6);
    box-shadow:0 1px 2px rgba(45,55,72,0.06), 0 18px 26px -14px rgba(45,55,72,0.3);
}
.quiz-chip:active{ transform:translateY(0) scale(0.97); }

/* ---------- برچسب اصلی (ششم / نهم / رایگان) ---------- */
.chip-badge{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    min-width:76px;
    height:62px;
    padding:0 16px;
    border-radius:14px;
    background:var(--gold) !important;
    box-shadow:0 5px 12px -3px rgba(255,193,7,0.5);
    transition:transform .3s cubic-bezier(.2,.8,.2,1);
}
.quiz-chip:hover .chip-badge{ transform:scale(1.04); }

.badge-icon{ color:var(--ink-2) !important; opacity:0.7; }
.badge-icon svg{ width:19px; height:19px; }

.badge-num{
    font-size:1.05rem;
    font-weight:800;
    color:var(--ink-2) !important;
    letter-spacing:.2px;
    white-space:nowrap;
    line-height:1;
}

.badge-free{
    background:var(--ink) !important;
    box-shadow:0 5px 12px -3px rgba(45,55,72,0.45);
}
.badge-free .badge-icon{ color:var(--gold) !important; opacity:1; }
.badge-free .badge-num{ color:var(--gold) !important; }

/* ---------- متن دکمه ---------- */
.chip-body{
    display:flex;
    flex-direction:column;
    gap:3px;
    text-align:right;
    padding:0 18px;
}

.chip-title{
    font-size:1.05rem;
    font-weight:700;
    color:var(--ink) !important;
    line-height:1.25;
    white-space:nowrap;
}

.chip-sub{
    font-size:0.78rem;
    font-weight:500;
    color:#9aa3b2 !important;
    white-space:nowrap;
}

/* ---------- فلش ---------- */
.chip-arrow{
    display:flex;
    align-items:center;
    justify-content:center;
    width:40px;
    height:40px;
    min-width:40px;
    border-radius:50%;
    background:#f4f5f7 !important;
    color:#9aa3b2 !important;
    margin-right:auto;
    transition:all .3s cubic-bezier(.2,.8,.2,1);
}
.chip-arrow svg{ width:18px; height:18px; }
.quiz-chip:hover .chip-arrow{
    background:var(--ink) !important;
    color:var(--gold) !important;
    transform:translateX(-4px) rotate(-90deg);
}

/* ---------- حالت فعال ---------- */
.quiz-chip.active{
    border-color:var(--ink);
    background:#f1f2f4 !important;
}
.quiz-chip.active .chip-arrow{
    background:var(--gold) !important;
    color:var(--ink-2) !important;
}

/* ---------- موبایل ---------- */
@media (max-width: 768px){
    .filter-section{ padding:36px 0 40px; }
    .filter-heading{ margin-bottom:22px; padding:0 16px; }
    .filter-title{ font-size:1.2rem; }
    .filter-subtitle{ font-size:0.82rem; }
    .filter-wrap{ flex-direction:column; align-items:stretch; gap:12px; padding:0 12px; }
    .quiz-chip{ width:100%; }
    .chip-body{ flex:1; }
    .chip-title{ white-space:normal; }
}
/* سکشن دکمه‌های فیلتر*/








     /* همه چی زیر این کلاس والد یکتا محدود می‌شه */
 .bw-widgets-section{
     background:#f8f9fb !important;
     padding:56px 0;
 }

.bw-widgets-section .bw-widget{
    position:relative;
    background:#ffffff;
    border-radius:20px;
    padding:32px 22px 26px;
    text-align:center;
    height:100%;
    border:1px solid rgba(45,55,72,0.06);
    box-shadow:0 2px 4px rgba(45,55,72,0.04), 0 12px 24px -16px rgba(45,55,72,0.12);
    transition:transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
    overflow:hidden;
}

.bw-widgets-section .bw-widget::before{
    content:'';
    position:absolute;
    top:0; right:0; left:0;
    height:4px;
    background:linear-gradient(90deg, #ffc107, #d39e00);
    transform:scaleX(0);
    transform-origin:right;
    transition:transform .4s cubic-bezier(.2,.8,.2,1);
}

.bw-widgets-section .bw-widget:hover{
    transform:translateY(-8px);
    box-shadow:0 4px 8px rgba(45,55,72,0.06), 0 24px 40px -18px rgba(45,55,72,0.22);
    border-color:rgba(255,193,7,0.3);
}
.bw-widgets-section .bw-widget:hover::before{
    transform:scaleX(1);
}

.bw-widgets-section .bw-widget-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:70px;
    height:70px;
    margin-bottom:16px;
    transition:transform .4s cubic-bezier(.2,.8,.2,1);
}
.bw-widgets-section .bw-widget:hover .bw-widget-icon{
    transform:scale(1.08) rotate(-3deg);
}

.bw-widgets-section .bw-widget-icon img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.bw-widgets-section .bw-widget h3{
    font-size:1rem;
    font-weight:700;
    color:#2d3748 !important;
    margin-bottom:8px;
    line-height:1.4;
}

.bw-widgets-section .bw-widget-text{
    font-size:0.85rem;
    color:#8b93a3 !important;
    line-height:1.85;
}

@media (max-width: 576px){
    .bw-widgets-section{ padding:36px 0; }
    .bw-widgets-section .bw-widget{ padding:26px 18px 22px; }
    .bw-widgets-section .bw-widget-icon{ width:56px; height:56px; }
}







/*بخش تزینی پایین*/
 .deco-band{
     position:relative;
     height:170px;
     background:linear-gradient(120deg, #2d3748 0%, #1a202c 55%, #2d3748 100%);
     overflow:hidden;
     isolation:isolate;
 }

.deco-shapes{
    position:absolute;
    inset:0;
}

/* گلوهای واقعی با blur */
.glow{
    position:absolute;
    border-radius:50%;
    background:#ffc107;
    filter:blur(50px);
}
.glow-1{
    width:180px; height:180px;
    opacity:0.35;
    top:-60px; right:10%;
}
.glow-2{
    width:140px; height:140px;
    opacity:0.25;
    bottom:-70px; left:14%;
}

/* شکل‌های خطی ظریف */
.ring{
    position:absolute;
    border-radius:50%;
    border:2px solid rgba(255,193,7,0.5);
}
.ring-1{
    width:54px; height:54px;
    top:28px; right:26%;
}
.ring-2{
    width:24px; height:24px;
    bottom:32px; left:30%;
    border-width:1.5px;
}

.dot{
    position:absolute;
    width:8px; height:8px;
    border-radius:50%;
    background:#ffc107;
}
.dot-1{ top:36px; left:22%; opacity:0.7; }
.dot-2{ bottom:26px; right:18%; opacity:0.5; }

/* آیکون مرکزی به‌عنوان نقطه‌ی کانونی اصلی */
.deco-icon-wrap{
    position:absolute;
    top:50%; left:50%;
    transform:translate(-50%,-50%);
    display:flex;
    align-items:center;
    justify-content:center;
    width:88px;
    height:88px;
    border-radius:24px;
    background:rgba(255,193,7,0.1);
    border:1px solid rgba(255,193,7,0.25);
}
.deco-icon-wrap svg{
    color:#ffc107;
    opacity:0.9;
}

.deco-line{
    position:absolute;
    bottom:0; left:0; right:0;
    height:3px;
    background:linear-gradient(90deg, transparent, #ffc107, transparent);
    opacity:0.8;
}

@media (max-width: 768px){
    .deco-band{ height:130px; }
    .glow-1{ width:130px; height:130px; }
    .deco-icon-wrap{ width:64px; height:64px; border-radius:18px; }
    .deco-icon-wrap svg{ width:28px; height:28px; }
}



/* تغییر رنگ آیکن منو در حالت موبایل در home_new   */
@media (max-width: 991.98px) {
    .home-new .navbar-toggler {
        background-color: #2d3748 !important;
    }
}



/* ================= بخش دانش‌آموزان برتر (Hall of Fame) ================= */
.hof-section{
    background:#eef0f3;
    padding:66px 0 60px;
    direction:rtl;
}

.hof-heading{
    text-align:center;
    margin-bottom:44px;
}
.hof-eyebrow{
    display:inline-flex;
    align-items:center;
    gap:7px;
    background:var(--gold);
    color:var(--ink-2);
    font-size:.72rem;
    font-weight:700;
    padding:6px 16px;
    border-radius:30px;
    margin-bottom:14px;
}
.hof-title{
    font-size:1.55rem;
    font-weight:800;
    color:var(--ink) !important;
    margin-bottom:8px;
}
.hof-subtitle{
    font-size:.9rem;
    color:#8b93a3 !important;
    margin:0;
}

.hof-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 280px));
    justify-content:center;
    gap:28px;
    align-items:stretch;
}

/* ---------- کارت پایه (تیره) ---------- */
.hof-card{
    position:relative;
    background:linear-gradient(165deg, var(--ink) 0%, var(--ink-2) 100%);
    border-radius:20px;
    padding:50px 24px 30px;
    text-align:center;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    align-items:center;
    box-shadow:0 16px 30px -14px rgba(26,32,44,.35);
    transition:transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.hof-card:hover{
    transform:translateY(-8px);
    box-shadow:0 26px 40px -14px rgba(26,32,44,.45);
}

/* افکت درخشش هنگام هاور */
.hof-card::after{
    content:'';
    position:absolute;
    top:0; bottom:0;
    right:-60%;
    width:40%;
    background:linear-gradient(115deg, transparent, rgba(255,193,7,.25), transparent);
    transform:skewX(-18deg);
    transition:right 0s;
    pointer-events:none;
}
.hof-card:hover::after{
    right:130%;
    transition:right .9s ease;
}

/* عدد رتبه بالای کارت (واترمارک) */
.hof-numeral{
    position:absolute;
    top:-10px;
    left:10px;
    font-size:5.2rem;
    font-weight:800;
    color:rgba(255,193,7,.14);
    line-height:1;
    z-index:0;
    user-select:none;
}

/* آواتار بزرگ با قاب طلایی */
.hof-avatar{
    position:relative;
    width:130px; height:130px;
    margin:0 auto 16px;
    border-radius:50%;
    padding:4px;
    background:linear-gradient(135deg, var(--gold), var(--gold-dark));
    box-shadow:0 0 0 6px rgba(255,193,7,.12);
    z-index:1;
    flex-shrink:0;
}
.hof-avatar img{
    width:100%; height:100%;
    border-radius:50%;
    object-fit:cover;
    display:block;
    border:3px solid var(--ink-2);
}
.hof-avatar-icon{
    width:100%; height:100%;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--ink-2);
    color:var(--gold);
    font-size:2.1rem;
    border:3px solid var(--ink-2);
}

/* برچسب رتبه زیر عکس */
.hof-rank-tag{
    display:inline-block;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,193,7,.3);
    color:var(--gold);
    font-size:.72rem;
    font-weight:700;
    padding:4px 14px;
    border-radius:20px;
    margin-bottom:12px;
    z-index:1;
}

.hof-name{
    font-size:1.05rem;
    font-weight:700;
    color:#fff !important;
    margin-bottom:14px;
    z-index:1;
}

.hof-pills{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:6px;
    z-index:1;
    margin-top:auto;
}
.hof-pill{
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,193,7,.25);
    color:#e2e5ea;
    font-size:.72rem;
    font-weight:500;
    padding:5px 12px;
    border-radius:20px;
}

/* ---------- ویژگی خاص نفر اول ---------- */
.hof-first{
    background:linear-gradient(165deg, #34405a 0%, var(--ink-2) 100%);
    box-shadow:0 20px 38px -14px rgba(255,193,7,.28);
}
.hof-first:hover{
    box-shadow:0 30px 48px -14px rgba(255,193,7,.38);
}
.hof-first .hof-numeral{
    color:rgba(255,193,7,.22);
}
.hof-first .hof-avatar{
    box-shadow:0 0 0 6px rgba(255,193,7,.2), 0 0 30px rgba(255,193,7,.3);
}
.hof-first .hof-rank-tag{
    background:var(--gold);
    color:var(--ink-2);
    border-color:var(--gold-dark);
}

@media (max-width:992px){
    .hof-grid{ grid-template-columns:repeat(2, minmax(0, 280px)); }
}
@media (max-width:576px){
    .hof-grid{ grid-template-columns:minmax(0, 320px); gap:20px; }
}

