/* ==========================================================
   modern.css — لایه‌ی ظاهری جدید آتیه تلاشگران خلاق
   بعد از style.css و responsive.css لود شود
   ========================================================== */

:root {
    --brand: #6440fb;
    --brand-dark: #140342;
    --brand-mid: #3b1fb8;
    --brand-soft: #f1edff;
    --accent: #ffb703;
    --ink: #1d1b2e;
    --muted: #6b6f85;
    --line: #e8e9f2;
    --bg: #f7f8fc;
    --card: #ffffff;
    --radius: 18px;
    --radius-sm: 12px;
    --sh-card: 0 2px 10px rgba(20, 3, 66, .05);
    --sh-hover: 0 18px 40px rgba(100, 64, 251, .16);
}

body {
    background: var(--bg);
    color: var(--ink) !important;
}

a {
    text-decoration: none;
}

/* ---------------- Header ---------------- */
header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(20, 3, 66, .05);
}

    header .top-menu {
        padding: 8px 0;
    }

.top-menu-search .search-txt {
    background: #f1f3f9;
    border: 1px solid transparent;
    padding: 13px 22px;
    transition: .2s;
    box-shadow: none;
}

    .top-menu-search .search-txt:focus {
        background: #fff;
        border-color: var(--brand);
        box-shadow: 0 0 0 4px rgba(100, 64, 251, .12);
    }

.top-menu-btn .auth-btn-index {
    background: var(--brand);
    color: #fff;
    padding: 10px 26px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 18px rgba(100, 64, 251, .28);
    transition: .2s;
}

    .top-menu-btn .auth-btn-index:hover {
        background: var(--brand-mid);
        transform: translateY(-1px);
    }

.header-box {
    background: #f1f3f9;
    border-radius: 12px;
    padding: 10px 14px;
    transition: .2s;
}

    .header-box:hover {
        background: var(--brand-soft);
        color: var(--brand);
    }

.top-menu-menu ul > li > a {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
}

    .top-menu-menu ul > li > a:hover {
        color: var(--brand);
    }

.border-animate {
    --border-color: var(--brand);
}

.top-menu-menu ul.level-one {
    border-radius: 14px;
    padding: 8px;
    border: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(20, 3, 66, .12);
}

    .top-menu-menu ul.level-one li {
        padding: 10px 0;
        border-radius: 10px;
    }

        .top-menu-menu ul.level-one li:hover {
            background: var(--brand-soft);
        }

/* ---------------- Hero ---------------- */
.home {
    padding: 22px 0 0 !important;
}

.homeSlider {
    height: auto !important;
    aspect-ratio: 16 / 6;
    min-height: 190px;
    border-radius: 24px !important;
    box-shadow: 0 20px 50px rgba(20, 3, 66, .16) !important;
}

    .homeSlider .swiper-slide img {
        border-radius: 24px !important;
    }

.swiper-button-next,
.swiper-button-prev {
    width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .92) !important;
    color: var(--brand) !important;
    box-shadow: 0 6px 18px rgba(20, 3, 66, .18) !important;
}

.swiper-button-next {
    left: 14px !important;
}

.swiper-button-prev {
    right: 14px !important;
}

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 16px !important;
        font-weight: 800;
    }

.swiper-pagination-bullet-active {
    background: var(--brand) !important;
}

/* ---------------- Stats strip ---------------- */
.hero-stats {
    position: relative;
    z-index: 5;
    margin-top: -34px;
    padding: 0 18px;
}

    .hero-stats .stat {
        display: flex;
        align-items: center;
        gap: 14px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 16px 18px;
        box-shadow: 0 10px 30px rgba(20, 3, 66, .08);
        height: 100%;
    }

    .hero-stats .stat-icon {
        flex: 0 0 48px;
        height: 48px;
        border-radius: 14px;
        display: grid;
        place-items: center;
        background: var(--brand-soft);
        color: var(--brand);
        font-size: 22px;
    }

    .hero-stats strong {
        display: block;
        font-size: 17px;
        color: var(--brand-dark);
    }

    .hero-stats span.sub {
        font-size: 12.5px;
        color: var(--muted);
    }

/* ---------------- Section heads ---------------- */
.section-block {
    padding: 64px 0 0;
}

.section-head {
    text-align: center;
    margin-bottom: 34px;
}

.section-kicker {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 50px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--brand-dark);
    margin: 0 0 8px;
}

.section-head p {
    color: var(--muted);
    margin: 0 auto;
    max-width: 560px;
    font-size: 14.5px;
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--brand);
    font-size: 14px;
}

    .section-more:hover {
        color: var(--brand-mid);
        gap: 10px;
    }

