/* =============================================
   SaudiJabo — শিক্ষার্থীর পাতাগুলোর CSS
   (লগইন, নিবন্ধন, আমার কোর্স, ক্লাসরুম, সাপোর্ট)
   ---------------------------------------------
   ⚠️ assets/css/tailwind.min.css একটি purge করা build — নতুন
   utility class সেখানে নেই। তাই এই পাতাগুলো নিজের class
   (`ln-`) ব্যবহার করে, Tailwind এর উপর নির্ভর করে না।
   ============================================= */

.ln { --g:#1B4332; --g2:#2d6a4f; --mint:#d8f3dc; --gold:#b7791f; --line:#e5e7eb; --mut:#6b7280; --ink:#1f2937;
      color: var(--ink); font-family: 'Hind Siliguri','Inter','Noto Sans Bengali',sans-serif; }
.ln *, .ln *::before, .ln *::after { box-sizing: border-box; }
.ln-wrap   { max-width: 1180px; margin: 0 auto; padding: 28px 16px 56px; }
.ln-narrow { max-width: 460px;  margin: 0 auto; padding: 36px 16px 64px; }
.ln-mid    { max-width: 820px;  margin: 0 auto; padding: 28px 16px 56px; }

.ln h1 { font-size: 26px; font-weight: 700; line-height: 1.35; margin: 0 0 6px; color: #111827; }
.ln h2 { font-size: 18px; font-weight: 700; margin: 0 0 12px; color: #111827; }
.ln-sub { color: var(--mut); font-size: 14.5px; line-height: 1.7; margin: 0 0 20px; }
.ln a { color: var(--g2); }

/* ---------- কার্ড, বোতাম, ফর্ম ---------- */
.ln-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px;
           box-shadow: 0 1px 2px rgba(0,0,0,.04); }
a.ln-btn, button.ln-btn, .ln-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 18px; border-radius: 10px; border: 1.5px solid var(--g); background: #fff; color: var(--g);
  font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.3;
  transition: background .15s, color .15s, box-shadow .15s; }
