/* ═══════════════ صفحه جزئیات دوره — آهولرن (تب چسبان + اسکرول) ═══════════════ */
@font-face{font-family:'IRANSans';src:local('IRANSansX'),local('IRANSans'),local('IRANSansWeb'),local('IRANSansXweb');font-display:swap;}
.ahd{--navy:#13294B;--deep:#0B1B33;--card:#10233F;--cream:#FFFBF3;--gold:#C9A24D;--gold-l:#E7C877;--red:#E5484D;--text:#1C2B46;--muted:#6B7A90;--soft:#F6F8FB;--line:#E5EAF2;--tint:#EEF5FE;
font-family:'IRANSans','Vazirmatn',Tahoma,sans-serif;background:var(--soft);color:var(--text);width:100%;}
.ahd *{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent;}
.ahd a{text-decoration:none;color:inherit;}
.ahd .full{width:100vw;margin-right:calc(50% - 50vw);}
.ahd .wrap{max-width:1300px;margin:0 auto;padding:0 24px;}
.ahd button:hover,.ahd a:hover{background-image:none!important;}
.ahd-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--navy)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:none;border-radius:12px;padding:13px 24px;font-weight:800;font-size:13.5px;cursor:pointer;font-family:inherit;transition:.25s;}
.ahd-btn:hover{background:var(--cream)!important;color:var(--navy)!important;-webkit-text-fill-color:var(--navy)!important;border:1px solid var(--gold)!important;}
.ahd-btn:disabled{opacity:.6;cursor:not-allowed;}
/* ═══ هدر سرمه‌ای ═══ */
.ahd-hero{background:var(--deep);padding:46px 0 42px;position:relative;overflow:hidden;}
.ahd-hero::before{content:"";position:absolute;inset:12px;border:1px solid rgba(201,162,77,.3);border-radius:20px;pointer-events:none;}
.ahd-hero .st{position:absolute;color:var(--gold-l);opacity:.4;font-size:13px;pointer-events:none;}
.ahd-hero .wrap{position:relative;}
.ahd-crumb{display:flex;gap:8px;align-items:center;color:#8FA3C0;font-size:12px;font-weight:700;margin-bottom:16px;flex-wrap:wrap;}
.ahd-crumb a{color:var(--gold-l);}
.ahd-hero h1{color:#fff;font-size:30px;font-weight:900;margin-bottom:14px;}
.ahd-hero h1 em{font-style:normal;color:var(--gold-l);}
.ahd-hmeta{display:flex;gap:20px;flex-wrap:wrap;color:#D5E0F2;font-size:12.5px;font-weight:700;}
.ahd-hmeta span b{color:var(--gold-l);}
.ahd-hmeta .stars{color:var(--gold-l);letter-spacing:2px;}
/* ═══ چیدمان ═══ */
.ahd-layout{display:grid;grid-template-columns:1fr 360px;gap:24px;padding:36px 24px 90px;align-items:start;}
/* نوار آمار */
.ahd-stats{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--line);border-radius:18px;margin-bottom:24px;overflow:hidden;}
.ahd-stat{padding:20px 14px;text-align:center;position:relative;}
.ahd-stat + .ahd-stat::before{content:"";position:absolute;right:0;top:20%;height:60%;width:1px;background:var(--line);}
.ahd-stat .ic{width:44px;height:44px;margin:0 auto 10px;border-radius:12px;background:var(--tint);display:flex;align-items:center;justify-content:center;font-size:19px;}
.ahd-stat small{display:block;color:var(--muted);font-size:10.5px;font-weight:800;margin-bottom:5px;}
.ahd-stat b{color:var(--navy);font-size:15px;font-weight:900;}
/* ═══ نوار تب چسبان — سرمه‌ای نوشته سفید ═══ */
.ahd-tabs{display:flex;background:var(--navy);border-radius:16px;overflow-x:auto;position:sticky;top:10px;z-index:40;box-shadow:0 14px 40px rgba(11,27,51,.3);margin-bottom:24px;border:1px solid var(--gold);}
.ahd-tab{flex:1;padding:16px 10px;text-align:center;color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:13px;font-weight:800;cursor:pointer;border:none;background:transparent;font-family:inherit;position:relative;white-space:nowrap;transition:.25s;}
.ahd-tab:hover{background:var(--card)!important;}
.ahd-tab.on{color:var(--gold-l)!important;-webkit-text-fill-color:var(--gold-l)!important;background:var(--deep)!important;}
.ahd-tab.on::after{content:"";position:absolute;bottom:0;right:20%;left:20%;height:3px;background:var(--gold);border-radius:4px;}
/* بخش‌ها — همه در یک صفحه */
.ahd-secbox{background:#fff;border:1px solid var(--line);border-radius:18px;padding:30px 28px;margin-bottom:24px;scroll-margin-top:90px;}
.ahd-sec{font-size:17px;font-weight:900;color:var(--navy);border-right:4px solid var(--gold);padding-right:12px;margin-bottom:20px;}
/* معرفی */
.ahd-learnbox{background:var(--soft);border:1px solid var(--line);border-radius:16px;padding:24px;margin-bottom:26px;}
.ahd-learnbox h4{font-size:14.5px;font-weight:900;color:var(--navy);margin-bottom:16px;}
.ahd-learn{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.ahd-learn span{display:flex;align-items:center;gap:10px;font-size:12.5px;font-weight:700;color:var(--text);}
.ahd-learn i{width:26px;height:26px;min-width:26px;border-radius:50%;background:#2B62B8;color:#fff;font-style:normal;display:flex;align-items:center;justify-content:center;font-size:12px;}
.ahd-txt p{font-size:13px;color:var(--muted);line-height:2.2;margin-bottom:14px;}
/* سرفصل‌ها */
.ahd-chchips{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px;}
.ahd-chchips span{background:var(--tint);color:#2B62B8;font-size:11.5px;font-weight:800;padding:7px 16px;border-radius:50px;}
.ahd-chapter{border:1px solid var(--line);border-radius:14px;margin-bottom:14px;overflow:hidden;}
.ahd-ch-h{display:flex;align-items:center;gap:12px;background:var(--navy);padding:15px 18px;cursor:pointer;}
.ahd-ch-h .no{background:var(--gold);color:var(--deep);font-size:11px;font-weight:900;padding:5px 12px;border-radius:8px;}
.ahd-ch-h b{flex:1;color:#fff;font-size:13.5px;}
.ahd-ch-h small{color:#B9C6DC;font-size:11px;font-weight:700;}
.ahd-ch-h .ar{transition:.3s;color:var(--gold-l);}
.ahd-chapter.open .ar{transform:rotate(180deg);}
.ahd-ch-b{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s ease;}
.ahd-chapter.open .ahd-ch-b{grid-template-rows:1fr;}
.ahd-ch-b>div{overflow:hidden;}
.ahd-lesson{display:flex;align-items:center;gap:12px;padding:14px 18px;border-top:1px solid var(--line);}
.ahd-lesson .li{width:34px;height:34px;min-width:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;}
.ahd-lesson.free .li{background:var(--gold);color:var(--deep);}
.ahd-lesson.lock .li{background:var(--soft);color:var(--muted);}
.ahd-lesson b{flex:1;font-size:12.5px;color:var(--navy);font-weight:700;}
.ahd-lesson small{color:var(--muted);font-size:11px;font-weight:700;}
.ahd-lesson .fr{background:#E5F6EC;color:#1F8A4C;font-size:10px;font-weight:800;padding:4px 12px;border-radius:50px;}
/* پیش‌نیاز */
.ahd-pre{background:var(--soft);border:1px solid var(--line);border-radius:16px;padding:24px;display:grid;gap:14px;}
.ahd-pre h4{font-size:14.5px;font-weight:900;color:var(--navy);}
.ahd-pre span{display:flex;align-items:center;gap:10px;font-size:12.5px;font-weight:700;}
.ahd-pre i{width:26px;height:26px;min-width:26px;border-radius:50%;background:#1F8A4C;color:#fff;font-style:normal;display:flex;align-items:center;justify-content:center;font-size:12px;}
/* مدرس */
.ahd-teach{display:flex;gap:20px;align-items:flex-start;background:var(--soft);border:1px solid var(--line);border-radius:16px;padding:24px;flex-wrap:wrap;}
.ahd-teach .tav{width:90px;height:90px;min-width:90px;border-radius:50%;background:var(--navy);color:var(--gold-l);border:3px solid var(--gold);display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:900;overflow:hidden;}
.ahd-teach .tav img{width:100%;height:100%;object-fit:cover;border-radius:50%;}
.ahd-teach h4{font-size:16px;font-weight:900;color:var(--navy);margin-bottom:8px;}
.ahd-teach p{font-size:12.5px;color:var(--muted);line-height:2.1;margin-bottom:14px;}
.ahd-tstats{display:flex;gap:10px;flex-wrap:wrap;}
.ahd-tstats span{background:#fff;border:1px solid var(--line);font-size:11px;font-weight:800;color:var(--navy);padding:6px 14px;border-radius:50px;}
/* نظرات */
.ahd-rsum{display:flex;gap:26px;align-items:center;background:var(--soft);border:1px solid var(--line);border-radius:16px;padding:24px;margin-bottom:24px;flex-wrap:wrap;}
.ahd-rbig{text-align:center;min-width:130px;}
.ahd-rbig b{font-size:44px;font-weight:900;color:var(--navy);display:block;}
.ahd-rbig .stars{color:var(--gold);font-size:16px;letter-spacing:3px;display:block;margin:6px 0;}
.ahd-rbig small{color:var(--muted);font-size:11px;font-weight:700;}
.ahd-rbars{flex:1;display:grid;gap:8px;min-width:220px;}
.ahd-rbar{display:flex;align-items:center;gap:10px;font-size:11px;font-weight:800;color:var(--muted);}
.ahd-rbar .tr{flex:1;height:8px;background:#E3E8F0;border-radius:10px;overflow:hidden;}
.ahd-rbar .tr i{display:block;height:100%;background:var(--gold);border-radius:10px;}
.ahd-cmt{border:1px solid var(--line);border-radius:16px;padding:20px;margin-bottom:14px;}
.ahd-cmt-h{display:flex;align-items:center;gap:12px;margin-bottom:12px;}
.ahd-cmt-h .cav{width:44px;height:44px;border-radius:50%;background:var(--tint);color:#2B62B8;display:flex;align-items:center;justify-content:center;font-weight:900;overflow:hidden;}
.ahd-cmt-h .cav img{width:100%;height:100%;object-fit:cover;border-radius:50%;}
.ahd-cmt-h b{font-size:13px;color:var(--navy);display:block;}
.ahd-cmt-h small{color:var(--muted);font-size:10.5px;font-weight:700;}
.ahd-cmt-h .stars{margin-right:auto;color:var(--gold);font-size:12px;letter-spacing:2px;}
.ahd-cmt p{font-size:12.5px;color:var(--muted);line-height:2;}
.ahd-cmt .rep{background:var(--cream);border:1px solid rgba(201,162,77,.4);border-radius:12px;padding:14px 16px;margin-top:12px;font-size:12px;color:var(--text);line-height:2;}
.ahd-cmt .rep b{color:#A87F2C;display:block;margin-bottom:4px;}
.ahd-cform{background:var(--soft);border:1px solid var(--line);border-radius:16px;padding:24px;margin-top:24px;}
.ahd-cform h4{font-size:14.5px;font-weight:900;color:var(--navy);margin-bottom:16px;}
.ahd-starsel{display:flex;gap:6px;margin-bottom:16px;}
.ahd-star{font-size:24px;color:#C9D2E0;cursor:pointer;transition:.2s;}
.ahd-star.on{color:var(--gold);}
.ahd-f{margin-bottom:14px;}
.ahd-f input,.ahd-f textarea{width:100%;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 16px;font-size:13px;font-family:inherit;outline:none;color:var(--text);}
.ahd-f input:focus,.ahd-f textarea:focus{border-color:var(--gold);}
.ahd-f textarea{min-height:110px;resize:vertical;}
/* ═══ کارت خرید — تخفیف کنار قیمت ═══ */
.ahd-buy{position:sticky;top:80px;background:#fff;border:1px solid var(--gold);border-radius:22px;padding:22px;box-shadow:0 22px 60px rgba(19,41,75,.14);}
.ahd-thumb{position:relative;border-radius:16px;overflow:hidden;background:var(--tint);display:flex;align-items:center;justify-content:center;height:210px;margin-bottom:18px;}
.ahd-thumb img{width:75%;height:75%;object-fit:cover;mix-blend-mode:multiply;transform:scale(1.1);}
.ahd-thumb .pl{position:absolute;width:58px;height:58px;border-radius:50%;background:rgba(255,255,255,.92);display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--navy);box-shadow:0 10px 26px rgba(0,0,0,.25);cursor:pointer;}
.ahd-thumb .dur{position:absolute;bottom:12px;left:12px;background:rgba(11,27,51,.85);color:#fff;font-size:10.5px;font-weight:800;padding:6px 12px;border-radius:50px;}
.ahd-price{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px;position:relative;}
.ahd-price .now{color:var(--navy);font-size:24px;font-weight:900;}
.ahd-price .now small{font-size:11px;font-weight:700;color:var(--muted);}
.ahd-price .was{color:var(--muted);font-size:13px;font-weight:700;text-decoration:line-through;}
.ahd-price .offpill{background:var(--red);color:#fff;font-size:11.5px;font-weight:900;padding:6px 14px;border-radius:50px;}
.ahd-buybtns{display:flex;gap:10px;margin-bottom:16px;position:relative;}
.ahd-buybtns .ahd-btn{flex:1;}
.ahd-favb{width:48px;min-width:48px;height:48px;border-radius:12px;background:#fff;border:1.5px solid var(--red);color:var(--red);display:flex;align-items:center;justify-content:center;font-size:18px;cursor:pointer;transition:.3s;}
.ahd-favb.active{background:var(--red);color:#fff;}
.ahd-guar{display:grid;gap:10px;border-top:1px dashed var(--line);padding-top:16px;position:relative;}
.ahd-guar span{display:flex;align-items:center;gap:10px;font-size:11.5px;font-weight:800;color:var(--text);}
.ahd-guar i{font-style:normal;color:#1F8A4C;}
/* توست */
.ahd-toast{position:fixed;bottom:26px;left:26px;background:var(--deep);color:#fff;border:1px solid var(--gold);border-radius:14px;padding:14px 24px;font-size:13px;font-weight:800;box-shadow:0 16px 40px rgba(0,0,0,.35);z-index:999;opacity:0;transform:translateY(20px);transition:.35s;pointer-events:none;font-family:'IRANSans','Vazirmatn',Tahoma,sans-serif;}
.ahd-toast.show{opacity:1;transform:none;}
.ahd-loading{display:inline-block;width:14px;height:14px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:ahdSpin .8s linear infinite;}
@keyframes ahdSpin{to{transform:rotate(360deg)}}
.ahd-empty{text-align:center;padding:60px 20px;color:var(--muted);font-size:14px;font-weight:700;background:#fff;border:1px dashed var(--line);border-radius:16px;}
.ahd-empty .e{font-size:48px;display:block;margin-bottom:16px;}
@media(max-width:1100px){.ahd-layout{grid-template-columns:1fr;}.ahd-buy{position:static;}.ahd-stats{grid-template-columns:repeat(2,1fr);}.ahd-stat + .ahd-stat::before{display:none;}}
@media(max-width:700px){.ahd-learn{grid-template-columns:1fr;}.ahd-hero h1{font-size:22px;}.ahd-tabs{top:0;border-radius:0;}}
