/* =================================================================================================
   Public pages, shared shell (every logged-out page outside the home page loads this first, then its own file).
   Builds on the glass theme (theme-base.css / theme-parts.css): .g-page, .g-panel, .g-tile, .g-head, .g-btn and the tokens.
   Phone first; computers from 1024px. No hard-coded colours, so the dark theme keeps working.

     .pg--narrow / .pg--slim   a narrower centred column (860px / 560px) for reading and form pages
     .pg-top                   the page title panel: .g-head with an <h1>, a .g-sub line and optional tools under it
     .pg-crumb                 the "back to ..." pill above the first panel
     .pg-find                  a search box with its button
     .pg-chips                 filter pills (scroll sideways on phones, wrap on computers)
     .pg-list / .pg-row        a list of tappable rows with an icon, two lines of text and an arrow
     .pg-empty                 a calm "nothing here yet" box
     .pg-form                  labels, fields and buttons inside a panel
     .pg-pair                  two buttons side by side
     .pg-auth                  the sign-in card
   ================================================================================================= */

/* ---------- Column widths ---------- */
.pg--narrow, .pg--slim { align-items: center; }
.pg--narrow > * { width: 100%; max-width: 860px; }
.pg--slim > * { width: 100%; max-width: 560px; }

/* ---------- Page title panel. theme-parts.css sizes .g-head h2 only; a page's own title is an h1. ---------- */
.g-head h1 { margin: 0; font-size: 25px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.g-head h1 svg { display: inline-block; width: 26px; height: 26px; margin-right: 8px; vertical-align: -5px; color: var(--g-accent); }
.pg-top { display: flex; flex-direction: column; gap: 12px; }
.pg-top .g-head { margin: 0; }
.pg-top .g-sub { margin: -6px 0 0; font-size: 16px; }
.pg-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 559px) { .pg-tools > .g-btn { flex: 1 1 auto; justify-content: center; } }
.pg-meta { margin: 0 auto 0 0; font-size: 15px; color: var(--g-muted); }
.pg-figure { width: 100%; height: auto; border-radius: var(--g-r-tile); }
@media (min-width: 1024px) {
  .g-head h1 { font-size: 34px; }
  .g-head h1 svg { width: 32px; height: 32px; vertical-align: -6px; }
  .pg-top .g-sub { font-size: 17px; }
}

/* ---------- Back link ---------- */
.pg-crumb { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 44px; padding: 0 16px;
  margin-bottom: calc(12px - var(--g-gap)); border-radius: 999px; background: var(--g-tile); border: 1px solid var(--g-tile-line);
  color: var(--g-accent); font-size: 15px; font-weight: 700; }
.pg-crumb span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* A breadcrumb with several links (the course page): each link is a full-height tap target. */
nav.pg-crumb a { display: inline-flex; align-items: center; min-height: 44px; }
.pg-crumb:hover { background: var(--g-tile-hover); color: var(--g-accent-hover); }
/* In a narrow column the pill lines up with the column's left edge. */
.pg--narrow > .pg-crumb, .pg--slim > .pg-crumb { width: auto; align-self: flex-start; }
.pg--narrow > .pg-crumb { margin-left: max(0px, calc((100% - 860px) / 2)); }
.pg--slim > .pg-crumb { margin-left: max(0px, calc((100% - 560px) / 2)); }

/* ---------- Search box ---------- */
.pg-find { display: flex; gap: 8px; margin: 0; }
.pg-find input { flex: 1; min-width: 0; min-height: 50px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--g-line); background: var(--g-field);
  color: var(--g-text); font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; }
.pg-find input::placeholder { color: var(--g-muted); opacity: 1; }
.pg-find input:focus { outline: none; border-color: var(--g-accent); box-shadow: 0 0 0 3px rgba(83, 44, 235, .15); }
.pg-find .g-btn { flex: none; padding: 0 18px; }
@media (min-width: 1024px) { .pg-find { max-width: 560px; } }

