/* ESAC Learning Portal 3.1 — protected lesson player and module-test experience */
.esac-dashboard-content .esac-student-course-grid{align-items:stretch;grid-template-columns:repeat(auto-fill,minmax(270px,330px));justify-content:start}
.esac-owner-learning-panel{overflow:hidden;position:relative}
.esac-owner-learning-panel:before{background:linear-gradient(180deg,#d9ab36,#f2cf72);content:"";height:4px;inset:0 0 auto;position:absolute}
.esac-owner-learning-hub{display:grid;gap:14px;grid-template-columns:repeat(3,minmax(0,1fr))}
.esac-owner-learning-hub>a{background:linear-gradient(145deg,#f9fbfc,#fff);border:1px solid #dce6eb;border-radius:14px;color:#15384f;display:flex;flex-direction:column;min-height:185px;padding:20px;text-decoration:none;transition:border-color .2s,box-shadow .2s,transform .2s}
.esac-owner-learning-hub>a:hover{border-color:#d3a52f;box-shadow:0 14px 30px rgba(7,40,61,.09);transform:translateY(-2px)}
.esac-owner-learning-hub>a>span{color:#9b7210;font-size:9px;font-weight:900;letter-spacing:.13em}
.esac-owner-learning-hub>a>strong{font-size:17px;line-height:1.45;margin:10px 0 7px}
.esac-owner-learning-hub>a>p{color:#647987;font-size:11px;line-height:1.7;margin:0 0 15px}
.esac-owner-learning-hub>a>b{color:#9a7110;font-size:11px;margin-top:auto}
.esac-owner-learning-note{background:#f8f2e2;border-radius:10px;color:#675527;font-size:11px;line-height:1.65;margin:16px 0 0;padding:12px 14px}
.esac-learning-layout{direction:ltr;gap:22px;grid-template-columns:minmax(0,1fr) 368px}
.esac-learning-layout>.esac-lesson-stage{direction:ltr}
.esac-student-shell[dir="rtl"] .esac-learning-layout>.esac-lesson-stage,.esac-student-shell[dir="rtl"] .esac-learning-layout>.esac-curriculum{direction:rtl}
.esac-course-player-head{border-radius:14px;box-shadow:0 9px 24px rgba(7,40,61,.05);padding:13px 16px}
.esac-course-player-head>div{min-width:0}
.esac-course-player-head>div>strong{color:#12364e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.esac-course-player-head .esac-back-button{cursor:pointer}
.esac-lesson-stage{background:transparent;border:0;border-radius:0;min-height:620px;overflow:visible}
.esac-video-shell{border:1px solid #173d56;border-radius:15px;box-shadow:0 20px 48px rgba(7,36,55,.15);margin:0;isolation:isolate}
.esac-video-shell video{background:#020b12;object-fit:contain}
.esac-video-shell:focus-within{outline:3px solid rgba(219,173,54,.24);outline-offset:3px}
.esac-video-shell.is-guarded:after{content:attr(data-guard-message);font-size:13px;font-weight:800;line-height:1.7;text-align:center;z-index:8}
.esac-watermark-pattern{grid-template-columns:repeat(2,minmax(0,1fr));opacity:.11;transform:rotate(-16deg) scale(1.18)}
.esac-watermark-pattern span{font-size:9px;letter-spacing:.03em;padding:20px 14px;text-align:center}
.esac-video-watermark,.esac-external-watermark{backdrop-filter:blur(4px);background:rgba(4,25,39,.48);border-color:rgba(255,255,255,.32);box-shadow:0 5px 18px rgba(0,0,0,.18);font-size:9px;line-height:1.45;max-width:48%}
.esac-lesson-title{align-items:center;padding:24px 0 17px}
.esac-lesson-title>div>span{color:#a87e17;letter-spacing:.11em;text-transform:uppercase}
.esac-lesson-title h1{color:#12364e;font-size:clamp(23px,2.8vw,32px);line-height:1.3;margin:7px 0 4px}
.esac-lesson-title p{font-size:11px}
.esac-lesson-title>aside{align-items:flex-end;display:flex;flex-direction:column;gap:6px;max-width:290px;text-align:end}
.esac-lesson-title>aside b{align-items:center;background:#e7f4ec;border:1px solid #cce4d6;border-radius:999px;color:#17643e;display:flex;font-size:9px;gap:6px;padding:7px 10px}
.esac-lesson-title>aside b .esac-ui-icon{height:14px;width:14px}
.esac-lesson-title>aside small{color:#738692;font-size:9px;line-height:1.5}
.esac-lesson-tabs{background:#fff;border:1px solid #dce6eb;border-bottom:0;border-radius:14px 14px 0 0;padding:8px 21px 0}
.esac-lesson-content{background:#fff;border:1px solid #dce6eb;border-radius:0 0 14px 14px;box-shadow:0 11px 28px rgba(7,40,61,.05);grid-template-columns:1fr;padding:22px}
.esac-lesson-content section{background:transparent;border:0;border-radius:0;color:#3b5363;font-size:13px;line-height:1.9;padding:0}
.esac-lesson-content section+section{border-top:1px solid #e3eaee;margin-top:8px;padding-top:18px}
.esac-attachments{background:#fff;border:1px solid #dce6eb;border-radius:12px;margin:15px 0 0;padding:18px 20px}
.esac-curriculum{border-radius:15px;box-shadow:0 17px 42px rgba(8,39,58,.09);max-height:calc(100vh - 45px);overflow:auto;padding:0;scrollbar-color:#bdcbd3 transparent;scrollbar-width:thin}
.esac-curriculum>header{background:#fff;border-radius:15px 15px 0 0;padding:20px}
.esac-curriculum>header h2{font-size:17px;line-height:1.45;margin:7px 0 14px}
.esac-curriculum>header>small{color:#687e8d;display:block;font-size:10px;margin-top:8px}
.esac-curriculum section{border-bottom:1px solid #dfe7eb;padding-bottom:5px}
.esac-curriculum section:last-child{border-bottom:0}
.esac-curriculum section h3{background:#eef2f4;margin:0 0 3px;padding:13px 15px}
.esac-curriculum section h3>span{align-items:center;background:#d9aa34;border-radius:6px;color:#092d46;display:flex;font-size:9px;height:25px;justify-content:center;min-width:28px}
.esac-curriculum section h3 strong{font-size:12px;line-height:1.4}
.esac-curriculum section h3 small{font-size:8px;margin-top:2px}
.esac-curriculum section>button{border-radius:0;gap:9px;min-height:54px;padding:9px 14px}
.esac-curriculum section>button:hover,.esac-curriculum section>button.is-current{background:#fff8e8;box-shadow:inset 3px 0 0 #d4a62f}
.esac-student-shell[dir="rtl"] .esac-curriculum section>button:hover,.esac-student-shell[dir="rtl"] .esac-curriculum section>button.is-current{box-shadow:inset -3px 0 0 #d4a62f}
.esac-curriculum section>button>i{flex:0 0 27px;height:27px;width:27px}
.esac-curriculum section>button span>strong{font-size:11px;line-height:1.45}
.esac-curriculum section>button span>em{font-size:8px;line-height:1.5}
.esac-curriculum .esac-quiz-nav{border-width:0 0 0 3px;margin:5px 10px 8px;min-height:58px;width:calc(100% - 20px)}
.esac-student-shell[dir="rtl"] .esac-curriculum .esac-quiz-nav{border-width:0 3px 0 0}

.esac-assessment-sections{display:grid;gap:24px}
.esac-assessment-section>header{align-items:flex-start;border-bottom:1px solid #e0e8ec;display:flex;gap:18px;justify-content:space-between;margin-bottom:15px;padding:2px 2px 13px}
.esac-assessment-section>header span{color:#9b7210;font-size:9px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.esac-assessment-section>header h3{color:#16394f;font-size:17px;margin:4px 0 0}
.esac-assessment-section>header>b{align-items:center;color:#6e818d;display:flex;font-size:9px;font-weight:600;gap:7px;line-height:1.55;max-width:390px}
.esac-assessment-section>header>b .esac-ui-icon{color:#2d7650;flex:0 0 18px;height:18px;width:18px}
.esac-module-test-grid{display:grid;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr))}
.esac-module-test-card{background:#fff;border:1px solid #dce6eb;border-radius:14px;box-shadow:0 9px 24px rgba(7,40,61,.05);display:flex;flex-direction:column;overflow:hidden;padding:18px;position:relative}
.esac-module-test-card:before{background:#d8aa34;content:"";height:3px;inset:0 0 auto;position:absolute}
.esac-module-test-card>header{align-items:center;display:flex;justify-content:space-between}
.esac-module-test-card>header>span{align-items:center;background:#fff2ce;border-radius:999px;color:#75550b;display:flex;font-size:9px;font-weight:900;gap:6px;padding:6px 9px;text-transform:uppercase}
.esac-module-test-card>header>span i{background:#d3a42c;border-radius:50%;height:6px;width:6px}
.esac-module-test-card>header>b{background:#eef3f6;border-radius:7px;color:#526b7a;font-size:9px;padding:6px 8px}
.esac-module-test-card .esac-exam-heading{align-items:flex-start;display:grid;gap:10px;grid-template-columns:auto 1fr;margin:16px 0 8px}
.esac-module-test-card .esac-exam-heading>.esac-ui-icon{background:#e9f0f4;border-radius:10px;color:#164864;height:23px;padding:10px;width:23px}
.esac-module-test-card .esac-exam-heading small{color:#80909a;display:block;font-size:8px;font-weight:800;letter-spacing:.04em;margin:1px 0 4px;text-transform:uppercase}
.esac-module-test-card h2{color:#15384f;font-size:16px;line-height:1.45;margin:0}
.esac-module-test-card>p{color:#637987;flex:1;font-size:10px;line-height:1.75;margin:7px 0 14px}
.esac-module-test-card dl{border-bottom:1px solid #e2e9ed;border-top:1px solid #e2e9ed;display:grid;gap:7px;margin:0;padding:11px 0}
.esac-module-test-card dl>div{align-items:center;display:flex;justify-content:space-between}
.esac-module-test-card dt{align-items:center;color:#70838f;display:flex;font-size:9px;gap:6px}.esac-module-test-card dd{color:#15384f;font-size:10px;font-weight:900;margin:0}
.esac-module-test-card dt .esac-ui-icon{height:13px;width:13px}
.esac-module-test-card>button{align-items:center;background:#0b304a;border:0;border-radius:8px;color:#fff;cursor:pointer;display:flex;font-size:10px;font-weight:800;gap:8px;justify-content:space-between;margin-top:13px;min-height:41px;padding:8px 12px;width:100%}
.esac-module-test-card>button .esac-ui-icon{color:#efc65d;height:15px;width:15px}
.esac-module-test-card>button:disabled{background:#eef2f4;color:#83929b;cursor:not-allowed}.esac-module-test-card>button:disabled .esac-ui-icon{color:#8998a1}
.esac-module-test-card.is-passed:before{background:#219060}.esac-module-test-card.is-passed>header>span{background:#e1f4e9;color:#17653f}.esac-module-test-card.is-passed>header>span i{background:#278b60}
.esac-module-test-card.is-exhausted:before{background:#a54a4a}.esac-module-test-card.is-exhausted>header>span{background:#f6e5e5;color:#8a3737}.esac-module-test-card.is-exhausted>header>span i{background:#a54a4a}
.esac-module-test-card.is-preparing:before{background:#80919b}.esac-module-test-card.is-preparing>header>span{background:#eef2f4;color:#627784}.esac-module-test-card.is-preparing>header>span i{background:#80919b}

.esac-module-test-head{background:linear-gradient(125deg,#082d46,#135472);border-radius:14px;color:#fff;margin-bottom:13px;padding:22px 24px}
.esac-module-test-head>span{color:#edc457!important}.esac-module-test-head h1{color:#fff!important;margin-bottom:7px!important}.esac-module-test-head p{color:#cbdce5;font-size:10px;line-height:1.7;margin:0}
.esac-quiz-meta{margin:13px 0}.esac-quiz-meta>span{background:#fff;border-radius:10px;box-shadow:0 6px 18px rgba(7,40,61,.04);flex:1;min-width:130px;text-align:center}
.esac-quiz-instructions{border-radius:10px;font-size:11px;line-height:1.7}
.esac-quiz-progress{background:#fff;border:1px solid #dce6eb;border-radius:10px;padding:13px 16px}
.esac-quiz-progress p{color:#15384f;font-size:12px;font-weight:800;margin:0 0 9px}
.esac-quiz-progress progress{appearance:none;background:#e6edf1;border:0;border-radius:999px;display:block;height:8px;overflow:hidden;width:100%}
.esac-quiz-progress progress::-webkit-progress-bar{background:#e6edf1;border-radius:999px}
.esac-quiz-progress progress::-webkit-progress-value{background:#0b304a;border-radius:999px}
.esac-quiz-progress progress::-moz-progress-bar{background:#0b304a;border-radius:999px}
.esac-quiz-submit .esac-quiz-answered-summary{color:#15384f;font-size:12px;margin:0}
.esac-quiz-result>p.esac-quiz-result-count{color:#fff;font-size:14px;letter-spacing:normal;margin:0 0 12px}
.esac-student-quiz fieldset{background:#fff;box-shadow:0 7px 20px rgba(7,40,61,.04)}
.esac-student-quiz legend>div{display:grid;gap:3px}.esac-student-quiz legend>div small{color:#9c7412;font-size:8px;font-weight:900;letter-spacing:.11em}.esac-student-quiz legend>div b{line-height:1.55}
.esac-quiz-feedback article{background:#fff}.esac-quiz-feedback article small{line-height:1.7;margin-top:5px}

@media(max-width:1100px){.esac-owner-learning-hub{grid-template-columns:1fr}.esac-owner-learning-hub>a{min-height:0}.esac-learning-layout{grid-template-columns:minmax(0,1fr) 325px}.esac-module-test-grid{grid-template-columns:1fr}}
@media(max-width:780px){
  .esac-learning-layout{direction:initial;grid-template-columns:1fr}
  .esac-lesson-stage{min-height:0;order:1}
  .esac-curriculum{max-height:none;order:2;position:static}
  .esac-lesson-title{align-items:flex-start;flex-direction:column;padding-top:18px}
  .esac-lesson-title>aside{align-items:flex-start;max-width:none;text-align:start}
  .esac-video-shell{border-radius:11px}
  .esac-assessment-section>header{flex-direction:column}
  .esac-assessment-section>header>b{max-width:none}
  .esac-module-test-grid{grid-template-columns:1fr}
}
@media(max-width:620px){.esac-dashboard-content .esac-student-course-grid{grid-template-columns:1fr}}
@media(max-width:520px){.esac-course-player-head>div>strong{max-width:210px}.esac-curriculum section>button{min-height:59px}.esac-module-test-card{padding:15px}.esac-module-test-card .esac-exam-heading>.esac-ui-icon{height:20px;padding:8px;width:20px}.esac-student-quiz fieldset{padding:14px 10px}.esac-quiz-meta>span{min-width:calc(50% - 8px)}}
@media print{.esac-video-shell{display:none!important}}
