/* ====================== ROOT & RESET ====================== */
:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --primary-light: #4f8cff;
  --text: #1f2a37;
  --muted: #6b7280;
  --bg: #f5f9ff;
  --white: #ffffff;
  --border: rgba(13, 110, 253, 0.12);
  --shadow: 0 18px 45px rgba(13, 110, 253, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --transition: 0.35s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* ====================== BUTTONS ====================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, #0d6efd, #4f8cff);
  color: white;
  box-shadow: 0 14px 28px rgba(13, 110, 253, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(13, 110, 253, 0.28);
}

.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.38);
  color: white;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
}

.btn-outline:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.18);
}

/* ====================== BADGE ====================== */
.hero-badge,
.section-badge {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
}

.section-badge {
  background: rgba(13, 110, 253, 0.09);
  border: 1px solid rgba(13, 110, 253, 0.12);
  color: var(--primary);
}

/* ====================== HERO ====================== */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d6efd, #4f8cff);
  color: white;
  padding: 60px 0 155px;   /* TÄƒng vÃ¬ Ä‘Ã£ xÃ³a header */
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.15;
  margin: 18px 0 18px;
  font-weight: 800;
}

.hero-content p {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.9);
  max-width: 680px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 20px;
}

.hero-mini-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.94);
  margin-top: 10px;
}

.hero-card {
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(14px);
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.15);
}

.hero-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.92);
  font-weight: 600;
  margin-bottom: 20px;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(52, 211, 153, 0.18);
}

.hero-card-body {
  display: grid;
  gap: 18px;
}

.hero-stat {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 18px;
  border-radius: 18px;
}

.hero-stat h3 {
  font-size: 1.06rem;
  margin-bottom: 4px;
}

.hero-stat p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.84);
}

.hero-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.16);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* HERO WAVES */
.hero-waves {
  display: block;
  width: 100%;
  height: 70px;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

.wave1 use {
  animation: move-forever1 12s linear infinite;
  animation-delay: -2s;
  fill: rgba(255, 255, 255, 0.7);
}

.wave2 use {
  animation: move-forever2 15s linear infinite;
  animation-delay: -3s;
  fill: rgba(255, 255, 255, 0.5);
}

.wave3 use {
  animation: move-forever3 18s linear infinite;
  animation-delay: -4s;
  fill: rgba(255, 255, 255, 0.9);
}

@keyframes move-forever1 {
  0% { transform: translate(85px, 0%); }
  100% { transform: translate(-90px, 0%); }
}

@keyframes move-forever2 {
  0% { transform: translate(-90px, 0%); }
  100% { transform: translate(85px, 0%); }
}

@keyframes move-forever3 {
  0% { transform: translate(-90px, 0%); }
  100% { transform: translate(85px, 0%); }
}

/* ====================== SECTIONS ====================== */
section {
  padding: 25px 0;
}

.section-heading {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 46px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.2;
  margin: 18px 0 14px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.03rem;
}

/* ====================== WHY SECTION - 4 Cá»˜T ====================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-5px);
}

.why-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: var(--primary);
  background: rgba(13, 110, 253, 0.09);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.why-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.3;
}

.why-card p {
  color: var(--muted);
  margin-top: 8px;
}

/* USAGE, BENEFIT, POLICY GRID */
.usage-grid,
.benefit-grid,
.footer-grid {
  display: grid;
  gap: 24px;
}

.usage-grid { grid-template-columns: repeat(3, 1fr); }
.benefit-grid { grid-template-columns: repeat(2, 1fr); }
.footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }

/* CARD CHUNG */
.usage-card,
.benefit-card,
.notice-box,
.cta-box {
  background: white;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.usage-card:hover,
.benefit-card:hover {
  transform: translateY(-5px);
  transition: var(--transition);
}

.usage-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: var(--primary);
  background: rgba(13, 110, 253, 0.09);
}

.usage-card h3,
.benefit-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.3;
}

.benefit-card ul {
  padding-left: 18px;
}

.benefit-card li {
  margin-bottom: 10px;
  color: var(--muted);
}

/* NOTICE */
.notice-box {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(79, 140, 255, 0.06));
}

