:root {
  --bg: #FFFFFF;
  --bg-page: #FAFAFA;
  --bg-card: #FFFFFF;
  --txt: #111827;
  --txt-muted: #6B7280;
  --txt-light: #9CA3AF;
  --line: #E5E7EB;
  --line-subtle: #F3F4F6;
  --yellow: #F59E0B;
  --yellow-pri: #FFB800;
  --yellow-btn: #FBBF24;
  --yellow-soft: #FEF08A;
  --yellow-pill: #FEF3C7;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 12px 28px -4px rgba(0, 0, 0, 0.08);
  --r-card: 18px;
  --r-btn: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--txt);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}

/* ================= NAV ================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-subtle);
  padding: 10px 0;
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--txt);
  letter-spacing: -0.3px;
}

.brand .logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--yellow-pri);
  color: #111;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 17px;
  flex-shrink: 0;
}

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.menu a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--r-btn);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--txt-muted);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.menu a:hover {
  color: var(--txt);
  background: var(--line-subtle);
}

.menu a.on {
  color: var(--txt);
  background: var(--yellow-pill);
  font-weight: 700;
}

.nav-ic {
  width: 16px;
  height: 16px;
}

.ig-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--r-btn);
  border: 1.5px solid #111827;
  background: #FFFFFF;
  color: #111827;
  font-weight: 700;
  font-size: 13.5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ig-btn:hover {
  background: #111827;
  color: #FFFFFF;
}

.ig-btn:hover .ig-ic {
  filter: brightness(0) invert(1);
}

.ig-ic {
  width: 17px;
  height: 17px;
  fill: url(#ig-grad);
}

.ext-arr {
  font-size: 13px;
  font-weight: 800;
}

/* Mobile Hamburger & Slide-down Drawer */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--txt);
  cursor: pointer;
  padding: 0;
}

.menu-toggle:hover {
  background: var(--line-subtle);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 61px;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  padding: 12px 16px 18px;
  z-index: 49;
  flex-direction: column;
  gap: 6px;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  color: var(--txt-muted);
}

.mobile-drawer a.on {
  background: var(--yellow-pill);
  color: var(--txt);
  font-weight: 700;
}

.mobile-drawer .drawer-ig {
  margin-top: 6px;
  justify-content: center;
  border: 1.5px solid #111827;
  border-radius: var(--r-btn);
  color: #111827;
  font-weight: 700;
}

/* Mobile Sticky Bottom Tab Bar */
.bottom-nav {
  display: none;
}

/* ================= HERO ================= */
.hero {
  padding: 40px 0 32px;
  background: var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 36px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow-soft);
  color: #1F2937;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--r-btn);
  margin-bottom: 18px;
}

.badge .bolt {
  color: #D97706;
}

.hero-title {
  font-size: clamp(36px, 5.2vw, 58px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -1.2px;
  color: var(--txt);
  margin: 0 0 16px;
}

.highlight {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.highlight::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 8%;
  height: 40%;
  background: #FDE047;
  z-index: -1;
  border-radius: 4px;
  opacity: 0.9;
  transform: rotate(-0.5deg);
}

.hero-desc {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.5;
  color: var(--txt-muted);
  max-width: 480px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-btn);
  background: var(--yellow-btn);
  color: #111827;
  font-weight: 800;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.btn-primary:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-btn);
  background: #FFFFFF;
  color: #111827;
  border: 1.5px solid #111827;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-outline:hover {
  background: #F9FAFB;
  transform: translateY(-1px);
}

.btn-ic {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  width: 100%;
  max-width: 530px;
  height: auto;
  border-radius: 20px;
}

.hero-img-mobile {
  display: none;
}

/* ================= 4 FEATURES ================= */
.features-sec {
  padding: 16px 0 32px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.feat-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--yellow-soft);
  color: #1F2937;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.feat-ic svg {
  width: 22px;
  height: 22px;
}

.feat-info h4 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 800;
  color: var(--txt);
}

.feat-info p {
  margin: 0;
  font-size: 13px;
  color: var(--txt-muted);
  line-height: 1.3;
}

/* ================= LATEST NOTES ================= */
.latest-sec {
  padding: 24px 0 40px;
}

.sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.sec-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yellow-bar {
  width: 5px;
  height: 24px;
  background: var(--yellow-pri);
  border-radius: 999px;
  display: inline-block;
}