a.ln-btn:hover, button.ln-btn:hover { background: #f0fdf4; }
a.ln-btn-main, button.ln-btn-main, .ln-btn-main { background: var(--g); color: #fff; }
a.ln-btn-main:hover, button.ln-btn-main:hover { background: var(--g2); color: #fff; }
a.ln-btn-sm, button.ln-btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
a.ln-btn-ghost, button.ln-btn-ghost { border-color: var(--line); color: #374151; }
.ln-btn-wide { width: 100%; }
.ln-btn[disabled] { opacity: .5; cursor: not-allowed; }

.ln-f { margin-bottom: 14px; }
.ln-f label { display: block; font-size: 13.5px; font-weight: 600; color: #374151; margin-bottom: 5px; }
.ln-in { width: 100%; padding: 11px 13px; border: 1.5px solid #d1d5db; border-radius: 10px; font: inherit;
         font-size: 15px; background: #fff; color: var(--ink); }
.ln-in:focus { outline: none; border-color: var(--g2); box-shadow: 0 0 0 3px rgba(45,106,79,.15); }
textarea.ln-in { min-height: 110px; resize: vertical; line-height: 1.6; }
.ln-hint { font-size: 12.5px; color: var(--mut); line-height: 1.6; margin-top: 5px; }
.ln-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }

.ln-msg { padding: 11px 14px; border-radius: 10px; font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.ln-msg-ok  { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.ln-msg-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.ln-msg-info{ background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

.ln-foot { text-align: center; font-size: 14px; color: var(--mut); margin-top: 16px; line-height: 1.9; }
.ln-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
            background: #f3f4f6; color: #374151; white-space: nowrap; }
.ln-badge-green { background: #dcfce7; color: #166534; }
.ln-badge-amber { background: #fef3c7; color: #92400e; }
.ln-badge-red   { background: #fee2e2; color: #991b1b; }

/* ---------- উপরের ছোট মেনু ---------- */
.ln-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; }
.ln-nav a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: #374151;
            font-size: 14px; font-weight: 600; text-decoration: none; }
.ln-nav a:hover { border-color: var(--g2); color: var(--g); }
.ln-nav a.is-on { background: var(--g); border-color: var(--g); color: #fff; }
.ln-nav .ln-sp { flex: 1 1 auto; }
.ln-dot { display: inline-block; min-width: 19px; padding: 0 5px; border-radius: 999px; background: #dc2626; color: #fff;
          font-size: 11.5px; font-weight: 700; text-align: center; line-height: 19px; margin-left: 4px; }

/* ---------- আমার কোর্স ---------- */
.ln-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ln-course { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.ln-course-img { aspect-ratio: 16/9; background: linear-gradient(135deg, #1B4332, #2d6a4f); overflow: hidden; }
.ln-course-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ln-course-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.ln-course-body h3 { font-size: 16.5px; font-weight: 700; margin: 0; line-height: 1.45; color: #111827; }
.ln-bar { height: 8px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.ln-bar i { display: block; height: 100%; background: linear-gradient(90deg, #40916c, #74c69d); border-radius: 999px; }
.ln-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--mut); }
.ln-empty { text-align: center; padding: 44px 16px; color: var(--mut); }
.ln-empty b { display: block; color: #374151; font-size: 16px; margin: 8px 0 4px; }
.ln-list { list-style: none; margin: 0; padding: 0; }
.ln-list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between;
              padding: 11px 0; border-top: 1px solid #f3f4f6; font-size: 14px; }
.ln-list li:first-child { border-top: 0; }

/* ---------- ক্লাসরুম ---------- */
.ln-room { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
@media (max-width: 960px) { .ln-room { grid-template-columns: minmax(0, 1fr); } }
.ln-crumb { font-size: 13.5px; color: var(--mut); margin-bottom: 10px; }
.ln-crumb a { color: var(--mut); text-decoration: none; }
.ln-crumb a:hover { color: var(--g); }

.ln-player { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 14px; overflow: hidden; }
.ln-player video, .ln-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
/* জলছাপ — শিক্ষার্থীর নিজের পরিচয়, ভিডিওর উপরে ভেসে বেড়ায়। ক্লিক আটকায় না। */
.ln-wm { position: absolute; z-index: 3; pointer-events: none; user-select: none; white-space: nowrap;
         color: rgba(255,255,255,.34); font: 600 13px/1.3 'Inter', sans-serif; text-shadow: 0 0 3px rgba(0,0,0,.55);
         top: 8%; left: 6%; transition: top 1.2s ease, left 1.2s ease; }
.ln-lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
           gap: 12px; text-align: center; padding: 24px; color: #fff;
           background: linear-gradient(135deg, #0b1f17, #1B4332); }
.ln-lock b { font-size: 19px; }
.ln-lock p { margin: 0; color: #cfe8dc; font-size: 14.5px; line-height: 1.7; max-width: 420px; }
.ln-lock .ln-btn { border-color: #fff; }
/* তালাবন্ধ লেসনের থাম্বনেইল পেছনে হালকা দেখা যায় — «এই ক্লাসে কী আছে» */
.ln-player.has-thumb .ln-lock { background: linear-gradient(135deg, rgba(11,31,23,.84), rgba(27,67,50,.72)); }

.ln-ltitle { font-size: 21px; font-weight: 700; margin: 16px 0 6px; line-height: 1.4; color: #111827; }
.ln-lbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 4px; }
.ln-lbar .ln-sp { flex: 1 1 auto; }
.ln-prose { font-size: 15.5px; line-height: 1.9; color: #374151; overflow-wrap: anywhere; }

.ln-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; padding: 0; }
@media (max-width: 960px) { .ln-side { position: static; max-height: none; } }
.ln-side-head { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.ln-side-head b { display: block; font-size: 15px; }
.ln-mod > summary { list-style: none; cursor: pointer; padding: 12px 18px; background: #f9fafb; font-weight: 700; font-size: 14px;
                    border-bottom: 1px solid #f0f2f4; display: flex; gap: 8px; justify-content: space-between; }
.ln-mod > summary::-webkit-details-marker { display: none; }
.ln-mod > summary span { font-weight: 500; color: var(--mut); font-size: 12.5px; white-space: nowrap; }
a.ln-les, .ln-les { display: flex; gap: 10px; align-items: flex-start; padding: 11px 18px; border-bottom: 1px solid #f3f4f6;
                    font-size: 14px; line-height: 1.5; color: #374151; text-decoration: none; }
a.ln-les:hover { background: #f0fdf4; }
a.ln-les.is-on { background: #dcfce7; color: #14532d; font-weight: 600; }
.ln-les.is-locked { color: #9ca3af; }
.ln-les .ln-ic { flex: none; width: 20px; text-align: center; }
.ln-les .ln-t { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ln-les .ln-d { flex: none; font-size: 12px; color: #9ca3af; white-space: nowrap; }

/* ---------- সাপোর্ট ---------- */
.ln-thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.ln-bub { max-width: 86%; padding: 11px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.7; overflow-wrap: anywhere; }
.ln-bub small { display: block; font-size: 11.5px; opacity: .75; margin-top: 5px; }
.ln-bub em { display: block; font-style: normal; font-size: 12px; opacity: .8; margin-bottom: 4px; }
.ln-bub-me   { align-self: flex-end; background: var(--g); color: #fff; border-bottom-right-radius: 4px; }
.ln-bub-them { align-self: flex-start; background: #f3f4f6; color: var(--ink); border-bottom-left-radius: 4px; }