/* ---------------- Course card ---------------- */
.edu-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--sh-card);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

    .edu-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--sh-hover);
        border-color: transparent;
    }

    .edu-card .thumb {
        position: relative;
        aspect-ratio: 16 / 10;
        overflow: hidden;
        background: var(--brand-soft);
    }

        .edu-card .thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform .6s;
        }

    .edu-card:hover .thumb img {
        transform: scale(1.07);
    }

    .edu-card .body {
        padding: 18px 18px 8px;
        flex: 1;
    }

    .edu-card .title {
        font-size: 16px;
        font-weight: 800;
        line-height: 1.7;
        margin: 0;
        min-height: 54px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

        .edu-card .title a {
            color: var(--brand-dark);
        }

            .edu-card .title a:hover {
                color: var(--brand);
            }

.edu-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

    .edu-meta .chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 12.5px;
        color: var(--muted);
        background: #f4f5fa;
        padding: 5px 12px;
        border-radius: 50px;
    }

        .edu-meta .chip i {
            color: var(--brand);
        }

.edu-card .foot {
    padding: 14px 18px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 700;
    font-size: 13.5px;
    padding: 9px 20px;
    border-radius: 50px;
    transition: .2s;
    border:none;
}

    .btn-pill:hover {
        background: var(--brand);
        color: #fff;
    }

/* ---------------- Video card ---------------- */
.edu-card .play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(to top, rgba(20, 3, 66, .55), rgba(20, 3, 66, 0) 55%);
    opacity: 0;
    transition: .3s;
}

    .edu-card .play i {
        width: 56px;
        height: 56px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: #fff;
        color: var(--brand);
        font-size: 26px;
        transform: scale(.8);
        transition: .3s;
    }

.edu-card:hover .play {
    opacity: 1;
}

    .edu-card:hover .play i {
        transform: scale(1);
    }

.badge-off {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 50px;
    z-index: 2;
}

.price-box {
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

    .price-box .new-price {
        color: #0f9d58;
        font-weight: 800;
        font-size: 16px;
    }

    .price-box .old-price {
        color: #a3a6b8;
        text-decoration: line-through;
        font-size: 12.5px;
    }

.price-free {
    color: #0f9d58;
    font-weight: 800;
}

/* ---------------- Features ---------------- */
.feature {
    padding: 64px 0 0 !important;
}

.feat-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: .25s;
}

    .feat-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--sh-hover);
        border-color: transparent;
    }

    .feat-card .ico {
        width: 64px;
        height: 64px;
        margin: 0 auto 16px;
        border-radius: 20px;
        display: grid;
        place-items: center;
        font-size: 28px;
        color: #fff;
        background: linear-gradient(135deg, var(--brand), #9b7bff);
        box-shadow: 0 10px 22px rgba(100, 64, 251, .3);
    }

    .feat-card h6 {
        font-weight: 800;
        font-size: 16px;
        margin-bottom: 8px;
    }

    .feat-card p {
        font-size: 13px;
        color: var(--muted);
        margin: 0;
        line-height: 1.9;
    }

/* ---------------- Blog ---------------- */
.article-latest {
    padding: 64px 0 0 !important;
}

.blog-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 26px;
    box-shadow: var(--sh-card);
}

    .blog-box .box-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
    }

        .blog-box .box-head h3 {
            font-size: 21px;
            font-weight: 800;
            margin: 0;
            position: relative;
            padding-right: 16px;
        }

            .blog-box .box-head h3::before {
                content: '';
                position: absolute;
                right: 0;
                top: 50%;
                transform: translateY(-50%);
                width: 5px;
                height: 24px;
                border-radius: 4px;
                background: var(--brand);
            }

.al-item {
    background: #fff !important;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm) !important;
    overflow: hidden;
    box-shadow: none !important;
    transition: .25s;
}

    .al-item:hover {
        box-shadow: var(--sh-hover) !important;
        border-color: transparent;
        transform: translateY(-4px);
    }

.al-img {
    aspect-ratio: 16 / 10;
}

    .al-img img {
        filter: none !important;
        transform: scale(1) !important;
        object-fit: cover;
    }

.al-item:hover .al-img img {
    transform: scale(1.06) !important;
}

.al-date {
    background: rgba(20, 3, 66, .78) !important;
    font-size: 12px !important;
    backdrop-filter: blur(4px);
}

