/* ============================================================
   Pargar Academy — home.css
   تمام بخش‌های صفحه خانه — مو‌به‌مو مطابق دیزاین Claude Design
   ============================================================ */

@keyframes bm-float  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes bm-float2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(12px); } }

/* ===================== هیرو ===================== */
.bm-hero { position: relative; overflow: hidden; }
.bm-hero::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(900px 460px at 88% -8%, var(--bm-primary-soft), transparent 70%);
    pointer-events: none;
}
.bm-hero-inner {
    position: relative;
    display: grid; grid-template-columns: 1.05fr .95fr;
    gap: 48px; align-items: center;
    padding-block: 72px 64px;
}
.bm-hero-badge {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 7px 15px; border-radius: 999px;
    background: var(--bm-surface); border: 1px solid var(--bm-border);
    box-shadow: var(--bm-shadow-sm);
    font-size: .81rem; font-weight: 600; color: var(--bm-text-sub);
    margin-bottom: 24px;
}
.bm-hero-badge .bm-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--bm-success); box-shadow: 0 0 0 3px var(--bm-success-soft);
}
.bm-hero-title { font-size: 3.1rem; line-height: 1.25; font-weight: 800; letter-spacing: -1.2px; margin: 0 0 20px; }
.bm-hero-title span { color: var(--bm-primary); }
.bm-hero-sub { max-width: 520px; font-size: 1.06rem; line-height: 2; color: var(--bm-text-sub); margin: 0 0 32px; }
.bm-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

