* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; background: var(--color-bg); color: var(--color-text); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img, iframe { max-width: 100%; }
button, input, textarea, select { font: inherit; }
.site-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; padding: .42rem clamp(1rem, 4vw, 4rem); background: color-mix(in srgb, var(--color-bg) 88%, transparent); border-bottom: 1px solid var(--color-border); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; justify-content: center; width: clamp(78px, 10vw, 132px); min-height: 58px; font-weight: 900; }
.brand img { width: 100%; max-width: 118px; max-height: 56px; object-fit: contain; }
.brand b { display: inline-block; padding: .1rem .32rem; }
.brand b:nth-child(1) { background: #fff; color: var(--color-primary); }
.brand b:nth-child(2) { background: var(--color-primary); color: #fff; }
.brand b:nth-child(3) { background: #020617; color: #fff; }
.nav-links { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.nav-links a { padding: .6rem .75rem; color: var(--color-muted); font-weight: 700; border-radius: 8px; }
.nav-links a:hover { color: var(--color-text); background: var(--color-card); }
.menu-toggle { display: none; background: var(--color-card); color: var(--color-text); border: 1px solid var(--color-border); border-radius: 8px; padding: .5rem .7rem; }
.hero { min-height: 76vh; display: grid; place-items: center; padding: clamp(4rem, 9vw, 8rem) 1rem; text-align: center; background: radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--color-primary) 24%, transparent), transparent 36%), linear-gradient(180deg, var(--color-bg), var(--color-surface)); }
.hero-inner { max-width: 980px; }
.eyebrow, .badge { color: var(--color-accent); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 900; }
h1, h2, h3 { line-height: 1.12; letter-spacing: 0; }
.hero h1 { font-size: clamp(3rem, 8vw, 7rem); margin: .4rem 0; color: var(--color-primary); text-shadow: 0 0 40px color-mix(in srgb, var(--color-primary) 70%, transparent); font-weight: 900; }
.hero-sub { color: var(--color-accent); font-weight: 900; text-transform: uppercase; }
.hero-copy { max-width: 740px; margin: 1rem auto 0; color: var(--color-muted); font-size: 1.08rem; }
.hero-actions, .actions { display: flex; gap: .8rem; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 1.5rem; }
.btn, button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 44px; padding: .78rem 1.1rem; border: 0; border-radius: 8px; background: var(--color-primary); color: var(--color-button-text); font-weight: 800; cursor: pointer; box-shadow: 0 12px 28px color-mix(in srgb, var(--color-primary) 25%, transparent); }
.btn:hover, button:hover { background: var(--color-primary-dark); }
.btn.ghost { background: transparent; border: 1px solid var(--color-border); color: var(--color-text); box-shadow: none; }
.btn.sm { min-height: 38px; padding: .55rem .8rem; font-size: .9rem; }
.btn.full { width: 100%; margin-top: .7rem; }
.section, .page-head, .detail-hero, .contact-grid, .dashboard-grid, .quiz-form { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.2rem; }
.section-head h2, .page-head h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); }
.section-head a, .text-link { color: var(--color-accent); font-weight: 800; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card, .course-card, .buy-box, .accordion, .comment { background: var(--color-card); border: 1px solid var(--color-border); border-radius: 8px; padding: 1.25rem; box-shadow: 0 20px 60px rgba(0,0,0,.14); }
.course-card { display: flex; flex-direction: column; min-height: 310px; }
.course-card h3, .card h3 { font-size: 1.32rem; margin: .45rem 0; }
.course-card p, .card p { color: var(--color-muted); }
.meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; color: var(--color-muted); font-size: .9rem; }
.meta span { border: 1px solid var(--color-border); padding: .25rem .5rem; border-radius: 999px; }
.price { display: flex; align-items: baseline; gap: .7rem; margin: 1rem 0; }
.price del { color: var(--color-muted); }
.price strong { color: var(--color-primary); font-size: 2rem; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.video-box, .content .video-embed { aspect-ratio: 16 / 9; width: 100%; border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden; display: block; }
.video-box iframe, .content iframe { width: 100%; height: 100%; }
.detail-hero { display: grid; grid-template-columns: 1fr 340px; gap: 1.2rem; align-items: start; }
.detail-hero h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); margin: .5rem 0; }
.detail-punchline { margin: -.2rem 0 1rem; font-size: clamp(1.3rem, 2.5vw, 2rem); color: var(--color-accent); font-weight: 900; }
.detail-description { max-width: 760px; color: var(--color-muted); font-size: 1.08rem; }
.detail-points { display: grid; gap: .65rem; margin: 1.1rem 0 1.3rem; padding: 0; list-style: none; max-width: 820px; }
.detail-points li { display: flex; align-items: flex-start; gap: .65rem; color: var(--color-text); background: color-mix(in srgb, var(--color-card) 76%, transparent); border: 1px solid var(--color-border); border-radius: 8px; padding: .75rem .85rem; }
.detail-points i { color: var(--color-success); margin-top: .25rem; }
.accordion { margin-bottom: .7rem; }
.accordion summary { cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; font-weight: 900; }
.reader { width: min(860px, calc(100% - 2rem)); margin: 0 auto; padding: 3rem 0; }
.reader h1 { font-size: clamp(2rem, 5vw, 4rem); }
.content { font-family: "Tiro Bangla", Inter, sans-serif; }
.content h2, .content h3, .content h4 { color: var(--color-text); }
.content p, .content li { color: var(--color-muted); }
.contact-grid, .dashboard-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem; }
.dashboard-grid { grid-template-columns: repeat(2, 1fr); }
.form { display: grid; gap: .8rem; }
.form input, .form textarea, .form select, .newsletter input, .chat-form input { width: 100%; min-height: 44px; color: var(--color-text); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 8px; padding: .75rem .85rem; }
.form textarea { min-height: 130px; resize: vertical; }
.two { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.social { display: block; padding: .9rem; border: 1px solid var(--color-border); border-radius: 8px; margin: .5rem 0; color: var(--color-muted); }
.choice { display: flex; gap: .7rem; padding: .55rem 0; }
.auth-shell { width: min(900px, calc(100% - 2rem)); margin: 0 auto; min-height: 70vh; display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; align-items: center; padding: 2rem 0; }
.google-btn { background: #fff; color: #111827; border: 1px solid var(--color-border); box-shadow: none; }
.google-btn:hover { background: #f8fafc; color: #111827; }
.auth-divider { display: flex; align-items: center; gap: .7rem; color: var(--color-muted); font-weight: 800; text-align: center; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--color-border); }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 2rem clamp(1rem, 4vw, 4rem); background: var(--color-surface); border-top: 1px solid var(--color-border); color: var(--color-muted); }
.newsletter { display: flex; gap: .6rem; min-width: min(440px, 100%); }
.flash-wrap { position: fixed; top: 76px; right: 1rem; z-index: 50; display: grid; gap: .5rem; }
.flash { padding: .8rem 1rem; border-radius: 8px; background: var(--color-card); border: 1px solid var(--color-border); box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.flash.success { border-color: var(--color-success); }
.flash.error { border-color: var(--color-danger); }
.flash.info { border-color: var(--color-accent); }
.float-whatsapp, .float-chat, .float-message-launcher { position: fixed; right: 1rem; z-index: 40; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; }
.float-whatsapp { bottom: 1rem; background: #16a34a; color: #fff; }
.float-whatsapp i { font-size: 1.85rem; }
.float-chat { bottom: 4.9rem; background: var(--color-accent); color: #06111d; }
.float-message-launcher { bottom: 1rem; background: #16a34a; color: #fff; border: 0; box-shadow: 0 16px 36px rgba(22,163,74,.34); }
.float-message-launcher i { font-size: 1.85rem; }
.message-panel { display: none; position: fixed; right: 1rem; bottom: 5rem; z-index: 45; width: min(340px, calc(100vw - 2rem)); background: var(--color-card); border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.message-panel.open { display: block; }
.message-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .8rem .95rem; background: var(--color-surface); color: var(--color-text); font-weight: 900; }
.message-head button { min-height: 32px; width: 32px; padding: 0; border-radius: 50%; box-shadow: none; }
.message-options { display: grid; gap: .55rem; padding: .75rem; }
.message-option { width: 100%; min-height: 56px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: .7rem; padding: .65rem .75rem; border: 1px solid color-mix(in srgb, var(--message-color, var(--color-primary)) 36%, var(--color-border)); border-radius: 8px; background: color-mix(in srgb, var(--message-color, var(--color-primary)) 8%, var(--color-surface)); color: var(--color-text); text-align: left; box-shadow: none; }
.message-option i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: color-mix(in srgb, var(--message-color, var(--color-primary)) 18%, transparent); color: var(--message-color, var(--color-primary)); font-size: 1.25rem; }
.message-option span { font-weight: 900; }
.message-option small { color: var(--color-muted); font-weight: 800; }
.chat-panel { display: none; position: fixed; right: 1rem; bottom: 8.8rem; z-index: 45; width: min(360px, calc(100vw - 2rem)); background: var(--color-card); border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.chat-panel.open { display: block; }
.chat-head { display: flex; justify-content: space-between; padding: .8rem; background: var(--color-surface); font-weight: 900; }
.chat-body { height: 260px; overflow: auto; padding: .8rem; color: var(--color-muted); }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: .5rem; padding: .8rem; }
@media (max-width: 820px) {
  .site-nav { min-height: 66px; padding: .3rem .85rem; }
  .brand { width: 64px; min-height: 54px; }
  .brand img { max-width: 58px; max-height: 50px; }
  .menu-toggle { display: block; }
  .menu-toggle { width: 48px; min-height: 48px; padding: 0; font-size: 1.35rem; }
  .nav-links { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--color-bg); border-bottom: 1px solid var(--color-border); padding: .8rem; }
  .nav-links.open { display: grid; }
  .card-grid, .video-grid, .detail-hero, .contact-grid, .dashboard-grid, .auth-shell, .two { grid-template-columns: 1fr; }
  .site-footer, .newsletter { flex-direction: column; align-items: stretch; }
  .hero h1 { font-size: clamp(2.6rem, 18vw, 4.5rem); }
}

/* Premium visual layer */
.site-nav { box-shadow: 0 12px 40px rgba(0,0,0,.22); }
.section { position: relative; }
.vertical-section { padding-top: clamp(3rem, 6vw, 5.5rem); }
.section-head.centered { display: grid; justify-items: center; text-align: center; margin-bottom: 1.7rem; }
.section-head.centered h2 { margin: .35rem 0 .15rem; max-width: 760px; }
.vertical-list, .video-list { display: grid; gap: 1.15rem; width: min(940px, 100%); margin: 0 auto; }
.premium-card {
  --course-accent: var(--color-primary);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: color-mix(in srgb, var(--course-accent) 36%, var(--color-border));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--color-card) 92%, var(--course-accent)), var(--color-card)),
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--course-accent) 24%, transparent), transparent 34%);
  transition: transform .32s cubic-bezier(.2,.8,.2,1), box-shadow .32s ease, border-color .32s ease;
}
.premium-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, transparent 10%, var(--course-accent), var(--color-accent), transparent 90%);
  opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity .32s ease;
  z-index: -1;
}
.premium-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: -70px;
  top: -70px;
  background: color-mix(in srgb, var(--course-accent) 18%, transparent);
  filter: blur(12px);
  opacity: .8;
  z-index: -2;
}
.premium-card:hover {
  transform: translateY(-7px) scale(1.01);
  border-color: var(--course-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--course-accent) 30%, transparent), 0 28px 90px color-mix(in srgb, var(--course-accent) 22%, rgba(0,0,0,.42));
}
.premium-card:hover::before { opacity: 1; }
.course-showcase .course-card {
  min-height: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.2rem;
  align-items: center;
  padding: 1.25rem;
}
.course-showcase .course-body { min-width: 0; }
.course-showcase .course-body h3 { margin-top: 0; }
.course-showcase .meta { grid-column: 2 / 3; margin-top: -.25rem; }
.course-showcase .price { grid-column: 3; grid-row: 1 / span 2; justify-content: end; min-width: 150px; }
.course-showcase .actions { grid-column: 3; grid-row: 3; justify-content: end; margin-top: 0; }
.course-topline { display: flex; align-items: center; gap: .85rem; }
.course-showcase .course-topline { grid-row: 1 / span 3; display: grid; justify-items: center; align-self: stretch; align-content: center; min-width: 108px; }
.course-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--course-accent);
  background: color-mix(in srgb, var(--course-accent) 12%, var(--color-surface));
  border: 1px solid color-mix(in srgb, var(--course-accent) 42%, var(--color-border));
  box-shadow: inset 0 0 28px color-mix(in srgb, var(--course-accent) 10%, transparent);
  flex: 0 0 auto;
}
.course-icon i { font-size: 1.8rem; }
.course-icon img, .avatar img, .avatar-lg img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.video-list .video-card {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) .9fr;
  gap: 1.2rem;
  align-items: center;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.video-list .video-card h3 { font-size: 1.55rem; margin: .35rem 0; }
