/* صفحه اصلی — بخش‌های داینامیک + اسکرول نرم بین بخش‌ها */

html.page-home-snap {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--novia-header-h) + 12px);
    scroll-snap-type: y proximity;
}

html.page-home-snap .home-snap-stop {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    scroll-margin-top: calc(var(--novia-header-h) + 12px);
    scroll-margin-bottom: clamp(24px, 4vh, 48px);
}

/* بخش‌های خیلی کوتاه — اسنپ اجباری ندارند، فقط در نزدیکی می‌ایستند */
html.page-home-snap .home-snap-stop--soft {
    scroll-snap-align: none;
    scroll-margin-top: 8px;
    scroll-margin-bottom: 8px;
}

@media (prefers-reduced-motion: reduce) {
    html.page-home-snap {
        scroll-behavior: auto;
        scroll-snap-type: none;
    }
}

.page-home {
    overflow-x: hidden;
}

/* فاصله‌گذاری یکدست — padding نویا-section روی صفحه اصلی از shell کنترل می‌شود */
.page-home .novia-section {
    padding: 0;
}

.page-home .home-section-shell.novia-section {
    padding-block: clamp(44px, 5vw, 64px);
}

.page-home .novia-section-header {
    margin-bottom: clamp(28px, 4vw, 44px);
}

.home-section-label {
    display: inline-block;
    padding: 6px 14px;
    background: var(--novia-bg-soft);
    color: var(--novia-primary);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.home-section-title {
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 16px;
    color: var(--novia-dark);
}

.home-section-lead {
    color: var(--novia-text-muted);
    margin-bottom: 20px;
    line-height: 1.9;
    max-width: 56ch;
}

/* قاب مشترک — خطوط کم‌رنگ و کنتراست */
.home-section-shell {
    padding: 44px 0;
    border-top: 1px solid rgba(15, 118, 110, 0.1);
    position: relative;
}

.home-section-shell::after {
    content: '';
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.14), transparent);
    pointer-events: none;
}

.home-section-frame {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: calc(var(--novia-radius-lg) + 4px);
    padding: clamp(24px, 4vw, 40px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 12px 40px rgba(15, 118, 110, 0.04);
}

.home-section-frame--glass {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.home-section-frame--dark {
    background: var(--novia-dark);
    border-color: rgba(255, 255, 255, 0.1);
    padding: 0;
    overflow: hidden;
}

.home-section-frame--flat {
    background: transparent;
    border: 1px dashed rgba(15, 118, 110, 0.18);
    box-shadow: none;
}

/* تم مخصوص هر بخش */
.home-section-shell--stats {
    background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
    padding: 28px 0;
}
.home-section-shell--stats .home-section-frame {
    background: white;
    border-color: rgba(8, 145, 178, 0.15);
}

.home-section-shell--about {
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 45%, #ecfeff 100%);
}
.home-section-shell--about .home-section-frame {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.home-section-shell--categories {
    background: #f0fdfa;
}
.home-section-shell--categories .home-section-frame {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(45, 212, 191, 0.2);
}

.home-section-shell--services {
    background: transparent;
    padding: 0;
}
.home-section-shell--services .home-section-frame {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

/* ═══ مهارت‌ها — Skills Showcase ═══ */
.skills-showcase {
    position: relative;
    padding: clamp(64px, 8vw, 88px) 0 clamp(56px, 6vw, 72px);
    overflow: hidden;
    background: #060d1a;
}

.skills-showcase::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(to bottom, transparent, #fff7ed);
    pointer-events: none;
    z-index: 2;
}

.skills-showcase__ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.skills-showcase__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: skill-orb-float 14s ease-in-out infinite;
}

.skills-showcase__orb--1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, #0d9488 0%, transparent 70%);
    top: -120px;
    right: -80px;
}

.skills-showcase__orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
    bottom: -100px;
    left: -60px;
    animation-delay: -5s;
}

.skills-showcase__orb--3 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
    top: 40%;
    left: 45%;
    opacity: 0.25;
    animation-delay: -9s;
}

.skills-showcase__mesh {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
}

@keyframes skill-orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -15px) scale(1.05); }
    66% { transform: translate(-15px, 10px) scale(0.95); }
}

.skills-showcase__inner {
    position: relative;
    z-index: 1;
}

/* هدر */
.skills-showcase__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.skills-showcase__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 14px;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.25);
    border-radius: 999px;
    color: #5eead4;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.skills-showcase__label-dot {
    width: 8px;
    height: 8px;
    background: #2dd4bf;
    border-radius: 50%;
    box-shadow: 0 0 12px #2dd4bf;
    animation: skill-pulse 2s ease-in-out infinite;
}

@keyframes skill-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.skills-showcase__title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.3;
    background: linear-gradient(135deg, #ffffff 0%, #a7f3d0 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: skill-title-shimmer 6s linear infinite;
}

@keyframes skill-title-shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.skills-showcase__subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.05rem;
    line-height: 1.75;
}