.sec-title-wrap h2 {
  font-size: clamp(21px, 3vw, 26px);
  font-weight: 800;
  margin: 0;
  color: var(--txt);
  letter-spacing: -0.5px;
}

.view-all {
  color: #D97706;
  font-weight: 700;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s ease;
  white-space: nowrap;
}

.view-all:hover {
  transform: translateX(3px);
  color: #B45309;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.note-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.note-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: #D1D5DB;
}

.note-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--line-subtle);
}

.note-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.note-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--txt);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.note-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.note-date {
  font-size: 12px;
  color: var(--txt-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.note-date svg {
  width: 13px;
  height: 13px;
}

.note-btn {
  background: var(--yellow-btn);
  color: #111827;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 13px;
  border-radius: var(--r-btn);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.note-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* ================= SUBJECTS DIRECTORY ================= */
.subjects-sec {
  padding: 24px 0 40px;
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.subj-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.subj-card:hover {
  transform: translateY(-2px);
  border-color: var(--yellow-pri);
  box-shadow: var(--shadow-card);
}

.subj-ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--yellow-pill);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.subj-info h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--txt);
}

.subj-info p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--txt-muted);
}

/* ================= INSTAGRAM BANNER ================= */
.cta-banner {
  margin: 20px 0 40px;
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1px solid #FDE68A;
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 900;
  color: #111827;
  margin: 0 0 8px;
}

.cta-banner p {
  font-size: 15.5px;
  color: #4B5563;
  margin: 0 auto 20px;
  max-width: 520px;
}

/* ================= RESOURCES & PDF GRID ================= */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.search {
  flex: 1 1 280px;
  background: #FFFFFF;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--txt);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.search:focus {
  border-color: var(--yellow);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filters button {
  background: #FFFFFF;
  color: var(--txt-muted);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  padding: 8px 16px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s;
}

.filters button:hover {
  border-color: #D1D5DB;
  color: var(--txt);
}

.filters button.on {
  background: var(--yellow-btn);
  color: #111827;
  border-color: var(--yellow-btn);
}

.grid.pdfs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.card.pdf {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card.pdf:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.pdf .cover {
  width: 100%;
  aspect-ratio: 1 / 1.35;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #F9FAFB;
}

.pdf .thumb {
  aspect-ratio: 1 / 1.35;
  border-radius: 10px;
  background: linear-gradient(135deg, #FEF3C7, #FFFBEB);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  border: 1px solid #FDE68A;
}

.pdf .thumb b {
  font-size: 16px;
  line-height: 1.3;
  color: #111827;
}

.pdf .ptitle {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--txt);
}

.pdf .meta {
  font-size: 12.5px;
  color: var(--txt-muted);
  margin-top: auto;
}

.pdf .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--yellow-btn);
  color: #111827;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: var(--r-btn);
  border: none;
  cursor: pointer;
  transition: filter 0.15s;
}

.pdf .btn:hover {
  filter: brightness(1.05);
}

.empty {
  text-align: center;
  padding: 48px 20px;
  border: 2px dashed var(--line);
  border-radius: 16px;
  color: var(--txt-muted);
}

.empty b {
  display: block;
  font-size: 18px;
  color: var(--txt);
  margin-bottom: 6px;
}

/* ================= PROSE / TEXT PAGES ================= */
.prose {
  max-width: 740px;
  padding: 20px 0 40px;
}

.prose h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  margin: 12px 0 16px;
}

.prose .lead {
  font-size: 17px;
  color: var(--txt-muted);
  margin-bottom: 24px;
}

.prose h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 32px 0 12px;
}

.prose p, .prose li {
  font-size: 16px;
  color: #374151;
  line-height: 1.7;
}

.tag {
  display: inline-block;
  background: var(--yellow-pill);
  color: #92400E;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: var(--r-btn);
}

/* ================= E-BOOKS & STORE ================= */
.ebook-sec {
  padding: 24px 0 40px;
}

.ebook-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ebook-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.book-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 12px 18px 18px 12px;
  background: linear-gradient(145deg, #1E293B 0%, #0F172A 100%);
  color: #FFFFFF;
  padding: 22px 18px 20px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -6px 8px 24px rgba(15, 23, 42, 0.22), inset 10px 0 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.book-cover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(255, 255, 255, 0.08));
}