.al-title {
    height: auto !important;
    padding: 14px 16px 16px !important;
    font-weight: 700;
    line-height: 1.9;
}

    .al-title a {
        color: var(--brand-dark);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

        .al-title a:hover {
            color: var(--brand);
        }

/* ---------------- Partners ---------------- */
.partner {
    padding: 64px 0 20px !important;
}

.partner-parrent {
    border: 1px solid var(--line);
    border-radius: 24px !important;
    padding: 26px 0 !important;
    box-shadow: var(--sh-card) !important;
}

.partner-item img {
    width: 110px;
    filter: grayscale(100%);
    opacity: .65;
    transition: .3s;
}

.partner-item:hover img {
    filter: none;
    opacity: 1;
}

.slider-title {
    color: var(--brand-dark);
    font-weight: 800;
}

.partner .pbt-header-title h6 {
    color: var(--brand-dark);
}

/* ---------------- Footer ---------------- */
footer {
    background: var(--brand-dark);
    margin-top: 70px !important;
    border-top: 0 !important;
    border-radius: 36px 36px 0 0;
    color: #c9c4e6;
}

    footer .footer-item h5 {
        color: #fff;
    }

    footer .footer-item .footer-item-link li a {
        color: #b7b1d9;
    }

        footer .footer-item .footer-item-link li a::before {
            background: #6f66a8;
        }

        footer .footer-item .footer-item-link li a:hover {
            color: #fff;
        }

            footer .footer-item .footer-item-link li a:hover::before {
                background: var(--accent);
            }

    footer .footer-desc-item h3 {
        color: #fff;
    }

    footer .text-muted,
    footer .font-14 {
        color: #a9a3cf !important;
    }

    footer .footer-desc {
        border-top: 1px solid rgba(255, 255, 255, .1);
    }

    footer .footer-desc-item ul li {
        background: #fff;
        border-color: transparent;
        border-radius: 12px;
    }

.copy-right {
    background: #0d0230 !important;
}

    .copy-right a {
        color: var(--accent);
    }

/* ---------------- Cart slide ---------------- */
.cart-slide {
    border-radius: 0 24px 24px 0;
}

.btn-main {
    background: var(--brand);
}

    .btn-main:hover {
        background: var(--brand-mid);
    }

.btn-outline:hover {
    background: var(--brand);
    border-color: var(--brand);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 991px) {
    .section-block, .feature, .article-latest, .partner {
        padding-top: 46px !important;
    }

    .section-title {
        font-size: 24px;
    }

    .homeSlider {
        aspect-ratio: 15 / 8;
    }

    .hero-stats {
        margin-top: 14px;
        padding: 0;
    }
}

@media (max-width: 575px) {
    .blog-box {
        padding: 16px;
    }

    .edu-card .title {
        font-size: 14.5px;
        min-height: 48px;
    }

    .edu-card .body {
        padding: 14px 14px 6px;
    }

    .edu-card .foot {
        padding: 10px 14px 14px;
    }

    .swiper-button-next, .swiper-button-prev {
        display: none !important;
    }
}


/* ==========================================================
   MovieDetail (صفحه‌ی جزئیات ویدئو / دوره)
   ========================================================== */
.movie-page {
    padding: 24px 0 10px;
}

.movie-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 18px;
    flex-wrap: wrap;
}

    .movie-crumb a {
        color: var(--brand);
        font-weight: 600;
    }

    .movie-crumb .sep {
        font-size: 11px;
    }

.movie-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px 24px;
    margin-top: 20px;
    box-shadow: var(--sh-card);
}

/* ---- Player ---- */
.player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0d0230;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(20, 3, 66, .28);
}

    .player-wrap iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

.player-cover {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0d0230;
    box-shadow: 0 24px 60px rgba(20, 3, 66, .2);
}

    .player-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: .75;
    }

.cover-hint {
    position: absolute;
    inset-inline: 16px;
    bottom: 16px;
    background: rgba(255, 255, 255, .95);
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 14px;
    padding: 12px 18px;
    border-radius: 14px;
    text-align: center;
}

    .cover-hint i {
        color: var(--brand);
        margin-inline-end: 6px;
    }

/* ---- Locked state ---- */
.player-lock {
    position: relative;
    aspect-ratio: 8 / 8;
    min-height: 260px;
    border-radius: 22px;
    overflow: hidden;
    background: #0d0230 center / cover no-repeat;
    display: grid;
    place-items: center;
    text-align: center;
    box-shadow: 0 24px 60px rgba(20, 3, 66, .22);
}

    .player-lock::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(20, 3, 66, .92), rgba(100, 64, 251, .78));
        backdrop-filter: blur(6px);
    }

.lock-inner {
    position: relative;
    padding: 24px;
    max-width: 520px;
    color: #fff;
}

    .lock-inner h4 {
        color: #fff;
        font-weight: 800;
        font-size: 22px;
        margin: 14px 0 8px;
        line-height: 1.7;
    }

    .lock-inner p {
        color: #d9d3ff;
        font-size: 14px;
        margin-bottom: 20px;
    }

