/* ================= پایه ================= */
.ac-wrap {
    width: min(1180px, 94%);
    margin: 0 auto;
    direction: rtl;
    color: var(--academy03);
}
.ac-wrap *, .ac-wrap *::before, .ac-wrap *::after { box-sizing: border-box; }
.ac-wrap a { -webkit-tap-highlight-color: transparent; }
.ac-ico { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.17em; }
.muted { color: #6b7280; }


.ac-breadcrumb {
    margin: 26px 10px 12px 0;
    font-size: 13px;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}
.ac-breadcrumb a { color: #6b7280; text-decoration: none; }
.ac-breadcrumb a:hover { color: var(--academy01); }
.ac-current { color: var(--academy01); font-weight: 700; }
.ac-sep { direction: ltr; margin: 0 6px; opacity: 0.6; }

/* ================= Hero ================= */
.ac-hero {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 28px;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.16), transparent 42%),
        linear-gradient(135deg, var(--academy01), #6d64ff 60%, var(--academy03));
    border-radius: 26px;
    padding: 34px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.ac-hero::after {
    content: "";
    position: absolute;
    width: 320px; height: 320px;
    left: -110px; bottom: -150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}
.ac-hero-text, .ac-hero-media { position: relative; z-index: 1; min-width: 0; }
.ac-kicker {
    display: inline-block;
    background: var(--academy02);
    color: #1e1b4b;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.ac-title { font-size: clamp(24px, 4vw, 36px); line-height: 1.5; margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ac-sub { opacity: 0.92; line-height: 30px; font-size: 15px; margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ac-search {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #6b7280;
    border-radius: 999px;
    padding: 5px 5px 5px 5px;
    padding-right: 14px;
    max-width: 520px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.ac-search input {
    border: 0; flex: 1; min-width: 0;
    padding: 9px 6px; outline: 0;
    font: inherit; font-size: 14px;
    background: transparent; color: var(--academy03);
}
.ac-search button {
    border: 0;
    background: var(--academy03);
    color: #fff;
    border-radius: 999px;
    padding: 10px 20px;
    cursor: pointer;
    font: inherit; font-size: 13px;
}
.ac-stats {
    display: flex; flex-wrap: wrap; gap: 10px;
    list-style: none; padding: 0; margin: 18px 0 0;
}
.ac-stats li {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
}
.ac-stats b { font-size: 15px; }

.ac-hero-media { display: flex; align-items: center; justify-content: center; }
.ac-hero-media img {
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid rgba(255, 255, 255, 0.35);
}
.ac-float-card {
    position: absolute;
    bottom: 14px; right: 14px;
    background: #fff;
    color: var(--academy03);
    border-radius: 14px;
    padding: 10px 18px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}
.ac-float-card b { display: block; font-size: 22px; }
.ac-float-card span { font-size: 12px; color: #6b7280; }

/* ================= چیپ‌ها و زیردسته‌ها ================= */
.ac-chips {
    display: flex; gap: 8px;
    overflow-x: auto;
    padding: 18px 2px 6px;
    scrollbar-width: none;
}
.ac-chips::-webkit-scrollbar { display: none; }
.ac-chips a {
    white-space: nowrap;
    text-decoration: none;
    color: var(--academy03);
    background: var(--academy04);
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13px;
    transition: 0.2s;
}
.ac-chips a:hover { background: #e0e7ff; }
.ac-chips a.all { background: transparent; border: 1px dashed var(--academy01); color: var(--academy01); }
.ac-chips a.on { background: var(--academy01); color: #fff; }

.ac-subgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 10px;
}
.ac-subcard {
    display: flex; gap: 12px; align-items: center;
    background: #fff;
    border: 1px solid #e8eaf6;
    border-radius: 16px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}
.ac-subcard:hover { border-color: var(--academy01); transform: translateY(-2px); }
.ac-subcard img, .ac-subico {
    width: 52px; height: 52px;
    border-radius: 12px;
    object-fit: cover;
    flex: none;
}
.ac-subico {
    display: flex; align-items: center; justify-content: center;
    background: var(--academy04); color: var(--academy01);
    font-weight: 900; font-size: 22px;
}
.ac-subcard div { flex: 1; min-width: 0; }
.ac-subcard b { display: block; font-size: 14px; }
.ac-subcard span { font-size: 12px; color: #6b7280; }
.ac-subcard .go { color: var(--academy01); }

/* ================= نوار فیلتر ================= */
.ac-bar {
    margin-top: 10px;
    background: #fff;
    border: 1px solid #e8eaf6;
    border-radius: 20px;
    padding: 14px;
}
.ac-modes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.ac-mode {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid #e8eaf6;
    background: #f8fafc;
    text-decoration: none;
    color: var(--academy03);
    transition: 0.2s;
    min-width: 0;
}
.ac-mode:hover { border-color: var(--academy01); }
.ac-mode-ico {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: #fff;
    color: var(--academy01);
    font-size: 18px;
    flex: none;
}
.ac-mode-txt { display: flex; flex-direction: column; line-height: 1.5; min-width: 0; }
.ac-mode-txt b { font-size: 14px; }
.ac-mode-txt small { font-size: 11px; color: #6b7280; }
.ac-mode.on {
    background: var(--academy01);
    border-color: var(--academy01);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}
.ac-mode.on small { color: rgba(255, 255, 255, 0.85); }
.ac-mode.on .ac-mode-ico { background: rgba(255, 255, 255, 0.2); color: #fff; }

.ac-bar-row {
    display: flex; flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #e8eaf6;
}
.ac-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.ac-group-label { color: #6b7280; margin-left: 4px; }
.ac-pill {
    display: inline-flex; align-items: center; gap: 5px;
    text-decoration: none;
    color: #4b5563;
    background: #f3f4f6;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    white-space: nowrap;
    transition: 0.2s;
}
.ac-pill:hover { background: #e5e7eb; }
.ac-pill.on { background: var(--academy03); color: #fff; }
.ac-pill-offer.on { background: #dc2626; }

.ac-active {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin-top: 14px; padding-top: 14px;
    border-top: 1px dashed #e8eaf6;
    font-size: 13px; color: #6b7280;
}
.ac-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--academy04);
    color: var(--academy01);
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 999px;
}
.ac-tag .ac-ico { width: 12px; height: 12px; }
.ac-tag:hover { background: #fee2e2; color: #dc2626; }
.ac-clear { color: #dc2626; text-decoration: none; font-weight: 700; }
.ac-result { margin: 16px 2px 12px; font-size: 13px; color: #6b7280; }

/* ================= کارت دوره ================= */
.crs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 20px;
}
.crs-card {
    background: #fff;
    border: 1px solid #e8eaf6;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    animation: ac-rise 0.5s ease both;
}
.crs-card:nth-child(2) { animation-delay: 0.05s; }
.crs-card:nth-child(3) { animation-delay: 0.1s; }
.crs-card:nth-child(4) { animation-delay: 0.15s; }
.crs-card:nth-child(n+5) { animation-delay: 0.2s; }
@keyframes ac-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}
.crs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(67, 56, 202, 0.16);
}
.crs-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.crs-cover {
    position: relative;
    background: var(--academy04);
    overflow: hidden;
}
.crs-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; display: block; }
.crs-card:hover .crs-cover img { transform: scale(1.06); }
.crs-nopic {
    height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 70px; font-weight: 900;
    color: var(--academy01);
}
.crs-mode {
    position: absolute;
    top: 12px; right: 12px;
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--academy03);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.crs-mode.static { position: static; box-shadow: none; }
.crs-flags {
    position: absolute;
    top: 12px; left: 12px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.crs-off, .crs-feat {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 800;
    padding: 5px 10px;
    border-radius: 999px;
}
.crs-off { background: #dc2626; color: #fff; }
.crs-feat { background: var(--academy02); color: #1e1b4b; }
.crs-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.crs-cat { font-size: 11px; color: var(--academy01); font-weight: 700; margin-bottom: 4px; }
.crs-body h3 { font-size: 17px; margin: 0 0 6px; line-height: 1.7; }
.crs-short {
    font-size: 13px; color: #6b7280; line-height: 24px;
    margin: 0 0 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 48px;
}
.crs-meta {
    display: flex; gap: 6px 14px; flex-wrap: wrap;
    list-style: none;
    font-size: 12px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 9px 11px;
    margin: 0 0 10px;
}
.crs-meta li { display: inline-flex; align-items: center; gap: 5px; }
.crs-extra {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--academy01);
    margin: 0 0 10px;
}
.crs-seat { font-size: 12px; font-weight: 700; margin: 0 0 10px; }
.crs-seat.warn { color: #b45309; }
.crs-seat.full { color: #dc2626; }
.crs-ins { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 12px; }
.crs-ins i {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--academy04); color: var(--academy01);
    display: flex; align-items: center; justify-content: center;
    font-style: normal; font-weight: 800; font-size: 12px;
}
.crs-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f2f8;
}
.crs-price del { display: block; font-size: 12px; color: #dc2626; }
.crs-price b { font-size: 16px; }
.crs-price small { font-size: 11px; font-weight: 400; color: #6b7280; }
.crs-price .free { color: #16a34a; }
.crs-btn {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--academy01);
    color: #fff;
    font-size: 13px;
    padding: 9px 16px;
    border-radius: 12px;
    transition: 0.2s;
}
.crs-card:hover .crs-btn { background: var(--academy03); }

.ac-empty {
    grid-column: 1 / -1;
    text-align: center;
    border: 1px dashed #c7d2fe;
    border-radius: 18px;
    padding: 48px 20px;
    background: #fafaff;
}
.ac-empty-ico {
    display: inline-flex; width: 64px; height: 64px;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--academy04); color: var(--academy01);
    font-size: 28px; margin-bottom: 10px;
}
.ac-empty b { display: block; font-size: 18px; margin-bottom: 4px; }
.ac-empty p { color: #6b7280; margin: 0 0 14px; }
.ac-empty a {
    display: inline-block;
    background: var(--academy01); color: #fff;
    text-decoration: none;
    padding: 10px 22px; border-radius: 12px;
}

/* ================= صفحه‌بندی ================= */
.ac-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 28px 0 8px; }
.ac-pager a, .ac-pager .gap {
    min-width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 12px;
    border-radius: 12px;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e8eaf6;
    color: var(--academy03);
    font-size: 14px;
}
.ac-pager .gap { border: 0; background: transparent; }
.ac-pager a:hover { border-color: var(--academy01); }
.ac-pager a.on { background: var(--academy01); border-color: var(--academy01); color: #fff; font-weight: 800; }

.ac-about {
    background: var(--academy04);
    border-radius: 18px;
    padding: 24px;
    margin: 28px 0 0;
    line-height: 32px;
}
.ac-about h2 { margin-top: 0; font-size: 20px; }
.ac-about p { margin-bottom: 0; text-align: justify; }

.ac-band {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    margin-top: 28px;
    background: linear-gradient(135deg, var(--academy03), var(--academy01));
    color: #fff;
    border-radius: 22px;
    padding: 26px 30px;
}
.ac-band h2 { margin: 0 0 4px; font-size: 20px; }
.ac-band p { margin: 0; opacity: 0.85; font-size: 14px; }
.ac-band-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--academy02); color: #1e1b4b;
    text-decoration: none; font-weight: 800;
    padding: 12px 24px; border-radius: 14px;
}

/* ================= صفحه جزئیات ================= */
.acd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
    align-items: start;
}
.acd-col { min-width: 0; }
.acd-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.acd-pill {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--academy04); color: var(--academy01);
    font-size: 12px; font-weight: 700;
    padding: 6px 12px; border-radius: 999px;
}
.acd-pill.gold { background: var(--academy02); color: #1e1b4b; }
.acd-pill.red { background: #fee2e2; color: #dc2626; }
.acd-head h1 { font-size: clamp(22px, 3.4vw, 32px); line-height: 1.6; margin: 12px 0 8px; }
.acd-short { color: #4b5563; line-height: 30px; margin: 0 0 10px; }
.acd-cats { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; }
.acd-cats a {
    font-size: 12px; background: #f3f4f6; color: #4b5563;
    padding: 5px 12px; border-radius: 999px; text-decoration: none;
}
.acd-cats a:hover { background: var(--academy04); color: var(--academy01); }

.acd-gallery { margin-top: 18px; }
.acd-main {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #e8eaf6;
    background: var(--academy04);
    aspect-ratio: 16 / 9;
}
.acd-main img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.acd-nopic {
    height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 100px; font-weight: 900; color: var(--academy01);
}
.acd-zoom, .acd-arrow {
    position: absolute;
    border: 0; cursor: pointer;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--academy03);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    font-size: 18px;
}
.acd-zoom { top: 12px; left: 12px; }
.acd-arrow { top: 50%; transform: translateY(-50%); }
.acd-arrow.prev { right: 12px; }
.acd-arrow.next { left: 12px; transform: translateY(-50%) scaleX(-1); }
.acd-thumbs {
    display: flex; gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: thin;
}
.acd-thumbs img {
    width: 84px; height: 60px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    flex: none;
    transition: 0.2s;
}
.acd-thumbs img:hover { opacity: 1; }
.acd-thumbs img.on { border-color: var(--academy01); opacity: 1; }
.acd-video {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 10px;
    background: #111827; color: #fff;
    text-decoration: none;
    padding: 12px; border-radius: 14px; font-size: 14px;
}

.acd-facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
    margin-top: 18px;
}
.acd-fact {
    display: flex; align-items: center; gap: 10px;
    background: #fff;
    border: 1px solid #e8eaf6;
    border-radius: 16px;
    padding: 12px;
    min-width: 0;
}
.acd-fact .ico {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--academy04); color: var(--academy01);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex: none;
}
.acd-fact div { min-width: 0; }
.acd-fact small { display: block; font-size: 11px; color: #6b7280; }
.acd-fact b { font-size: 13px; line-height: 1.6; word-break: break-word; }

.acd-seats {
    margin-top: 14px;
    background: #ecfdf5; border: 1px solid #a7f3d0;
    border-radius: 16px; padding: 14px 16px;
}
.acd-seats.warn { background: #fffbeb; border-color: #fde68a; }
.acd-seats.full { background: #fef2f2; border-color: #fecaca; }
.acd-seats-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 8px; flex-wrap: wrap; }
.acd-bar { height: 8px; background: rgba(0, 0, 0, 0.08); border-radius: 99px; overflow: hidden; }
.acd-bar i { display: block; height: 100%; background: #10b981; border-radius: 99px; }
.acd-seats.warn .acd-bar i { background: #f59e0b; }
.acd-seats.full .acd-bar i { background: #dc2626; }

.acd-nav {
    position: sticky; top: 0; z-index: 20;
    display: flex; gap: 6px;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border: 1px solid #e8eaf6;
    border-radius: 16px;
    padding: 6px;
    margin: 22px 0 6px;
    scrollbar-width: none;
}
.acd-nav::-webkit-scrollbar { display: none; }
.acd-nav a {
    white-space: nowrap;
    text-decoration: none;
    color: #4b5563;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    transition: 0.2s;
}
.acd-nav a.on { background: var(--academy01); color: #fff; font-weight: 800; }

.acd-sec { margin-top: 26px; scroll-margin-top: 80px; }
.acd-sec h2 { font-size: 20px; margin: 0 0 14px; position: relative; padding-right: 14px; }
.acd-sec h2::before {
    content: ""; position: absolute; right: 0; top: 50%;
    width: 5px; height: 22px; margin-top: -11px;
    border-radius: 4px; background: var(--academy02);
}
.acd-sec h3 { font-size: 16px; margin: 18px 0 10px; }
.acd-prose { line-height: 34px; font-size: 15px; color: #374151; }
.acd-prose p { margin: 0 0 12px; }

.acd-perks {
    list-style: none; padding: 0; margin: 18px 0 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px;
}
.acd-perks li {
    display: flex; align-items: center; gap: 10px;
    background: var(--academy04); border-radius: 14px;
    padding: 12px 14px; font-size: 13px;
}
.acd-perks .ac-ico { color: var(--academy01); font-size: 20px; }

.acd-check {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px;
}
.acd-check li {
    display: flex; gap: 10px; align-items: flex-start;
    background: #f0fdf4; border: 1px solid #bbf7d0;
    border-radius: 14px; padding: 12px 14px;
    font-size: 14px; line-height: 1.9;
}
.acd-check .ac-ico { color: #16a34a; margin-top: 5px; }
.acd-dot { padding-right: 20px; line-height: 2; }

.acd-steps { list-style: none; padding: 0; margin: 0; }
.acd-steps li {
    display: flex; gap: 12px; align-items: center;
    background: #f8fafc; border: 1px solid #eef0f7;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 8px;
}
.acd-steps .n {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: var(--academy01); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 13px; flex: none;
}
.acd-steps .t { flex: 1; min-width: 0; }
.acd-steps .t b { display: block; font-size: 14px; font-weight: 700; line-height: 1.8; }
.acd-steps .t small { color: #6b7280; font-size: 12px; }
.acd-steps em.free {
    font-style: normal; font-size: 11px; font-weight: 700;
    background: #dcfce7; color: #15803d;
    padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.acd-steps li.is-hidden { display: none; }
.acd-more {
    display: block; width: 100%;
    border: 1px dashed var(--academy01);
    background: transparent; color: var(--academy01);
    padding: 11px; border-radius: 14px;
    cursor: pointer; font: inherit; font-size: 14px;
}
.acd-more:hover { background: var(--academy04); }

.acd-teacher {
    display: flex; align-items: center; gap: 14px;
    background: #fff; border: 1px solid #e8eaf6;
    border-radius: 18px; padding: 14px;
}
.acd-teacher .av {
    width: 58px; height: 58px; border-radius: 50%;
    background: linear-gradient(135deg, var(--academy01), #6d64ff);
    color: #fff; font-size: 24px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; flex: none;
}
.acd-teacher b { display: block; font-size: 16px; }
.acd-teacher small { color: #6b7280; font-size: 13px; }

.acd-faq details {
    background: #fff; border: 1px solid #e8eaf6;
    border-radius: 14px; margin-bottom: 8px; overflow: hidden;
}
.acd-faq summary {
    cursor: pointer; padding: 14px 16px;
    font-weight: 700; font-size: 14px;
    list-style: none; position: relative; padding-left: 40px;
}
.acd-faq summary::-webkit-details-marker { display: none; }
.acd-faq summary::after {
    content: "+"; position: absolute; left: 16px; top: 50%;
    transform: translateY(-50%);
    font-size: 22px; color: var(--academy01); line-height: 1;
}
.acd-faq details[open] summary::after { content: "−"; }
.acd-faq details[open] summary { background: var(--academy04); }
.acd-faq p { margin: 0; padding: 14px 16px; line-height: 2; font-size: 14px; color: #4b5563; }

/* ---- باکس خرید ---- */
.acd-buy { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; }
.acd-pricebox {
    background: #fff;
    border: 1px solid #e8eaf6;
    border-radius: 22px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 16px 40px rgba(67, 56, 202, 0.1);
    display: flex; flex-direction: column; gap: 6px; align-items: stretch;
}
.acd-pricebox .crs-mode { align-self: center; margin-bottom: 6px; }
.acd-pricebox del { color: #dc2626; font-size: 14px; }
.acd-pricebox .now { font-size: 28px; line-height: 1.4; }
.acd-pricebox .now small { font-size: 13px; font-weight: 400; color: #6b7280; }
.acd-pricebox .free-big { font-size: 30px; color: #16a34a; }
.acd-pricebox .save {
    background: #fef2f2; color: #dc2626;
    font-size: 12px; font-weight: 700;
    padding: 6px 10px; border-radius: 10px;
}
.acd-cta {
    display: block; text-align: center;
    background: var(--academy01); color: #fff;
    text-decoration: none; font-weight: 800;
    padding: 14px; border-radius: 14px;
    margin-top: 10px;
    box-shadow: 0 10px 22px rgba(67, 56, 202, 0.3);
    transition: 0.2s;
}
.acd-cta:hover { background: var(--academy03); }
.acd-cta.disabled { background: #9ca3af; box-shadow: none; cursor: not-allowed; }
.acd-call {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid var(--academy01); color: var(--academy01);
    text-decoration: none; padding: 11px; border-radius: 14px;
}
.acd-share {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; background: #f3f4f6; color: #4b5563;
    padding: 10px; border-radius: 14px; cursor: pointer;
    font: inherit; font-size: 13px;
}
.acd-mini {
    list-style: none; padding: 14px 0 0; margin: 8px 0 0;
    border-top: 1px dashed #e8eaf6;
    text-align: right; font-size: 13px;
    display: flex; flex-direction: column; gap: 10px;
}
.acd-mini li { display: flex; align-items: center; gap: 8px; }
.acd-mini .ac-ico { color: var(--academy01); }
.acd-trust {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid #e8eaf6;
    border-radius: 14px; padding: 12px; font-size: 13px;
}
.acd-trust i { color: var(--academy01); font-size: 18px; }

.acd-related { margin-top: 40px; }
.acd-related h2 { font-size: 22px; margin: 0 0 16px; }

/* نوار خرید موبایل */
.acd-mbar { display: none; }

/* ---- لایت‌باکس ---- */
#acd-lightbox {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.92);
    display: none;
    align-items: center; justify-content: center;
    z-index: 99999;
    padding: 20px;
}
#acd-lightbox.open { display: flex; }
#acd-lightbox-img { max-width: 100%; max-height: 90vh; border-radius: 14px; object-fit: contain; }
#acd-lightbox button {
    position: absolute; border: 0; cursor: pointer;
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.16); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
#acd-lightbox button:hover { background: rgba(255, 255, 255, 0.3); }
.lb-close { top: 18px; left: 18px; }
.lb-arrow { top: 50%; margin-top: -23px; }
.lb-arrow.prev { right: 18px; }
.lb-arrow.next { left: 18px; transform: scaleX(-1); }

/* ================= ریسپانسیو ================= */
@media (max-width: 1000px) {
    .ac-hero { grid-template-columns: 1fr; padding: 26px; }
    .ac-hero-media img { max-height: 260px; }
    .ac-modes { grid-template-columns: repeat(2, 1fr); }
    .acd-layout { grid-template-columns: 1fr; }
    .acd-buy { position: static; }
    .acd-mbar {
        position: fixed; bottom: 0; right: 0; left: 0; z-index: 90;
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        background: #fff;
        border-top: 1px solid #e8eaf6;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    }
    .acd-mbar .p b { font-size: 17px; display: block; }
    .acd-mbar .p small { font-size: 11px; font-weight: 400; color: #6b7280; }
    .acd-mbar .p del { display: block; font-size: 11px; color: #dc2626; }
    .acd-mbar .acd-cta { margin: 0; padding: 12px 28px; flex: none; }
    .acd.has-mbar { padding-bottom: 80px; }
}
@media (max-width: 600px) {
    .ac-hero { padding: 20px 16px; border-radius: 20px; }
    .ac-sub { font-size: 14px; line-height: 28px; }
    .ac-search { max-width: none; }
    .ac-search button { padding: 10px 14px; }
    .ac-float-card { display: none; }
    .ac-bar { padding: 10px; }
    .ac-mode { padding: 8px; gap: 8px; }
    .ac-mode-ico { width: 32px; height: 32px; font-size: 16px; }
    .ac-bar-row { flex-direction: column; align-items: stretch; overflow-x: auto; scrollbar-width: none;}
    .ac-group {
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }
    .ac-group::-webkit-scrollbar { display: none; }
    .crs-grid { gap: 14px; }
    .crs-body h3 { font-size: 16px; }
    .acd-facts { grid-template-columns: 1fr 1fr; }
    .acd-fact { padding: 10px; gap: 8px; }
    .acd-fact .ico { width: 34px; height: 34px; }
    .acd-main { border-radius: 16px; }
    .acd-sec h2 { font-size: 18px; }
    .acd-prose { font-size: 14px; line-height: 32px; }
    .acd-check { grid-template-columns: 1fr; }
    .acd-pricebox .now { font-size: 24px; }
    .ac-band { padding: 20px; }
    .ac-band-btn { width: 100%; justify-content: center; }
    .lb-arrow { display: none !important; }
}
@media (max-width: 380px) {
    .acd-facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .crs-card, .crs-cover img { animation: none; transition: none; }
}