.book-cover.gold {
  background: linear-gradient(145deg, #92400E 0%, #451A03 100%);
}

.book-brand {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.9px;
  color: var(--yellow-soft);
  text-transform: uppercase;
}

.book-cover-title {
  font-size: 21px;
  font-weight: 900;
  line-height: 1.15;
  margin: 10px 0 6px;
  letter-spacing: -0.4px;
}

.book-cover-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.35;
}

.book-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  background: var(--yellow-btn);
  color: #111827;
  font-weight: 900;
  font-size: 11px;
  padding: 5px 12px;
  border-radius: var(--r-btn);
}

.ebook-body h3 {
  margin: 8px 0 6px;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 900;
  color: var(--txt);
  letter-spacing: -0.5px;
}

.ebook-sub {
  margin: 0 0 14px;
  color: var(--txt-muted);
  font-size: 15px;
}

.ebook-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.meta-pill {
  background: var(--line-subtle);
  color: #374151;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--r-btn);
}

.ebook-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 14px;
}

.ebook-checklist li {
  font-size: 13.5px;
  color: #374151;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.4;
}

.ebook-checklist li span.chk {
  color: #16A34A;
  font-weight: 900;
  flex-shrink: 0;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.price-now {
  font-size: 30px;
  font-weight: 900;
  color: var(--txt);
}

.price-mrp {
  font-size: 16px;
  color: var(--txt-light);
  text-decoration: line-through;
  font-weight: 600;
}

.price-off {
  background: #DCFCE7;
  color: #166534;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--r-btn);
}

.ebook-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: var(--r-btn);
  background: var(--line-subtle);
  color: var(--txt);
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-ghost:hover {
  background: #E5E7EB;
}

/* ================= EXAM UPDATES FEED ================= */
.updates-sec {
  padding: 24px 0 40px;
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.update-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.update-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.upd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.upd-badge {
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--r-btn);
  background: var(--yellow-pill);
  color: #92400E;
}

.upd-badge.cat-admit { background: #DBEAFE; color: #1E40AF; }
.upd-badge.cat-result { background: #DCFCE7; color: #166534; }
.upd-badge.cat-calendar { background: #F3E8FF; color: #6B21A8; }

.upd-exam {
  font-size: 12px;
  font-weight: 700;
  color: var(--txt-muted);
}

.update-card h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--txt);
}

.update-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--txt-muted);
  line-height: 1.45;
}

.upd-footer {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line-subtle);
}

.upd-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--txt-light);
}

/* ================= MODALS ================= */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(4px);
  padding: 16px;
  align-items: center;
  justify-content: center;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: #FFFFFF;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: var(--txt);
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--txt-muted);
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--line-subtle);
  color: var(--txt);
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.toc-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #FAFAFA;
}

.toc-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.toc-item strong {
  font-size: 14.5px;
  color: var(--txt);
}

.toc-pages {
  font-size: 12px;
  font-weight: 700;
  color: #B45309;
  background: var(--yellow-pill);
  padding: 3px 9px;
  border-radius: var(--r-btn);
  white-space: nowrap;
}

.toc-item p {
  margin: 0;
  font-size: 13px;
  color: var(--txt-muted);
  line-height: 1.45;
}

.upi-box {
  background: #FFFBEB;
  border: 1.5px solid #FDE68A;
  border-radius: 14px;
  padding: 14px;
  margin: 14px 0;
}

.upi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.upi-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  background: #FFFFFF;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #FDE68A;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-field label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--txt);
}

.form-field input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.form-field input:focus {
  border-color: var(--yellow);
}

.copy-toast {
  display: none;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #166534;
  background: #DCFCE7;
  padding: 8px 12px;
  border-radius: 10px;
}

.copy-toast.show {
  display: block;
}

/* ================= FOOTER ================= */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--txt-muted);
  font-size: 14px;
  background: #FFFFFF;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