/* جستجوی هیرو */
.bm-hero-search {
    display: flex; align-items: center; gap: 8px;
    background: var(--bm-surface); border: 1px solid var(--bm-border);
    border-radius: 16px; box-shadow: var(--bm-shadow-md);
    padding: 8px; max-width: 540px;
}
.bm-hero-search-cat {
    display: flex; align-items: center; gap: 8px;
    padding: 0 14px; border-left: 1px solid var(--bm-border);
    color: var(--bm-text-sub); font-size: .84rem; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.bm-hero-search-cat .bm-caret {
    width: 8px; height: 8px; border-right: 2px solid var(--bm-text-mute);
    border-bottom: 2px solid var(--bm-text-mute); transform: rotate(45deg); margin-bottom: 3px;
}
.bm-hero-search input {
    flex: 1; border: none; background: transparent; color: var(--bm-text);
    font-family: inherit; font-size: .9rem; outline: none; padding: 10px 6px;
}
.bm-hero-search button {
    width: 46px; height: 46px; border: none; border-radius: 11px;
    background: var(--bm-primary); color: #fff; cursor: pointer; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
}

/* آمار هیرو */
.bm-hero-stats { display: flex; align-items: center; gap: 30px; margin-top: 30px; }
.bm-hero-stats > div:not(.bm-divider) { display: flex; flex-direction: column; }
.bm-hero-stats strong { font-size: 1.5rem; font-weight: 800; }
.bm-hero-stats .bm-star { color: var(--bm-accent); font-size: 1.05rem; }
.bm-hero-stats span { font-size: .78rem; color: var(--bm-text-mute); }
.bm-hero-stats .bm-divider { width: 1px; height: 34px; background: var(--bm-border); }
.bm-hero-stat-rating { display: flex; align-items: center; gap: 5px; }

/* تصویر/کارت هیرو */
.bm-hero-visual { position: relative; height: 480px; }
.bm-hero-card {
    position: absolute; inset: 14px 0 14px 14px; border-radius: 28px;
    background: linear-gradient(150deg, var(--bm-primary), var(--bm-primary-dark) 65%, #1E1B4B);
    box-shadow: var(--bm-shadow-xl); overflow: hidden;
}
.bm-hero-card .bm-blob-1 { position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.10); top: -70px; left: -50px; }
.bm-hero-card .bm-blob-2 { position: absolute; width: 160px; height: 160px; border-radius: 50%; background: rgba(14,165,233,.30); bottom: -40px; right: -30px; filter: blur(6px); }
.bm-hero-card-top { position: absolute; top: 40px; right: 40px; left: 40px; display: flex; align-items: center; gap: 12px; color: #fff; }
.bm-hero-card-icon { width: 50px; height: 50px; border-radius: 14px; background: rgba(255,255,255,.18); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.bm-hero-card-title { font-weight: 800; font-size: 1.05rem; }
.bm-hero-card-meta { font-size: .82rem; opacity: .8; }
.bm-hero-card-bottom { position: absolute; left: 40px; right: 40px; bottom: 40px; }
.bm-hero-progress { height: 6px; border-radius: 999px; background: rgba(255,255,255,.22); overflow: hidden; margin-bottom: 10px; }
.bm-hero-progress > span { display: block; height: 100%; background: #fff; border-radius: 999px; }
.bm-hero-progress-info { display: flex; justify-content: space-between; color: #fff; font-size: .78rem; opacity: .9; }

/* کارت‌های شناور */
.bm-float-card {
    position: absolute; background: var(--bm-surface);
    border: 1px solid var(--bm-border); border-radius: 16px;
    box-shadow: var(--bm-shadow-lg); padding: 13px 16px;
    display: flex; align-items: center; gap: 11px;
}
.bm-float-card.bm-float-top { top: 30px; left: -6px; animation: bm-float 5s ease-in-out infinite; }
.bm-float-card.bm-float-bottom { bottom: 34px; right: -6px; animation: bm-float2 6s ease-in-out infinite; }
.bm-float-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--bm-success-soft); color: var(--bm-success); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex: 0 0 auto; }
.bm-float-card .bm-float-t1 { font-size: .84rem; font-weight: 700; }
.bm-float-card .bm-float-t2 { font-size: .72rem; color: var(--bm-text-mute); }
.bm-float-avatars { display: flex; }
.bm-float-avatars span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bm-surface); }
.bm-float-avatars span + span { margin-right: -10px; }

/* ===================== دسته‌بندی‌ها ===================== */
.bm-cats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bm-cat-card {
    background: var(--bm-surface); border: 1px solid var(--bm-border);
    border-radius: 18px; padding: 22px 16px; box-shadow: var(--bm-shadow-sm);
    text-align: center; cursor: pointer; transition: transform .18s, box-shadow .18s;
}
.bm-cat-card:hover { transform: translateY(-4px); box-shadow: var(--bm-shadow-lg); }
.bm-cat-icon {
    width: 52px; height: 52px; border-radius: 15px;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
    background: var(--bm-primary-soft); color: var(--bm-primary);
}
.bm-cat-icon.c2 { background: var(--bm-secondary-soft); color: var(--bm-secondary); }
.bm-cat-icon.c3 { background: var(--bm-accent-soft); color: var(--bm-accent); }
.bm-cat-icon.c4 { background: var(--bm-success-soft); color: var(--bm-success); }
.bm-cat-card h3 { margin: 0 0 4px; font-size: .92rem; font-weight: 700; }
.bm-cat-count { font-size: .75rem; color: var(--bm-text-mute); }

/* ===================== بخش با پس‌زمینه ===================== */
.bm-band { background: var(--bm-surface-2); border-top: 1px solid var(--bm-border); border-bottom: 1px solid var(--bm-border); }

/* فیلتر دوره‌ها */
.bm-course-filters { display: flex; gap: 9px; flex-wrap: wrap; }
.bm-course-filters a {
    padding: 8px 16px; border-radius: 10px; font-size: .82rem; font-weight: 700;
    border: 1px solid var(--bm-border); background: var(--bm-surface); color: var(--bm-text-sub);
}
.bm-course-filters a.active { background: var(--bm-primary); color: #fff; border-color: var(--bm-primary); }

.bm-courses-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ===================== مسیرهای یادگیری ===================== */
.bm-paths-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bm-path-card {
    background: var(--bm-surface); border: 1px solid var(--bm-border);
    border-radius: 20px; padding: 26px; box-shadow: var(--bm-shadow-md);
    position: relative; overflow: hidden;
}
.bm-path-num { position: absolute; top: -18px; left: -10px; font-size: 5.6rem; font-weight: 800; color: var(--bm-surface-2); line-height: 1; }
.bm-path-body { position: relative; }
.bm-path-icon {
    width: 48px; height: 48px; border-radius: 14px; color: #fff;
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--bm-primary), var(--bm-primary-dark));
}
.bm-path-icon.p2 { background: linear-gradient(135deg, var(--bm-secondary), #0369A1); }
.bm-path-icon.p3 { background: linear-gradient(135deg, var(--bm-accent), #D97706); }
.bm-path-card h4 { margin: 0 0 8px; font-size: 1.18rem; font-weight: 700; }
.bm-path-card > .bm-path-body > p { margin: 0 0 18px; font-size: .82rem; color: var(--bm-text-sub); line-height: 1.9; }
.bm-path-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }
.bm-path-list div { display: flex; align-items: center; gap: 9px; font-size: .78rem; color: var(--bm-text-sub); }
.bm-path-check { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .62rem; font-weight: 800; flex: 0 0 auto; background: var(--bm-primary-soft); color: var(--bm-primary); }
.bm-path-icon.p2 ~ .bm-path-list .bm-path-check { background: var(--bm-secondary-soft); color: var(--bm-secondary); }
.bm-path-icon.p3 ~ .bm-path-list .bm-path-check { background: var(--bm-accent-soft); color: var(--bm-accent); }
.bm-path-foot { display: flex; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid var(--bm-border); font-size: .75rem; color: var(--bm-text-mute); }
.bm-path-foot b { color: var(--bm-text); font-size: .82rem; }
.bm-path-level { margin-right: auto; padding: 4px 10px; border-radius: 7px; font-weight: 700; background: var(--bm-success-soft); color: var(--bm-success); }
.bm-path-level.lvl-mid { background: var(--bm-accent-soft); color: var(--bm-accent); }

/* ===================== مدرسان ===================== */
.bm-instructor-card {
    background: var(--bm-surface); border: 1px solid var(--bm-border);
    border-radius: 20px; padding: 24px; box-shadow: var(--bm-shadow-md); text-align: center;
}
.bm-instructor-avatar {
    width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 14px; position: relative;
    overflow: hidden; background: linear-gradient(135deg, var(--bm-primary), var(--bm-primary-dark));
}
.bm-instructor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bm-instructor-online { position: absolute; bottom: 2px; left: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--bm-success); border: 3px solid var(--bm-surface); }
.bm-instructor-card h4 { margin: 0 0 3px; font-size: 1rem; font-weight: 700; }
.bm-instructor-role { margin: 0 0 14px; font-size: .78rem; color: var(--bm-text-mute); }
.bm-instructor-stats { display: flex; justify-content: center; gap: 18px; padding: 13px 0; border-top: 1px solid var(--bm-border); border-bottom: 1px solid var(--bm-border); margin-bottom: 14px; }
.bm-instructor-stats > div { text-align: center; }
.bm-instructor-stats strong { display: block; font-size: .95rem; font-weight: 800; }
.bm-instructor-stats .rating { color: var(--bm-accent); }
.bm-instructor-stats span { font-size: .66rem; color: var(--bm-text-mute); }
.bm-instructor-card .bm-btn { width: 100%; border: 1.5px solid var(--bm-primary); background: transparent; color: var(--bm-primary); }
.bm-instructor-card .bm-btn:hover { background: var(--bm-primary); color: #fff; }

/* ===================== نوار آمار ===================== */
.bm-stats-band-wrap { max-width: var(--bm-container); margin: 64px auto; padding: 0 32px; }
.bm-stats-band {
    border-radius: 28px; padding: 48px 40px; position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--bm-primary), var(--bm-primary-dark) 70%, #1E1B4B);
    box-shadow: var(--bm-shadow-xl);
}
.bm-stats-band .bm-blob-1 { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.07); top: -120px; right: -60px; }
.bm-stats-band .bm-blob-2 { position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(14,165,233,.20); bottom: -100px; left: 10%; }
.bm-stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; color: #fff; }
.bm-stats-grid > div + div { border-right: 1px solid rgba(255,255,255,.18); }
.bm-stats-grid strong { display: block; font-size: 2.7rem; font-weight: 800; letter-spacing: -1px; }
.bm-stats-grid span { font-size: .88rem; opacity: .85; margin-top: 4px; }

/* ===================== نظرات ===================== */
.bm-testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bm-testimonial { background: var(--bm-surface); border: 1px solid var(--bm-border); border-radius: 20px; padding: 26px; box-shadow: var(--bm-shadow-md); }
.bm-testimonial-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.bm-testimonial-quote { font-size: 2.6rem; line-height: .6; color: var(--bm-primary); font-weight: 800; }
.bm-testimonial-stars { display: flex; gap: 2px; color: var(--bm-accent); font-size: .88rem; }
.bm-testimonial p { margin: 0 0 20px; font-size: .9rem; line-height: 2; color: var(--bm-text); }
.bm-testimonial-author { display: flex; align-items: center; gap: 11px; }
.bm-testimonial-author .bm-avatar { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto; }
.bm-testimonial-author strong { display: block; font-size: .88rem; font-weight: 700; }
.bm-testimonial-author span { font-size: .72rem; color: var(--bm-text-mute); }

/* ===================== داستان موفقیت ===================== */
.bm-success-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.bm-success-featured {
    border-radius: 22px; padding: 30px; box-shadow: var(--bm-shadow-lg); color: #fff;
    display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden;
    background: linear-gradient(150deg, var(--bm-primary), var(--bm-primary-dark));
}
.bm-success-featured .bm-blob { position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.08); top: -60px; left: -40px; }
.bm-success-featured .bm-sf-body { position: relative; }
.bm-success-featured .bm-sf-tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: .72rem; font-weight: 700; margin-bottom: 18px; }
.bm-success-featured h3 { margin: 0 0 14px; font-size: 1.45rem; font-weight: 800; line-height: 1.5; color: #fff; }
.bm-success-featured p { margin: 0; font-size: .88rem; line-height: 2; opacity: .92; }
.bm-success-featured .bm-sf-foot { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); }
.bm-success-featured .bm-sf-avatar { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); flex: 0 0 auto; }
.bm-success-featured .bm-sf-name { font-size: .92rem; font-weight: 700; }
.bm-success-featured .bm-sf-role { font-size: .76rem; opacity: .8; }
.bm-success-featured .bm-sf-metric { margin-right: auto; text-align: left; }
.bm-success-featured .bm-sf-metric strong { display: block; font-size: 1.35rem; font-weight: 800; }
.bm-success-featured .bm-sf-metric span { font-size: .7rem; opacity: .8; }

