/* Giao diện trang tổng hợp theo lớp (/lop-1 .. /lop-5) — Đồng bộ thẩm mỹ Góc Học Tập */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #dff1ff 0%, #eaf5ff 360px, #f3f9ff 100%);
  color: #162642;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Thanh điều hướng kính trắng giống trang chủ ---------- */
.lp-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid #d4e6ff;
  box-shadow: 0 4px 18px rgba(22, 104, 227, .07);
}
.lp-top-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.lp-brand svg { width: 40px; height: 40px; flex-shrink: 0; }
.lp-brand b {
  display: block;
  font: 800 22px/1 'Baloo 2', 'Be Vietnam Pro', sans-serif;
  color: #10326b;
}
.lp-brand b i { color: #f97316; font-style: normal; }
.lp-brand small {
  display: block;
  font: 700 10px/1.1 'Be Vietnam Pro', sans-serif;
  letter-spacing: .08em;
  color: #4f6792;
  margin-top: 2px;
}
.lp-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.lp-nav::-webkit-scrollbar { display: none; }
.lp-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 13px 0 9px;
  border-radius: 999px;
  font: 700 14px/1 'Be Vietnam Pro', sans-serif;
  color: #203760;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, color .15s, transform .15s;
}
.lp-nav a:hover { background: #eef5ff; color: #1668e3; transform: translateY(-1px); }
.lp-nav a.active {
  background: linear-gradient(135deg, #1668e3, #2f8bff);
  color: #fff;
  box-shadow: 0 4px 12px rgba(22, 104, 227, .24);
}
.lp-nav-ic { width: 22px; height: 22px; display: inline-flex; flex-shrink: 0; }
.lp-nav-ic svg { width: 100%; height: 100%; }

/* ---------- Khung nội dung chính ---------- */
.lp-wrap {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 18px 50px;
}
.lp-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #53698f;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.lp-crumb a { color: #1668e3; font-weight: 700; }
.lp-crumb a:hover { text-decoration: underline; }

/* ---------- Thanh chọn nhanh 5 lớp đồng bộ trang chủ ---------- */
.lp-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 16px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, .94);
  border: 2px solid #cfe2ff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(22, 104, 227, .07);
}
.lp-sw-label {
  font: 800 15px/1.2 'Baloo 2', 'Be Vietnam Pro', sans-serif;
  color: #10326b;
}
.lp-tabs {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}
.lp-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 15px 0 8px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid #cfe0ff;
  font: 800 15px/1 'Baloo 2', 'Be Vietnam Pro', sans-serif;
  color: #12326b;
  white-space: nowrap;
  box-shadow: 0 3px 0 #d5e6ff;
  transition: transform .14s, box-shadow .14s, background .14s, color .14s;
}
.lp-tab i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 800 13.5px/1 'Baloo 2', sans-serif;
  color: #fff;
}
.lp-tab.l1 i { background: #2563eb; }
.lp-tab.l2 i { background: #10b981; }
.lp-tab.l3 i { background: #f59e0b; }
.lp-tab.l4 i { background: #8b5cf6; }
.lp-tab.l5 i { background: #f43f5e; }
.lp-tab:hover { transform: translateY(-2px); border-color: #1668e3; }
.lp-tab.active.l1 { background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; border-color: #1d4ed8; box-shadow: 0 4px 0 #1e40af, 0 8px 18px rgba(37, 99, 235, .28); }
.lp-tab.active.l2 { background: linear-gradient(135deg, #059669, #10b981); color: #fff; border-color: #047857; box-shadow: 0 4px 0 #065f46, 0 8px 18px rgba(5, 150, 105, .28); }
.lp-tab.active.l3 { background: linear-gradient(135deg, #d97706, #f59e0b); color: #fff; border-color: #b45309; box-shadow: 0 4px 0 #92400e, 0 8px 18px rgba(217, 119, 6, .28); }
.lp-tab.active.l4 { background: linear-gradient(135deg, #6d28d9, #8b5cf6); color: #fff; border-color: #5b21b6; box-shadow: 0 4px 0 #4c1d95, 0 8px 18px rgba(109, 40, 217, .28); }
.lp-tab.active.l5 { background: linear-gradient(135deg, #e11d48, #f43f5e); color: #fff; border-color: #be123c; box-shadow: 0 4px 0 #9f1239, 0 8px 18px rgba(225, 29, 72, .28); }
.lp-tab.active i { background: rgba(255, 255, 255, .28); }
.lp-sw-exam {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  color: #047857;
  font: 700 13.5px/1 'Be Vietnam Pro', sans-serif;
  white-space: nowrap;
}
.lp-sw-exam:hover { background: #d1fae5; }

/* ---------- Hero Banner 2 cột rực rỡ theo từng lớp ---------- */
.lp-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 26px 28px;
  margin-bottom: 24px;
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.85fr);
  gap: 20px;
  align-items: center;
  box-shadow: 0 16px 36px rgba(16, 50, 107, .16);
}
.lp-hero.g1 { background: linear-gradient(135deg, #1d63e6 0%, #3b9dff 58%, #60c5ff 100%); }
.lp-hero.g2 { background: linear-gradient(135deg, #047857 0%, #10b981 58%, #34d399 100%); }
.lp-hero.g3 { background: linear-gradient(135deg, #c2410c 0%, #f59e0b 60%, #fbbf24 100%); }
.lp-hero.g4 { background: linear-gradient(135deg, #5b21b6 0%, #8b5cf6 58%, #a78bfa 100%); }
.lp-hero.g5 { background: linear-gradient(135deg, #be123c 0%, #f43f5e 58%, #fb7185 100%); }
.lp-hero::before, .lp-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  pointer-events: none;
}
.lp-hero::before { width: 280px; height: 280px; right: -60px; top: -90px; }
.lp-hero::after { width: 170px; height: 170px; left: 36%; bottom: -75px; background: rgba(255, 255, 255, .1); }
.lp-hero-chu { position: relative; z-index: 2; }
.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .36);
  font-weight: 700;
  font-size: 12.5px;
  margin-bottom: 10px;
}
.lp-hero h1 {
  font-family: 'Baloo 2', 'Be Vietnam Pro', sans-serif;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.15;
  margin: 0 0 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .14);
}
.lp-hero p {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .95);
  max-width: 600px;
}
.lp-hero-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.lp-hbtn-chinh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: #fff;
  color: #10326b;
  font: 800 15px/1 'Baloo 2', 'Be Vietnam Pro', sans-serif;
  box-shadow: 0 4px 0 rgba(16, 50, 107, .18), 0 8px 18px rgba(0, 0, 0, .14);
  transition: transform .15s;
}
.lp-hbtn-chinh:hover { transform: translateY(-2px); }
.lp-hbtn-phu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  border: 1.5px solid rgba(255, 255, 255, .65);
  color: #fff;
  font: 800 14.5px/1 'Baloo 2', 'Be Vietnam Pro', sans-serif;
  transition: background .15s, transform .15s;
}
.lp-hbtn-phu:hover { background: rgba(255, 255, 255, .3); transform: translateY(-2px); }

.lp-hero-art {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  min-height: 185px;
}
.lp-hero-art img {
  height: 175px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(10, 30, 80, .25));
}
.lp-hero-art img.sub {
  height: 148px;
  margin-left: -14px;
}

/* ---------- Lưới 4 thẻ khu vực học tập ---------- */
.lp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.lp-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 22px 24px;
  background: #fff;
  border: 2px solid #d5e7ff;
  box-shadow: 0 10px 28px rgba(22, 104, 227, .08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lp-card.toan { background: linear-gradient(145deg, #ffffff 35%, #ebf4ff 100%); border-color: #b7d6ff; }
.lp-card.anh { background: linear-gradient(145deg, #ffffff 35%, #fff6e0 100%); border-color: #fde09b; }
.lp-card.dethi { background: linear-gradient(145deg, #ffffff 35%, #e8fcf2 100%); border-color: #9de8c2; }
.lp-card.tuduy { background: linear-gradient(145deg, #ffffff 35%, #f4eeff 100%); border-color: #d4c0ff; }

.lp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lp-card-titlewrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lp-card-img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
  box-shadow: 0 6px 14px rgba(22, 104, 227, .12);
  flex-shrink: 0;
}
.lp-pill {
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
  background: #e6f0ff;
  color: #1668e3;
  white-space: nowrap;
}
.lp-card.anh .lp-pill { background: #fef3c7; color: #b45309; }
.lp-card.dethi .lp-pill { background: #d1fae5; color: #047857; }
.lp-card.tuduy .lp-pill { background: #ede9fe; color: #6d28d9; }

.lp-card h2 {
  font-family: 'Baloo 2', 'Be Vietnam Pro', sans-serif;
  font-size: 23px;
  line-height: 1.2;
  margin: 0;
  color: #10326b;
}
.lp-card-body {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex: 1;
}
.lp-card-body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: #3f5275;
  flex: 1;
}
.lp-card-mascot {
  width: 96px;
  height: 96px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 12px rgba(20, 60, 120, .14));
}

.lp-exam-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lp-epill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid #b8edd1;
  font: 700 13px/1.2 'Be Vietnam Pro', sans-serif;
  color: #065f46;
  transition: background .14s, transform .14s;
}
.lp-epill:hover { background: #d1fae5; transform: translateY(-1px); }

.lp-games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.lp-game-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #dfd3ff;
  border-radius: 15px;
  padding: 9px 11px;
  transition: transform .14s, border-color .14s, box-shadow .14s;
}
.lp-game-chip:hover {
  transform: translateY(-2px);
  border-color: #8b5cf6;
  box-shadow: 0 6px 14px rgba(109, 40, 217, .12);
}
.lp-game-chip img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}
.lp-game-chip b { display: block; font-size: 13.5px; color: #3b1c7a; line-height: 1.25; }
.lp-game-chip small { display: block; font-size: 11.8px; color: #5b6e91; line-height: 1.3; margin-top: 2px; }

.lp-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1668e3, #2f8bff);
  color: #fff;
  font: 800 14.5px/1 'Baloo 2', 'Be Vietnam Pro', sans-serif;
  box-shadow: 0 3px 0 #0f4db3, 0 6px 16px rgba(22, 104, 227, .24);
  transition: transform .15s;
}
.lp-btn:hover { transform: translateY(-2px); }
.lp-card.anh .lp-btn { background: linear-gradient(135deg, #d97706, #f59e0b); box-shadow: 0 3px 0 #b45309, 0 6px 16px rgba(217, 119, 6, .24); }
.lp-card.dethi .lp-btn { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 3px 0 #047857, 0 6px 16px rgba(5, 150, 105, .24); }
.lp-card.tuduy .lp-btn { background: linear-gradient(135deg, #6d28d9, #8b5cf6); box-shadow: 0 3px 0 #5b21b6, 0 6px 16px rgba(109, 40, 217, .24); }
.lp-btn-sub {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  color: #164ea8;
  border: 1.5px solid #c9ddff;
  font: 700 13.5px/1 'Be Vietnam Pro', sans-serif;
}
.lp-btn-sub:hover { background: #edf4ff; }

/* ---------- Khối SEO cấu trúc đề thi & Góc phụ huynh ---------- */
.lp-box {
  background: #fff;
  border-radius: 24px;
  padding: 22px 26px;
  border: 2px solid #d5e7ff;
  box-shadow: 0 8px 24px rgba(22, 104, 227, .06);
}
.lp-box h2 {
  font-family: 'Baloo 2', 'Be Vietnam Pro', sans-serif;
  font-size: 22px;
  margin: 0 0 12px;
  color: #10326b;
}
.lp-seo { margin-bottom: 22px; border-left: 6px solid #1668e3; }
.lp-seo p { margin: 0 0 10px; font-size: 14.8px; color: #364a6e; line-height: 1.72; }
.lp-seo ul { margin: 6px 0 12px; padding-left: 20px; color: #364a6e; font-size: 14.6px; line-height: 1.68; }
.lp-seo li { margin-bottom: 6px; }
.lp-seo a { color: #1668e3; font-weight: 700; }
.lp-seo a:hover { text-decoration: underline; }

.lp-guides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.lp-guide-item {
  background: #f5f9ff;
  border: 1.5px solid #d5e7ff;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14.5px;
  color: #164ea8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background .14s, transform .14s, border-color .14s;
}
.lp-guide-item:hover { background: #eaf3ff; border-color: #7eb3ff; transform: translateY(-2px); }
.lp-guide-l { display: flex; align-items: center; gap: 10px; }
.lp-guide-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e1eeff;
  color: #1668e3;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.lp-guide-ic svg { width: 18px; height: 18px; }
.lp-guide-go { white-space: nowrap; font-size: 13.5px; }

/* ---------- Footer đồng bộ /huong-dan ---------- */
.lp-foot {
  background: #072973;
  color: rgba(255, 255, 255, .88);
  padding: 18px 16px;
  text-align: center;
  font-size: 13.5px;
}
.lp-foot-nav {
  display: flex;
  justify-content: center;
  gap: 10px 20px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.lp-foot-nav a { color: #dbeeff; font-weight: 600; }
.lp-foot-nav a:hover { color: #fff; text-decoration: underline; }
.lp-copy { font-size: 12.5px; color: rgba(219, 238, 255, .72); }

/* ---------- Responsive Tablet & Mobile ---------- */
@media (max-width: 920px) {
  .lp-hero { grid-template-columns: 1fr; padding: 22px 20px; }
  .lp-hero-art { min-height: 135px; justify-content: flex-start; }
  .lp-hero-art img { height: 135px; }
  .lp-hero-art img.sub { height: 118px; }
  .lp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .lp-top-in { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px; }
  .lp-brand b { font-size: 20px; }
  .lp-wrap { padding: 14px 12px 38px; }
  .lp-switcher { padding: 11px 12px; }
  .lp-tabs { gap: 6px; width: 100%; }
  .lp-tab { flex: 1 1 calc(33.33% - 6px); min-width: 86px; height: 36px; padding: 0 10px 0 6px; font-size: 14px; }
  .lp-tab i { width: 20px; height: 20px; font-size: 12px; }
  .lp-sw-exam { width: 100%; justify-content: center; }
  .lp-card { padding: 18px 16px; border-radius: 20px; }
  .lp-card-mascot { width: 72px; height: 72px; }
  .lp-games { grid-template-columns: 1fr; }
  .lp-guides { grid-template-columns: 1fr; }
  .lp-box { padding: 18px 16px; border-radius: 20px; }
}