.notice-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0d6efd, #4f8cff);
  color: white;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.notice-content h3 {
  margin-bottom: 12px;
}

.notice-content p {
  color: var(--muted);
}

/* CTA */
.cta-section {
  padding-top: 30px;
}

.cta-box {
  text-align: center;
  background: linear-gradient(135deg, #0d6efd, #4f8cff);
  color: white;
  box-shadow: 0 26px 60px rgba(13, 110, 253, 0.22);
}

.cta-box h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 16px;
}

.cta-box p {
  color: rgba(255,255,255,0.9);
  max-width: 820px;
  margin: 0 auto 24px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* FOOTER */
.site-footer {
  background: #1c57c3;
  color: white;
  padding: 70px 0 30px;
  margin-top: 80px;
}

.footer-col h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.footer-col p {
  color: rgba(255,255,255,0.78);
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
  color: rgba(255,255,255,0.62);
  font-size: 0.94rem;
}


.float-btn:hover {
  transform: translateY(-3px) scale(1.03);
}

.call-btn {
  background: linear-gradient(135deg, #0d6efd, #4f8cff);
}

.zalo-btn {
  background: linear-gradient(135deg, #0068ff, #2ba3ff);
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
/* ====================== RESPONSIVE - Ä�Ãƒ CHá»ˆNH MOBILE ====================== */
@media (max-width: 1024px) {
  .hero-grid,
  .why-grid,
  .usage-grid,
  .benefit-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .hero-section {
    padding: 30px 0 140px;           /* Giáº£m bá»›t má»™t chÃºt cho cÃ¢n Ä‘á»‘i */
  }

  .hero-grid {
    grid-template-columns: 1fr;      /* 1 cá»™t trÃªn mobile */
    gap: 50px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.4rem;               /* TÄƒng chá»¯ cho dá»… nhÃ¬n hÆ¡n */
  }

  .why-grid,
  .usage-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .btn-outline,
  .btn-primary {
    width: 100%;
  }

  .notice-box {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 100%);
  }

  section {
    padding: 20px 0;
  }

  .hero-content h1 {
    font-size: 2.1rem;
  }

  .hero-waves {
    height: 55px;
  }

  .hero-mini-note {
    text-align: left;
  }
}
/* ====================== FLOATING ACTIONS ====================== */
.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 1.25rem;
  transition: var(--transition);
  text-decoration: none;
}

.float-btn:hover {
  transform: translateY(-4px) scale(1.06);
}

.main-btn,
.toggle-btn {
  background: linear-gradient(135deg, #12c2ff, #2ba3ff);
}


.toggle-btn i {
  transition: transform 0.4s ease;
}

.toggle-btn.active i {
  transform: rotate(180deg);  
}


.float-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}

.float-group.show {
  max-height: 620px;
  overflow: visible;
}

/* Responsive */
@media (max-width: 480px) {
  .floating-actions { 
    right: 16px; 
    bottom: 16px; 
    gap: 10px; 
  }
  .float-btn { 
    width: 52px; 
    height: 52px; 
    font-size: 1.2rem; 
  }
}


/* GAME SUBMENU */

.game-submenu{

position:fixed;

right:85px;
bottom:110px;

display:flex;
flex-direction:column;

gap:10px;

opacity:0;
transform:translateX(20px);

pointer-events:none;

transition:.25s;

z-index:999;

}

.game-submenu.show{

opacity:1;

transform:translateX(0);

pointer-events:auto;

}

/* BUTTON GAME */

.game-sub-btn{

background:white;

padding:10px 16px;

border-radius:20px;

font-size:14px;

font-weight:600;

text-decoration:none;

color:#111;

box-shadow:0 6px 14px rgba(0,0,0,.2);

transition:.2s;

}

.game-sub-btn:hover{

background:#2f80ed;
color:white;

transform:translateX(-4px);

}
.game-submenu{

right:90px;
bottom:120px;

transform:translateX(30px) scale(.9);

}

.game-submenu.show{

transform:translateX(0) scale(1);

}

/* EXAM SUBJECT SUBMENU */
.exam-menu-wrap{
  position:relative;
  width:56px;
  height:56px;
}
.exam-menu-wrap .float-btn{
  width:56px;
  height:56px;
}
.exam-submenu{
  position:absolute;
  right:87px;
  top:58%;
  display:flex;
  flex-direction:column;
  gap:10px;
  opacity:0;
  transform:translateY(-50%) translateX(20px) scale(.95);
  pointer-events:none;
  transition:.25s;
  z-index:1001;
}
.exam-submenu.show{
  opacity:1;
  transform:translateY(-50%) translateX(0) scale(1);
  pointer-events:auto;
}
.exam-sub-btn{
  background:white;
  padding:10px 16px;
  border-radius:20px;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  color:#111;
  box-shadow:0 6px 14px rgba(0,0,0,.2);
  transition:.2s;
  white-space:nowrap;
}
.exam-sub-btn:hover{
  background:#2f80ed;
  color:white;
  transform:translateX(-4px);
}

/* ====================== HERO TRIAL - LEFT COLUMN ====================== */
.hero-grid.hero-grid-three {
  width: min(1320px, calc(100% - 32px));
  grid-template-columns: minmax(310px, .86fr) minmax(430px, 1.12fr) minmax(320px, .92fr);
  gap: 24px;
  align-items: center;
}

.hero-grid-three .hero-content {
  min-width: 0;
}

.hero-main-title {
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  line-height: 1.18;
  margin: 14px 0 10px;
  font-weight: 800;
}

.hero-grid-three .hero-content p {
  font-size: .96rem;
  line-height: 1.5;
}

.hero-grid-three .hero-buttons {
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 0;
}

.hero-grid-three .hero-support-inline {
  margin-top: 14px;
}

.hero-trial-panel {
  padding: 20px;
}

.hero-trial-panel .hero-card-top {
  margin-bottom: 13px;
}

.hero-trial-panel-title {
  font-size: 1.45rem;
  font-weight: 800;
}

.hero-trial-list {
  display: grid;
  gap: 12px;
}

.hero-trial-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 12px 13px;
  border-radius: 17px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.11);
}