.video-list .video-card p { color: var(--color-muted); }
.auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; justify-items: stretch; margin-top: .5rem; text-align: center; }
.auth-shell.single { grid-template-columns: 1fr; width: min(760px, calc(100% - 2rem)); }
.profile-row { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: center; }
.avatar, .avatar-lg {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-accent);
}
.avatar { width: 48px; height: 48px; }
.avatar-lg { width: 82px; height: 82px; font-size: 1.6rem; }
.forum-hero, .thread-page {
  width: min(1040px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 0 2rem;
}
.forum-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.2rem;
  align-items: center;
}
.forum-hero h1, .thread-main h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); margin: .4rem 0; }
.forum-hero p, .thread-main p, .forum-thread p, .reply-card p { color: var(--color-muted); }
.forum-list { width: min(1040px, calc(100% - 2rem)); margin: 0 auto; padding-bottom: 4rem; display: grid; gap: .85rem; }
.forum-thread, .reply-card, .thread-main, .reply-form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 18px 60px rgba(0,0,0,.16);
}
.forum-thread:hover { border-color: var(--color-primary); transform: translateY(-2px); transition: .25s ease; }
.thread-title { font-size: 1.2rem; font-weight: 900; color: var(--color-text); }
.thread-meta { display: flex; flex-wrap: wrap; gap: .55rem; color: var(--color-muted); font-size: .9rem; }
.thread-meta span { border: 1px solid var(--color-border); border-radius: 999px; padding: .2rem .5rem; }
.thread-main { display: block; }
.thread-author { display: flex; align-items: center; gap: .8rem; color: var(--color-muted); }
.thread-author strong { color: var(--color-text); display: block; }
.reply-list { display: grid; gap: .8rem; margin-top: 1rem; }
.reply-card { align-items: start; }
.reply-form { display: grid; grid-template-columns: 1fr auto; margin-top: 1rem; }
.danger-btn { background: var(--color-danger); min-height: 38px; padding: .5rem .7rem; }
.empty-state { text-align: center; }
@media (max-width: 900px) {
  .course-showcase .course-card, .video-list .video-card, .forum-hero, .reply-form { grid-template-columns: 1fr; }
  .course-showcase .course-topline, .course-showcase .meta, .course-showcase .price, .course-showcase .actions { grid-column: auto; grid-row: auto; justify-content: start; justify-items: start; }
  .course-showcase .course-topline { display: flex; min-width: 0; }
  .course-showcase .price { justify-content: start; }
  .course-showcase .actions { justify-content: start; }
  .forum-thread, .reply-card { grid-template-columns: auto 1fr; }
  .forum-thread form, .reply-card form { grid-column: 2; justify-self: start; }
  .auth-actions { grid-template-columns: 1fr; }
}

