/* =========================================================
   SHOPNIL ACADEMY — Shared design system
   Edit colors/fonts here; all pages will update.
   ========================================================= */

/* -- TOKENS --------------------------------------------------- */
:root {
  /* Bangladesh flag palette + gold from the logo */
  --green: #006A4E;
  --green-deep: #00513B;
  --green-dark: #052B1F;
  --green-soft: #E6F0EC;
  --green-mint: #C6E2D6;

  --red: #F42A41;
  --red-soft: #FFE5E8;

  --gold: #E8B72A;
  --gold-soft: #FDF3D4;

  --cream: #FBF8F0;
  --bg: #FFFDF8;
  --ink: #0F2418;
  --muted: #65766E;
  --line: rgba(15, 36, 24, .08);

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(15,36,24,.05);
  --shadow-md: 0 10px 30px rgba(15,36,24,.08);
  --shadow-lg: 0 30px 60px rgba(15,36,24,.10);

  /* Type */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* -- RESET --------------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* -- TYPOGRAPHY ---------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  margin: 0; line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
}
h1, h2 { font-weight: 700; }
h3 { font-weight: 700; }
h4, h5 { font-weight: 600; }
p { margin: 0; }
.pretty { text-wrap: pretty; }

/* -- LAYOUT -------------------------------------------------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* -- BUTTONS ------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  border: 1.5px solid transparent;
  font-family: inherit;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #d92139; transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--green-soft); }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* -- NAVIGATION (used on every page) ------------------------ */
.nav-shell {
  padding: 18px 24px;
  position: sticky; top: 16px; z-index: 50;
}
.nav {
  background: rgba(255, 253, 248, .9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px 10px 18px;
  display: flex; align-items: center; gap: 14px;
  max-width: 1240px; margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-weight: 700; color: var(--ink);
}
.logo img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.logo-text {
  display: flex; flex-direction: column; line-height: 1.05;
}
.logo-text strong { font-size: 19px; font-weight: 700; }
.logo-text small { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .04em; }
.nav-links {
  display: flex; gap: 4px; margin: 0 auto;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink);
  padding: 9px 16px; border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--green-soft); color: var(--green);
}
.nav-cta { display: flex; gap: 8px; align-items: center; }

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 999px; background: transparent;
  border: 0; font-size: 22px; color: var(--ink);
  margin-left: auto;
}

/* -- BIG FREE BADGE (used across pages) ---------------------- */
.free-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #fff;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.free-badge::before {
  content: '✓';
  width: 18px; height: 18px;
  border-radius: 50%; background: #fff; color: var(--green);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
}
.free-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-soft); color: var(--green);
  border: 1px solid rgba(0,106,78,.18);
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
}