footer a:hover {
  color: var(--txt);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1060px) {
  .latest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .updates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  .wrap {
    width: min(1200px, 100% - 28px);
  }

  body {
    padding-bottom: 72px;
  }

  /* Header switches to Logo + Hamburger */
  .menu, .ig-btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  /* Mobile Sticky Bottom Tab Bar (5 tabs) */
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
    padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
  }

  .bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    color: var(--txt-muted);
    padding: 4px 2px;
  }

  .bottom-nav a svg {
    width: 21px;
    height: 21px;
  }

  .bottom-nav a.on {
    color: var(--txt);
    font-weight: 800;
  }

  .bottom-nav a.on svg {
    color: var(--yellow-pri);
  }

  /* Mobile Hero: Badge & Title full width, Desc left + Books right, CTA buttons stacked */
  .hero {
    padding: 18px 0 18px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 6px 10px;
    align-items: center;
  }

  .hero-content {
    display: contents;
  }

  .badge {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
    font-size: 12px;
    padding: 6px 14px;
    margin-bottom: 8px;
  }

  .hero-title {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: clamp(32px, 9.5vw, 44px);
    line-height: 1.1;
    margin: 0 0 6px;
  }

  .hero-desc {
    grid-column: 1 / 2;
    grid-row: 3;
    font-size: 13.5px;
    line-height: 1.45;
    margin: 0;
    align-self: center;
  }

  .hero-visual {
    grid-column: 2 / 3;
    grid-row: 3;
    justify-self: end;
    align-self: center;
  }

  .hero-img-desktop {
    display: none;
  }

  .hero-img-mobile {
    display: block;
    width: 100%;
    max-width: 175px;
    border-radius: 12px;
  }

  .hero-actions {
    grid-column: 1 / -1;
    grid-row: 4;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    min-width: 225px;
    padding: 12px 22px;
    font-size: 14.5px;
  }

  /* 4 Feature Cards in a compact row just like mockup */
  .features-sec {
    padding: 12px 0 22px;
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
  }

  .feature-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 11px 5px;
    gap: 7px;
    border-radius: 14px;
  }

  .feat-ic {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .feat-ic svg {
    width: 18px;
    height: 18px;
  }

  .feat-info h4 {
    font-size: 11.5px;
    line-height: 1.2;
    margin-bottom: 3px;
  }

  .feat-info p {
    font-size: 9.5px;
    line-height: 1.25;
  }

  /* Latest Notes stacked 1-col horizontal cards */
  .latest-sec {
    padding: 12px 0 28px;
  }

  .sec-header {
    margin-bottom: 14px;
  }

  .latest-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .note-card {
    padding: 12px;
  }

  .note-thumb {
    width: 74px;
    height: 74px;
  }

  /* Subjects & PDF grid on mobile */
  .subjects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .subj-card {
    padding: 11px 12px;
    gap: 10px;
  }

  .subj-ic {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .subj-info h3 {
    font-size: 13.5px;
  }

  .grid.pdfs {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .card.pdf {
    padding: 11px;
    gap: 8px;
  }

  .pdf .ptitle {
    font-size: 13.5px;
  }

  .pdf .btn {
    font-size: 12.5px;
    padding: 8px 10px;
  }

  .filters {
    gap: 6px;
  }

  .filters button {
    padding: 6px 12px;
    font-size: 12.5px;
  }

  .cta-banner {
    padding: 26px 18px;
    margin: 10px 0 28px;
  }

  .ebook-card {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 18px;
  }

  .book-cover {
    max-width: 200px;
    margin-inline: auto;
    width: 100%;
  }

  .ebook-checklist {
    grid-template-columns: 1fr;
  }

  .updates-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .grid.pdfs {
    grid-template-columns: 1fr;
  }
}

/* bundle covers + what's inside */
.book-cover.img { padding: 0; background: #fff; border: 1px solid var(--line); }
.book-cover.img::before { z-index: 1; opacity: .5; }
.book-cover.img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ebook-includes { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 4px 0 14px; background: #FFFBEB; }
.ebook-includes .inc-head { font-size: 12px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; color: #92400E; margin-bottom: 6px; }
.ebook-includes .inc-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 5px 0; border-top: 1px dashed rgba(146, 64, 14, .18); }
.ebook-includes .inc-row:first-of-type { border-top: 0; }
.ebook-includes .inc-row b { white-space: nowrap; color: var(--txt-muted, #6b7280); font-size: 13px; }

.price-launch { font-size: 13px; font-weight: 800; color: var(--txt-muted, #6b7280); text-transform: uppercase; letter-spacing: .4px; align-self: center; margin-right: 6px; }
.price-save { font-size: 14px; font-weight: 800; color: #15803d; background: #ecfdf5; border: 1px solid #bbf7d0; border-radius: 10px; padding: 8px 12px; margin: -4px 0 14px; }
