/* =====================================================================
   Public site — inner pages (about, courses, course detail, teachers, news,
   gallery, FAQ, contact, teacher request, privacy, purchase and download).
   Loaded after site.css.
   ===================================================================== */
.sx-page-head { background: var(--field); }
.sx-page-head .sx-wrap { padding-top: 48px; padding-bottom: 44px; }
.sx-page-head h1 { font-size: clamp(32px, 4.4vw, 58px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin: 0; color: var(--ink); }
.sx-page-head p { color: var(--muted); font-size: 18px; margin: 14px 0 0; max-width: 46em; }
.sx-crumbs { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0 0 16px; padding: 0; color: var(--muted); font-size: 14px; }
.sx-crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: #b3b9c3; }
.sx-crumbs a { color: var(--muted) !important; }
.sx-crumbs a:hover { color: var(--ink) !important; }
.sx-body { padding-top: 56px; }
.sx-body.split { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 56px; align-items: start; }
.sx-aside { position: sticky; top: 96px; display: grid; gap: 20px; }
.sx-box { background: var(--field); border-radius: 18px; padding: 24px; }
.sx-box h2, .sx-box h3 { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.sx-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sx-box li a { display: block; padding: 6px 0; color: var(--ink) !important; }
.sx-box li a:hover { color: var(--accent) !important; }
.sx-box li small { display: block; color: var(--muted); font-size: 13px; }
.sx-count { color: var(--muted); font-size: 15px; margin: 0 0 20px; }

/* course cards */
.sx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.sx-cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sx-card { display: flex; flex-direction: column; color: var(--ink) !important; }
.sx-card .pic { aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--field); }
.sx-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.sx-card:hover .pic img { transform: scale(1.03); }
.sx-card h3 { font-size: 19px; font-weight: 700; margin: 14px 0 4px; line-height: 1.4; }
.sx-card .meta { color: var(--muted); font-size: 14px; display: flex; gap: 6px 14px; flex-wrap: wrap; }
.sx-card .price { margin-top: 10px; font-size: 18px; font-weight: 700; display: flex; gap: 8px; align-items: baseline; }
.sx-card .price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.sx-card .price s { font-size: 14px; color: var(--muted); font-weight: 400; }
.sx-card .price.free { color: #247b50; }
.sx-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.sx-chips a { min-height: 40px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; background: var(--field); color: var(--ink) !important; font-size: 15px; }
.sx-chips a:hover { background: var(--line); }
.sx-chips a.on { background: var(--accent); color: #fff !important; }
.sx-chips span { color: var(--muted); font-size: 14px; align-self: center; margin-inline-end: 4px; }

/* question bank rows */
.sx-files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.sx-file { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.sx-file h3 { font-size: 17px; font-weight: 700; margin: 0; }
.sx-file p { color: var(--muted); margin: 2px 0 0; font-size: 14px; }

/* teachers */
.sx-teacher .soc { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.sx-teacher .soc a { font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--field); color: var(--muted) !important; }
.sx-teacher .soc a:hover { color: var(--ink) !important; }
.sx-teacher p.bio { color: var(--muted); font-size: 14px; margin: 4px 0 0; }

/* article (blog post, course description, privacy) */
.sx-article { font-size: 17px; line-height: 2; color: var(--ink); }
.sx-article h2, .sx-article h3, .sx-article h4 { font-weight: 800; margin: 32px 0 12px; line-height: 1.4; }
.sx-article p { margin: 0 0 16px; }
.sx-article img { border-radius: 14px; height: auto; }
.sx-article ul, .sx-article ol { padding-inline-start: 22px; margin: 0 0 16px; }
.sx-article a { color: var(--accent) !important; text-decoration: underline; }
.sx-article blockquote { border-inline-start: 4px solid var(--accent); margin: 20px 0; padding: 4px 18px; color: var(--muted); }
.sx-cover { border-radius: 20px; overflow: hidden; margin-bottom: 28px; background: var(--field); }
.sx-cover img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.sx-gallery-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.sx-gallery-2 img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.sx-meta { display: flex; gap: 8px 18px; flex-wrap: wrap; color: var(--muted); font-size: 15px; margin: 12px 0 0; }
.sx-tips { background: var(--field); border-radius: 16px; padding: 20px 24px; margin: 24px 0; }
.sx-tips h3 { margin: 0 0 8px; font-size: 17px; }
.sx-tips ul { margin: 0; }

/* comments */
.sx-comments { margin-top: 56px; }
.sx-comments h2 { font-size: 26px; font-weight: 800; margin: 0 0 20px; }
.sx-comment { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.sx-comment .av { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--field); display: grid; place-items: center; font-weight: 700; color: var(--muted); }
.sx-comment .av img { width: 100%; height: 100%; object-fit: cover; }
.sx-comment b { font-weight: 700; }
.sx-comment time { color: var(--muted); font-size: 14px; margin-inline-start: 10px; }
.sx-comment p { margin: 6px 0 0; }
.sx-reply { background: var(--field); border-radius: 20px; padding: 28px; margin-top: 32px; }
.sx-reply h3 { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.sx-reply .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* course detail */
.sx-course-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.sx-course-head .pic { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--field); position: relative; }
.sx-course-head .pic img { width: 100%; height: 100%; object-fit: cover; }
.sx-course-head .pic .play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--ink) !important; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.sx-teacher-line { display: flex; gap: 12px; align-items: center; margin-top: 18px; color: var(--ink) !important; }
.sx-teacher-line img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--field); }
.sx-price-box .price { font-size: 30px; font-weight: 800; margin: 0; }
.sx-price-box .price s { font-size: 17px; color: var(--muted); font-weight: 400; display: block; }
.sx-price-box dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 18px 0 22px; }
.sx-price-box dt { color: var(--muted); font-weight: 400; }
.sx-price-box dd { margin: 0; text-align: end; }
.sx-price-box .sx-btn { width: 100%; }
.sx-curriculum details { border-top: 1px solid var(--line); padding: 16px 0; }
.sx-curriculum summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.sx-curriculum summary::-webkit-details-marker { display: none; }
.sx-curriculum summary small { color: var(--muted); font-weight: 400; }
.sx-curriculum ol { margin: 12px 0 0; padding-inline-start: 22px; color: var(--muted); display: grid; gap: 6px; }
.sx-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin: 48px 0 24px; flex-wrap: wrap; }
.sx-tabs a { padding: 12px 0; color: var(--muted) !important; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.sx-tabs a:hover { color: var(--ink) !important; }

/* gallery page */
.sx-masonry { columns: 3 300px; column-gap: 16px; }
.sx-masonry a { display: block; margin-bottom: 16px; border-radius: 16px; overflow: hidden; break-inside: avoid; }
.sx-masonry img { width: 100%; display: block; transition: transform .35s ease; }
.sx-masonry a:hover img { transform: scale(1.03); }
.sx-lightbox { position: fixed; inset: 0; background: rgba(5, 9, 16, .9); z-index: 300; display: none; align-items: center; justify-content: center; padding: 24px; }
.sx-lightbox.open { display: flex; }
.sx-lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }
.sx-lightbox button { position: absolute; top: 18px; inset-inline-end: 18px; background: #fff; border: 0; border-radius: 999px; width: 44px; height: 44px; font-size: 22px; cursor: pointer; }

/* contact and teacher request */
.sx-contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.sx-contact-list { display: grid; gap: 18px; margin: 0; }
.sx-contact-list div { display: grid; gap: 2px; }
.sx-contact-list dt { color: var(--muted); font-weight: 400; font-size: 14px; }
.sx-contact-list dd { margin: 0; font-size: 19px; }
.sx-contact-list a { color: var(--ink) !important; }
.sx-map { margin-top: 56px; border-radius: 20px; overflow: hidden; background: var(--field); }
.sx-map iframe { width: 100%; height: 420px; border: 0; display: block; }
.sx-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sx-form .err, .sx-form .field-validation-error { color: #c4242a; font-size: 14px; }
.sx-form input[type=file] { padding: 10px; background: var(--surface); }

/* purchase and download pages */
.sx-receipt { max-width: 640px; margin: 0 auto; background: var(--field); border-radius: 22px; padding: 32px; }
.sx-receipt dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; margin: 20px 0; }
.sx-receipt dt { color: var(--muted); font-weight: 400; }
.sx-receipt dd { margin: 0; text-align: end; font-weight: 500; }
.sx-receipt .total { border-top: 1px solid #d9dde3; padding-top: 14px; font-size: 22px; font-weight: 800; }
.sx-receipt .sx-form { margin-top: 8px; }
.sx-result { max-width: 640px; margin: 0 auto; text-align: center; padding: 40px 0; }
.sx-result .icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; font-size: 40px; font-weight: 800; }
.sx-result .icon.ok { background: #dcfae5; color: #247b50; }
.sx-result .icon.bad { background: #ffedea; color: #c4242a; }
.sx-result h1 { font-size: 36px; font-weight: 800; margin: 0; }
.sx-result p { color: var(--muted); font-size: 18px; margin-top: 12px; }
.sx-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sx-app { background: var(--field); border-radius: 20px; padding: 26px; display: grid; gap: 10px; align-content: start; }
.sx-app h3 { font-size: 20px; font-weight: 800; margin: 0; }
.sx-app p { color: var(--muted); margin: 0; }
.sx-app ol { color: var(--muted); padding-inline-start: 20px; margin: 0; line-height: 1.9; }

@media (max-width: 1000px) {
  .sx-body.split, .sx-course-head, .sx-contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .sx-aside { position: static; }
  .sx-cards, .sx-cards.two { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .sx-files, .sx-apps { grid-template-columns: 1fr; }
  .sx-reply .two, .sx-form .two { grid-template-columns: 1fr; }
  .sx-page-head .sx-wrap { padding-top: 28px; padding-bottom: 28px; }
}
@media (max-width: 560px) { .sx-cards, .sx-cards.two { grid-template-columns: 1fr; } }
.sx-gallery-2 img:only-child { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