.lock-ico {
    width: 74px;
    height: 74px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .3);
    font-size: 32px;
}

.btn-glow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--brand) !important;
    font-weight: 800;
    font-size: 15px;
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    transition: .2s;
}

    .btn-glow:hover {
        transform: translateY(-2px);
        background: var(--accent);
        color: var(--brand-dark) !important;
    }

/* ---- Title / meta ---- */
.movie-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-dark);
    margin: 0 0 12px;
    line-height: 1.7;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .movie-meta .chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: var(--muted);
        background: #f4f5fa;
        padding: 6px 14px;
        border-radius: 50px;
    }

        .movie-meta .chip i {
            color: var(--brand);
        }

    .movie-meta .chip-ok {
        background: #e7f8ee;
        color: #0f7a3e;
    }

        .movie-meta .chip-ok i {
            color: #0f9d58;
        }

.movie-sub {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .movie-sub i {
        color: var(--brand);
    }

.movie-desc {
    line-height: 2.1;
    color: #3d3f55;
    font-size: 15px;
}

    .movie-desc img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
    }

/* ---- Sidebar ---- */
.movie-side {
    position: sticky;
    top: 96px;
}

    .movie-side .movie-card {
        margin-top: 20px;
    }

#buy .buy-card + .buy-card {
    margin-top: 16px;
}

.buy-card {
    background: #fff;
    border: 2px solid var(--brand);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 18px 40px rgba(100, 64, 251, .16);
    position: relative;
}

.buy-label {
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 14px;
    display: flex;
    gap: 8px;
    align-items: center;
}

    .buy-label i {
        color: var(--brand);
    }

.buy-price {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .buy-price .now {
        font-size: 28px;
        font-weight: 800;
        color: #0f9d58;
        line-height: 1.4;
    }

        .buy-price .now small {
            font-size: 14px;
            font-weight: 600;
            color: var(--muted);
        }

    .buy-price .was {
        color: #a3a6b8;
        text-decoration: line-through;
        font-size: 14px;
    }

.btn-buy {
    width: 100%;
    border: 0;
    background: linear-gradient(135deg, var(--brand), #8466ff);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    padding: 14px;
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(100, 64, 251, .35);
    transition: .2s;
}

    .btn-buy:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 32px rgba(100, 64, 251, .45);
    }

    .btn-buy:disabled {
        opacity: .6;
        transform: none;
        cursor: wait;
    }

.buy-perks {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

    .buy-perks li {
        font-size: 13px;
        color: var(--muted);
        padding: 4px 0;
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .buy-perks i {
        color: #0f9d58;
    }

/* ---- Lesson list ---- */
.lessons-card {
    padding: 18px;
}

.lessons-title {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .lessons-title i {
        color: var(--brand);
    }

    .lessons-title span {
        margin-inline-start: auto;
        background: var(--brand-soft);
        color: var(--brand);
        font-size: 12px;
        padding: 2px 10px;
        border-radius: 50px;
    }

.lesson-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 440px;
    overflow-y: auto;
}

    .lesson-list::-webkit-scrollbar {
        width: 5px;
    }

    .lesson-list::-webkit-scrollbar-thumb {
        background: #d6d2f0;
        border-radius: 5px;
    }

    .lesson-list li + li {
        margin-top: 6px;
    }

    .lesson-list a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 11px 12px;
        border-radius: 12px;
        color: var(--ink);
        font-size: 14px;
        transition: .2s;
    }

        .lesson-list a:hover {
            background: var(--brand-soft);
            color: var(--brand);
        }

    .lesson-list .num {
        flex: 0 0 30px;
        height: 30px;
        display: grid;
        place-items: center;
        background: #f1f3f9;
        color: var(--muted);
        border-radius: 9px;
        font-size: 12px;
        font-weight: 700;
    }

    .lesson-list .name {
        flex: 1;
        line-height: 1.7;
    }

    .lesson-list i {
        color: #b6b9cc;
        font-size: 18px;
    }

    .lesson-list .active a {
        background: var(--brand);
        color: #fff;
        box-shadow: 0 8px 20px rgba(100, 64, 251, .3);
    }

    .lesson-list .active .num {
        background: rgba(255, 255, 255, .2);
        color: #fff;
    }

    .lesson-list .active i {
        color: #fff;
    }

.offcanvas {
    border-radius: 0;
}

    .offcanvas .lesson-list {
        max-height: none;
    }

@media (max-width: 991px) {
    .movie-side {
        position: static;
    }

    .movie-title {
        font-size: 20px;
    }

    .player-wrap, .player-cover, .player-lock {
        border-radius: 16px;
    }

    .lock-inner h4 {
        font-size: 18px;
    }

    .movie-card {
        padding: 18px;
    }
}