/* ---------- Filter pills ---------- */
.pg-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -12px; padding: 2px 12px 6px; scrollbar-width: none; }
.pg-chips::-webkit-scrollbar { display: none; }
.pg-chips :is(a, button) { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  background: var(--g-tile); border: 1px solid var(--g-tile-line); color: var(--g-text); font: inherit; font-size: 15px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.pg-chips :is(a, button):hover { background: var(--g-tile-hover); }
.pg-chips :is(a, button) i { font-style: normal; font-size: 13px; line-height: 1.6; padding: 0 7px; border-radius: 999px; background: var(--g-icon-bg); color: var(--g-accent); }
.pg-chips :is(a, button).on { background: var(--g-brand); border-color: var(--g-brand); color: #fff; }
.pg-chips :is(a, button).on i { background: rgba(255, 255, 255, .22); color: #fff; }
.pg-chips--sub :is(a, button) { min-height: 44px; font-weight: 400; }
@media (min-width: 768px) { .pg-chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } }

/* ---------- Rows ---------- */
.pg-list { display: flex; flex-direction: column; gap: 8px; }
.pg-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; }
.pg-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.45; }
.pg-row__text b { font-size: 17px; overflow-wrap: anywhere; }
.pg-row__text small { font-size: 14px; color: var(--g-muted); overflow-wrap: anywhere; }
.pg-row__go { flex: none; width: 20px; height: 20px; color: var(--g-accent); }
@media (min-width: 1024px) { .pg-row { padding: 14px 18px; gap: 14px; } .pg-row__text b { font-size: 18px; } }

/* ---------- Nothing here yet ---------- */
.pg-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; text-align: center; color: var(--g-muted); font-size: 16px; }
.pg-empty b { color: var(--g-text); font-size: 18px; }
.pg-empty a:not(.g-btn) { color: var(--g-accent); text-decoration: underline; }
.pg-empty .g-btn { margin-top: 8px; }

/* ---------- Reading text (notices, pages, product details) ---------- */
.pg-text { font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; }
.g-tile.pg-text { padding: 16px; }
@media (min-width: 1024px) { .g-tile.pg-text { padding: 22px 26px; } }
.pg-text img { height: auto; border-radius: var(--g-r-small); }
.pg-text a { color: var(--g-accent); }

/* ---------- Forms ---------- */
.pg-form label:not(.choice) { display: block; margin: 14px 0 6px; font-size: 16px; font-weight: 700; }
.pg-form :is(input:not([type=radio]):not([type=checkbox]):not([type=hidden]), textarea, select) {
  width: 100%; min-height: 52px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--g-line); background: var(--g-field);
  color: var(--g-text); font: inherit; font-size: 17px; }
.pg-form textarea { min-height: 120px; resize: vertical; }
.pg-form :is(input, textarea, select):focus { outline: none; border-color: var(--g-accent); box-shadow: 0 0 0 3px rgba(83, 44, 235, .15); }
.pg-form ::placeholder { color: var(--g-muted); opacity: 1; }
.pg-form > .g-btn, .pg-form .pg-submit { margin-top: 18px; }
.pg-form .err { margin: 6px 0 0; font-size: 15px; }
.pg-hint { margin: 8px 0 0; font-size: 15px; color: var(--g-muted); }
.pg-hint a { color: var(--g-accent); text-decoration: underline; }
.pg-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pg-pair .g-btn { padding: 0 10px; }

/* ---------- Sign in ---------- */
.pg-auth { text-align: center; }
.pg-auth .g-ico--lg { margin: 0 auto 8px; }
.pg-auth h1 { margin: 0; font-size: 25px; line-height: 1.35; }
.pg-auth .pg-hint { margin: 6px 0 18px; }
.pg-auth form, .pg-auth .pg-form { text-align: left; }
.pg-phone { display: flex; }
.pg-phone span { flex: none; display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--g-line); border-right: 0; border-radius: 14px 0 0 14px;
  background: var(--g-icon-bg); color: var(--g-accent); font-weight: 700; }