.bm-success-card { background: var(--bm-surface); border: 1px solid var(--bm-border); border-radius: 22px; padding: 26px; box-shadow: var(--bm-shadow-md); display: flex; flex-direction: column; }
.bm-success-card-head { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.bm-success-card-head .bm-avatar { width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto; }
.bm-success-card-head strong { display: block; font-size: .9rem; font-weight: 700; }
.bm-success-card-head span { font-size: .72rem; color: var(--bm-text-mute); }
.bm-success-card p { margin: 0 0 18px; font-size: .84rem; line-height: 1.95; color: var(--bm-text-sub); }
.bm-success-card-foot { margin-top: auto; display: flex; gap: 20px; padding-top: 16px; border-top: 1px solid var(--bm-border); }
.bm-success-card-foot strong { display: block; font-size: 1.12rem; font-weight: 800; color: var(--bm-primary); }
.bm-success-card-foot .ok { color: var(--bm-success); }
.bm-success-card-foot span { font-size: .7rem; color: var(--bm-text-mute); }

/* ===================== سوالات متداول ===================== */
.bm-faq-wrap { max-width: 840px; margin: 0 auto; padding-inline: 20px; }
.bm-faq-list { display: flex; flex-direction: column; gap: 12px; }
.bm-faq-item { background: var(--bm-surface); border: 1px solid var(--bm-border); border-radius: 16px; box-shadow: var(--bm-shadow-sm); overflow: hidden; }
.bm-faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 22px; cursor: pointer; list-style: none; }
.bm-faq-q::-webkit-details-marker { display: none; }
.bm-faq-q span { font-size: .95rem; font-weight: 700; color: var(--bm-text); }
.bm-faq-icon { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; background: var(--bm-primary-soft); color: var(--bm-primary); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; transition: transform .2s; }
.bm-faq-item[open] .bm-faq-icon { transform: rotate(45deg); }
.bm-faq-a { padding: 0 22px 20px; font-size: .84rem; line-height: 2; color: var(--bm-text-sub); border-top: 1px solid var(--bm-border); padding-top: 16px; }