.skills-showcase__title-deco {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.skills-showcase__title-deco span {
    display: block;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #22d3ee, transparent);
}

.skills-showcase__title-deco span:nth-child(1) { width: 40px; opacity: 0.4; }
.skills-showcase__title-deco span:nth-child(2) { width: 80px; }
.skills-showcase__title-deco span:nth-child(3) { width: 40px; opacity: 0.4; }

/* بنتو گرید — ارتفاع ردیف‌ها ثابت تا کارت ۱ کش نیاید */
.skills-bento {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: 160px 160px auto;
    gap: 16px;
    align-items: stretch;
}

.skill-tile {
    position: relative;
    min-height: 0;
    height: 100%;
    border-radius: 24px;
    text-decoration: none !important;
    color: white !important;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.3s,
                box-shadow 0.4s;
    animation: skill-tile-in 0.7s ease backwards;
    animation-delay: calc(var(--skill-delay, 0) * 0.1s + 0.15s);
}

@keyframes skill-tile-in {
    from { opacity: 0; transform: translateY(28px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* RTL: ستون ۱ = راست — کارت بزرگ (۲ ردیف = ۳۳۶px) */
.skill-tile--pos-1 {
    grid-column: 1;
    grid-row: 1 / 3;
    height: 100%;
    max-height: 336px;
}

.skill-tile--pos-2 {
    grid-column: 2;
    grid-row: 1;
}

.skill-tile--pos-3 {
    grid-column: 2;
    grid-row: 2;
}

.skill-tile--pos-4 {
    grid-column: 1 / -1;
    grid-row: 3;
    height: auto;
    min-height: 148px;
    max-height: 172px;
}

.skill-tile--pos-4 .skill-tile__body {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    align-content: center;
    gap: 4px 20px;
    padding: 20px 28px;
    justify-content: stretch;
}

.skill-tile--pos-4 .skill-tile__icon-ring {
    grid-column: 1;
    grid-row: 1 / 3;
    margin-bottom: 0;
    align-self: center;
}

.skill-tile--pos-4 .skill-tile__badge {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
    align-self: end;
}

.skill-tile--pos-4 .skill-tile__name {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    font-size: 1.15rem;
}

.skill-tile--pos-4 .skill-tile__desc {
    display: none;
}

.skill-tile--pos-4 .skill-tile__cta {
    grid-column: 3;
    grid-row: 1 / 3;
    margin: 0;
    align-self: center;
    white-space: nowrap;
}

.skill-tile:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.06);
}

.skill-tile__index {
    position: absolute;
    top: 12px;
    inset-inline-end: 20px;
    inset-inline-start: auto;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.04);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.skill-tile__border-glow {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s;
    background: var(--skill-accent-gradient, linear-gradient(135deg, #0d9488, #2dd4bf));
    z-index: 0;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    padding: 1px;
}

.skill-tile:hover .skill-tile__border-glow {
    opacity: 1;
}

.skill-tile__shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.06) 50%,
        transparent 60%
    );
    transform: translateX(-100%) rotate(25deg);
    transition: transform 0.7s ease;
    pointer-events: none;
    z-index: 2;
}

.skill-tile:hover .skill-tile__shine {
    transform: translateX(50%) rotate(25deg);
}

.skill-tile__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s ease;
}

.skill-tile:hover .skill-tile__photo {
    transform: scale(1.06);
}

.skill-tile__photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(6, 13, 26, 0.3) 0%,
        rgba(6, 13, 26, 0.85) 100%
    );
    z-index: 1;
}

.skill-tile__body {
    position: relative;
    z-index: 3;
    padding: 28px;
    height: 100%;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.skill-tile__icon-ring {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--skill-accent-bg, rgba(45, 212, 191, 0.15));
    border: 1px solid var(--skill-accent-border, rgba(45, 212, 191, 0.3));
    margin-bottom: 16px;
    box-shadow: 0 8px 24px var(--skill-accent-shadow, rgba(13, 148, 136, 0.2));
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-tile:hover .skill-tile__icon-ring {
    transform: scale(1.1) rotate(-4deg);
}

.skill-tile__icon {
    font-size: 1.6rem;
    line-height: 1;
}

.skill-tile__badge {
    display: inline-block;
    width: fit-content;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 10px;
    backdrop-filter: blur(8px);
}

.skill-tile__name {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.35;
    color: white;
}

.skill-tile--pos-1 .skill-tile__name {
    font-size: 1.5rem;
}

.skill-tile__desc {
    margin: 0 0 18px;
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.65);
}

.skill-tile__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--skill-accent, #2dd4bf);
    margin-top: auto;
    transition: gap 0.25s;
}

.skill-tile__cta svg {
    transition: transform 0.25s;
}

.skill-tile:hover .skill-tile__cta {
    gap: 12px;
}

.skill-tile:hover .skill-tile__cta svg {
    transform: translateX(-4px);
}