.pg-form .pg-phone input { border-radius: 0 14px 14px 0; }
.pg-links { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 12px; }
.pg-links .pg-hint { margin: 0; }
.pg-links form { display: contents; }
.pg-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--g-accent);
  font: inherit; font-size: 16px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- The shared copy button (partials/copy), in glass ---------- */
.copybtn { min-height: 44px; padding: 0 14px; border-color: var(--g-tile-line); background: var(--g-tile); color: var(--g-accent); font-size: 15px; font-weight: 700; }
.copybtn:hover { border-color: var(--g-accent); background: var(--g-tile-hover); color: var(--g-accent); }
.copybtn.mini { width: 44px; height: 44px; }

/* ---------- Old message boxes on these pages, nudged to the glass look ---------- */
.g-page .err-box { margin: 0; border-radius: var(--g-r-small); }
.g-page .ok { margin: 0; padding: 12px 16px; border: 1px solid #34d399; border-radius: var(--g-r-small); }

/* ---------- Small kind label at the start of a row ("কোর্স", "PDF", "ফ্রি প্রিভিউ") ---------- */
.pg-kind { flex: none; align-self: center; min-width: 64px; padding: 2px 10px; border-radius: 999px; background: var(--g-icon-bg); color: var(--g-accent);
  font-size: 13px; font-weight: 700; line-height: 1.6; text-align: center; white-space: nowrap; }
.pg-kind--free { align-self: flex-start; min-width: 0; background: rgba(16, 185, 129, .14); color: var(--g-green-text); }

/* ---------- A free lesson preview (partials/content-body) inside a panel ---------- */
.pg-preview { font-size: 17px; line-height: 1.75; }
.pg-preview .video { border: 0; border-radius: var(--g-r-tile); }
.pg-preview .liveroom { background: var(--g-tile); border-color: var(--g-tile-line); }

/* ---------- A list of form errors inside a .g-note--bad ---------- */
.pg-errors { margin: 0; padding-left: 20px; }
.g-panel > .g-note { margin: 0 0 12px; }

/* ---------- A student's public profile (.pf on the shared .pcard) ---------- */
.pf { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; overflow: hidden; }
.pf .pcover { align-self: stretch; margin: -18px -12px 0; border-radius: 0; background: linear-gradient(135deg, #5b31e1, #3f47e0); }
.pf h1 { margin: 4px 0 0; font-size: 25px; overflow-wrap: anywhere; }
.pf-roll { margin: 0; font-size: 15px; color: var(--g-muted); }
.pf .pfacts { margin: 0; }
.pf .pfacts span { padding: 2px 12px; border-radius: 999px; background: var(--g-tile); border: 1px solid var(--g-tile-line); font-size: 14px; }
.pf .pg-hint { margin: 0; }
.pf-stats { align-self: stretch; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 6px 0; }
.pf-stats div { font-size: 14px; color: var(--g-muted); }
.pf-stats b { display: block; font-size: 22px; color: var(--g-text); }
.pf form { align-self: stretch; margin: 0; }
.pf > .g-btn { align-self: stretch; }
.pf-share { justify-content: center; }
@media (min-width: 768px) { .pf .pcover { margin: -28px -28px 0; } }

/* ---------- The full FAQ page (resources/views/faq.blade.php) ---------- */
.faq-find { width: 100%; min-height: 50px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--g-line); background: var(--g-field); color: var(--g-text); font: inherit; font-size: 17px; }
.faq-find::placeholder { color: var(--g-muted); opacity: 1; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-list .g-faq p { margin: 0; overflow-wrap: anywhere; }
.faq-list .g-faq p + p { margin-top: 8px; }
.faq-list .g-faq a, .faq-none a { color: var(--g-accent); text-decoration: underline; }
.faq-none { margin: 0; color: var(--g-muted); }
.faq-call { display: flex; flex-direction: column; gap: 12px; }
.faq-call h2 { margin: 0; font-size: 21px; }
.faq-call h2 svg { width: 24px; height: 24px; margin-right: 8px; vertical-align: -4px; color: var(--g-accent); }
.faq-call__actions { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 600px) { .faq-call__actions { flex-direction: row; } .faq-call__actions .g-btn { flex: 1; } }