/* ===================== CTA ===================== */
.bm-cta-wrap { max-width: var(--bm-container); margin: 0 auto; padding: 24px 32px 72px; }
.bm-cta {
    border-radius: 28px; padding: 56px 48px; position: relative; overflow: hidden; text-align: center;
    background: linear-gradient(120deg, var(--bm-primary), var(--bm-primary-dark) 65%, #1E1B4B);
    box-shadow: var(--bm-shadow-xl);
}
.bm-cta .bm-blob-1 { position: absolute; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.08); top: -110px; right: 8%; }
.bm-cta .bm-blob-2 { position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(14,165,233,.22); bottom: -90px; left: 12%; }
.bm-cta-body { position: relative; color: #fff; }
.bm-cta-body h2 { margin: 0 0 14px; font-size: 2.4rem; font-weight: 800; letter-spacing: -1px; line-height: 1.35; color: #fff; }
.bm-cta-body p { margin: 0 auto 30px; max-width: 520px; font-size: 1rem; line-height: 1.9; opacity: .92; }
.bm-cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.bm-cta-actions .bm-btn-light { background: #fff; color: var(--bm-primary); box-shadow: 0 12px 26px rgba(0,0,0,.18); }
.bm-cta-actions .bm-btn-light:hover { background: #EEF0F6; }
.bm-cta-actions .bm-btn-ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.bm-cta-actions .bm-btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ===================== ریسپانسیو ===================== */
@media (max-width: 1024px) {
    .bm-hero-inner { grid-template-columns: 1fr; gap: 36px; }
    .bm-hero-visual { height: 400px; max-width: 540px; }
    .bm-cats-grid { grid-template-columns: repeat(3, 1fr); }
    .bm-courses-grid { grid-template-columns: repeat(2, 1fr); }
    .bm-paths-grid, .bm-testimonials-grid { grid-template-columns: 1fr; }
    .bm-success-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .bm-stats-band-wrap, .bm-cta-wrap { padding-inline: 20px; }
    .bm-stats-band { padding: 36px 24px; }
    .bm-cta { padding: 44px 24px; }
    .bm-hero-title { font-size: 1.85rem; letter-spacing: -.6px; overflow-wrap: break-word; }
    .bm-hero-sub { font-size: .98rem; }
    .bm-hero-search { flex-wrap: wrap; }
    .bm-hero-search-cat { border-left: none; padding-inline: 8px; }
    .bm-hero-search input { min-width: 0; flex: 1 1 140px; }
    .bm-hero-stats { gap: 14px; }
    .bm-hero-stats strong { font-size: 1.25rem; }
    .bm-hero-stats .bm-divider { height: 28px; }
    .bm-hero-inner { padding: 44px 0; }
    .bm-hero-stats { gap: 18px; flex-wrap: wrap; }
    .bm-hero-visual { display: none; }
    .bm-cats-grid { grid-template-columns: repeat(2, 1fr); }
    .bm-courses-grid { grid-template-columns: 1fr; }
    .bm-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
    .bm-stats-grid > div + div { border-right: none; }
    .bm-stats-grid strong { font-size: 2rem; }
    .bm-cta-body h2 { font-size: 1.7rem; }
}