/* تم‌های رنگی */
.skill-tile--teal {
    --skill-accent: #22d3ee;
    --skill-accent-bg: rgba(34, 211, 238, 0.15);
    --skill-accent-border: rgba(34, 211, 238, 0.35);
    --skill-accent-shadow: rgba(8, 145, 178, 0.25);
    --skill-accent-gradient: linear-gradient(135deg, #0891b2, #22d3ee);
}

.skill-tile--purple {
    --skill-accent: #c4b5fd;
    --skill-accent-bg: rgba(167, 139, 250, 0.15);
    --skill-accent-border: rgba(167, 139, 250, 0.35);
    --skill-accent-shadow: rgba(124, 58, 237, 0.25);
    --skill-accent-gradient: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.skill-tile--coral {
    --skill-accent: #fdba74;
    --skill-accent-bg: rgba(251, 146, 60, 0.15);
    --skill-accent-border: rgba(251, 146, 60, 0.35);
    --skill-accent-shadow: rgba(249, 115, 22, 0.25);
    --skill-accent-gradient: linear-gradient(135deg, #f97316, #fb923c);
}

.skill-tile--gold {
    --skill-accent: #fcd34d;
    --skill-accent-bg: rgba(251, 191, 36, 0.15);
    --skill-accent-border: rgba(251, 191, 36, 0.35);
    --skill-accent-shadow: rgba(217, 119, 6, 0.25);
    --skill-accent-gradient: linear-gradient(135deg, #d97706, #fbbf24);
}

.skill-tile--blue {
    --skill-accent: #7dd3fc;
    --skill-accent-bg: rgba(56, 189, 248, 0.15);
    --skill-accent-border: rgba(56, 189, 248, 0.35);
    --skill-accent-shadow: rgba(8, 145, 178, 0.25);
    --skill-accent-gradient: linear-gradient(135deg, #0891b2, #38bdf8);
}

.skill-tile--custom {
    --skill-accent: #2dd4bf;
    --skill-accent-bg: rgba(45, 212, 191, 0.15);
    --skill-accent-border: rgba(45, 212, 191, 0.35);
    --skill-accent-shadow: rgba(13, 148, 136, 0.25);
    --skill-accent-gradient: linear-gradient(135deg, #0d9488, #0891b2, #2dd4bf);
}

/* مارکی */
.skills-showcase__marquee {
    margin-top: 48px;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}

.skills-showcase__marquee-track {
    display: flex;
    gap: 32px;
    width: max-content;
    animation: skill-marquee 28s linear infinite;
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

@keyframes skill-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.skills-showcase__empty {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 40px;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .skills-bento {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 168px 168px auto;
        gap: 14px;
    }

    .skill-tile--pos-1 {
        grid-column: 1 / -1;
        grid-row: 1;
        height: 200px;
        max-height: 200px;
        min-height: 0;
    }

    .skill-tile--pos-2 {
        grid-column: 1;
        grid-row: 2;
        min-height: 0;
    }

    .skill-tile--pos-3 {
        grid-column: 2;
        grid-row: 2;
        min-height: 0;
    }

    .skill-tile--pos-4 {
        grid-column: 1 / -1;
        grid-row: 3;
        min-height: 132px;
        max-height: 160px;
        height: auto;
    }

    .skill-tile--pos-4 .skill-tile__desc {
        display: block;
        grid-column: 2;
        grid-row: 3;
        margin: 0;
        font-size: 0.85rem;
    }

    .skill-tile--pos-4 .skill-tile__body {
        grid-template-rows: auto auto auto;
    }

    .skill-tile--pos-4 .skill-tile__cta {
        grid-row: 1 / 4;
    }
}

@media (max-width: 640px) {
    .skills-showcase {
        padding: 72px 0 56px;
    }

    .skills-bento {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 8px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .skills-bento::-webkit-scrollbar {
        display: none;
    }

    .skill-tile,
    .skill-tile--pos-1,
    .skill-tile--pos-2,
    .skill-tile--pos-3,
    .skill-tile--pos-4 {
        flex: 0 0 min(85vw, 300px);
        scroll-snap-align: start;
        min-height: 260px;
    }

    .skills-showcase__marquee {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skills-showcase__orb,
    .skills-showcase__title,
    .skills-showcase__marquee-track,
    .skill-tile {
        animation: none !important;
    }

    .skill-tile__shine {
        display: none;
    }
}

/* بنر صفحه اصلی */
.home-section--banners .banner-slider {
    padding: 8px 0 0;
    background: #fff;
}

.home-section--banners .home-snap-stop {
    scroll-margin-top: calc(var(--novia-header-h) + 4px);
}

.home-section--banners .hero-novia {
    margin-bottom: 0;
}

/* تم مخصوص هر بخش — shell themes */

.home-section-shell--features {
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}
.home-section-shell--features .home-section-frame {
    border-color: rgba(249, 115, 22, 0.14);
}
.home-section-shell--features .feature-card {
    border-color: rgba(249, 115, 22, 0.12);
}

.home-section-shell--courses {
    background: #ffffff;
}
.home-section-shell--courses-featured {
    background: linear-gradient(180deg, #ecfeff 0%, #ffffff 100%);
}
.home-section-shell--courses-featured .home-section-frame {
    border-color: rgba(8, 145, 178, 0.16);
}
.home-section-shell--courses-online {
    background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
}
.home-section-shell--courses-online .home-section-frame {
    border-color: rgba(8, 145, 178, 0.18);
}
.home-section-shell--courses-in_person {
    background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 100%);
}
.home-section-shell--courses-in_person .home-section-frame {
    border-color: rgba(109, 40, 217, 0.14);
}
.home-section-shell--courses-private {
    background: linear-gradient(180deg, #fff1f2 0%, #ffffff 100%);
}
.home-section-shell--courses-private .home-section-frame {
    border-color: rgba(225, 29, 72, 0.12);
}
.home-section-shell--kind-workshop:not(.home-section-shell--courses-compact) .home-section-frame {
    background: linear-gradient(165deg, #f0fdfa 0%, #ffffff 55%);
}
.home-section-shell--kind-event:not(.home-section-shell--courses-compact) .home-section-frame {
    background: linear-gradient(165deg, #eff6ff 0%, #ffffff 55%);
}
.home-section-shell--kind-gathering:not(.home-section-shell--courses-compact) .home-section-frame {
    background: linear-gradient(165deg, #fffbeb 0%, #ffffff 55%);
    border-color: #fde68a;
}
.home-section-shell--courses-all .home-section-frame {
    border-color: rgba(15, 118, 110, 0.12);
}

.home-section-shell--blog {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.home-section-shell--blog .home-section-frame {
    border-color: rgba(71, 85, 105, 0.12);
}
.home-section-shell--blog .blog-card {
    border: 1px solid rgba(71, 85, 105, 0.1);
}

.home-section-shell--testimonials {
    background: var(--novia-gradient);
    border-top-color: rgba(255, 255, 255, 0.15);
}
.home-section-shell--testimonials .novia-section-header h2,
.home-section-shell--testimonials .novia-section-header p {
    color: white;
}
.home-section-shell--testimonials .novia-badge {
    background: rgba(255, 255, 255, 0.18);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.home-section-shell--contact {
    background: linear-gradient(135deg, #0f172a 0%, #134e4a 55%, #0891b2 100%);
    color: #fff;
}
.home-section-shell--contact .home-section-frame {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.home-section-shell--cta {
    background: #0f172a;
    border-top-color: rgba(255, 255, 255, 0.08);
}
.home-section-shell--cta .cta-section {
    background: transparent;
    margin: 0;
    border-radius: 0;
}

.home-section-shell--custom-banner {
    background: #f8fafc;
}

/* استاد در کارت دوره */
.course-preview .course-instructor {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}
.course-preview .course-instructor--compact {
    gap: 8px;
    font-size: 0.78rem;
    color: var(--novia-text-muted);
}
.course-preview .course-instructor--compact .instructor-title {
    display: none;
}
.course-preview .instructor-avatar,
.course-preview .instructor-avatar--img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(8, 145, 178, 0.18);
    font-size: 0.72rem;
}
.course-preview .instructor-avatar--img { object-fit: cover; }


/* ══════════ Hero fallback (وقتی بنر نیست) — نسخه بازطراحی‌شده ══════════ */
.hero-novia {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #134e4a 0%, #0f766e 42%, #0d9488 100%);
    padding: clamp(56px, 9vw, 96px) 0 clamp(48px, 7vw, 80px);
}

.hero-novia__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-novia__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
}

.hero-novia__blob--1 {
    width: 420px;
    height: 420px;
    top: -140px;
    inset-inline-end: -80px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.5), transparent 70%);
}

.hero-novia__blob--2 {
    width: 380px;
    height: 380px;
    bottom: -160px;
    inset-inline-start: -100px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.35), transparent 70%);
}

.hero-novia__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 70%);
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 70%);
}

.hero-novia__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(32px, 6vw, 56px);
    align-items: center;
}

@media (min-width: 992px) {
    .hero-novia__inner {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    }
}

.hero-content { color: white; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 22px;
    color: #a5f3fc;
}

.hero-title {
    font-size: clamp(1.9rem, 4.6vw, 3.15rem);
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}

.hero-title span {
    background: linear-gradient(90deg, #5eead4, #99f6e4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 540px;
    margin-bottom: 30px;
    line-height: 1.9;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--novia-primary-dark);
    padding: 15px 30px;
    border-radius: 14px;
    font-weight: 700;
    font-family: inherit;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.hero-btn-white:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,0.25); color: var(--novia-primary-dark); }

.hero-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    color: white;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    font-family: inherit;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.hero-btn-outline:hover { background: rgba(255,255,255,0.16); color: white; transform: translateY(-2px); }

.hero-stats-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stats-inline__item strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
}

.hero-stats-inline__item span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
}

/* بصری هیرو */
.hero-visual { position: relative; z-index: 1; }

.hero-visual__card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    padding: 8px 28px 28px;
    box-shadow: 0 24px 60px rgba(2, 20, 35, 0.35);
}

.hero-visual__card-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 4px 18px;
}

.hero-visual__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}
.hero-visual__dot:first-child { background: #fb7185; }
.hero-visual__dot:nth-child(2) { background: #fbbf24; }
.hero-visual__dot:nth-child(3) { background: #34d399; }

.hero-visual__card-head-label {
    margin-inline-start: auto;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
}

.hero-card-stack { width: 100%; }

.hero-topic {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 10px;
    border-radius: 14px;
    color: white;
    transition: background 0.2s;
}
.hero-topic:hover { background: rgba(255, 255, 255, 0.06); }
.hero-topic:not(:last-child) { margin-bottom: 4px; }

.hero-topic strong { font-size: 0.95rem; }

.hero-topic small {
    opacity: 0.72;
    font-size: 0.82em;
}

.hero-topic-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.28), rgba(34, 211, 238, 0.06));
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: #67e8f9;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.hero-visual__badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--novia-dark);
    padding: 12px 16px;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(2, 20, 35, 0.28);
    font-size: 0.8rem;
    z-index: 2;
}

.hero-visual__badge .novia-icon { color: var(--novia-primary); font-size: 1.1rem; }
.hero-visual__badge strong { display: block; font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.hero-visual__badge span { color: var(--novia-text-muted); font-size: 0.74rem; }

.hero-visual__badge--a { top: -18px; inset-inline-start: -18px; }
.hero-visual__badge--b { bottom: -18px; inset-inline-end: -18px; }

@media (max-width: 991px) {
    .hero-visual__badge { position: static; margin-top: 12px; display: inline-flex; }
    .hero-visual__badge--a { margin-inline-end: 10px; }
}

/* ══════════ نوار اعتماد زیر بنر ══════════ */
.trust-strip {
    background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(15, 118, 110, 0.08);
    padding: 18px 0;
}

.trust-strip__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.trust-strip__item {
    flex: 1 1 140px;
    max-width: 200px;
    text-align: center;
    padding: 10px 6px;
}

.trust-strip__item strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--novia-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-strip__item span {
    font-size: 0.76rem;
    color: var(--novia-text-muted);
    font-weight: 600;
}

@media (max-width: 640px) {
    .trust-strip { padding: 12px 0; }
    .trust-strip__row { gap: 4px; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
    .trust-strip__row::-webkit-scrollbar { display: none; }
    .trust-strip__item { flex: 0 0 auto; min-width: 88px; padding: 6px 10px; }
    .trust-strip__item strong { font-size: 1.05rem; }
    .trust-strip__item span { font-size: 0.68rem; }
}

/* آمار */
.stats-bar {
    background: transparent;
    border-radius: 0;
    margin-top: 0;
    position: relative;
    z-index: 1;
    padding: 0;
    box-shadow: none;
}
.stat-item {
    text-align: center;
    padding: 22px 16px;
    background: white;
    border: 1px solid var(--novia-border);
    border-radius: 18px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-item:hover { transform: translateY(-4px); box-shadow: var(--novia-shadow); }
.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--novia-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { color: var(--novia-text-muted); font-size: 0.95rem; margin-top: 4px; }
.stats-bar__row { row-gap: 16px; }
.stats-bar__row > [class*="col-"] { padding: 0 8px; }

/* درباره ما — خلاصه صفحه اصلی */
.about-spotlight {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: clamp(28px, 4vw, 48px);
    align-items: center;
    padding: clamp(28px, 4vw, 40px);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(8, 145, 178, 0.14);
    box-shadow: 0 24px 60px rgba(8, 145, 178, 0.1);
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.about-spotlight__glow {
    position: absolute;
    top: -80px;
    left: -60px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.about-spotlight__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.1);
    color: var(--novia-primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.about-spotlight__title {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.35;
    color: var(--novia-dark);
}

.about-spotlight__lead {
    margin: 0 0 22px;
    color: var(--novia-text-muted);
    line-height: 1.85;
    font-size: 1.02rem;
}

.about-spotlight__highlights {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.about-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(8, 145, 178, 0.08), rgba(255, 255, 255, 0.6));
    border: 1px solid rgba(8, 145, 178, 0.12);
    font-weight: 600;
    color: var(--novia-text);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-highlight:hover {
    transform: translateX(-4px);
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.12);
}

.about-highlight__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--novia-gradient);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    flex-shrink: 0;
}

.about-spotlight__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--novia-gradient);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(8, 145, 178, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-spotlight__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(8, 145, 178, 0.35);
    color: #fff;
}

.about-spotlight__visual {
    position: relative;
}

.about-spotlight__frame {
    border-radius: 22px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
    transform: rotate(-2deg);
}

.about-spotlight__image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.about-spotlight__placeholder {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--novia-gradient-soft);
    font-size: 4rem;
}

.about-spotlight__mission {
    position: absolute;
    bottom: -12px;
    right: -8px;
    left: 24px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(8, 145, 178, 0.15);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.about-spotlight__mission strong {
    display: block;
    margin-bottom: 6px;
    color: var(--novia-dark);
    font-size: 0.95rem;
}

.about-spotlight__mission p {
    margin: 0;
    color: var(--novia-text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* تماس — خلاصه صفحه اصلی */
.contact-spotlight {
    display: grid;
    gap: 28px;
    padding: clamp(28px, 4vw, 40px);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.contact-spotlight__label {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.contact-spotlight__title {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.35;
}

.contact-spotlight__lead {
    margin: 0;
    opacity: 0.88;
    line-height: 1.8;
    max-width: 52ch;
}

.contact-spotlight__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.32);
    color: #fff;
}

.contact-card--static {
    cursor: default;
}

.contact-card__icon {
    font-size: 1.4rem;
}

.contact-card__label {
    font-size: 0.78rem;
    opacity: 0.75;
    font-weight: 700;
}

.contact-card__value {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    word-break: break-word;
}

.contact-spotlight__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.contact-spotlight__social .novia-contact-links--contact {
    gap: 10px;
}

.contact-spotlight__social .novia-contact-link {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
}

.contact-spotlight__social--legacy {
    display: flex;
    gap: 10px;
}

.contact-spotlight__social--legacy a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    text-decoration: none;
    font-size: 1.1rem;
}

.contact-spotlight__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    background: #fff;
    color: var(--novia-primary-dark);
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease;
}

.contact-spotlight__cta:hover {
    transform: translateY(-2px);
    color: var(--novia-primary-dark);
}

/* درباره ما — استایل‌های قدیمی (صفحه کامل) */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-list { list-style: none; padding: 0; margin: 24px 0; }
.about-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--novia-text);
}
.about-list li::before { content: '✓'; color: var(--novia-primary); font-weight: 800; }
.about-visual {
    background: var(--novia-gradient-soft);
    border-radius: var(--novia-radius-lg);
    padding: 40px;
    text-align: center;
    border: 1px solid var(--novia-border);
}
.about-visual-icon { font-size: 5rem; margin-bottom: 16px; }