/* -- SECTION ATOMS ------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green); font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1.5px; background: var(--green);
}
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(34px, 4.5vw, 52px); margin: 14px auto 16px; max-width: 720px; }
.section-head p { color: var(--muted); font-size: 17px; max-width: 580px; margin: 0 auto; }

section.block { padding: 100px 0; position: relative; }

/* -- COURSE CARD (used on home, courses, etc.) -------------- */
.course {
  background: #fff; border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.course:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.course-thumb {
  aspect-ratio: 16 / 9;
  position: relative; overflow: hidden;
}
.course-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 12px, transparent 12px 26px);
}
.course-thumb.t-tech { background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%); }
.course-thumb.t-math { background: linear-gradient(135deg, var(--green-dark) 0%, #0a4a36 100%); }
.course-thumb.t-lang { background: linear-gradient(135deg, var(--red) 0%, #c41e32 100%); }
.course-thumb.t-guitar { background: linear-gradient(135deg, var(--gold) 0%, #a6800d 100%); }
.course-thumb.t-purple { background: linear-gradient(135deg, #6d28d9 0%, #4c1d95 100%); }
.course-thumb.t-blue { background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%); }
.course-thumb .badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,.95); color: var(--ink);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  z-index: 2;
}
.course-thumb .badge.bestseller { background: var(--gold); color: var(--ink); }
.course-thumb .badge.new { background: var(--red); color: #fff; }
.course-thumb .free-badge {
  position: absolute; top: 14px; right: 14px;
  z-index: 2;
}
.course-thumb .level {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(0,0,0,.4); backdrop-filter: blur(8px);
  color: #fff; padding: 5px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 500;
  z-index: 2;
}
.course-thumb .duration {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(0,0,0,.4); backdrop-filter: blur(8px);
  color: #fff; padding: 5px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 500;
  z-index: 2;
}
.course-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.course-cat { font-size: 12px; color: var(--green); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.course-body h3 { font-size: 19px; margin: 8px 0 12px; line-height: 1.3; }
.course-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.course-rating strong { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: #b8881a; }
.course-rating .stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.course-rating .count { font-size: 12px; color: var(--muted); }
.course-meta {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px;
}
.course-meta span {
  font-size: 11px; padding: 4px 10px;
  background: var(--cream); color: var(--muted);
  border-radius: 999px; font-weight: 500;
}
.course-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px; border-top: 1px solid var(--line);
  margin-top: auto;
}
.course-instructor { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-mint); color: var(--green-deep);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
}
.course .enroll-link {
  font-size: 13px; font-weight: 700; color: var(--green);
  display: inline-flex; align-items: center; gap: 4px;
}
.course .enroll-link:hover { color: var(--green-deep); }

/* -- AD SLOTS (clearly labeled, tasteful) ------------------- */
.ad-slot {
  background:
    repeating-linear-gradient(45deg, rgba(15,36,24,.04) 0 10px, transparent 10px 20px),
    var(--cream);
  border: 1px dashed rgba(15,36,24,.18);
  border-radius: 16px;
  padding: 24px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  min-height: 100px;
}
.ad-slot::before {
  content: 'SPONSORED';
  position: absolute; top: 10px; left: 14px;
  font-size: 9px; font-weight: 700; letter-spacing: .12em;
  color: var(--muted); opacity: .7;
}
.ad-slot strong { font-family: var(--font-display); font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.ad-slot small { color: var(--muted); font-size: 12px; }
.ad-slot.leaderboard { min-height: 110px; }
.ad-slot.banner-728 { min-height: 110px; max-width: 970px; margin: 0 auto; }
.ad-slot.rectangle { min-height: 270px; }
.ad-slot.in-feed {
  background:
    linear-gradient(135deg, var(--gold-soft) 0%, var(--cream) 100%);
  border: 1px dashed rgba(184,136,21,.3);
}

/* -- FOOTER (used on every page) ---------------------------- */
footer {
  background: var(--bg);
  padding: 80px 0 32px;
  border-top: 1px solid var(--line);
}
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 56px; border-bottom: 1px solid var(--line);
}
.foot-about { font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 18px; max-width: 320px; }
.foot-social { display: flex; gap: 10px; margin-top: 20px; }
.foot-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream);
  display: grid; place-items: center;
  color: var(--ink); font-size: 14px;
  transition: background .2s ease, color .2s ease;
}
.foot-social a:hover { background: var(--green); color: #fff; }
.foot-col h4 {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600;
  margin-bottom: 18px;
}
.foot-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.foot-col a { font-size: 14px; color: var(--muted); }
.foot-col a:hover { color: var(--green); }
.foot-bot {
  margin-top: 28px;
  display: flex; justify-content: space-between; font-size: 13px; color: var(--muted);
  flex-wrap: wrap; gap: 16px;
}

/* -- PAGE HEADER (used on inner pages) ---------------------- */
.page-header {
  padding: 60px 0 40px;
  position: relative;
}
.page-header .breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 13px; color: var(--muted);
  margin-bottom: 20px;
}
.page-header .breadcrumb a:hover { color: var(--green); }
.page-header .breadcrumb .sep { opacity: .4; }
.page-header h1 {
  font-size: clamp(40px, 5vw, 56px);
  max-width: 760px;
  margin-bottom: 16px;
}
.page-header p.lead {
  font-size: 18px; color: var(--muted);
  max-width: 620px;
}

/* -- TAB CHIPS ----------------------------------------------- */
.chips {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.chip {
  padding: 9px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* -- RESPONSIVE ---------------------------------------------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-cta .btn:not(.btn-primary) { display: none; }
  .logo img { width: 44px; height: 44px; }
  .logo-text strong { font-size: 17px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  section.block { padding: 64px 0; }
  .foot-grid { grid-template-columns: 1fr; }
}