.hero-trial-row-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255,255,255,.16);
  font-size: 1rem;
}

.hero-trial-row-main {
  flex: 1;
  min-width: 0;
}

.hero-trial-row-line h3 {
  margin: 0 0 7px;
  font-size: 1.2rem;
  line-height: 1.15;
}

.hero-trial-row-form {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(105px, 1.15fr);
  gap: 7px;
}

.hero-trial-row-form select,
.hero-trial-row-form button,
.hero-trial-row-student a,
.hero-trial-row-student button {
  width: 100%;
  height: 34px;
  border-radius: 8px;
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
}

.hero-trial-row-form select {
  min-width: 0;
  padding: 0 8px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.24);
  outline: none;
  background: rgba(255,255,255,.10);
}

.hero-trial-row-form select option {
  color: #1f2a37;
  background: #fff;
}

.hero-trial-row-form button,
.hero-trial-row-student a,
.hero-trial-row-student button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.32);
  background: #fff;
  color: #0d6efd;
  transition: .2s ease;
}

.hero-trial-row-form button:hover,
.hero-trial-row-student a:hover,
.hero-trial-row-student button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.hero-trial-row-form button:disabled,
.hero-trial-row-student button:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.hero-trial-row-student {
  display: grid;
  grid-template-columns: minmax(64px, .7fr) minmax(110px, 1.3fr);
  align-items: center;
  gap: 7px;
}

.hero-trial-row-student > span {
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,.82);
}

.hero-trial-row-student form {
  margin: 0;
}

.hero-trial-unavailable {
  display: block;
  padding: 8px 0 2px;
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
}

.hero-trial-resume.compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: -2px 0 12px;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.10);
}

.hero-trial-resume.compact > div {
  min-width: 0;
  display: grid;
}

.hero-trial-resume.compact strong {
  font-size: .72rem;
  color: rgba(255,255,255,.76);
}

.hero-trial-resume.compact span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .78rem;
  font-weight: 700;
}

