/* learn.mahamentor.com */
body { background: var(--soft); }
.lwrap { padding: 40px 20px 80px; max-width: 1120px; }
.lwrap.wide { max-width: 1400px; }
.lh1 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 24px; }
.sec { font-size: 22px; margin: 28px 0 14px; }
.muted { color: var(--muted); }
.err { color: #b42318; min-height: 1.2em; }
.center { text-align: center; }
.linkbtn { background: none; border: 0; font: inherit; color: var(--muted); cursor: pointer; }
.nav-links .muted { font-size: 14px; }
.lcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; max-width: 460px; margin: 0 auto; box-shadow: 0 20px 40px -30px rgba(11,29,63,.35); }
.lcard h2 { font-size: 24px; }
.lcard label { display: block; font-size: 14px; font-weight: 500; margin: 14px 0 0; }
.lcard input { display: block; width: 100%; margin-top: 6px; padding: 13px 14px; font: inherit; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.lcard input:focus { outline: 2px solid var(--gold); border-color: transparent; }
.btn.wide { width: 100%; justify-content: center; margin-top: 18px; border: 0; cursor: pointer; }
.lcard .btn { border: 0; cursor: pointer; }
.tick { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: #16a34a; color: #fff; font-size: 30px; }
/* My courses */
.mygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.mycard { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; }
.mycard img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.mycard div { padding: 16px 18px 20px; }
.mycard .by { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); }
.mycard h3 { margin: 4px 0 12px; }
.certlink { display: inline-block; margin-top: 8px; font-size: 13px; color: #16a34a; font-weight: 600; }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
/* Course player */
.cgrid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.player { position: relative; aspect-ratio: 16/9; background: var(--navy); border-radius: 16px; overflow: hidden; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.8); padding: 20px; text-align: center; }
.lhead { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.lhead h2 { font-size: 20px; margin: 0; }
.lhead .btn { border: 0; cursor: pointer; }
.prog { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 14px; margin-bottom: 12px; }
.list { display: grid; gap: 8px; max-height: 70vh; overflow: auto; }
.li { display: flex; gap: 12px; align-items: center; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; cursor: pointer; }
.li small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); }
.li.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(242,178,51,.25); }
.dot { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-weight: 600; font-size: 13px; }
.li.done .dot { background: #16a34a; color: #fff; }
@media (max-width: 900px) { .cgrid { grid-template-columns: 1fr; } .list { max-height: none; } }
/* Certificate */
.cert { max-width: 900px; margin: 0 auto; aspect-ratio: 1.414; background: #fff; border: 10px solid var(--navy); outline: 2px solid var(--gold); outline-offset: -20px; padding: 56px 64px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.clogo { height: 56px; width: auto; margin-bottom: 18px; }
.ctag { letter-spacing: .25em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.cpre { color: var(--muted); margin: 6px 0; }
.cert h1 { font-size: clamp(28px, 4vw, 46px); margin: 6px 0; color: var(--navy); }
.cert h2 { font-size: clamp(20px, 2.6vw, 28px); margin: 4px 0; }
.cby { color: var(--muted); }
.cfoot { display: flex; gap: 60px; margin-top: 28px; }
.cfoot b { display: block; font-size: 16px; }
.cfoot span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.cver { font-size: 12px; color: var(--muted); margin-top: 18px; }
@media print { .nav, .lfoot, .noprint { display: none !important; } body { background: #fff; } .lwrap { padding: 0; } @page { size: A4 landscape; margin: 0; } }
/* Admin */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; color: var(--muted); font-size: 13px; }
.stats b { display: block; font-size: 24px; color: var(--ink); }
.tw { overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.tw table { border-collapse: collapse; width: 100%; font-size: 13px; }
.tw th, .tw td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.lfoot { padding: 30px 0; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .nav-links #who { display: none; } }