/* Requested refinement pass */
.hero { min-height: 68vh; }
.hero h1 { text-shadow: 0 0 14px color-mix(in srgb, var(--color-primary) 34%, transparent); }
.hero-actions .btn { min-height: 54px; padding: 1rem 1.5rem; font-size: 1.05rem; }
.page-head { text-align: center; }
.page-head p { color: var(--color-muted); font-size: 1.08rem; }
.post-list .card, .resource-row, .quiz-row {
  text-align: left;
  width: min(840px, 100%);
  margin: 0 auto;
}
.post-list .card h3, .resource-row h3, .quiz-row h3 { font-size: 1.55rem; }
.review-scroll { width: min(980px, 100%); margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; }
.review-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 360px); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding: .3rem; }
.review-track .card { scroll-snap-align: center; min-height: 190px; }
.scroll-arrow { width: 46px; height: 46px; border-radius: 50%; min-height: 46px; padding: 0; background: var(--color-card); border: 1px solid var(--color-border); box-shadow: none; }
.course-band {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.4rem auto 2rem;
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid color-mix(in srgb, var(--band-color, var(--color-primary)) 28%, var(--color-border));
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% -10%, color-mix(in srgb, var(--band-color, var(--color-primary)) 16%, transparent), transparent 38%),
    linear-gradient(145deg, color-mix(in srgb, var(--color-surface) 88%, var(--band-color, var(--color-primary))), var(--color-bg));
}
.offer-band { --band-color: #f97316; }
.core-band { --band-color: #ef4444; }
.premium-band { --band-color: #d4af37; }
.band-title { display: flex; justify-content: center; align-items: center; gap: .75rem; padding-bottom: 1.4rem; margin-bottom: 1.8rem; border-bottom: 1px solid color-mix(in srgb, var(--band-color) 30%, transparent); color: var(--band-color); }
.band-title h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.8rem); }
.band-description { width: min(760px, 100%); margin: -1rem auto 1.5rem; text-align: center; color: var(--color-muted); }
.multiline-copy { white-space: pre-line; }
.course-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.7rem); align-items: stretch; }
.offers-cta-section {
  width: min(760px, calc(100% - 2rem));
  margin: .2rem auto 1.8rem;
  display: grid;
  place-items: center;
}
.offers-cta-button {
  width: min(520px, 100%);
  min-height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border: 1px solid color-mix(in srgb, #f97316 52%, var(--color-border));
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(249, 115, 22, .28), transparent 58%),
    linear-gradient(135deg, #f97316, #dc2626);
  color: #fff;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 900;
  box-shadow: 0 20px 48px rgba(249, 115, 22, .28);
}
.offers-cta-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.offer-band .course-card-grid {
  justify-content: center;
  justify-items: center;
}
.offer-band .static-course-card {
  margin-left: auto;
  margin-right: auto;
}
.static-course-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.6rem;
  background: #020303;
  border: 2px solid var(--course-accent);
  border-radius: 26px;
}
.static-course-card .course-topline { display: grid; justify-items: center; gap: .7rem; }
.static-course-card .course-icon { width: 74px; height: 74px; margin-bottom: .8rem; }
.static-course-card h3 { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: .98; color: var(--course-accent); margin: .5rem 0 .8rem; font-weight: 900; text-transform: uppercase; }
.static-course-card .course-body p, .card-subtitle { color: var(--color-muted); min-height: 48px; margin: .4rem 0 .8rem; }
.course-chip {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: .45rem 1rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--course-accent) 44%, var(--color-border));
  color: var(--color-text);
  font-weight: 900;
  background: color-mix(in srgb, var(--course-accent) 9%, transparent);
}
.static-course-card .meta { justify-content: center; margin-top: .3rem; }
.static-course-card .price { justify-content: center; margin: auto 0 1rem; }
.static-course-card .price strong { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--course-accent); }
.static-course-card .actions { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-top: 0; }
.static-course-card .btn.sm { min-height: 46px; padding: .55rem .65rem; white-space: nowrap; }
.static-course-card .course-topline .badge { display: none; }
.blog-list { width: min(920px, calc(100% - 2rem)); margin: 0 auto; padding: 0 0 4rem; display: grid; gap: 1rem; }
.blog-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1.1rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 18px 60px rgba(0,0,0,.16);
}
.blog-cover { min-height: 150px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--color-primary) 14%, var(--color-surface)); color: var(--color-primary); font-size: 3rem; }
.blog-row h2 { margin: .25rem 0; font-size: clamp(1.4rem, 3vw, 2.1rem); }
.blog-row p { color: var(--color-muted); }
.blog-meta { color: var(--color-muted); font-size: .92rem; }
.contact-page { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 4rem; display: grid; gap: 1rem; }
.contact-links { display: grid; gap: 1rem; }
.contact-link {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  min-height: 110px;
  padding: 1rem 1.55rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 900;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.contact-link:hover { transform: translateY(-3px); border-color: currentColor; background: color-mix(in srgb, currentColor 8%, var(--color-card)); }
.contact-link > i:first-child { font-size: 2.3rem; }
.contact-link > i:last-child { color: var(--color-muted); font-size: 1.4rem; }
.contact-link.whatsapp { color: #22c55e; }
.contact-link.telegram { color: #0ea5e9; }
.contact-link.youtube { color: #ef4444; }
.contact-link.facebook { color: #3b82f6; }
.contact-link.linkedin { color: #60a5fa; }
.contact-page form { width: min(760px, 100%); margin: 1.2rem auto 0; }
.custom-section-card { width: min(840px, 100%); margin: 0 auto; text-align: center; }
.custom-section-card img { width: 100%; border-radius: 8px; margin-bottom: 1rem; }
.custom-section-card p { color: var(--color-muted); font-size: 1.05rem; }
.forum-hero { padding-top: 2.2rem; }
.forum-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); max-width: 760px; }
.forum-thread { grid-template-columns: auto 1fr auto; }
.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) 2fr;
  gap: 2rem;
  align-items: start;
}
.footer-brand strong { display: block; font-size: 1.4rem; color: var(--color-text); }
.footer-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.footer-column { display: grid; gap: .45rem; align-content: start; }
.footer-column h3 { margin: 0 0 .35rem; color: var(--color-text); font-size: 1rem; }
.footer-column a, .footer-column span { color: var(--color-muted); font-size: .95rem; }
.footer-column a:hover { color: var(--color-accent); }
@media (max-width: 980px) {
  .course-card-grid { grid-template-columns: 1fr; }
  .static-course-card { min-height: auto; max-width: 520px; margin: 0 auto; width: 100%; }
  .site-footer, .footer-columns, .blog-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .static-course-card .actions { grid-template-columns: 1fr; }
  .contact-link { grid-template-columns: 48px 1fr auto; min-height: 84px; padding: .9rem; font-size: 1.15rem; }
  .review-scroll { grid-template-columns: 1fr; }
  .scroll-arrow { display: none; }
}

/* Alignment and sizing corrections */
.section-head.centered {
  width: min(940px, 100%);
  margin-left: auto;
  margin-right: auto;
}
.section-head.centered .eyebrow,
.section-head.centered h2,
.section-head.centered a {
  justify-self: center;
  text-align: center;
}
.course-band {
  width: min(1120px, calc(100% - 2rem));
  padding: clamp(1.3rem, 3vw, 2.25rem);
}
.course-card-grid {
  justify-content: center;
  justify-items: center;
}
.course-card-grid > * {
  width: 100%;
  max-width: 340px;
}
.static-course-card {
  min-height: 340px;
  padding: 1.15rem;
  border-radius: 22px;
}
.static-course-card .course-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: .35rem;
}
.static-course-card .course-icon i { font-size: 1.45rem; }
.static-course-card h3 {
  width: 100%;
  font-size: clamp(1.65rem, 3.1vw, 2.45rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
  word-break: normal;
  margin: .35rem 0 .45rem;
}
.static-course-card .course-body p,
.card-subtitle {
  min-height: 0;
  font-size: .94rem;
  line-height: 1.45;
}
.static-course-card .meta {
  font-size: .78rem;
  justify-content: center;
}
.static-course-card .price {
  margin: .65rem 0 .75rem;
}
.static-course-card .price strong {
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
}
.static-course-card .btn.sm {
  min-height: 40px;
  font-size: .82rem;
  padding: .48rem .52rem;
}
.course-chip {
  min-height: 36px;
  font-size: .78rem;
  padding: .35rem .7rem;
}
.resources-section {
  padding-top: 1rem;
}
.resource-grid {
  width: min(920px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1rem;
  justify-items: center;
}
.resource-card {
  width: 100%;
  min-height: 255px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.resource-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: .75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.resource-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.resource-card h3 { font-size: 1.18rem; margin: .3rem 0; }
.resource-card p { font-size: .9rem; line-height: 1.45; }
.resource-card .btn { margin-top: auto; }
.quiz-list {
  margin-top: -1.5rem;
}
.quiz-row {
  width: min(680px, 100%);
  text-align: center;
}
.contact-page {
  width: min(760px, calc(100% - 2rem));
  padding-top: .75rem;
}
.contact-links {
  width: min(620px, 100%);
  margin: 0 auto;
  gap: .7rem;
}
.contact-link {
  grid-template-columns: 48px 1fr auto;
  min-height: 76px;
  padding: .75rem 1rem;
  border-radius: 14px;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
}
.contact-link > i:first-child { font-size: 1.75rem; }
.contact-link > i:last-child { font-size: 1rem; }
.contact-page form {
  width: min(620px, 100%);
}
.auth-shell.login-only {
  grid-template-columns: 1fr;
  width: min(480px, calc(100% - 2rem));
  justify-items: stretch;
}
.auth-shell.login-only .card {
  width: 100%;
}
.auth-shell.login-only h1 {
  text-align: center;
}
.site-footer {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  padding: 2.2rem clamp(1rem, 4vw, 4rem);
}
.footer-columns {
  width: min(940px, 100%);
  order: 1;
  text-align: center;
}
.footer-brand {
  order: 2;
  width: min(520px, 100%);
  display: grid;
  justify-items: center;
}
.footer-brand strong,
.footer-brand p {
  text-align: center;
}
.newsletter {
  width: min(460px, 100%);
  justify-content: center;
}
@media (max-width: 980px) {
  .resource-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}
@media (max-width: 620px) {
  .resource-grid { grid-template-columns: 1fr; }
}

/* Final alignment, spacing, and chat refinements */
.page-head {
  padding: clamp(1rem, 2.2vw, 1.8rem) 0 clamp(.35rem, 1.2vw, .9rem);
}
.page-head h1 {
  font-size: clamp(2.15rem, 4vw, 3.6rem);
  line-height: 1.05;
}
.page-head p {
  margin: .7rem auto 0;
  max-width: 760px;
}
.section {
  padding: clamp(1.4rem, 3vw, 2.5rem) 0;
}
.section-head.centered {
  width: min(860px, 100%);
  display: grid;
  place-items: center;
  text-align: center;
}
.section-head.centered h2 {
  width: 100%;
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  line-height: 1.08;
}
.post-list,
.vertical-list {
  margin-left: auto;
  margin-right: auto;
}
.course-band {
  margin-top: clamp(.8rem, 2vw, 1.3rem);
  padding: clamp(1rem, 2vw, 1.5rem);
}
.course-band h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: clamp(1.1rem, 2vw, 1.5rem);
}
.course-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
  justify-items: center;
  align-items: stretch;
  width: 100%;
}
.course-card-grid > * {
  max-width: 320px;
}
.static-course-card {
  min-height: 310px;
  padding: 1rem;
  border-radius: 20px;
}
.static-course-card .course-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  margin-bottom: .25rem;
}
.static-course-card .course-icon i {
  font-size: 1.25rem;
}
.static-course-card h3 {
  font-size: clamp(1.35rem, 2.6vw, 2.05rem);
  line-height: 1.08;
  letter-spacing: 0;
  margin: .25rem 0 .4rem;
  max-width: 100%;
}
.static-course-card .course-body p,
.card-subtitle {
  font-size: .87rem;
  line-height: 1.42;
}
.static-course-card .meta {
  gap: .35rem;
}
.static-course-card .meta span,
.course-chip {
  font-size: .72rem;
}
.static-course-card .price {
  margin: .55rem 0 .65rem;
}
.static-course-card .price strong {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}
.static-course-card .price del {
  font-size: .86rem;
}
.static-course-card .actions {
  gap: .45rem;
}
.static-course-card .btn.sm {
  min-height: 38px;
  font-size: .78rem;
  padding: .42rem .48rem;
}
.quiz-section {
  padding-top: .35rem;
}
.quiz-list {
  margin-top: 0;
  width: min(720px, 100%);
}
.quiz-row {
  padding: 1.1rem;
}
.quiz-form {
  padding-top: .75rem;
}
.quiz-youtube-link {
  display: flex;
  justify-content: center;
  margin: .75rem 0 0;
}
.contact-page .page-head,
.contact-page {
  padding-top: .6rem;
}
.contact-links {
  width: min(520px, 100%);
}
.contact-link {
  min-height: 66px;
  padding: .65rem .85rem;
  font-size: clamp(.95rem, 2vw, 1.18rem);
}
.contact-link > i:first-child {
  font-size: 1.5rem;
}
.site-footer {
  text-align: initial;
}
.footer-columns {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  text-align: left;
  justify-items: start;
}
.footer-column {
  width: 100%;
  justify-items: start;
}
.footer-brand {
  text-align: center;
}
.chat-body {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  height: 340px;
  background: color-mix(in srgb, var(--color-bg) 82%, #000);
}
.chat-message {
  display: flex;
  width: 100%;
}
.user-message {
  justify-content: flex-start;
}
.ai-message {
  justify-content: flex-end;
}
.chat-bubble {
  width: fit-content;
  max-width: 86%;
  padding: .75rem .85rem;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}
.user-message .chat-bubble {
  background: color-mix(in srgb, var(--color-primary) 16%, var(--color-card));
  color: var(--color-text);
  border-bottom-left-radius: 6px;
}
.ai-message .chat-bubble {
  background: color-mix(in srgb, var(--color-accent) 14%, var(--color-surface));
  color: var(--color-text);
  border-bottom-right-radius: 6px;
}
.chat-bubble strong {
  display: block;
  margin-bottom: .25rem;
  color: var(--color-accent);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.chat-bubble p {
  margin: 0;
  color: inherit;
  line-height: 1.45;
}
.ai-answer .answer-source {
  display: inline-flex;
  margin-bottom: .35rem;
  color: var(--color-accent);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ai-answer h4 {
  margin: 0 0 .35rem;
  font-size: 1rem;
  line-height: 1.25;
}
.ai-answer ul {
  margin: .55rem 0 0;
  padding-left: 1.1rem;
}
.ai-answer li {
  margin: .28rem 0;
  color: var(--color-muted);
  line-height: 1.4;
}
@media (max-width: 980px) {
  .footer-columns {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}
@media (max-width: 620px) {
  .page-head {
    padding-top: .9rem;
  }
  .course-band {
    width: min(100% - 1rem, 1120px);
    padding: 1rem .75rem;
  }
  .course-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .course-card-grid > * {
    max-width: 360px;
  }
  .footer-columns {
    grid-template-columns: 1fr;
  }
  .chat-bubble {
    max-width: 92%;
  }
}

/* Homepage section headers must align to the same center line as the content below them. */
.home-section .section-head.centered,
.section > .section-head.centered {
  width: min(1180px, calc(100vw - 2rem)) !important;
  margin: 0 auto clamp(1rem, 2vw, 1.5rem) !important;
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
.home-section .section-head.centered .eyebrow,
.home-section .section-head.centered h2,
.home-section .section-head.centered a,
.section > .section-head.centered .eyebrow,
.section > .section-head.centered h2,
.section > .section-head.centered a {
  width: 100%;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  text-align: center !important;
}
.home-section .section-head.centered h2,
.section > .section-head.centered h2 {
  font-size: clamp(1.85rem, 4vw, 3.25rem);
}
.contact-page {
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}
.contact-page form {
  display: none;
}

/* Clickable course cards and stronger palette contrast. */
.static-course-card,
.course-card,
.premium-card {
  position: relative;
}
.card-link-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.static-course-card .actions,
.course-card .actions,
.premium-card .actions,
.static-course-card a:not(.card-link-layer),
.course-card a:not(.card-link-layer),
.premium-card a:not(.card-link-layer),
.static-course-card button,
.course-card button,
.premium-card button {
  position: relative;
  z-index: 2;
}
.static-course-card:hover .card-link-layer,
.course-card:hover .card-link-layer {
  outline: 1px solid color-mix(in srgb, var(--course-accent) 72%, transparent);
}
.btn,
button {
  color: var(--color-button-text);
}
.btn.ghost,
.static-course-card .btn.ghost,
.course-card .btn.ghost {
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-surface) 82%, transparent);
  border-color: color-mix(in srgb, var(--color-border) 80%, var(--color-text));
}
.btn.ghost:hover {
  color: var(--color-button-text);
  background: var(--color-primary);
}
input,
textarea,
select {
  color: var(--color-text);
  background: var(--color-surface);
  border-color: var(--color-border);
}
input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--color-muted) 84%, transparent);
}
.card,
.quiz-row,
.blog-row,
.resource-card,
.contact-link,
.chat-panel {
  color: var(--color-text);
}
.card p,
.quiz-row p,
.blog-row p,
.resource-card p {
  color: var(--color-muted);
}
.reviews-page {
  display: grid;
  gap: 1.2rem;
}
.review-list,
.review-form {
  width: min(760px, 100%);
  margin-left: auto;
  margin-right: auto;
}
.review-card {
  text-align: left;
}
.review-card .stars {
  display: inline-flex;
  margin: .15rem 0 .55rem;
  color: var(--color-warning);
  letter-spacing: .08em;
}

/* Uniform course-card alignment: every card uses the same internal rows. */
.course-card-grid {
  align-items: stretch;
}
.static-course-card {
  height: auto;
  min-height: 344px;
  display: grid !important;
  grid-template-rows: 48px 76px 34px 44px 50px 42px;
  align-items: center;
  align-content: center;
  justify-items: center;
  gap: .28rem;
  overflow: hidden;
  padding: 1rem 1rem 1.05rem !important;
}
.static-course-card .course-topline {
  display: contents;
}
.static-course-card .course-topline .badge {
  display: none;
}
.static-course-card .course-icon {
  grid-row: 1;
  align-self: end;
  margin: 0 !important;
}
.static-course-card h3 {
  grid-row: 2;
  align-self: center;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  line-height: 1.02;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.04em;
  margin: 0 !important;
}
.course-main-name,
.course-punchline {
  display: block;
}
.course-main-name {
  font-size: 1em;
}
.course-punchline {
  margin-top: .22rem;
  font-size: .54em;
  line-height: 1.15;
  color: var(--color-text);
  text-transform: none;
  font-weight: 900;
}
.static-course-card .course-body {
  display: contents;
}
.static-course-card .course-chip,
.static-course-card .meta {
  grid-row: 3;
  align-self: center;
  margin: 0 !important;
}
.static-course-card .card-subtitle,
.static-course-card .course-body p {
  grid-row: 4;
  align-self: start;
  width: 100%;
  min-height: 0 !important;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.static-course-card .price {
  grid-row: 5;
  align-self: center;
  min-height: 48px;
  margin: 0 !important;
  display: flex;
  align-items: center;
}
.static-course-card .actions {
  grid-row: 6;
  align-self: end;
  margin: 0 !important;
  padding-bottom: 0;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: .38rem !important;
}
.static-course-card .actions .btn.sm {
  min-width: 0;
  min-height: 40px;
  padding: .36rem .34rem;
  font-size: .76rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 620px) {
  .course-band {
    width: min(1180px, calc(100% - .8rem));
    padding: .9rem .75rem 1rem;
    border-radius: 22px;
  }
  .band-title {
    padding-bottom: .8rem;
    margin-bottom: .85rem;
  }
  .band-description {
    margin: -.15rem auto .95rem;
  }
  .static-course-card {
    min-height: 342px;
    grid-template-rows: 46px 74px 32px 42px 48px 40px;
    gap: .24rem;
    padding: .9rem .85rem 1rem !important;
  }
  .static-course-card h3 { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .course-punchline { font-size: .56em; }
  .static-course-card .actions { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .static-course-card .btn.sm { min-height: 38px; font-size: .72rem; padding: .32rem .28rem; }
}

/* Offer cards use flex so the final row stays centered when it has 1 or 2 cards. */
.offer-band .course-card-grid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.7rem);
}
.offer-band .course-card-grid > .static-course-card {
  flex: 0 1 min(100%, 330px);
  width: min(100%, 330px);
  margin-left: 0;
  margin-right: 0;
}
@media (min-width: 980px) {
  .offer-band .course-card-grid > .static-course-card {
    flex-basis: min(31%, 330px);
  }
}

/* Homepage refinement: multiline hero text, stronger section hierarchy, and clean carousel behavior. */
.hero h1,
.hero-sub,
.hero-copy {
  white-space: pre-line;
}
.hero .eyebrow {
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: .1em;
}
.hero h1 {
  color: var(--color-primary);
  text-shadow: 0 0 10px color-mix(in srgb, var(--color-primary) 24%, transparent);
}
.hero-sub {
  max-width: 860px;
  margin: .75rem auto 0;
  color: var(--color-secondary);
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  line-height: 1.22;
  font-weight: 900;
  text-transform: none;
}
.hero-copy {
  color: var(--color-muted);
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  line-height: 1.65;
}
.home-section {
  width: min(1120px, calc(100% - 2rem));
  margin: clamp(1rem, 2.6vw, 1.8rem) auto;
  padding: clamp(1.4rem, 3.5vw, 2.8rem);
  border: 1px solid color-mix(in srgb, var(--home-section-accent, var(--color-primary)) 24%, var(--color-border));
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--home-section-accent, var(--color-primary)) 13%, transparent), transparent 32%),
    linear-gradient(145deg, color-mix(in srgb, var(--color-surface) 92%, var(--home-section-accent, var(--color-primary))), var(--color-bg));
}
.video-section {
  --home-section-accent: var(--color-accent);
}
.posts-home-section {
  --home-section-accent: var(--color-warning);
}
.reviews-home-section {
  --home-section-accent: var(--color-success);
}
.custom-home-section {
  --home-section-accent: var(--color-secondary);
}
.section-head.centered .eyebrow {
  font-size: clamp(.95rem, 1.8vw, 1.2rem);
  line-height: 1.2;
}
.section-head.centered h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
}
.section-head-video .eyebrow,
.section-head-video h2 {
  color: var(--color-accent);
}
.section-head-posts .eyebrow,
.section-head-posts a {
  color: var(--color-warning);
}
.section-head-reviews .eyebrow,
.section-head-reviews h2 {
  color: var(--color-success);
}
.video-list .video-card {
  background: color-mix(in srgb, var(--color-card) 88%, var(--color-accent));
}
.post-list .card {
  background: color-mix(in srgb, var(--color-card) 90%, var(--color-warning));
}
.review-scroll {
  width: min(980px, 100%);
  grid-template-columns: 46px minmax(0, 1fr) 46px;
}
.review-track {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.review-track::-webkit-scrollbar {
  display: none;
}
.review-track .card {
  background: color-mix(in srgb, var(--color-card) 88%, var(--color-success));
}
@media (max-width: 620px) {
  .home-section {
    width: min(100% - 1rem, 1120px);
    padding: 1rem;
    border-radius: 18px;
  }
  .review-scroll {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: .35rem;
  }
  .scroll-arrow {
    display: inline-grid;
    width: 42px;
    height: 42px;
    min-height: 42px;
  }
  .review-track {
    grid-auto-columns: minmax(230px, 78vw);
  }
}

/* Final homepage alignment and premium polish. */
.home-section {
  --home-content-width: 840px;
  overflow: hidden;
  box-shadow: 0 26px 90px rgba(0, 0, 0, .2);
}
.home-section > .section-head.centered,
.section.home-section > .section-head.centered {
  width: min(var(--home-content-width), 100%) !important;
  max-width: min(var(--home-content-width), 100%) !important;
  margin: 0 auto clamp(1.2rem, 2.6vw, 1.8rem) !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  gap: .45rem !important;
  text-align: center !important;
}
.home-section > .section-head.centered .eyebrow,
.home-section > .section-head.centered h2,
.home-section > .section-head.centered a {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  justify-self: center !important;
}
.home-section > .section-head.centered h2 {
  font-size: clamp(1.9rem, 4vw, 3rem) !important;
  line-height: 1.08 !important;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.home-section > .section-head.centered .eyebrow {
  font-size: clamp(1rem, 1.7vw, 1.18rem) !important;
}
.video-list,
.post-list,
.vertical-list {
  width: min(840px, 100%) !important;
}
.post-list .card,
.custom-section-card,
.video-list .video-card {
  width: 100% !important;
  border-color: color-mix(in srgb, var(--home-section-accent, var(--color-primary)) 24%, var(--color-border));
  box-shadow: 0 18px 70px rgba(0, 0, 0, .2);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.post-list .card:hover,
.custom-section-card:hover,
.video-list .video-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--home-section-accent, var(--color-primary)) 68%, var(--color-border));
}
.post-list .card {
  padding: clamp(1.1rem, 2.4vw, 1.5rem);
}
.post-list .card h3 {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.15;
}
.post-list .card p {
  font-size: clamp(.98rem, 1.5vw, 1.08rem);
}
.review-scroll {
  width: min(980px, 100%) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.review-track {
  min-width: 0;
}
.review-track .card {
  border-color: color-mix(in srgb, var(--color-success) 22%, var(--color-border));
}
@media (max-width: 700px) {
  .home-section {
    --home-content-width: 100%;
  }
  .home-section > .section-head.centered h2 {
    font-size: clamp(1.65rem, 8vw, 2.35rem) !important;
  }
}

/* High-contrast auth controls. Keep this after generic button/input palette rules. */
.auth-shell .google-btn,
.auth-shell .google-btn:visited {
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .16) !important;
}
.auth-shell .google-btn i,
.auth-shell .google-btn span {
  color: #111827 !important;
}
.auth-shell .google-btn:hover {
  background: #f8fafc !important;
  color: #020617 !important;
  border-color: #94a3b8 !important;
}
.auth-shell input,
.auth-shell textarea,
.auth-shell select {
  background: color-mix(in srgb, var(--color-bg) 82%, #ffffff) !important;
  color: var(--color-text) !important;
  border-color: color-mix(in srgb, var(--color-border) 70%, var(--color-text)) !important;
}
.auth-shell input::placeholder,
.auth-shell textarea::placeholder {
  color: color-mix(in srgb, var(--color-muted) 88%, transparent) !important;
}
.auth-shell input:-webkit-autofill,
.auth-shell input:-webkit-autofill:hover,
.auth-shell input:-webkit-autofill:focus {
  -webkit-text-fill-color: #111827 !important;
  box-shadow: 0 0 0 1000px #fff9c4 inset !important;
  border-color: #facc15 !important;
}

/* Homepage banner carousel and simplified profile page. */
.home-banner {
  position: relative;
  width: min(1180px, calc(100% - 2rem));
  height: clamp(220px, 34vw, 430px);
  margin: clamp(1rem, 2.5vw, 1.6rem) auto 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
  border-radius: 24px;
  background: var(--color-surface);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .26);
}
.home-banner-track,
.home-banner-slide {
  position: absolute;
  inset: 0;
}
.home-banner-slide {
  display: grid;
  align-items: end;
  padding: clamp(1rem, 3vw, 2rem);
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .55s ease, transform 5.5s ease;
  transform: scale(1.02);
}
.home-banner-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.home-banner-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, .58), rgba(2, 6, 23, .14));
}
.home-banner-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .35rem;
  width: min(620px, 100%);
  color: #fff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.home-banner-content strong {
  font-size: clamp(1.55rem, 4vw, 3.2rem);
  line-height: 1.05;
}
.home-banner-content small {
  color: #dbeafe;
  font-size: clamp(.95rem, 1.8vw, 1.25rem);
  font-weight: 750;
}
.home-banner-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, .72);
  border: 1px solid rgba(255, 255, 255, .24);
  color: #fff;
  box-shadow: none;
  transform: translateY(-50%);
}
.home-banner-arrow.left { left: .9rem; }
.home-banner-arrow.right { right: .9rem; }
.home-banner-dots {
  position: absolute;
  left: 50%;
  bottom: .85rem;
  z-index: 4;
  display: flex;
  gap: .45rem;
  transform: translateX(-50%);
}
.home-banner-dots button {
  width: 12px;
  height: 12px;
  min-height: 12px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .52);
  box-shadow: none;
}
.home-banner-dots button.active {
  width: 30px;
  background: #fff;
}
.profile-head {
  padding-bottom: .5rem;
}
.profile-layout {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 clamp(2rem, 5vw, 4rem);
  display: grid;
  gap: 1rem;
}
.profile-card {
  width: 100%;
}
.profile-fields {
  display: grid;
  gap: .75rem;
}
.profile-email {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  color: var(--color-muted);
  font-weight: 800;
}
.logout-card p {
  color: var(--color-muted);
}
@media (max-width: 620px) {
  .home-banner {
    width: min(100% - 1rem, 1180px);
    height: 260px;
    border-radius: 18px;
  }
  .home-banner-arrow {
    width: 38px;
    height: 38px;
    min-height: 38px;
  }
}