.hero-trial-resume.compact a {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 8px;
  background: #fff;
  color: #0d6efd;
  font-size: .68rem;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .hero-grid.hero-grid-three {
    width: min(980px, calc(100% - 32px));
    grid-template-columns: minmax(285px, .9fr) minmax(390px, 1.1fr);
  }
  .hero-grid-three .hero-system-card {
    grid-column: 1 / -1;
  }
  .hero-grid-three .hero-system-card .hero-card-body {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

@media (max-width: 820px) {
  .hero-grid.hero-grid-three {
    grid-template-columns: 1fr;
    width: min(680px, calc(100% - 28px));
  }
  .hero-grid-three .hero-content {
    order: 1;
  }
  .hero-grid-three .hero-trial-panel {
    order: 2;
  }
  .hero-grid-three .hero-system-card {
    order: 3;
    grid-column: auto;
  }
  .hero-grid-three .hero-system-card .hero-card-body {
    grid-template-columns: 1fr;
  }
  .hero-grid-three .hero-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .hero-trial-panel {
    padding: 17px;
    border-radius: 21px;
  }
  .hero-trial-row {
    padding: 11px;
  }
  .hero-trial-row-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
  .hero-trial-row-line h3 {
    font-size: 1.05rem;
  }
  .hero-trial-row-form {
    grid-template-columns: 1fr;
  }
  .hero-trial-row-student {
    grid-template-columns: 1fr;
  }
}

/* v284: local person icon inside registration button */
.btn-inline-icon{width:1em;height:1em;display:inline-block;object-fit:contain;filter:brightness(0) invert(1);vertical-align:-.12em;flex:0 0 auto}

/* TestMaster free-project support note */
.home-support-note{margin-top:16px;padding:14px 16px;border:1px solid rgba(59,130,246,.18);border-radius:16px;background:rgba(255,255,255,.76);display:grid;gap:5px;color:#475569;font-size:13px;line-height:1.55}
.home-support-note>strong{color:#1e293b;font-size:14px}
.home-support-bank{margin-top:4px;color:#1d4ed8}
.home-support-bank.muted{color:#64748b}

/* TestMaster 12/10: widen home trial card and match signup/login pills */
.hero-grid.hero-grid-three {
  width: min(1390px, calc(100% - 36px));
  grid-template-columns: minmax(370px, 1.05fr) minmax(410px, 1.32fr) minmax(310px, 1fr);
  gap: clamp(16px, 1.65vw, 26px);
}
.hero-grid-three .hero-trial-panel {width:100%; min-width:0; padding:24px 22px;}
.hero-grid-three .tm-home-trial-buttons {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:18px 0 14px;}
.hero-grid-three .tm-home-trial-buttons form {margin:0; min-width:0;}
.hero-grid-three .tm-home-trial-buttons .tm-trial-start-btn {
  width:100%; min-height:49px; padding:11px 12px;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:1.5px solid rgba(255,255,255,.52); border-radius:999px;
  color:#fff; background:rgba(255,255,255,.16);
  font-size:14px; font-weight:750; line-height:1.25; white-space:nowrap;
  box-shadow:0 6px 18px rgba(4,35,100,.10); cursor:pointer;
  transition:background .2s ease,transform .2s ease,border-color .2s ease;
}
.hero-grid-three .tm-home-trial-buttons .tm-trial-start-btn:hover:not(:disabled) {
  background:rgba(255,255,255,.27); border-color:rgba(255,255,255,.8); transform:translateY(-2px);
}
.hero-grid-three .tm-home-trial-buttons .tm-trial-start-btn:focus-visible {outline:3px solid #fff;outline-offset:3px;}
.hero-grid-three .tm-home-trial-buttons .tm-trial-start-btn:disabled {
  opacity:.52;cursor:not-allowed;box-shadow:none;
}
.hero-grid-three .hero-trial-quick-note {line-height:1.5; font-size:12px; margin:0;}
@media(max-width:1180px) {
 .hero-grid.hero-grid-three {width:min(990px,calc(100% - 32px));grid-template-columns:minmax(340px,.95fr) minmax(390px,1.1fr);}
}
@media(max-width:820px) {
 .hero-grid.hero-grid-three {width:min(680px,calc(100% - 28px));grid-template-columns:minmax(0,1fr);}
}
@media(max-width:410px) {
 .hero-grid-three .tm-home-trial-buttons {grid-template-columns:1fr;}
}

/* TestMaster v7: trial card with stacked, accessible buttons */
.hero-grid-three .tm-home-trial-buttons{display:grid;grid-template-columns:minmax(0,1fr);gap:13px;margin:20px 0 18px}
.hero-grid-three .tm-home-trial-buttons .tm-trial-start-btn{min-height:54px;font-size:15px;white-space:normal}
.hero-grid-three .tm-trial-friendly-copy{display:grid;gap:12px;font-size:13px;line-height:1.7;color:rgba(255,255,255,.96)}
.hero-grid-three .tm-trial-friendly-copy p{margin:0}
.hero-grid-three .tm-trial-friendly-copy strong{color:#fff}
@media(min-width:1181px){.hero-grid-three .hero-trial-panel{padding:26px 23px}}

/* v7: Goc dong vien + Kham pha */
.hero-grid-three .hero-trial-panel{display:flex;flex-direction:column;gap:12px;align-self:stretch}
.hero-grid-three .tm-trial-friendly-copy{gap:8px}
.tm-home-encouragement{margin-top:14px;padding:23px 16px;border-top:1px solid rgba(255,255,255,.35);text-align:center;background:rgba(255,255,255,.075);border-radius:18px;display:grid;gap:15px;justify-items:center}
.tm-encouragement-heading{font-size:13px;font-weight:800;color:#fff;letter-spacing:.03em}
.tm-encouragement-quote{font-size:clamp(18px,1.5vw,23px);font-weight:800;line-height:1.55;color:white;min-height:102px;display:flex;align-items:center;justify-content:center;transition:opacity .3s ease,transform .3s ease;text-wrap:balance;text-shadow:0 2px 10px rgba(0,33,104,.15)}
.tm-encouragement-quote.is-changing{opacity:0;transform:translateY(6px)}
.tm-encouragement-sign{font-size:12px;color:rgba(255,255,255,.85)}
.tm-discovery-section{padding:55px 0 65px;background:#f3f7ff;color:#233558}
.tm-discovery-header{text-align:center;margin-bottom:25px}.tm-discovery-header h2{font-size:clamp(23px,2.5vw,33px);margin:8px 0}.tm-discovery-header p{color:#62738c}
.tm-discovery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:20px}
.tm-discovery-item{position:relative;background:white;border:1px solid #e1e9fa;border-radius:19px;overflow:hidden;box-shadow:0 10px 26px rgba(26,72,132,.07)}
.tm-discovery-item img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.tm-discovery-item-title{padding:14px 16px;font-weight:750}
.tm-ad-label{position:absolute;top:10px;left:10px;border-radius:6px;background:rgba(255,255,255,.95);color:#56657e;font-size:11px;font-weight:700;padding:4px 8px}
.tm-discovery-empty{max-width:800px;margin:auto;border:1px dashed #bed1f6;background:white;border-radius:22px;padding:32px;text-align:center;display:grid;justify-items:center;gap:9px}.tm-discovery-empty i{font-size:24px;color:#3b82f6}.tm-discovery-empty span{color:#64748b}
.tm-admin-banner-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:15px}.tm-admin-banner{padding:12px;border:1px solid #dbe4f2;border-radius:15px;display:grid;gap:9px}
@media(max-width:820px){.tm-encouragement-quote{min-height:72px}}

/* Trang chu: giu loi dong vien sau khi dang nhap, chi an thi thu */
.hero-grid.hero-grid-signed-in{width:min(1320px,calc(100% - 32px));grid-template-columns:minmax(255px,.85fr) minmax(390px,1.3fr) minmax(255px,.85fr);gap:24px;align-items:center}
.hero-encouragement-panel{min-width:0}
.hero-encouragement-panel .tm-home-encouragement{margin-top:0;border-top:0}
.tm-home-editable-intro{white-space:normal}
.home-standard-account-note span{white-space:normal}
@media(max-width:1100px){.hero-grid.hero-grid-signed-in{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.hero-grid-signed-in .hero-system-card{grid-column:1/-1}}
@media(max-width:720px){.hero-grid.hero-grid-signed-in{grid-template-columns:minmax(0,1fr)}.hero-grid-signed-in .hero-system-card{grid-column:auto}}
