/* Ham Academy: isolated learning experience around Tutor LMS. */
.hk-academy{--hka-navy:#233568;--hka-ink:#19264a;--hka-cyan:#15b9c9;--hka-pink:#d5256e;--hka-muted:#657996;background:#f5f7fb;color:var(--hka-ink);font-family:Vazirmatn,system-ui,sans-serif;line-height:1.9}
.hk-academy *{box-sizing:border-box}.hk-academy a{text-decoration:none}.hkacad-wrap{width:min(1200px,calc(100% - 48px));margin-inline:auto}
.hkacad-bar{position:relative;z-index:30;background:#fff;border-bottom:1px solid #e7edf5}
.hkacad-bar__inner{width:min(1200px,calc(100% - 48px));min-height:78px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px}
.hkacad-brand{display:inline-flex;align-items:center;gap:11px;color:var(--hka-navy)}.hkacad-brand:hover{color:var(--hka-navy)}.hkacad-brand__mark{display:grid;place-items:center;width:47px;height:47px;border-radius:15px;background:linear-gradient(145deg,#263a73,#17234f);color:#fff;box-shadow:0 8px 20px #23356824}.hkacad-brand__mark svg{width:29px;height:29px}.hkacad-brand__words strong,.hkacad-brand__words small{display:block}.hkacad-brand__words strong{font-size:19px;line-height:1.3;font-weight:850}.hkacad-brand__words small{margin-top:3px;color:#8190a7;font-size:10px;line-height:1.3}
.hkacad-bar__nav{display:flex;align-items:center;gap:22px}.hkacad-bar__courses{color:#435578;font-size:12px;font-weight:700}.hkacad-bar__panel{display:inline-flex;align-items:center;gap:9px;padding:9px 15px;border:1px solid #d5e0ed;border-radius:11px;color:#2d416f;background:#f8faff;font-size:12px;font-weight:700}.hkacad-bar__panel:hover{border-color:#95cdd9;color:#1b6179}.hkacad-bar__panel span{font-size:15px;line-height:1}
.hkacad-hero{position:relative;overflow:hidden;background:radial-gradient(circle at 22% 8%,#426798 0,transparent 36%),linear-gradient(120deg,#16234e,#283d78);color:#fff;isolation:isolate}
.hkacad-hero::after{content:"";position:absolute;inset:0;z-index:-1;background-image:radial-gradient(#fff 1px,transparent 1px);background-size:34px 34px;opacity:.07;mask-image:linear-gradient(90deg,#000,transparent 72%)}
.hkacad-hero__grid{display:grid;grid-template-columns:1.12fr .88fr;gap:35px;align-items:center;min-height:360px;padding-block:45px}
.hkacad-hero__eyebrow{display:inline-flex;align-items:center;gap:8px;color:#91e4eb;font-size:12px;font-weight:700}.hkacad-hero__eyebrow i{width:7px;height:7px;border-radius:50%;background:#46d8de;box-shadow:0 0 0 5px #46d8de20}
.hkacad-hero h1{margin:16px 0;color:#fff;font-size:clamp(27px,3vw,43px);font-weight:850;line-height:1.65}.hkacad-hero h1 em{color:#a1ecf1;font-style:normal}.hkacad-hero p{max-width:570px;margin:0;color:#d4e0ef;font-size:14px;line-height:2.2}.hkacad-hero__link{display:inline-flex;align-items:center;gap:12px;margin-top:22px;padding:11px 18px;border-radius:11px;background:#fff;color:#24386e;font-size:12px;font-weight:750}.hkacad-hero__link:hover{background:#dff8fa;color:#172c60}.hkacad-hero__link span{font-size:17px}
.hkacad-hero__art{position:relative;width:min(100%,370px);aspect-ratio:1.15;justify-self:center;display:grid;place-items:center}.hkacad-hero__orb{position:absolute;width:69%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 35% 30%,#5ddde66b,#345b9e45 55%,#23366e14);box-shadow:0 0 65px #1bc6d330}.hkacad-hero__ring{position:absolute;width:84%;height:58%;border:1px solid #8be9ef54;border-radius:50%;transform:rotate(-25deg)}.hkacad-hero__ring--two{width:72%;height:76%;border-color:#e7a7db38;transform:rotate(30deg)}.hkacad-hero__book{position:relative;display:grid;place-items:center;width:49%;aspect-ratio:1;border:1px solid #ddfbff66;border-radius:31%;background:linear-gradient(145deg,#ffffff40,#f7fbff14);box-shadow:inset 0 1px #fff7,0 22px 50px #07143d66;transform:rotate(-6deg)}.hkacad-hero__book svg{width:83%;height:83%}.hkacad-hero__spark{position:absolute;color:#81f0f2;font-size:22px}.hkacad-hero__spark--a{left:10%;top:18%}.hkacad-hero__spark--b{right:9%;bottom:19%;color:#f6a5ce}.hkacad-hero__badge{position:absolute;left:1%;bottom:8%;display:flex;align-items:center;gap:9px;padding:11px 14px;border:1px solid #eafcff55;border-radius:14px;background:#203861cf;box-shadow:0 10px 30px #09163260}.hkacad-hero__badge>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#25bbc74a;color:#9df8f8}.hkacad-hero__badge strong,.hkacad-hero__badge small{display:block;line-height:1.5}.hkacad-hero__badge strong{font-size:11px;color:#fff}.hkacad-hero__badge small{font-size:9px;color:#c3d7e7}
.hkacad-catalog{padding:65px 0 90px}.hkacad-section-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.hkacad-section-head span:not(.hkacad-section-head__mark){color:#b42d68;font-size:11px;font-weight:800}.hkacad-section-head h2{margin:5px 0;color:#1d2e5b;font-size:clamp(24px,2.5vw,31px);font-weight:850}.hkacad-section-head p{margin:0;color:#71819a;font-size:13px}.hkacad-section-head__mark{display:grid;place-items:center;width:49px;height:49px;border-radius:16px;background:#e5f8f9;color:#12aeba;font-size:25px}
.hk-academy .course-archive-page.tutor-container{width:min(1200px,calc(100% - 48px));max-width:none;margin-inline:auto;padding:0}.hk-academy .course-archive-page .tutor-course-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.hk-academy .course-archive-page .tutor-course-card{position:relative;display:flex;flex-direction:column;overflow:hidden;border:1px solid #dbe5f1;border-radius:20px;background:#fff;box-shadow:0 10px 28px #263a6a0b;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.hk-academy .course-archive-page .tutor-course-card:hover{transform:translateY(-4px);border-color:#a9d5e0;box-shadow:0 18px 35px #263a6a18}
.hk-academy .course-archive-page .tutor-course-thumbnail .tutor-ratio{overflow:hidden;border-radius:0;background:#e8f0fa}.hk-academy .course-archive-page .tutor-course-thumbnail img{width:100%;height:100%;object-fit:cover}.hk-academy .course-archive-page .tutor-course-bookmark{z-index:2}.hkacad-card__content{display:flex;flex:1;flex-direction:column;gap:8px;padding:21px 21px 10px}.hkacad-card__label{align-self:flex-start;padding:4px 9px;border-radius:7px;background:#e9f8f9;color:#0a8c9b;font-size:10px;font-weight:800}.hkacad-card__title{margin:0;color:#21325f;font-size:16px;font-weight:800;line-height:1.9}.hkacad-card__title a{color:inherit}.hkacad-card__title a:hover{color:#0e8ca0}.hkacad-card__content p{margin:0;color:#7889a1;font-size:12px;line-height:2}.hk-academy .course-archive-page .tutor-card-footer{padding:12px 21px 21px;border:0;margin-top:auto}.hk-academy .course-archive-page .tutor-card-footer .tutor-btn{min-height:43px;border:1px solid #d2deed;border-radius:10px;color:#25396e;font-family:inherit;font-weight:700}.hk-academy .course-archive-page .tutor-card-footer .tutor-btn:hover{border-color:#25396e;background:#25396e;color:#fff}
.hkacad-empty{display:flex;align-items:center;gap:16px;margin-top:8px;padding:25px;border:1px solid #dbe5f1;border-radius:17px;background:#fff;color:#30446d}.hkacad-empty>span{display:grid;place-items:center;flex:0 0 46px;height:46px;border-radius:14px;background:#e8f8f9;color:#12aeba;font-size:22px}.hkacad-empty strong{font-size:14px}.hkacad-empty p{margin:4px 0 0;color:#7889a1;font-size:12px}
.hkacad-path{padding:20px 0 0;color:#94a1b5;font-size:12px}.hkacad-path .hkacad-wrap{display:flex;gap:10px;align-items:center}.hkacad-path a{color:#365487;font-weight:700}
.hk-academy--course .tutor-course-details-page.tutor-container{width:min(1200px,calc(100% - 48px));max-width:none;margin:auto;padding:28px 0 80px}.hk-academy--course .tutor-course-details-header{position:relative;overflow:hidden;padding:32px 36px;border-radius:22px;background:radial-gradient(circle at 10% 0,#406c98,transparent 40%),linear-gradient(120deg,#1b2857,#2b427d);box-shadow:0 14px 32px #17275124}.hk-academy--course .tutor-course-details-title,.hk-academy--course .tutor-course-details-header .tutor-course-details-title span{color:#fff;font-family:inherit;font-size:clamp(23px,2.8vw,34px);line-height:1.7}.hk-academy--course .tutor-course-details-info,.hk-academy--course .tutor-course-details-info a,.hk-academy--course .tutor-course-details-actions a{color:#dceaf5}.hk-academy--course .tutor-course-details-actions a:hover{color:#a1ecf1}.hk-academy--course .tutor-course-details-tab,.hk-academy--course .tutor-single-course-sidebar .tutor-card{padding:24px;border:1px solid #dfe7f0;border-radius:19px;background:#fff;box-shadow:0 9px 28px #25386509}.hk-academy--course .tutor-video-player,.hk-academy--course .tutor-course-details-page main>img{overflow:hidden;border-radius:19px}.hk-academy--course .tutor-accordion-item{overflow:hidden;margin-bottom:10px;border:1px solid #e0e8f1;border-radius:12px}.hk-academy--course .tutor-accordion-item-header{font-family:inherit;font-weight:700}.hk-academy--course .tutor-btn-primary{border-radius:10px;background:#d5256e;border-color:#d5256e}
.hk-academy--learning .tutor-course-single-content-wrapper{background:#f5f7fb}.hk-academy--learning .tutor-course-single-sidebar-wrapper{background:#fff;border-color:#e1e8f1}.hk-academy--learning .tutor-course-single-sidebar-wrapper .tutor-accordion-item-header{background:#f6f8fc}.hk-academy--learning .tutor-course-topic-single-header{border-bottom:1px solid #e3eaf2;background:#fff}.hk-academy--learning #tutor-single-entry-content{min-width:0;background:#f8fafe}.hk-academy--learning .tutor-video-player{overflow:hidden;border-radius:14px}
.hk-academy a:focus-visible,.hk-academy button:focus-visible{outline:3px solid #1abccb;outline-offset:3px}
@media(max-width:900px){.hkacad-hero__grid{grid-template-columns:1fr .7fr;gap:10px}.hk-academy .course-archive-page .tutor-course-list{grid-template-columns:repeat(2,minmax(0,1fr))}.hkacad-hero__badge{left:-3%}}
@media(max-width:640px){.hkacad-wrap,.hkacad-bar__inner,.hk-academy .course-archive-page.tutor-container,.hk-academy--course .tutor-course-details-page.tutor-container{width:calc(100% - 32px)}.hkacad-bar__inner{min-height:68px;gap:8px}.hkacad-brand__mark{width:41px;height:41px;border-radius:13px}.hkacad-brand__words strong{font-size:16px}.hkacad-brand__words small{font-size:9px}.hkacad-bar__nav{gap:10px}.hkacad-bar__courses{font-size:11px}.hkacad-bar__panel{font-size:11px;padding:8px 10px}.hkacad-hero__grid{grid-template-columns:1fr;padding-block:38px 18px;gap:5px}.hkacad-hero h1{font-size:28px;line-height:1.55}.hkacad-hero p{font-size:13px}.hkacad-hero__art{width:min(75%,270px)}.hkacad-hero__badge{left:-6%;bottom:7%}.hkacad-catalog{padding:45px 0 65px}.hk-academy .course-archive-page .tutor-course-list{grid-template-columns:1fr;gap:16px}.hk-academy--course .tutor-course-details-header{padding:24px}.hk-academy--course .tutor-course-details-tab,.hk-academy--course .tutor-single-course-sidebar .tutor-card{padding:18px}.hkacad-section-head__mark{width:42px;height:42px}}
@media(prefers-reduced-motion:reduce){.hk-academy .course-archive-page .tutor-course-card{transition:none}.hk-academy .course-archive-page .tutor-course-card:hover{transform:none}}

/* Compact academy footer and gentle hero motion. */
.hkacad-footer{border-top:1px solid #e2eaf3;background:#fff;color:#71819a}
.hkacad-footer__inner{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:78px;padding-block:17px}
.hkacad-footer p{margin:0;font-size:11px;line-height:1.9}.hkacad-footer strong{color:#364a76;font-weight:700}.hkacad-footer__copyright{display:flex;align-items:center;gap:7px}
.hkacad-hero__book{animation:hkacad-book-float 6s ease-in-out infinite}
.hkacad-hero__ring--one{animation:hkacad-ring-one 38s linear infinite}
.hkacad-hero__ring--two{animation:hkacad-ring-two 48s linear infinite}
.hkacad-hero__spark{animation:hkacad-sparkle 3s ease-in-out infinite alternate}.hkacad-hero__spark--b{animation-delay:-1.5s}
@keyframes hkacad-book-float{0%,100%{transform:translateY(0) rotate(-6deg)}50%{transform:translateY(-8px) rotate(-4deg)}}
@keyframes hkacad-ring-one{from{transform:rotate(-25deg)}to{transform:rotate(335deg)}}
@keyframes hkacad-ring-two{from{transform:rotate(30deg)}to{transform:rotate(-330deg)}}
@keyframes hkacad-sparkle{from{opacity:.45;transform:scale(.8)}to{opacity:1;transform:scale(1.13)}}
@media(max-width:640px){.hkacad-footer__inner{flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center}.hkacad-footer p{font-size:10px}}
@media(prefers-reduced-motion:reduce){.hkacad-hero__book,.hkacad-hero__ring,.hkacad-hero__spark{animation:none}}

/* Personal progress, certificates, and course navigation. */
.hkacad-bar__performance{color:#435578;font-size:12px;font-weight:700}.hkacad-bar__performance[aria-current=page]{color:#0b93a3}
.hkprog-hero{position:relative;overflow:hidden;padding:28px 0 76px;background:radial-gradient(circle at 10% 20%,#416994,transparent 38%),linear-gradient(120deg,#172551,#2a4079);color:#fff}.hkprog-hero::after{content:"✦";position:absolute;left:12%;top:28%;color:#73dfea;font-size:95px;opacity:.14;transform:rotate(-15deg)}
.hkprog-hero__path{display:flex;gap:10px;color:#aabdd5;font-size:11px}.hkprog-hero__path a{color:#d2e7f4}.hkprog-hero__eyebrow{display:block;margin-top:34px;color:#80e3e9;font-size:12px;font-weight:800}.hkprog-hero h1{margin:10px 0 12px;color:#fff;font-size:clamp(29px,3vw,42px);font-weight:850;line-height:1.65}.hkprog-hero h1 em{color:#a1ecf1;font-style:normal}.hkprog-hero p{max-width:650px;margin:0;color:#d1dfef;font-size:14px;line-height:2.2}
.hkprog-main{padding-bottom:85px}.hkprog-stats{position:relative;z-index:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:-38px}.hkprog-stats>div{padding:20px 23px;border:1px solid #dce7f1;border-radius:17px;background:#fff;box-shadow:0 12px 28px #1d315e12}.hkprog-stats span,.hkprog-stats strong,.hkprog-stats small{display:block}.hkprog-stats span{color:#71819b;font-size:11px;font-weight:700}.hkprog-stats strong{margin:4px 0;color:#24376c;font-size:29px;font-weight:850;line-height:1.35}.hkprog-stats small{color:#9aa8ba;font-size:10px}.hkprog-stats>div:last-child strong{color:#0a9ba9}
.hkprog-heading{display:flex;align-items:end;justify-content:space-between;gap:15px;margin:56px 0 20px}.hkprog-heading span{color:#b42d68;font-size:11px;font-weight:800}.hkprog-heading h2{margin:5px 0;color:#20315e;font-size:24px;font-weight:850}.hkprog-heading p{margin:0;color:#7d8da3;font-size:12px}.hkprog-heading>a{color:#244275;font-size:12px;font-weight:700;white-space:nowrap}
.hkprog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.hkprog-card{display:flex;flex-direction:column;overflow:hidden;border:1px solid #dbe5f1;border-radius:19px;background:#fff;box-shadow:0 10px 25px #263a6a0b}.hkprog-card__media{position:relative;display:grid;place-items:center;aspect-ratio:16/8;background:linear-gradient(140deg,#d8f1f3,#e6edfb);overflow:hidden}.hkprog-card__media>img{width:100%;height:100%;object-fit:cover}.hkprog-card__media>span:first-child:not(.hkprog-card__status){color:#40b7c4;font-size:44px}.hkprog-card__status{position:absolute;top:12px;right:12px;padding:4px 10px;border-radius:8px;background:#fdf7e9;color:#a66e0b;font-size:10px;font-weight:800}.hkprog-card__status.is-done{background:#e6f8f1;color:#168668}
.hkprog-card__body{display:flex;flex:1;flex-direction:column;padding:20px}.hkprog-card h3{margin:0 0 20px;color:#253761;font-size:15px;font-weight:800;line-height:1.9}.hkprog-card h3 a{color:inherit}.hkprog-card__progress-label{display:flex;justify-content:space-between;gap:10px;margin-top:auto;color:#8290a4;font-size:11px}.hkprog-card__progress-label strong{color:#354d78}.hkprog-card__track{height:7px;margin-top:8px;overflow:hidden;border-radius:99px;background:#edf2f7;direction:ltr}.hkprog-card__track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#13aebc,#66dce0)}.hkprog-card__actions{display:flex;flex-direction:column;gap:8px;margin-top:20px}.hkprog-card__actions a{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;border:1px solid #dbe4ef;border-radius:10px;color:#2d4577;font-size:11px;font-weight:700}.hkprog-card__actions a:hover{border-color:#96cfd7;background:#f5fcfc}.hkprog-card__actions .hkprog-card__certificate{border-color:#273a70;background:#273a70;color:#fff}.hkprog-card__actions .hkprog-card__certificate:hover{background:#1b2b5b;color:#fff}.hkprog-card__note{color:#8c99ad;font-size:11px}
.hkprog-empty{display:flex;align-items:center;gap:15px;padding:24px;border:1px solid #dbe5f1;border-radius:17px;background:#fff}.hkprog-empty>span{display:grid;place-items:center;flex:0 0 46px;height:46px;border-radius:14px;background:#e8f8f9;color:#12aeba;font-size:22px}.hkprog-empty strong{color:#30446d;font-size:14px}.hkprog-empty p{margin:4px 0 0;color:#8391a4;font-size:12px}
.hk-academy--certificate .tutor-download-certificate{position:relative;width:min(850px,calc(100% - 32px));max-width:none;margin:35px auto 65px;padding:28px!important;border:1px solid #dfe8f1;border-radius:20px;background:#fff;box-shadow:0 15px 40px #20346310}.hkacad-cert-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:30px;padding:22px;border-radius:15px;background:#edf9fa}.hkacad-cert-banner span,.hkacad-cert-banner strong{display:block}.hkacad-cert-banner div>span{color:#0c99a7;font-size:11px;font-weight:800}.hkacad-cert-banner strong{margin-top:5px;color:#24376c;font-size:17px}.hkacad-cert-banner p{margin:5px 0 0;color:#71839a;font-size:12px}.hkacad-cert-download{display:inline-flex;align-items:center;justify-content:center;gap:9px;flex:none;min-height:46px;padding:11px 17px;border:0;border-radius:10px;background:#d5256e;color:#fff;font-family:inherit;font-size:12px;font-weight:800;cursor:pointer}.hkacad-cert-download:hover{background:#b91e5d}.hkacad-cert-download:focus-visible{outline:3px solid #1abccb;outline-offset:3px}.hkacad-cert-download span{font-size:17px;line-height:1}
@media(min-width:1200px){.hk-academy--course .tutor-course-details-page>.tutor-row{flex-direction:row-reverse}.hk-academy--course .tutor-course-details-page>.tutor-row>aside .tutor-single-course-sidebar{position:sticky;top:24px}}
@media(max-width:900px){.hkprog-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.hkprog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.hkprog-hero{padding-bottom:64px}.hkprog-hero h1{font-size:29px}.hkprog-hero p{font-size:13px}.hkprog-stats{gap:10px}.hkprog-stats>div{padding:16px}.hkprog-stats strong{font-size:24px}.hkprog-grid{grid-template-columns:1fr}.hkprog-heading{margin-top:42px}.hkprog-heading h2{font-size:21px}.hkacad-cert-banner{align-items:stretch;flex-direction:column}.hk-academy--certificate .tutor-download-certificate{padding:18px!important}}
@media(max-width:480px){.hkacad-bar__inner{flex-wrap:wrap;padding-block:10px;gap:10px}.hkacad-bar__nav{flex:1 1 100%;justify-content:space-between;gap:8px}.hkacad-bar__performance,.hkacad-bar__courses,.hkacad-bar__panel{font-size:11px}.hkacad-bar__panel{padding:6px 9px}}

/* Certificate controls stay below the document on all screens. */
.hk-academy--certificate .tutor-certificate-demo{max-width:100%}.hk-academy--certificate .tutor-dc-button-group{position:static;display:flex;justify-content:flex-end;align-items:center;gap:12px;flex-wrap:wrap;margin-top:20px!important}

/* Academy certificate: a calm celebration and a stable preview while Tutor renders. */
.hk-academy--certificate .tutor-download-certificate{width:min(1100px,calc(100% - 40px));max-width:none;margin:38px auto 72px;padding:0!important;border:0;border-radius:0;background:transparent;box-shadow:none}
.hkcert-hero{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:center;gap:28px;min-height:330px;padding:46px clamp(26px,5vw,66px);border-radius:30px;background:radial-gradient(circle at 13% 20%,rgba(20,170,187,.24),transparent 32%),radial-gradient(circle at 85% 90%,rgba(83,83,189,.28),transparent 35%),linear-gradient(125deg,#101b3e,#132950 62%,#102c48);color:#fff;box-shadow:0 22px 55px rgba(18,34,70,.2)}
.hkcert-hero:before,.hkcert-hero:after{content:"";position:absolute;pointer-events:none;border:1px solid rgba(173,247,244,.11);border-radius:50%;width:430px;height:430px;left:-170px;top:-210px;z-index:-1}.hkcert-hero:after{width:540px;height:540px;left:-225px;top:-265px}
.hkcert-hero__copy{max-width:620px}.hkcert-eyebrow{display:inline-flex;align-items:center;gap:9px;padding:8px 14px;border:1px solid rgba(120,229,225,.27);border-radius:30px;background:rgba(36,194,193,.1);color:#a5efed;font-size:13px;font-weight:700}.hkcert-eyebrow span{font-size:17px;color:#79ece2}
.hkcert-hero h1{color:#fff;font-size:clamp(28px,3.4vw,45px);line-height:1.6;font-weight:900;margin:19px 0 11px;letter-spacing:-.03em}.hkcert-hero h1 em{color:#64e1dc;font-style:normal}.hkcert-hero p{color:#d0dbee;font-size:15px;line-height:2.15;margin:0;max-width:570px}.hkcert-hero p strong{color:#fff}
.hkcert-hero__actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:24px}.hkcert-pdf{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:13px;padding:13px 20px;background:#37c7c0;color:#0c2940;font:inherit;font-weight:800;cursor:pointer;box-shadow:0 8px 22px rgba(38,200,191,.22);transition:transform .2s,background .2s}.hkcert-pdf:hover{transform:translateY(-3px);background:#71e5db}.hkcert-pdf span{font-size:24px;line-height:1}.hkcert-hero__actions a{padding:12px 5px;color:#dfeefb;text-decoration:none;font-size:14px;font-weight:700}.hkcert-hero__actions a:hover{color:#79ece2}
.hkcert-art{position:relative;display:grid;place-items:center;min-height:260px}.hkcert-art svg{width:190px;max-width:66%;filter:drop-shadow(0 18px 30px rgba(0,0,0,.18));animation:hkcert-float 5s ease-in-out infinite}.hkcert-orbit{position:absolute;width:260px;height:260px;border:1px solid rgba(158,240,239,.24);border-radius:50%}.hkcert-orbit--two{width:215px;height:215px;border-style:dashed;animation:hkcert-spin 32s linear infinite}.hkcert-spark{position:absolute;color:#7ce9e0;font-size:23px;animation:hkcert-glow 3s ease-in-out infinite}.hkcert-spark--one{top:20px;right:47px}.hkcert-spark--two{left:35px;top:74px;font-size:30px;animation-delay:.7s}.hkcert-spark--three{bottom:19px;left:77px;color:#ffc4d9;animation-delay:1.2s}
@keyframes hkcert-float{50%{transform:translateY(-9px)}}@keyframes hkcert-spin{to{transform:rotate(360deg)}}@keyframes hkcert-glow{50%{opacity:.45;transform:scale(.8)}}
.hk-academy--certificate .tutor-dc-title{width:min(900px,100%);margin:38px auto 20px;text-align:center}.hk-academy--certificate .tutor-certificate-demo:not(#div-to-print){position:relative;display:grid;place-items:center;width:min(900px,100%);max-width:100%;aspect-ratio:var(--hkcert-ratio,3417 / 2640);margin:0 auto!important;padding:0!important;overflow:hidden;border:1px solid #dce6f1;border-radius:20px;background:linear-gradient(115deg,#f1f5fa 25%,#fff 50%,#f1f5fa 75%);background-size:200% 100%;animation:hkcert-shimmer 2s linear infinite;box-shadow:0 16px 45px rgba(33,52,82,.12)}
.hk-academy--certificate .tutor-certificate-demo:not(#div-to-print):before{content:"در حال آماده‌سازی گواهی شما…";position:absolute;top:57%;left:0;right:0;text-align:center;color:#617892;font-size:14px}.hk-academy--certificate .tutor-certificate-demo:not(#div-to-print):after{content:"";position:absolute;left:calc(50% - 17px);top:calc(47% - 17px);width:34px;height:34px;border:3px solid #cce7e8;border-top-color:#10a8aa;border-radius:50%;animation:hkcert-spin .9s linear infinite}
.hk-academy--certificate .tutor-dc-demo-img{position:absolute;inset:0;z-index:1;display:block}.hk-academy--certificate #tutor-pro-certificate-preview{width:100%!important;height:100%!important;max-width:100%;object-fit:contain;background:#fff}.hk-academy--certificate #tutor-pro-certificate-preview[data-is_generated="no"]:not(.hkcert-fallback){opacity:0}.hk-academy--certificate .tutor-dc-certificate-details{width:min(900px,100%);margin:25px auto!important;padding:23px!important;border:1px solid #dbe5ee;border-radius:18px;background:#fff}.hk-academy--certificate .tutor-dc-button-group{width:min(900px,100%);margin:20px auto!important}.hkcert-notice{display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap;padding:14px;margin:20px auto 0;border-radius:12px;color:#425c75;background:#eef7f8;font-size:13px}.hkcert-notice[hidden]{display:none}.hkcert-notice button{border:0;background:transparent;color:#047c85;font:inherit;font-weight:800;cursor:pointer}@keyframes hkcert-shimmer{to{background-position:-200% 0}}
@media(max-width:700px){.hk-academy--certificate .tutor-download-certificate{width:calc(100% - 28px);margin:20px auto 48px}.hkcert-hero{grid-template-columns:1fr;gap:0;padding:28px 22px;border-radius:23px}.hkcert-art{grid-row:1;min-height:155px}.hkcert-art svg{width:108px}.hkcert-orbit{width:150px;height:150px}.hkcert-orbit--two{width:125px;height:125px}.hkcert-spark--one{right:calc(50% - 72px);top:7px}.hkcert-spark--two{left:calc(50% - 77px);top:35px}.hkcert-spark--three{left:calc(50% - 55px);bottom:0}.hkcert-hero h1{font-size:29px;margin:15px 0 8px}.hkcert-hero p{font-size:14px}.hkcert-hero__actions{gap:10px}.hkcert-pdf{padding:12px 16px}.hk-academy--certificate .tutor-dc-title{margin:28px auto 15px}.hk-academy--certificate .tutor-dc-certificate-details{padding:15px!important}.hk-academy--certificate .tutor-certificate-demo:not(#div-to-print){border-radius:12px}}
@media(prefers-reduced-motion:reduce){.hkcert-art svg,.hkcert-orbit,.hkcert-spark,.hk-academy--certificate .tutor-certificate-demo:not(#div-to-print){animation:none}.hkcert-pdf{transition:none}}

/* Original Ham Academy logo, kept proportional on every screen. */
.hkacad-brand{flex:0 0 auto;max-width:100%}.hkacad-brand__logo{display:block;width:164px;height:auto;max-width:100%;object-fit:contain}
@media(max-width:640px){.hkacad-brand__logo{width:140px}}
@media(max-width:360px){.hkacad-brand__logo{width:126px}}

/* Keep course metadata legible on the hero and enrollment date together. */
.hk-academy--course .tutor-course-details-header .tutor-course-details-info,
.hk-academy--course .tutor-course-details-header .tutor-course-details-info > div,
.hk-academy--course .tutor-course-details-header .tutor-course-details-info span,
.hk-academy--course .tutor-course-details-header .tutor-course-details-info a{color:#fff}
.hk-academy--course .tutor-sidebar-card > .tutor-card-body{padding-inline:24px}
.hk-academy--course .tutor-sidebar-card .tutor-enrolled-info-text{white-space:nowrap;font-size:11px;letter-spacing:-.15px}
.hk-academy--course .tutor-sidebar-card .tutor-enrolled-info-date{font-size:inherit;white-space:nowrap}
@media(max-width:360px){.hk-academy--course .tutor-sidebar-card .tutor-enrolled-info-text{white-space:normal}}

/* Academy course sidebar: progress, actions and course details in one clear card. */
.hk-academy--course .tutor-single-course-sidebar .tutor-sidebar-card{
  position:relative;overflow:hidden;padding:0;border:1px solid #dce7f0;border-radius:22px;background:#fff;
  box-shadow:0 15px 38px rgba(25,46,85,.09);
}
.hk-academy--course .tutor-sidebar-card:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#25386f,#0fbbbf 65%,#75ddd4)}
.hk-academy--course .tutor-sidebar-card > .tutor-card-body{
  padding:26px 22px 23px;background:radial-gradient(circle at 6% 0,rgba(35,194,190,.11),transparent 42%),linear-gradient(160deg,#f6fbfd,#fff 74%);
}
.hk-academy--course .tutor-sidebar-card .tutor-course-progress-wrapper{margin:0 0 20px;padding:0}
.hk-academy--course .tutor-sidebar-card .tutor-course-progress-wrapper h3{
  display:flex;align-items:center;gap:10px;margin:0 0 18px;color:#21335f;font-size:16px;font-weight:800;line-height:1.7;
}
.hk-academy--course .tutor-sidebar-card .tutor-course-progress-wrapper h3:before{
  content:"";display:block;flex:none;width:9px;height:25px;border-radius:8px;background:linear-gradient(180deg,#23c6c1,#137eaa);box-shadow:0 4px 10px #19aba748;
}
.hk-academy--course .tutor-sidebar-card .list-item-progress > div:first-child{gap:8px;color:#7888a0;font-size:12px}
.hk-academy--course .tutor-sidebar-card .progress-steps{direction:ltr;unicode-bidi:isolate;color:#243c72;font-size:14px;font-weight:800}
.hk-academy--course .tutor-sidebar-card .progress-percentage{display:inline-flex;align-items:center;padding:4px 9px;border-radius:8px;background:#e8f8f7;color:#09878c;font-size:11px;font-weight:700}
.hk-academy--course .tutor-sidebar-card .tutor-progress-bar{height:8px;margin-top:13px;overflow:hidden;border-radius:20px;background:#dfeaf0}
.hk-academy--course .tutor-sidebar-card .tutor-progress-value{height:100%;border-radius:inherit;background:linear-gradient(90deg,#17a6b2,#3dd9c8)}
.hk-academy--course .tutor-sidebar-card .tutor-btn{min-height:45px;border-radius:11px;font-family:inherit;font-size:13px;font-weight:800;transition:background-color .2s,box-shadow .2s,transform .2s}
.hk-academy--course .tutor-sidebar-card .tutor-btn-primary{border-color:#d5256e;background:#d5256e;color:#fff;box-shadow:0 8px 18px rgba(213,37,110,.18)}
.hk-academy--course .tutor-sidebar-card .tutor-btn-primary:hover{border-color:#b91c5b;background:#b91c5b;color:#fff;box-shadow:0 10px 21px rgba(185,28,91,.25);transform:translateY(-2px)}
.hk-academy--course .tutor-sidebar-card .tutor-btn-outline-primary{border-color:#cbdbe8;color:#273e70;background:#fff}
.hk-academy--course .tutor-sidebar-card .tutor-card-body > .tutor-color-muted.tutor-d-flex{
  align-items:center;gap:7px;margin-top:17px;padding:10px 9px;border:1px solid #dcefed;border-radius:11px;background:#f2faf9;color:#61778a;line-height:1.6;
}
.hk-academy--course .tutor-sidebar-card .tutor-icon-purchase-mark{flex:none;margin:0;color:#0d9e9c;font-size:15px}
.hk-academy--course .tutor-sidebar-card .tutor-enrolled-info-text{min-width:0;font-size:11px;letter-spacing:-.15px;white-space:nowrap}
.hk-academy--course .tutor-sidebar-card .tutor-enrolled-info-date{color:#118d88;font-size:inherit;white-space:nowrap}
.hk-academy--course .tutor-sidebar-card > .tutor-card-footer{padding:9px 22px 17px;border-top:1px solid #e9f0f5;background:#fff}
.hk-academy--course .tutor-sidebar-card .tutor-card-footer .tutor-ul{margin:0;padding:0;list-style:none}
.hk-academy--course .tutor-sidebar-card .tutor-card-footer li{align-items:center;gap:12px;margin:0;padding:11px 0;border-bottom:1px solid #eff3f7}
.hk-academy--course .tutor-sidebar-card .tutor-card-footer li:last-child{border-bottom:0}
.hk-academy--course .tutor-sidebar-card .tutor-card-footer li > span:first-child{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;margin:0;border-radius:10px;background:#eef7f9;color:#1598a1;font-size:15px}
.hk-academy--course .tutor-sidebar-card .tutor-card-footer li > span:last-child{color:#536983;font-size:12px;line-height:1.8}
@media(max-width:360px){.hk-academy--course .tutor-sidebar-card .tutor-enrolled-info-text{white-space:normal}}
@media(prefers-reduced-motion:reduce){.hk-academy--course .tutor-sidebar-card .tutor-btn{transition:none}.hk-academy--course .tutor-sidebar-card .tutor-btn-primary:hover{transform:none}}

/* A compact learning catalog and the original Tutor sort control in the hero. */
.hkacad-hero__actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:24px}
.hkacad-hero__actions .hkacad-hero__link{min-height:48px;margin:0;padding:11px 18px}
.hkacad-hero__sort{position:relative;max-width:100%}
.hkacad-hero__sort:after{content:"";position:absolute;left:16px;top:19px;width:7px;height:7px;border-left:1.5px solid #d5f7f5;border-bottom:1.5px solid #d5f7f5;transform:rotate(-45deg);pointer-events:none}
.hkacad-hero__sort .tutor-course-filter,.hkacad-hero__sort form{display:block!important;margin:0}
.hkacad-hero__sort select.tutor-form-select{appearance:none;display:block;width:220px;max-width:100%;height:48px;min-height:48px;margin:0;padding:0 15px 0 35px;border:1px solid rgba(203,238,247,.35);border-radius:11px;background:rgba(255,255,255,.09);color:#fff;font-family:inherit;font-size:12px;font-weight:700;line-height:1.4;cursor:pointer;box-shadow:inset 0 1px rgba(255,255,255,.08);transition:background-color .2s,border-color .2s}
.hkacad-hero__sort select.tutor-form-select:hover,.hkacad-hero__sort select.tutor-form-select:focus{border-color:#8ae3e0;background-color:rgba(255,255,255,.15);color:#fff}
.hkacad-hero__sort select.tutor-form-select:focus-visible{outline:3px solid #8ae3e0;outline-offset:3px}
.hkacad-hero__sort select option{background:#fff;color:#22375e}
.hkacad-catalog{scroll-margin-top:24px;padding:54px 0 86px}
.hkacad-catalog__heading{display:flex;align-items:center;gap:14px;margin:0 0 25px}
.hkacad-catalog__icon{display:grid;place-items:center;flex:none;width:48px;height:48px;border:1px solid #cceeea;border-radius:15px;background:linear-gradient(145deg,#e2f8f5,#f8fffe);color:#0ba3a3;box-shadow:0 6px 18px rgba(19,159,158,.09)}
.hkacad-catalog__icon svg{width:25px;height:25px}
.hkacad-catalog__heading h2{margin:0;color:#1d2e5b;font-size:22px;font-weight:850;line-height:1.5}
.hkacad-catalog__heading p{margin:3px 0 0;color:#7a8aa2;font-size:12px;line-height:1.7}
.hkacad-catalog__line{flex:1;min-width:20px;height:1px;margin-inline-start:8px;background:linear-gradient(90deg,transparent,#d7e5ee)}
@media(max-width:640px){.hkacad-hero__actions{gap:10px;margin-top:20px}.hkacad-hero__sort select.tutor-form-select{width:205px}.hkacad-catalog{padding:38px 0 65px}.hkacad-catalog__heading{gap:11px;margin-bottom:20px}.hkacad-catalog__icon{width:42px;height:42px;border-radius:13px}.hkacad-catalog__heading h2{font-size:19px}.hkacad-catalog__heading p{font-size:11px}}
@media(max-width:380px){.hkacad-hero__sort select.tutor-form-select{width:190px}.hkacad-catalog__line{display:none}}
@media(prefers-reduced-motion:reduce){.hkacad-hero__sort select.tutor-form-select{transition:none}}

/* The sort control uses the native select so keyboard and screen-reader behavior remain intact. */
.hkacad-hero__actions .hkacad-hero__link{height:52px;min-height:52px;box-sizing:border-box;align-items:center}
.hkacad-hero__sort:after{top:50%;border-color:#192232;transform:translateY(-65%) rotate(-45deg)}
.hkacad-hero__sort select.tutor-form-select{height:52px;min-height:52px;box-sizing:border-box;border:1px solid #d9e3ec;background:#fff;color:#161b22;box-shadow:none}
.hkacad-hero__sort select.tutor-form-select:hover,.hkacad-hero__sort select.tutor-form-select:focus{border-color:#35b9bf;background:#fff;color:#161b22}
.hkacad-hero__sort select.tutor-form-select option{background:#fff;color:#161b22}

/* Keep the sorting menu above the hero edge and the course catalog. */
.hkacad-hero{overflow:visible;z-index:3}
.hkacad-hero__sort{z-index:5}
.hkacad-hero__sort.hkacad-hero__sort--enhanced:after{display:none}
.hkacad-hero__sort select[hidden]{display:none!important}
.hkacad-sort{position:relative;width:220px;max-width:100%}
.hkacad-sort__trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;height:52px;padding:0 15px;border:1px solid #d9e3ec;border-radius:11px;background:#fff;color:#161b22;font:700 12px/1.5 Vazirmatn,system-ui,sans-serif;cursor:pointer;text-align:right}
.hkacad-sort__trigger:after{content:"";flex:none;width:7px;height:7px;margin-inline-start:4px;border-left:1.5px solid #192232;border-bottom:1.5px solid #192232;transform:translateY(-2px) rotate(-45deg);transition:transform .18s}
.hkacad-sort__trigger[aria-expanded="true"]{border-color:#32b5b8;box-shadow:0 0 0 3px rgba(66,205,201,.18)}
.hkacad-sort__trigger[aria-expanded="true"]:after{transform:translateY(2px) rotate(135deg)}
.hkacad-sort__trigger:focus-visible,.hkacad-sort__option:focus-visible{outline:3px solid #45c8c4;outline-offset:2px}
.hkacad-sort__menu{position:absolute;z-index:20;top:calc(100% + 8px);right:0;width:max(100%,260px);max-width:calc(100vw - 32px);margin:0;padding:6px;list-style:none;border:1px solid #dae5ed;border-radius:13px;background:#fff;color:#1d2a40;box-shadow:0 16px 38px rgba(13,26,56,.24)}
.hkacad-sort__menu[hidden]{display:none}
.hkacad-sort__option{position:relative;display:block;width:100%;padding:10px 12px;border:0;border-radius:8px;background:#fff;color:#25334b;font-size:12px;font-weight:600;line-height:1.7;text-align:right;white-space:normal;cursor:pointer}
.hkacad-sort__option:hover,.hkacad-sort__option:focus{background:#eef8f8;color:#17345b}
.hkacad-sort__option[aria-selected="true"]{background:#e3f6f4;color:#087f83;font-weight:800}
@media(max-width:640px){.hkacad-sort{width:205px}}
@media(max-width:380px){.hkacad-sort{width:190px}}
@media(prefers-reduced-motion:reduce){.hkacad-sort__trigger:after{transition:none}}

/* Keep the selected label readable against the white control in every state. */
.hk-academy .hkacad-hero .hkacad-sort__trigger,
.hk-academy .hkacad-hero .hkacad-sort__trigger:hover,
.hk-academy .hkacad-hero .hkacad-sort__trigger:focus,
.hk-academy .hkacad-hero .hkacad-hero__sort select.tutor-form-select{background:#fff!important;color:#161b22!important}

/* Keep the certificate footer at the bottom of short viewports. */
body.hk-academy--certificate{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
body.hk-academy--certificate > .hkacad-bar,body.hk-academy--certificate > .hkacad-footer{flex-shrink:0}
body.hk-academy--certificate > .hkacad-footer{margin-top:auto}