.about-visual__image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid var(--novia-border);
    box-shadow: 0 12px 32px rgba(8, 145, 178, 0.12);
}

.about-list--summary {
    margin-bottom: 20px;
}

.about-visual--summary .about-visual__image {
    max-height: 220px;
}

.about-visual__teaser {
    color: var(--novia-text-muted);
    line-height: 1.8;
    margin: 0;
}

.home-contact-band--summary {
    align-items: center;
}

.about-visual:has(.about-visual__image) {
    padding: 24px;
}

.about-visual:has(.about-visual__image) h3 {
    margin-top: 0;
}

/* دسته‌بندی */
.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: white;
    border: 2px solid var(--novia-border);
    border-radius: 999px;
    font-weight: 600;
    color: var(--novia-text);
    text-decoration: none;
    transition: all 0.2s;
}
.category-pill:hover {
    border-color: var(--novia-primary);
    background: var(--novia-bg-soft);
    color: var(--novia-primary);
}
.category-pill__img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.categories-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* کارت خدمات */
.home-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.home-service-card {
    position: relative;
    border-radius: var(--novia-radius-lg);
    overflow: hidden;
    min-height: 220px;
    text-decoration: none;
    color: white;
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--novia-border);
}
.home-service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--novia-shadow-lg);
    color: white;
}
.home-service-card__img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}
.home-service-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 60%);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.home-service-card__body {
    padding: 28px 24px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.home-service-card__badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    width: fit-content;
}
.home-service-card__icon { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.home-service-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.home-service-card p { margin: 0 0 12px; font-size: 0.9rem; opacity: 0.9; line-height: 1.6; }
.home-service-card__action { font-size: 0.85rem; font-weight: 700; opacity: 0.9; }

.home-service-card--teal { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.home-service-card--purple { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.home-service-card--coral { background: linear-gradient(135deg, #f97316, #fb923c); }
.home-service-card--gold { background: linear-gradient(135deg, #d97706, #fbbf24); }
.home-service-card--blue { background: linear-gradient(135deg, #0891b2, #38bdf8); }
.home-service-card--custom { background: var(--novia-gradient); }

/* ویژگی‌ها */
.feature-card {
    background: white;
    border-radius: var(--novia-radius-lg);
    padding: 36px 28px;
    text-align: center;
    border: 1px solid var(--novia-border);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--novia-shadow-lg);
}
.feature-icon {
    width: 72px;
    height: 72px;
    background: var(--novia-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}
.feature-card h3 { margin: 0 0 12px; font-size: 1.15rem; color: var(--novia-dark); }
.feature-card p { margin: 0; color: var(--novia-text-muted); font-size: 0.95rem; }

/* کارت دوره */
.course-preview {
    background: white;
    border-radius: var(--novia-radius-lg);
    overflow: hidden;
    box-shadow: var(--novia-shadow);
    border: 1px solid var(--novia-border);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.course-preview:hover { transform: translateY(-6px); box-shadow: var(--novia-shadow-lg); }
.course-preview__link { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; }
.course-preview-img {
    height: 148px;
    background: var(--novia-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.course-preview-img__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.35) 100%);
    z-index: 0;
    pointer-events: none;
}

.course-preview-img__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.95);
}
.course-preview-img__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform 0.4s ease;
}
.course-preview:hover .course-preview-img__photo { transform: scale(1.06); }
.course-preview-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}
.course-preview-tag .novia-icon { font-size: 0.7rem; }
.course-preview-tag--soon {
    top: auto;
    bottom: 14px;
    right: 14px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}
.course-preview-tag--finished {
    top: auto;
    bottom: 14px;
    right: 14px;
    background: linear-gradient(135deg, #94a3b8, #64748b);
}
.course-preview-tag--installment {
    top: 14px;
    left: 14px;
    right: auto;
    background: linear-gradient(135deg, #0891b2, #14b8a6);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.35);
}
.course-preview-price__main {
    display: block;
    line-height: 1.2;
}
.course-preview-price__sub {
    display: block;
    margin-top: 2px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.3;
}
.course-preview-btn--soon {
    pointer-events: none;
    color: #b45309 !important;
    border-color: #fde68a !important;
    background: #fffbeb !important;
}
.course-preview-delivery {
    position: absolute;
    bottom: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.95);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    z-index: 1;
}
.course-preview-body { padding: 14px 16px 10px; display: flex; flex-direction: column; flex: 1; gap: 0; }
.course-preview-category {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--novia-primary);
    background: var(--novia-gradient-soft);
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 6px;
    width: fit-content;
}
.course-preview-body h3 {
    margin: 0 0 8px;
    font-size: 0.96rem;
    color: var(--novia-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.course-preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 0 8px;
    max-height: 26px;
    overflow: hidden;
}
.course-preview-label-tag {
    --tag-color: #0891b2;
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: linear-gradient(
        135deg,
        var(--tag-color) 0%,
        color-mix(in srgb, var(--tag-color) 72%, #0f172a) 100%
    );
    box-shadow:
        0 2px 8px color-mix(in srgb, var(--tag-color) 38%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    text-shadow: 0 1px 1px rgba(15, 23, 42, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.course-preview:hover .course-preview-label-tag {
    transform: translateY(-1px);
}
.course-preview-label-tag--p0 { --tag-color: #06b6d4; }
.course-preview-label-tag--p1 { --tag-color: #8b5cf6; }
.course-preview-label-tag--p2 { --tag-color: #f43f5e; }
.course-preview-label-tag--p3 { --tag-color: #f59e0b; }
.course-preview-label-tag--p4 { --tag-color: #10b981; }
.course-preview-label-tag--p5 { --tag-color: #6366f1; }
.course-preview-label-tag--p0 {
    box-shadow: 0 3px 12px rgba(6, 182, 212, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.course-preview-label-tag--p1 {
    box-shadow: 0 3px 12px rgba(139, 92, 246, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.course-preview-label-tag--p2 {
    box-shadow: 0 3px 12px rgba(244, 63, 94, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.course-preview-label-tag--p3 {
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.course-preview-label-tag--p4 {
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.course-preview-label-tag--p5 {
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.course-preview-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--novia-dark);
}
.course-preview-rating .rating-stars { color: #f59e0b; font-size: 0.82rem; letter-spacing: 1px; }
.course-preview-schedule {
    margin: 0 0 8px;
    padding: 7px 10px;
    background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
    border: 1px solid #99f6e4;
    border-radius: 10px;
    color: #0f766e;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.5;
}

.course-preview-event {
    color: #0f766e;
    font-weight: 600;
}

.course-preview-meta { display: flex; gap: 10px; color: var(--novia-text-muted); font-size: 0.76rem; margin-bottom: 8px; flex-wrap: wrap; }
.course-preview-instructor {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    color: var(--novia-text-muted);
}
.course-preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding: 10px 16px 14px;
    border-top: 1px dashed var(--novia-border);
}
.course-preview-footer .novia-btn {
    text-decoration: none;
}
.course-preview-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--novia-primary-dark);
    white-space: nowrap;
}
.course-preview-price small { font-size: 0.7rem; font-weight: 600; color: var(--novia-text-muted); }
.course-preview-footer .novia-btn {
    padding: 7px 14px;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}
.course-preview-btn--enroll {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 42%, #f97316 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.38);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.course-preview-btn--enroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(234, 88, 12, 0.45);
    color: #fff;
}
.course-preview-btn--owned {
    background: #fff;
    color: var(--novia-primary-dark);
    border: 2px solid rgba(13, 148, 136, 0.35);
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.08);
}
.course-preview-btn--pay {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.32);
}
.course-preview-btn--pending {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.32);
}

/* وبلاگ */
.blog-card__image-link { display: block; }
.blog-card__image {
    width: 100%; height: 180px; object-fit: cover; display: block;
}
.blog-card__image--placeholder {
    display: flex; align-items: center; justify-content: center;
    background: var(--novia-gradient); font-size: 3rem; color: white;
}
.blog-card__title { margin: 12px 0; font-size: 1.05rem; }
.blog-card__title a { color: inherit; text-decoration: none; }

/* نظرات */
.testimonial-card {
    position: relative;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--novia-radius-lg);
    padding: 30px 26px 26px;
    color: white;
    height: 100%;
    transition: transform 0.25s, background 0.25s;
}
.testimonial-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.16); }
.testimonial-card__quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    color: #a5f3fc;
    font-size: 0.95rem;
    margin-bottom: 14px;
}
.testimonial-stars { color: #fbbf24; font-size: 0.78rem; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-text { font-style: italic; opacity: 0.92; margin-bottom: 22px; line-height: 1.85; }
.testimonial-footer { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}
.testimonial-author { font-weight: 700; }
.testimonial-role { font-size: 0.85rem; opacity: 0.75; }

.testimonial-course {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #99f6e4;
    text-decoration: none;
    opacity: 0.95;
}

.testimonial-course:hover {
    color: #fff;
    text-decoration: underline;
}

.testimonials-empty {
    margin: 0;
    padding: 24px 16px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.85;
}

/* تماس */
.home-contact-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 40px;
    align-items: start;
}

.home-contact-band__copy .home-section-lead {
    margin-top: 4px;
}

.home-contact-band__actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

.home-contact-fact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--novia-text);
    text-decoration: none;
    border-bottom: 1px solid var(--novia-border);
}
.home-contact-fact:last-child { border-bottom: none; }
.home-contact-fact__icon { font-size: 1.2rem; }
.home-contact-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.home-contact-social a {
    padding: 8px 16px;
    background: var(--novia-bg-soft);
    border-radius: 999px;
    text-decoration: none;
    color: var(--novia-primary-dark);
    font-size: 0.85rem;
    font-weight: 600;
}

/* CTA */
.cta-section {
    background: var(--novia-dark);
    color: white;
    text-align: center;
    padding: 80px 20px;
    border-radius: var(--novia-radius-lg);
}
.cta-section h2 { font-size: 2rem; margin: 0 0 16px; }
.cta-section p { opacity: 0.85; margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* بنر سفارشی */
.home-custom-banner {
    display: block;
    border-radius: var(--novia-radius-lg);
    overflow: hidden;
    box-shadow: var(--novia-shadow);
}
.home-custom-banner img { width: 100%; display: block; }

/* تم‌ها */
.home-theme--gradient .novia-section-header h2,
.home-theme--gradient .novia-section-header p { color: white; }
.home-theme--gradient .novia-badge { background: rgba(255,255,255,0.2); color: white; }

@media (max-width: 991px) {
    .page-home .home-section-shell.novia-section {
        padding-block: 36px;
    }

    .hero-visual { margin-top: 8px; }
    .hero-stats-inline { gap: 20px; }
    .about-spotlight {
        grid-template-columns: 1fr;
        padding: 22px 18px;
    }
    .about-spotlight__frame { transform: none; }
    .about-spotlight__mission {
        position: static;
        margin-top: 14px;
        right: auto;
        left: auto;
    }
    .contact-spotlight {
        padding: 22px 18px;
    }
    .contact-spotlight__footer {
        flex-direction: column;
        align-items: stretch;
    }
    .contact-spotlight__cta {
        justify-content: center;
    }
    .about-grid { grid-template-columns: 1fr; }
    .home-contact-band { grid-template-columns: 1fr; padding: 28px 20px; }
    .stats-bar { margin-top: 0; border-radius: 0; padding: 28px 0; }
    .stats-bar__row > [class*="col-"] { flex: 0 0 50%; max-width: 50%; }
    .cta-section { padding: 48px 20px; }
    .cta-section h2 { font-size: 1.45rem; }
}

@media (max-width: 576px) {
    .stat-num { font-size: 1.65rem; }
}

/* هدر فشرده — بخش اصلی دوره‌ها (بلافاصله بعد از بنر) */
.courses-compact-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.courses-compact-head__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--novia-dark, #111827);
    line-height: 1.3;
}

.courses-compact-head__link {
    flex-shrink: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--novia-primary, #0f766e);
    text-decoration: none;
    white-space: nowrap;
}

.courses-compact-head__link:hover {
    text-decoration: underline;
}

.page-home .home-section--banners + .home-section--courses .home-section-shell--courses-compact,
.page-home .home-section-shell--courses-compact {
    padding-block: 10px 20px;
    position: relative;
    isolation: isolate;
}

.page-home .home-section-shell--courses-compact::before {
    content: '';
    position: absolute;
    inset: 6% 3% 10%;
    border-radius: 28px;
    pointer-events: none;
    z-index: 0;
}

.page-home .home-section-shell--courses-compact .container {
    position: relative;
    z-index: 1;
}

.page-home .home-section-shell--courses-compact.home-section-shell--kind-course::before {
    background: radial-gradient(ellipse 85% 75% at 50% 42%, rgba(8, 145, 178, 0.17) 0%, rgba(45, 212, 191, 0.07) 42%, transparent 72%);
}

.page-home .home-section-shell--courses-compact.home-section-shell--kind-gathering::before {
    background: radial-gradient(ellipse 85% 75% at 50% 42%, rgba(245, 158, 11, 0.2) 0%, rgba(251, 191, 36, 0.08) 42%, transparent 72%);
}

.page-home .home-section-shell--courses-compact.home-section-shell--kind-workshop::before {
    background: radial-gradient(ellipse 85% 75% at 50% 42%, rgba(16, 185, 129, 0.18) 0%, rgba(52, 211, 153, 0.07) 42%, transparent 72%);
}

.page-home .home-section-shell--courses-compact.home-section-shell--kind-event::before {
    background: radial-gradient(ellipse 85% 75% at 50% 42%, rgba(59, 130, 246, 0.18) 0%, rgba(96, 165, 250, 0.08) 42%, transparent 72%);
}

.page-home .home-section-shell--courses-compact .home-section-frame {
    padding-top: 12px;
    padding-bottom: 12px;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: none;
}

.page-home .home-section-shell--courses-compact.home-section-shell--kind-course .home-section-frame {
    box-shadow:
        0 0 0 1px rgba(8, 145, 178, 0.1),
        0 10px 36px rgba(8, 145, 178, 0.09);
}

.page-home .home-section-shell--courses-compact.home-section-shell--kind-gathering .home-section-frame {
    box-shadow:
        0 0 0 1px rgba(245, 158, 11, 0.12),
        0 10px 36px rgba(245, 158, 11, 0.11);
}

.page-home .home-section-shell--courses-compact.home-section-shell--kind-workshop .home-section-frame {
    box-shadow:
        0 0 0 1px rgba(16, 185, 129, 0.11),
        0 10px 36px rgba(16, 185, 129, 0.09);
}

.page-home .home-section-shell--courses-compact.home-section-shell--kind-event .home-section-frame {
    box-shadow:
        0 0 0 1px rgba(59, 130, 246, 0.11),
        0 10px 36px rgba(59, 130, 246, 0.09);
}

.courses-compact-head--title-only {
    justify-content: flex-start;
    margin-bottom: 12px;
}

.courses-compact-head--title-only .courses-compact-head__title {
    font-size: 1rem;
    font-weight: 800;
}

.courses-compact-head__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.courses-compact-head__badge-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.65);
}

.courses-compact-head__badge--course {
    color: #0f766e;
    background: linear-gradient(135deg, rgba(236, 254, 255, 0.95), rgba(204, 251, 241, 0.88));
    border-color: rgba(8, 145, 178, 0.28);
}

.courses-compact-head__badge--course .courses-compact-head__badge-dot {
    background: linear-gradient(135deg, #0891b2, #14b8a6);
}

.courses-compact-head__badge--gathering {
    color: #b45309;
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(254, 243, 199, 0.9));
    border-color: rgba(245, 158, 11, 0.32);
}

.courses-compact-head__badge--gathering .courses-compact-head__badge-dot {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.courses-compact-head__badge--workshop {
    color: #047857;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(209, 250, 229, 0.9));
    border-color: rgba(16, 185, 129, 0.3);
}

.courses-compact-head__badge--workshop .courses-compact-head__badge-dot {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.courses-compact-head__badge--event {
    color: #1d4ed8;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(219, 234, 254, 0.9));
    border-color: rgba(59, 130, 246, 0.3);
}

.courses-compact-head__badge--event .courses-compact-head__badge-dot {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.courses-compact-head__badge--other {
    color: #6d28d9;
    background: linear-gradient(135deg, rgba(245, 243, 255, 0.96), rgba(237, 233, 254, 0.9));
    border-color: rgba(139, 92, 246, 0.28);
}

.courses-compact-head__badge--other .courses-compact-head__badge-dot {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.courses-section-more--compact {
    margin-top: 12px;
}

.courses-all-link--course {
    border-color: rgba(8, 145, 178, 0.28) !important;
    color: #0f766e !important;
}

.courses-all-link--gathering {
    border-color: rgba(245, 158, 11, 0.35) !important;
    color: #b45309 !important;
}

.courses-all-link--workshop {
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #047857 !important;
}

.courses-all-link--event {
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: #1d4ed8 !important;
}

@media (max-width: 768px) {
    .courses-section-more--compact {
        margin-top: 10px;
    }

    .courses-section-more--compact .courses-all-link {
        padding: 7px 14px;
        font-size: 0.76rem;
        font-weight: 700;
        border-radius: 999px;
        min-height: 0;
        line-height: 1.3;
    }

    .home-section-shell--courses-compact .mobile-h-scroll-hint {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .page-home .home-section-shell--courses {
        padding-block: 20px 28px;
    }

    .page-home .home-section-shell--courses-compact {
        padding-block: 8px 16px;
    }

    .page-home .home-section-shell--courses .home-section-frame {
        padding: 14px 12px;
        border-radius: 16px;
        box-shadow: none;
        border-color: rgba(15, 118, 110, 0.08);
    }

    .page-home .home-section-shell--courses-compact .home-section-frame {
        padding: 10px 12px 12px;
        border: none;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none !important;
    }

    .page-home .home-section-shell--courses-compact::before {
        inset: 4% 1% 8%;
        border-radius: 20px;
    }

    .courses-compact-head {
        margin-bottom: 10px;
    }

    .courses-compact-head__title {
        font-size: 1rem;
    }

    .courses-compact-head__link {
        font-size: 0.78rem;
    }

    .page-home .home-section-shell--courses .novia-section-header {
        margin-bottom: 14px;
        text-align: center;
    }

    .page-home .home-section-shell--courses .novia-section-header .novia-badge {
        font-size: 0.72rem;
        padding: 4px 10px;
        margin-bottom: 8px;
    }

    .page-home .home-section-shell--courses .novia-section-header h2 {
        font-size: 1.15rem;
        margin-bottom: 0;
    }

    .page-home .home-section-shell--courses .novia-section-header p {
        display: none;
    }

    .course-preview-img {
        height: 140px;
    }

    .course-preview-body {
        padding: 14px;
    }

    .course-preview-body h3 {
        font-size: 0.92rem;
        margin-bottom: 8px;
        line-height: 1.45;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .course-preview-meta {
        gap: 10px;
        margin-bottom: 10px;
        font-size: 0.78rem;
    }

    .course-preview .course-instructor {
        margin-bottom: 10px;
        padding: 8px 10px;
    }

    .course-preview-body .novia-btn {
        padding: 10px 14px;
        font-size: 0.82rem;
    }

    .course-preview-delivery {
        font-size: 0.68rem;
        padding: 4px 8px;
        bottom: 10px;
        left: 10px;
    }

    .course-preview-tag {
        top: 10px;
        right: 10px;
        padding: 4px 10px;
        font-size: 0.68rem;
    }

    .course-preview-tag--soon,
    .course-preview-tag--finished {
        top: auto;
        bottom: 10px;
        right: 10px;
        padding: 3px 8px;
        font-size: 0.62rem;
        gap: 3px;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    }

    .course-preview-tag--soon .novia-icon,
    .course-preview-tag--finished .novia-icon {
        font-size: 0.58rem;
    }
}
