/* =========================================
   GIA SU CAN THO - Main Stylesheet
   Mobile-first, Google Ads optimized
   ========================================= */

/* ---- Variables ---- */
:root {
  --primary:      #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-light:#eff6ff;
  --accent:       #f59e0b;
  --accent-dark:  #d97706;
  --success:      #10b981;
  --danger:       #ef4444;
  --zalo:         #0068ff;

  --text:         #1e293b;
  --text-muted:   #64748b;
  --text-light:   #94a3b8;
  --border:       #e2e8f0;
  --bg:           #ffffff;
  --bg-gray:      #f8fafc;

  --font:         'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-md:    0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
  --shadow-lg:    0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.05);
  --transition:   all .2s ease;
  --container:    1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ---- Utilities ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.text-center { text-align: center; }
.text-highlight { color: var(--accent); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-align: center;
  justify-content: center;
  line-height: 1.3;
}
.btn--primary  { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn--primary:hover  { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(29,78,216,.35); }
.btn--outline  { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover  { background: var(--primary); color: #fff; }
.btn--white    { background: #fff; color: var(--primary); border-color: #fff; }
.btn--white:hover    { background: var(--primary-light); }
.btn--phone    { background: var(--success); color: #fff; border-color: var(--success); }
.btn--phone:hover    { background: #059669; }
.btn--zalo     { background: var(--zalo); color: #fff; border-color: var(--zalo); }
.btn--zalo:hover     { background: #0050cc; }
.btn--lg  { padding: 1rem 2rem; font-size: 1.05rem; }
.btn--sm  { padding: .5rem 1rem; font-size: .875rem; }
.btn--full{ width: 100%; }

/* ---- Top Bar ---- */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  padding: .4rem 0;
}
.top-bar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.top-bar__left  { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.top-bar__left span, .top-bar__left a { display: flex; align-items: center; gap: .3rem; }
.top-bar__right { display: flex; gap: .75rem; }
.top-bar__social { display: flex; align-items: center; color: rgba(255,255,255,.7); transition: var(--transition); }
.top-bar__social:hover { color: #fff; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 70px;
}

/* Logo */
.site-logo { flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text__main { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.logo-text__sub  { font-size: .9rem; font-weight: 600; color: var(--accent); }
.site-logo img   { height: 50px; width: auto; }

/* Nav */
.site-nav { flex: 1; display: none; }
.nav-menu { display: flex; align-items: center; gap: 0; }
.nav-menu li { position: relative; }
.nav-menu > li > a {
  display: block;
  padding: .75rem 1rem;
  font-weight: 500;
  font-size: .9rem;
  color: var(--text);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a { color: var(--primary); }
.nav-menu > li.current-menu-item > a::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--primary);
  margin-top: 2px;
  border-radius: 2px;
}

/* Dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 100;
}
.nav-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu .sub-menu a {
  display: block;
  padding: .6rem 1.25rem;
  font-size: .875rem;
  color: var(--text);
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
}
.nav-menu .sub-menu a:hover { background: var(--primary-light); color: var(--primary); padding-left: 1.5rem; }
.nav-menu .sub-menu li:last-child a { border-bottom: none; }

/* Header CTA */
.header__cta { display: none; align-items: center; gap: .75rem; margin-left: auto; flex-shrink: 0; }

/* Mobile toggle */
.nav-toggle {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav-open .site-nav {
  display: block;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  overflow-y: auto;
  padding: 1rem 0;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}
.mobile-nav-open .site-nav .nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
.mobile-nav-open .site-nav .nav-menu > li > a { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); font-size: 1rem; }
.mobile-nav-open .site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: var(--bg-gray); }
.mobile-nav-open .site-nav .sub-menu a { padding: .75rem 2rem; }

/* ---- Section Helpers ---- */
section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .3rem .9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; line-height: 1.25; margin-bottom: .75rem; color: var(--text); }
.section-desc  { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ---- Hero ---- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #2563eb 50%, #1d4ed8 100%);
  color: #fff;
  padding: 5rem 0 7rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  padding: .4rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: #fde68a;
  margin-bottom: 1.25rem;
  width: fit-content;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: #fff;
}
.hero__title .text-highlight { color: #fde68a; }
.hero__desc  { font-size: 1.1rem; line-height: 1.7; margin-bottom: 2rem; color: rgba(255,255,255,.9); }
.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-item   { text-align: center; background: rgba(255,255,255,.1); border-radius: var(--radius-sm); padding: .75rem .5rem; }
.stat-item__num   { display: block; font-size: 1.5rem; font-weight: 800; color: #fde68a; }
.stat-item__label { display: block; font-size: .75rem; color: rgba(255,255,255,.8); margin-top: .15rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
/* Nút "Gọi" trên nền hero xanh: .btn--outline mặc định màu xanh → chìm vào nền.
   Ép sang trắng để đọc rõ. */
.hero__actions .btn--outline {
  color: #fff;
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.1);
}
.hero__actions .btn--outline:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.hero__tutor-link {
  margin: .5rem 0 0;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
}
.hero__tutor-link a {
  color: #fde68a;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 2px;
}
.hero__tutor-link a:hover { text-decoration: underline; }
.hero__wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; }
.hero__wave svg { width: 100%; }

/* Hero form */
.hero__form-wrap { display: flex; justify-content: center; }
.quick-form {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
  max-width: 460px;
}
.quick-form__header { background: var(--primary); color: #fff; padding: 1.5rem; text-align: center; }
.quick-form__header h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: .25rem; }
.quick-form__header p  { font-size: .9rem; opacity: .85; }
.quick-form__body { padding: 1.5rem; }
.quick-form__success { padding: 3rem 1.5rem; text-align: center; color: var(--text); }
.quick-form__success h3 { font-size: 1.3rem; margin: 1rem 0 .5rem; color: var(--success); }
.quick-form__success p  { color: var(--text-muted); }

/* ---- Forms ---- */
.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  transition: var(--transition);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,78,216,.1);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%2364748b' d='M7 7l3-3 3 3m0 6l-3 3-3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .75rem;
  text-align: center;
  justify-content: center;
}
.form-success-msg { text-align: center; padding: 2rem; }
.form-success-msg h3 { color: var(--success); margin: .75rem 0 .25rem; }
.form-success-msg p  { color: var(--text-muted); }

/* ---- Why Us ---- */
.why-us { background: var(--bg-gray); }
.why-us__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.feature-card__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p  { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

/* ---- Services ---- */
.services { background: #fff; }
.service-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
  justify-content: center;
}
.service-tab {
  padding: .6rem 1.25rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
}
.service-tab.active,
.service-tab:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.service-panel { display: none; }
.service-panel.active { display: block; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  cursor: pointer;
}
.service-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-card__icon { font-size: 2rem; }
.service-card h3    { font-size: .95rem; font-weight: 700; color: var(--text); }
.service-card__price {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  color: var(--success);
  font-weight: 600;
}
.service-card__cta { font-size: .8rem; color: var(--primary); font-weight: 600; margin-top: auto; }

/* ---- How It Works ---- */
.how-it-works { background: var(--primary-dark); color: #fff; }
.how-it-works .section-badge { background: rgba(255,255,255,.15); color: #fde68a; }
.how-it-works .section-title { color: #fff; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 2rem;
  position: relative;
}
.step-card {
  text-align: center;
  position: relative;
}
.step-card__num {
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255,255,255,.1);
  line-height: 1;
  margin-bottom: .5rem;
}
.step-card__icon {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border: 2px solid rgba(255,255,255,.2);
  color: #fde68a;
}
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; color: #fff; }
.step-card p  { font-size: .9rem; color: rgba(255,255,255,.75); line-height: 1.6; }

/* ---- Areas ---- */
.areas { background: var(--bg-gray); }
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.area-card {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.25rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  transition: var(--transition);
}
.area-card svg   { flex-shrink: 0; color: var(--primary); }

/* ---- Testimonials ---- */
.testimonials { background: #fff; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.review-card {
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.review-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.review-card__stars { display: flex; gap: .15rem; margin-bottom: 1rem; }
.review-card__text  { font-size: .95rem; line-height: 1.7; color: var(--text); margin-bottom: 1.5rem; font-style: italic; }
.review-card__author { display: flex; align-items: center; gap: 1rem; }
.review-card__avatar {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.review-card__author strong { display: block; font-weight: 700; font-size: .9rem; }
.review-card__author span   { font-size: .8rem; color: var(--text-muted); }

/* ---- Tutor Register ---- */
.tutor-register {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}
.tutor-register__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.tutor-register__content h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; margin-bottom: 1rem; }
.tutor-register__content p  { font-size: 1.05rem; opacity: .9; margin-bottom: 1.5rem; }
.tutor-register__benefits { list-style: none; display: flex; flex-direction: column; gap: .5rem; margin-bottom: 2rem; }
.tutor-register__benefits li { display: flex; align-items: center; gap: .5rem; font-size: .95rem; opacity: .95; }
.tutor-register__image { display: flex; justify-content: center; }
.tutor-register__icon {
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255,255,255,.3);
}

/* ---- Contact Section ---- */
.contact-section { background: var(--bg-gray); }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info__item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-info__icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info__item h4 { font-size: .9rem; font-weight: 700; margin-bottom: .2rem; }
.contact-info__item p, .contact-info__item a { font-size: .95rem; color: var(--text-muted); }
.contact-info__item a:hover { color: var(--primary); }
.contact-form-wrap {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.contact-form .btn { margin-top: .5rem; }

/* ---- Footer ---- */
.site-footer { background: #0f172a; color: rgba(255,255,255,.75); }
.footer__top  { padding: 4rem 0; }
.footer__top-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.footer-col--brand { max-width: 320px; }
.footer-col--brand p { font-size: .9rem; line-height: 1.7; margin: 1rem 0 1.5rem; }
.footer-logo { display: flex; flex-direction: column; line-height: 1.1; }
.footer-logo .logo-text__main { color: #fff; }
.footer-logo .logo-text__sub  { color: var(--accent); }
.footer-contact { display: flex; flex-direction: column; gap: .75rem; }
.footer-contact__item {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .875rem;
  color: rgba(255,255,255,.7);
}
.footer-contact__item svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.footer-contact__item:hover, a.footer-contact__item:hover { color: #fff; }

.footer-col__title { color: #fff; font-weight: 700; margin-bottom: 1rem; font-size: 1rem; }
.footer-links li + li { margin-top: .5rem; }
.footer-links a { font-size: .875rem; color: rgba(255,255,255,.6); transition: var(--transition); }
.footer-links a:hover { color: var(--accent); padding-left: .25rem; }
.footer-social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 0;
}
.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}
.footer__bottom a { color: var(--accent); }
.footer__bottom a:hover { color: #fff; }

/* ---- Floating buttons ---- */
.zalo-float, .phone-float {
  position: fixed;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: .5rem;
  border-radius: 100px;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: var(--transition);
  font-weight: 600;
  font-size: .9rem;
}
.zalo-float {
  bottom: 90px;
  right: 1.25rem;
  background: #fff;
  color: var(--zalo);
  padding: .5rem 1rem .5rem .5rem;
}
.zalo-float img { border-radius: 6px; }
.zalo-float:hover { transform: scale(1.05); }
.phone-float {
  bottom: 1.5rem;
  right: 1.25rem;
  background: var(--success);
  color: #fff;
  padding: .9rem;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  justify-content: center;
  animation: pulse-phone 2s infinite;
}
@keyframes pulse-phone {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.4); }
  50%       { box-shadow: 0 0 0 12px rgba(16,185,129,0); }
}

.messenger-float {
  position: fixed;
  bottom: 160px;
  right: 1.25rem;
  z-index: 9999;
  background: #0099ff;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,153,255,.4);
  transition: var(--transition);
  animation: pulse-messenger 2s infinite;
}
.messenger-float:hover { transform: scale(1.05); }
@keyframes pulse-messenger {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,153,255,.4); }
  50%       { box-shadow: 0 0 0 12px rgba(0,153,255,0); }
}

/* ---- Post Cards ---- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.post-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post-card__thumb img { width: 100%; height: 200px; object-fit: cover; }
.post-card__body  { padding: 1.25rem; }
.post-card__meta  { display: flex; gap: .75rem; font-size: .8rem; color: var(--text-light); margin-bottom: .5rem; }
.post-card__cat   { background: var(--primary-light); color: var(--primary); padding: .15rem .5rem; border-radius: 4px; font-weight: 600; }
.post-card__title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.4; }
.post-card__title a:hover { color: var(--primary); }
.post-card__excerpt { font-size: .875rem; color: var(--text-muted); margin-bottom: 1rem; }

/* ---- Single Post ---- */
.content-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
/* min-width:0 — chặn grid item giãn theo bảng rộng (white-space:nowrap) bên trong,
   nếu không cả layout trang sẽ bị đẩy tràn ngang thay vì chỉ cuộn ngang trong bảng */
.content-main { min-width: 0; }
.single-post__header { margin-bottom: 2rem; }

.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; font-size: .8rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { color: var(--text-light); }
.breadcrumb span:last-child { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }

.single-post__header h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; line-height: 1.25; margin-bottom: 1rem; color: var(--text); }
.single-post__meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: var(--text-muted); margin-bottom: 0; }
.single-post__meta-item { display: flex; align-items: center; gap: .35rem; }
.single-post__meta-item svg { flex-shrink: 0; color: var(--primary); }

.single-post__featured { border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.single-post__featured img { width: 100%; height: 340px; object-fit: cover; }

.single-post__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.tag-pill { font-size: .78rem; padding: .25rem .75rem; background: var(--primary-light); color: var(--primary); border-radius: 99px; font-weight: 600; transition: var(--transition); }
.tag-pill:hover { background: var(--primary); color: #fff; }

/* CTA block */
.post-cta { background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%); color: #fff; border-radius: var(--radius); padding: 2.5rem 2rem; text-align: center; margin-top: 2.5rem; }
.post-cta__icon { font-size: 2.5rem; margin-bottom: .75rem; }
.post-cta h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: .5rem; color: #fff; }
.post-cta p  { opacity: .88; margin-bottom: 1.5rem; font-size: .95rem; }
.post-cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.post-cta .btn--primary { background: #fff; color: var(--primary); font-weight: 700; }
.post-cta .btn--primary:hover { background: #eff6ff; }
.btn--zalo { background: var(--zalo); color: #fff; }
.btn--zalo:hover { background: #0055cc; }

/* Prose */
.prose { line-height: 1.85; color: var(--text); font-size: 1rem; }

.prose h2 {
  font-size: 1.45rem; font-weight: 800; line-height: 1.3;
  margin: 2em 0 .75em;
  padding: .6rem 1rem;
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--primary-dark);
}
.prose h3 {
  font-size: 1.15rem; font-weight: 700; line-height: 1.35;
  margin: 1.75em 0 .6em;
  color: var(--primary-dark);
  padding-left: .75rem;
  border-left: 3px solid var(--accent);
}
.prose h4 { font-size: 1rem; font-weight: 700; margin: 1.5em 0 .5em; }

.prose p { margin-bottom: 1.1rem; }

.prose ul { margin: 1rem 0 1.25rem 0; padding: 0; list-style: none; }
.prose ul li { margin-bottom: .55rem; padding-left: 1.5rem; position: relative; }
.prose ul li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; font-size: .9em; }

.prose ol { margin: 1rem 0 1.25rem 1.5rem; }
.prose ol li { margin-bottom: .55rem; padding-left: .25rem; }

.prose strong { color: var(--text); }

.prose img { border-radius: var(--radius); margin: 1.5rem 0; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.prose a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.prose a:hover { color: var(--primary-dark); }

.prose blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  background: var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.75rem 0;
  font-style: italic;
  color: var(--primary-dark);
}

.prose figure.wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.prose figure.wp-block-table table { margin: 0; }
.prose th { background: var(--primary); color: #fff; padding: .65rem 1rem; text-align: left; font-weight: 600; white-space: nowrap; }
.prose td { padding: .6rem 1rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.prose tr:nth-child(even) td { background: #f8fafc; }
.prose tr:last-child td { border-bottom: none; }
.prose table { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }

.prose hr { border: none; border-top: 2px solid var(--border); margin: 2rem 0; }

/* ---- Sidebar ---- */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.sidebar-widget--cta { background: var(--primary); color: #fff; }
.sidebar-widget--cta h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .3rem; }
.sidebar-widget--cta p  { font-size: .875rem; opacity: .85; margin-bottom: 1rem; }
.sidebar-widget__title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: var(--text); border-bottom: 2px solid var(--primary); padding-bottom: .5rem; }
.sidebar-links { display: flex; flex-direction: column; gap: .5rem; }
.sidebar-links a { font-size: .875rem; color: var(--text-muted); padding: .4rem 0; border-bottom: 1px dashed var(--border); transition: var(--transition); display: flex; align-items: center; gap: .4rem; }
.sidebar-links a:hover { color: var(--primary); padding-left: .5rem; }

/* Pagination */
.pagination { margin-top: 2rem; }
.pagination .nav-links { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  transition: var(--transition);
}
.pagination a:hover, .pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================
   TRANG ĐĂNG KÝ LÀM GIA SƯ
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.tutor-hero {
  position: relative;
  background: linear-gradient(150deg, #064e3b 0%, #065f46 30%, #047857 65%, #059669 100%);
  color: #fff;
  padding: 4.5rem 0 6.5rem;
  overflow: hidden;
}
.tutor-hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52,211,153,.18) 0%, transparent 65%);
  pointer-events: none;
}
.tutor-hero__bg {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.tutor-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative; z-index: 1;
}
.tutor-hero__badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.3);
  border-radius: 100px; padding: .45rem 1.1rem;
  font-size: .78rem; font-weight: 700; color: #a7f3d0;
  margin-bottom: 1.1rem; width: fit-content;
  text-transform: uppercase; letter-spacing: .07em;
}
.tutor-hero__title {
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}
.tutor-hero__desc {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: rgba(255,255,255,.85);
  max-width: 580px;
}
.tutor-hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 2.25rem; }
.tutor-stat {
  text-align: center;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: 1rem .75rem;
  border: 1px solid rgba(255,255,255,.14);
}
.tutor-stat__num   { display: block; font-size: 1.3rem; font-weight: 800; color: #6ee7b7; letter-spacing: -.01em; }
.tutor-stat__label { display: block; font-size: .72rem; color: rgba(255,255,255,.75); margin-top: .2rem; line-height: 1.4; }
.tutor-hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.btn--accent        { background: var(--accent); color: #1c1917; border-color: var(--accent); font-weight: 700; }
.btn--accent:hover  { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(245,158,11,.4); }
.btn--white-outline { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.45); }
.btn--white-outline:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.8); }

/* Hero right-side widget */
.tutor-hero__img { display: flex; justify-content: center; align-items: center; }
.tutor-hero__img-inner { position: relative; width: 260px; height: 260px; }
.tutor-hero__img-icon {
  width: 100%; height: 100%;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,.15);
}
.income-badge {
  position: absolute;
  display: flex; align-items: center; gap: .55rem;
  background: #fff; border-radius: var(--radius-sm);
  padding: .7rem 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  font-size: .8rem; white-space: nowrap;
}
.income-badge strong { display: block; font-weight: 700; color: var(--text); font-size: .85rem; line-height: 1.2; }
.income-badge span   { color: var(--text-muted); font-size: .74rem; }
.income-badge--1 { top: 16px; left: -24px; }
.income-badge--2 { top: 50%;  right: -28px; transform: translateY(-50%); }
.income-badge--3 { bottom: 24px; left: 4px; }

/* ── Jobs banner ───────────────────────────────────────────── */
.tutor-jobs-banner {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  padding: 1.5rem 0;
}
.tutor-jobs-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.tutor-jobs-banner__left {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
}
.tutor-jobs-banner__icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.tutor-jobs-banner__label {
  margin: 0;
  font-size: .8rem;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.tutor-jobs-banner__title {
  margin: .2rem 0 0;
  font-size: 1.1rem;
  color: #fff;
}
.tutor-jobs-banner__title strong { color: #fde68a; }
.tutor-jobs-banner__btn { white-space: nowrap; flex-shrink: 0; }

@media (max-width: 640px) {
  .tutor-jobs-banner__inner { flex-direction: column; align-items: flex-start; }
  .tutor-jobs-banner__btn { width: 100%; justify-content: center; }
}

/* ── Benefits ─────────────────────────────────────────────── */
.tutor-benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
}
.tutor-benefit-card {
  display: flex; align-items: flex-start; gap: 1.1rem;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: box-shadow .2s, transform .2s;
}
.tutor-benefit-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.tutor-benefit-card__icon {
  width: 48px; height: 48px; min-width: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tutor-benefit-card__body { flex: 1; min-width: 0; }
.tutor-benefit-card__tag {
  display: inline-block; font-size: .7rem; font-weight: 700;
  padding: .18rem .65rem; border-radius: 4px; margin-bottom: .55rem;
  text-transform: uppercase; letter-spacing: .07em;
}
.tutor-benefit-card h3 { font-size: .975rem; font-weight: 700; margin-bottom: .3rem; line-height: 1.35; color: var(--text); }
.tutor-benefit-card p  { font-size: .875rem; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* ── Salary table ─────────────────────────────────────────── */
.table-scroll-hint {
  display: none;
  text-align: center; font-size: .78rem; color: var(--text-muted);
  margin-bottom: .6rem;
}
.salary-table-section { background: #fff; }
.salary-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.salary-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.salary-table th {
  background: var(--primary); color: #fff;
  padding: .95rem 1.1rem; text-align: left; font-weight: 600;
  white-space: nowrap; font-size: .85rem; letter-spacing: .02em;
}
.salary-table td { padding: .9rem 1.1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.salary-table tbody tr:last-child td { border-bottom: none; }
.salary-table .row-highlight td { background: var(--bg-gray); }
.income-cell { font-weight: 800; color: var(--success); font-size: 1rem; white-space: nowrap; }
.cap-badge {
  display: inline-block; padding: .28rem .75rem; border-radius: 100px;
  font-size: .78rem; font-weight: 700; white-space: nowrap;
}
.cap-badge--tieuhoc { background: #fef9c3; color: #854d0e; }
.cap-badge--thcs    { background: #dbeafe; color: #1e40af; }
.cap-badge--thpt    { background: #ede9fe; color: #5b21b6; }
.cap-badge--daihoc  { background: #d1fae5; color: #065f46; }
.salary-note {
  display: flex; align-items: flex-start; gap: .6rem;
  margin-top: 1.25rem; padding: 1rem 1.25rem;
  background: var(--primary-light); border-radius: var(--radius-sm);
  font-size: .875rem; color: var(--text-muted); line-height: 1.65;
}
.salary-note svg { flex-shrink: 0; margin-top: 2px; }

/* ── Process steps ────────────────────────────────────────── */
.tutor-process { padding: 5rem 0; }
.tutor-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem; }
.tutor-step-card { text-align: center; }
.tutor-step-card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: rgba(255,255,255,.14);
  border: 2px solid rgba(255,255,255,.28);
  border-radius: 50%;
  font-size: 1.05rem; font-weight: 800;
  color: #6ee7b7;
  margin: 0 auto .75rem;
  line-height: 1;
}
.tutor-step-card__icon {
  width: 72px; height: 72px;
  background: rgba(255,255,255,.12); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  border: 2px solid rgba(255,255,255,.18);
}
.tutor-step-card h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: .6rem; line-height: 1.3; }
.tutor-step-card p  { font-size: .9rem; color: rgba(255,255,255,.78); line-height: 1.7; margin-bottom: 1rem; }
.tutor-step-card__note {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 100px;
  padding: .35rem .9rem; font-size: .8rem; color: #a7f3d0;
}

/* ── Requirements ─────────────────────────────────────────── */
.tutor-requirements { background: #fff; }
.tutor-req__layout { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.req-list { display: flex; flex-direction: column; gap: .9rem; }
.req-item { display: flex; align-items: flex-start; gap: .75rem; font-size: .94rem; line-height: 1.6; }
.req-item svg { flex-shrink: 0; margin-top: 2px; }
.req-item--open span { color: var(--text-muted); }

/* ── Subject tags ─────────────────────────────────────────── */
.tutor-req__subjects {
  background: var(--bg-gray); border-radius: var(--radius);
  padding: 2rem; border: 1px solid var(--border);
}
.tutor-req__subjects h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--text); }
.subject-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.subject-tag {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .42rem .95rem; border-radius: 100px;
  background: #fff; border: 1.5px solid var(--border);
  font-size: .85rem; font-weight: 500; color: var(--text);
  transition: var(--transition); cursor: default;
}
.subject-tag:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.subject-tag--hot  { border-color: #fbbf24; background: #fffbeb; color: #92400e; font-weight: 600; }
.hot-label {
  background: var(--accent); color: #fff;
  font-size: .62rem; font-weight: 800; padding: .1rem .35rem;
  border-radius: 3px; letter-spacing: .05em;
}
.subjects-cta { border-top: 1px solid var(--border); padding-top: 1.25rem; }
.subjects-cta p { font-size: .875rem; color: var(--text-muted); margin-bottom: .75rem; }

/* ── FAQ ──────────────────────────────────────────────────── */
.tutor-faq { background: var(--bg-gray); }
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: .6rem; }
.faq-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-item__question {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.5rem;
  background: none; border: none; cursor: pointer;
  font-size: .95rem; font-weight: 600; color: var(--text);
  text-align: left; transition: color .2s, background .2s;
  line-height: 1.45;
}
.faq-item__question:hover { color: var(--primary); }
.faq-item__question[aria-expanded="true"] { color: var(--primary); background: #eff6ff; }
.faq-item__arrow {
  flex-shrink: 0; transition: transform .25s ease; color: var(--text-muted); min-width: 20px;
}
.faq-item__question[aria-expanded="true"] .faq-item__arrow { transform: rotate(180deg); color: var(--primary); }
.faq-item__answer {
  padding: 0 1.5rem 1.25rem;
  font-size: .9rem; color: var(--text-muted); line-height: 1.75;
  border-top: 1px solid var(--border);
  animation: fadeInUp .2s ease;
}
.faq-item__answer p { margin: 0; padding-top: .9rem; }

/* ── Registration form ────────────────────────────────────── */
.tutor-form-section { background: var(--bg-gray); }
.tutor-form__layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
.tutor-form__info { padding: .5rem 0; }
.tutor-form__checklist { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 2rem; }
.tutor-check-item { display: flex; align-items: flex-start; gap: .75rem; font-size: .94rem; line-height: 1.55; }
.tutor-check-item svg { flex-shrink: 0; margin-top: 2px; }
.tutor-form__contact { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.tutor-form__contact p { font-size: .875rem; color: var(--text-muted); margin-bottom: .85rem; }
.tutor-form__contact-btns { display: flex; flex-wrap: wrap; gap: .75rem; }

.tutor-form__card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  overflow: hidden;
}
.tutor-form__card-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  padding: 1.75rem 2rem;
}
.tutor-form__card-header h3 {
  font-size: 1.2rem; font-weight: 700;
  color: #fff; margin: 0; line-height: 1.3;
}
.tutor-form__card-header p {
  font-size: .875rem; color: rgba(255,255,255,.78);
  margin: .35rem 0 0;
}
.tutor-form__card-body { padding: 1.75rem 2rem; }

/* Checkbox group */
.checkbox-group {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: .4rem; padding: .85rem; background: var(--bg-gray);
  border-radius: var(--radius-sm); border: 1.5px solid var(--border);
}
.checkbox-label {
  display: flex; align-items: center; gap: .5rem;
  font-size: .875rem; cursor: pointer; padding: .3rem .5rem;
  border-radius: 5px; transition: background .15s, color .15s;
  line-height: 1.35;
}
.checkbox-label:hover { background: var(--primary-light); color: var(--primary); }
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); flex-shrink: 0; }
.checkbox-label:has(input:checked) { background: var(--primary-light); color: var(--primary); font-weight: 600; outline: 1.5px solid var(--primary); }
.checkbox-label--full { grid-column: 1 / -1; border-top: 1px solid var(--border); margin-top: .2rem; padding-top: .5rem; font-weight: 600; color: var(--primary); }
.label-hint { font-size: .78rem; font-weight: 400; color: var(--text-muted); margin-left: .25rem; }

/* ---- Responsive: tutor page ---- */
@media (min-width: 768px) {
  .tutor-hero__inner   { grid-template-columns: 1fr 280px; }
  .tutor-req__layout   { grid-template-columns: 1fr 1fr; }
  .tutor-form__layout  { grid-template-columns: 1fr 1.25fr; }
}

/* ---- Responsive ---- */
@media (min-width: 640px) {
  .hero__stats { grid-template-columns: repeat(4, 1fr); }
  .footer__top-inner { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .hero__inner { grid-template-columns: 1fr 400px; }
  .tutor-register__inner { grid-template-columns: 1fr auto; }
  .contact-layout { grid-template-columns: 1fr 1.6fr; }
  .content-layout { grid-template-columns: 1fr 300px; }
  .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .site-nav { display: block; }
  .header__cta { display: flex; }
  .nav-toggle { display: none; }
  .footer__top-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* Ẩn nút "Làm gia sư" ở header trên màn hình nhỏ hơn 1200px để tránh chật */
@media (max-width: 1199px) {
  .header__tutor-btn { display: none !important; }
}

/* Ẩn "Đăng ký làm gia sư" trong nav trên desktop (đã có nút CTA header) */
@media (min-width: 1024px) {
  .menu-item-42 { display: none !important; }
}

/* ---- Skill Subjects Section ---- */
.skill-subjects { padding: 5rem 0; background: var(--bg-gray); }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.skill-card {
  background: var(--bg); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow); text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: .75rem;
  border: 2px solid transparent; transition: var(--transition);
  position: relative; overflow: hidden;
}
.skill-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.skill-card__icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.skill-card__badge {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .05em;
  background: #fef3c7; color: #d97706; padding: .2rem .6rem; border-radius: 20px; width: fit-content;
}
.skill-card__title { font-size: 1.2rem; font-weight: 700; color: var(--text); }
.skill-card__desc { font-size: .9rem; color: var(--text-muted); line-height: 1.5; }
.skill-card__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.skill-card__list li { font-size: .875rem; color: var(--text-muted); padding-left: 1.2rem; position: relative; }
.skill-card__list li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.skill-card__cta { font-size: .875rem; font-weight: 600; color: var(--primary); margin-top: auto; }
@media (max-width: 767px) {
  .skill-grid { grid-template-columns: 1fr; }
}

/* ---- Responsive: hero layout dùng chung cho tieu-hoc & skill pages ---- */
@media (max-width: 1023px) {
  .th-hero-section { overflow: visible !important; padding: 48px 0 !important; }
  .th-hero-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .th-hero-form { width: 100% !important; }
  .th-content-grid { grid-template-columns: 1fr !important; }
}

/* ---- Mobile polish: trang dịch vụ dùng inc/tieu-hoc-page-base.php ---- */
@media (max-width: 600px) {
  .th-hero-grid > * { min-width: 0; }
  .th-hero-form { padding: 22px 18px !important; }
  .th-hero-stats { gap: 12px 24px !important; margin-bottom: 24px !important; }
  .th-hero-cta { flex-direction: column; gap: 10px !important; }
  .th-hero-cta .btn, .th-cta-row .btn { width: 100%; justify-content: center; text-align: center; white-space: normal; }
  .th-cta-row { flex-direction: column; gap: 10px !important; }
  .th-pain-card { padding: 22px 16px !important; border-radius: 16px !important; margin-bottom: 18px !important; }
  .th-pain-head { gap: 12px !important; margin-bottom: 18px !important; }
  .th-pain-head > div:first-child { padding: 9px !important; }
  .th-pain-head h3 { font-size: 1.1rem !important; }
  .th-pain-reasons { grid-template-columns: 1fr !important; gap: 10px !important; }
  .th-vs { grid-template-columns: 1fr !important; }
  .th-vs-a, .th-vs-b { border-radius: 14px !important; padding: 18px 16px !important; }
  .th-vs-mid { padding: 8px 0 !important; }
  .th-proof { grid-template-columns: 1fr !important; gap: 10px !important; }
  .th-pain-card .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
}

/* ---- Trang chủ: khối "Đội ngũ" gia sư tiêu biểu ---- */
.hteam { padding: 56px 0 72px; background: var(--bg); }
.hteam .section-header { margin-bottom: 2rem; }
.hteam .section-desc { max-width: 680px; }
.hteam__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hteam__card {
  display: flex; flex-direction: column; text-align: left; padding: 24px;
  background: #fff; border: 1px solid var(--border); border-radius: 18px; color: var(--text);
  box-shadow: 0 1px 3px rgba(15,23,42,.06); transition: transform .15s ease, box-shadow .15s ease;
}
.hteam__card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15,23,42,.1); }
.hteam__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.hteam__ring {
  display: inline-flex; width: 70px; height: 70px; padding: 3px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent)); box-sizing: border-box;
}
.hteam__av {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden;
  border-radius: 50%; border: 2px solid #fff; box-sizing: border-box;
  background: var(--primary-light); color: var(--primary); font-size: 22px; font-weight: 800;
}
.hteam__av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hteam__badge {
  display: inline-flex; align-items: center; flex-shrink: 0; white-space: nowrap;
  padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: var(--primary-light); color: var(--primary-dark);
}
.hteam__card.is-featured .hteam__badge { background: #fffbeb; color: #b45309; }
.hteam__card h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 1.15rem; font-weight: 800; color: var(--text); }
.hteam__verified { flex-shrink: 0; color: var(--primary); }
.hteam__role { margin-bottom: 8px; font-size: 12.5px; color: var(--text-muted); }
.hteam__rating { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
.hteam__rating b { font-weight: 700; }
.hteam__rating span { color: var(--text-muted); }
.hteam__tag {
  display: flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 8px 12px; border-radius: 10px;
  background: var(--primary-light); color: var(--primary-dark); font-size: 12px; font-weight: 600;
}
.hteam__tag svg { flex-shrink: 0; }
.hteam__bio { margin: 0 0 16px; font-size: 12.5px; line-height: 1.6; color: var(--text-muted); }
.hteam__cta {
  display: block; margin-top: auto; padding: 11px; border-radius: 10px; text-align: center;
  font-size: 13.5px; font-weight: 600; color: #fff; background: var(--primary); border: 2px solid var(--primary);
}
.hteam__card:hover .hteam__cta { background: var(--primary-dark); border-color: var(--primary-dark); }
.hteam__dots { display: none; }
.hteam__dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: background .2s, width .2s; }
.hteam__dots span.is-active { width: 22px; border-radius: 999px; background: var(--primary); }
.hteam__more { margin: 20px 0 0; text-align: center; font-size: 14px; }
.hteam__more a { color: var(--primary); font-weight: 600; }
@media (max-width: 760px) {
  .hteam { padding: 40px 0 48px; }
  .hteam__grid {
    display: flex; gap: 14px; margin: 0 -1.25rem; padding: 4px 1.25rem 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 1.25rem;
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .hteam__grid::-webkit-scrollbar { display: none; }
  .hteam__grid:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: 12px; }
  .hteam__card { flex: 0 0 84%; scroll-snap-align: start; }
  .hteam__card:only-child { flex-basis: 100%; }
  .hteam__dots { display: flex; justify-content: center; gap: 8px; margin: 4px 0 10px; }
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp .5s ease forwards; }

/* ---- Hero entrance (plays on page load) ---- */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
.hero__badge      { animation: fadeDown     .45s ease .05s both; }
.hero__title      { animation: fadeInUp     .55s ease .18s both; }
.hero__desc       { animation: fadeInUp     .5s  ease .30s both; }
.hero__stats      { animation: fadeInUp     .5s  ease .44s both; }
.hero__actions    { animation: fadeInUp     .5s  ease .55s both; }
.hero__tutor-link { animation: fadeInUp     .45s ease .64s both; }
.hero__form-wrap  { animation: slideInRight .6s  ease .25s both; }
@media (max-width: 767px) {
  .hero__form-wrap { animation-name: fadeInUp; }
}

/* ---- Service tab panel fade on switch ---- */
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.service-panel.active { animation: tabFadeIn .3s ease; }

/* ---- Scroll reveal (section-header, trust-card, block elements) ---- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s cubic-bezier(.22,1,.36,1),
              transform .65s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---- Respect prefers-reduced-motion ---- */
@media (prefers-reduced-motion: reduce) {
  .hero__badge, .hero__title, .hero__desc, .hero__stats,
  .hero__actions, .hero__tutor-link, .hero__form-wrap,
  .service-panel.active, .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---- Accessibility ---- */
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================================
   MOBILE STICKY BOTTOM BAR
   Hiển thị trên mobile, ẩn trên desktop
   ============================================================ */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: #fff;
  border-top: 2px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,.12);
  padding: .6rem 1rem;
  gap: 1.5rem;
  justify-content: center;
}
.mobile-cta-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 52px; height: 52px;
  flex: 0 0 52px;
  min-height: 52px;
  position: relative;
}
.mobile-cta-bar .mcta-phone     { background: var(--success); color: #fff; }
.mobile-cta-bar .mcta-zalo      { background: #fff; padding: 4px; }
.mobile-cta-bar .mcta-messenger { background: #0099ff; color: #fff; }
.mobile-cta-bar .mcta-reg       { background: var(--primary); color: #fff; }

@keyframes mcta-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.5); }
  70%  { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
@keyframes mcta-pulse-zalo {
  0%   { box-shadow: 0 0 0 0 rgba(0,104,255,.4); }
  70%  { box-shadow: 0 0 0 10px rgba(0,104,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,104,255,0); }
}
.mcta-pulse { animation: mcta-pulse 2s infinite; }
.mcta-zalo.mcta-pulse { animation: mcta-pulse-zalo 2s infinite; }

/* ============================================================
   MOBILE — Tổng thể
   ============================================================ */
@media (max-width: 767px) {

  /* Đại học liên kết grid */
  section[style*="fff7ed"] .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: minmax(0, 1fr) !important; /* 1fr = minmax(auto,1fr) → bị nút/logo nowrap kéo rộng hơn màn hình */
    gap: 28px !important;
  }
  section[style*="fff7ed"] div[style*="flex-wrap:nowrap"] { flex-wrap: wrap !important; }
  section[style*="fff7ed"] .btn--lg { width: 100%; white-space: normal; }

  /* Hiện bottom bar */
  .mobile-cta-bar { display: flex; }

  /* Đẩy footer lên trên bottom bar */
  .site-footer { padding-bottom: 80px; }

  /* Ẩn floating buttons trên mobile (dùng bottom bar thay) */
  .zalo-float, .phone-float, .messenger-float { display: none; }

  /* ---- Top bar — gọn hơn ---- */
  .top-bar { display: none; } /* ẩn topbar trên điện thoại nhỏ */

  /* ---- Header ---- */
  .header__inner { height: 60px; gap: .75rem; }
  .logo-text__main { font-size: 1.1rem; }
  .logo-text__sub  { font-size: .8rem; }

  /* ---- Hero ---- */
  .hero { padding: 2.5rem 0 5rem; }
  .hero__inner { gap: 2rem; }
  .hero__title { font-size: 1.8rem; }
  .hero__desc  { font-size: 1rem; }
  .hero__badge { font-size: .78rem; }

  /* Stats 2x2 trên mobile nhỏ */
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .stat-item__num   { font-size: 1.3rem; }
  .stat-item__label { font-size: .7rem; }

  /* CTA buttons stack */
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* Form hero full width */
  .hero__form-wrap { padding: 0; }
  .quick-form { max-width: 100%; border-radius: var(--radius); }
  .quick-form__header { padding: 1.25rem; }
  .quick-form__header h2 { font-size: 1.15rem; }
  .quick-form__body { padding: 1.25rem; }

  /* Form row stack trên mobile */
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Buttons touch-friendly */
  .btn { min-height: 48px; }
  .btn--sm { min-height: 40px; }

  /* ---- Sections ---- */
  section { padding: 3rem 0; }
  .section-title { font-size: 1.5rem; }
  .section-desc  { font-size: .95rem; }

  /* ---- Why Us ---- */
  .why-us__grid { grid-template-columns: 1fr; gap: 1rem; }
  .feature-card { padding: 1.25rem; display: flex; align-items: flex-start; gap: 1rem; text-align: left; }
  .feature-card__icon { width: 48px; height: 48px; min-width: 48px; margin-bottom: 0; }
  .feature-card h3 { font-size: .95rem; margin-bottom: .25rem; }
  .feature-card p  { font-size: .85rem; }

  /* ---- Services ---- */
  .service-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: .5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .service-tabs::-webkit-scrollbar { display: none; }
  .service-tab { white-space: nowrap; flex-shrink: 0; }
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .service-card { padding: 1rem; }
  .service-card__icon { font-size: 1.5rem; }
  .service-card h3    { font-size: .85rem; }
  .service-card__price { font-size: .75rem; }

  /* ---- Steps ---- */
  .steps-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .step-card { display: grid; grid-template-columns: 50px 1fr; column-gap: 1rem; align-items: start; text-align: left; }
  .step-card__num  { grid-row: 1 / span 2; font-size: 2.5rem; line-height: 1; }
  .step-card__icon { display: none; } /* ẩn icon trên mobile, dùng số thay */
  .step-card h3 { grid-column: 2; font-size: 1rem; margin-bottom: .35rem; }
  .step-card p  { grid-column: 2; font-size: .875rem; }

  /* ---- Areas ---- */
  .areas-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .area-card { padding: .75rem 1rem; font-size: .85rem; }

  /* ---- Testimonials ---- */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* ---- Tutor Register ---- */
  .tutor-register__image { display: none; }
  .tutor-register__content h2 { font-size: 1.5rem; }

  /* ---- Contact ---- */
  .contact-form-wrap { padding: 1.25rem; }
  .contact-info { order: 2; }

  /* ---- Footer ---- */
  .footer__top { padding: 2.5rem 0; }
  .footer-col--brand { max-width: 100%; }

  /* ---- Tutor page mobile ---- */
  .tutor-hero { padding: 3rem 0 5rem; }
  .tutor-hero__img { display: none; }
  .tutor-hero__stats { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .tutor-stat { padding: .75rem .5rem; }
  .tutor-stat__num { font-size: 1.1rem; }
  .tutor-hero__actions { flex-direction: column; }
  .tutor-hero__actions .btn { width: 100%; justify-content: center; }
  .tutor-step-card__num { width: 36px; height: 36px; font-size: .95rem; }
  .tutor-steps { gap: 1.5rem; }
  /* salary table: smaller on mobile */
  .table-scroll-hint { display: block; }
  .salary-table { font-size: .78rem; }
  .salary-table th, .salary-table td { padding: .55rem .45rem; }
  /* bảng trong bài viết (điểm chuẩn...): cuộn ngang thay vì ép co chữ */
  .prose table { font-size: .8rem; }
  .prose th, .prose td { padding: .5rem .7rem; }
  .cap-badge { font-size: .72rem; padding: .2rem .45rem; }
  /* form: show form card first, info second */
  .tutor-form__wrap { order: -1; }
  .tutor-form__info { order: 1; }
  .tutor-form-section { padding-bottom: 100px; }
  .tutor-form__card-header { padding: 1.25rem 1.25rem; }
  .tutor-form__card-body { padding: 1.25rem; }
  .tutor-form__contact-btns { flex-direction: column; }
  .tutor-form__contact-btns .btn { width: 100%; justify-content: center; }
  /* req layout single col */
  .tutor-req__layout { gap: 2rem; }
}

/* ---- Màn hình rất nhỏ (< 375px) ---- */
@media (max-width: 374px) {
  .hero__title { font-size: 1.5rem; }
  .service-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .mobile-cta-bar .mcta-zalo { display: none; } /* chỉ giữ 2 nút nếu quá hẹp */
  .tutor-hero__stats { grid-template-columns: 1fr; }
  .tutor-stat { padding: .6rem .5rem; }
  .checkbox-group { grid-template-columns: 1fr; }
}

/* ---- Tablet (768px - 1023px) ---- */
@media (min-width: 768px) and (max-width: 1023px) {
  .top-bar__left span:last-child { display: none; }
  .hero__inner { grid-template-columns: 1fr 360px; gap: 2rem; }
  .why-us__grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid   { grid-template-columns: repeat(2, 1fr); }
  .footer__top-inner { grid-template-columns: 1fr 1fr; }

  /* floating buttons tránh overlap */
  .zalo-float  { bottom: 80px; }
  .phone-float { bottom: 1.5rem; }
}

/* ---- Desktop ---- */
@media (min-width: 1024px) {
  .site-nav { display: block; }
  .header__cta { display: flex; }
  .nav-toggle { display: none; }
  .footer__top-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .mobile-cta-bar { display: none !important; }
}

/* ---- Improved touch scrolling ---- */
@media (hover: none) and (pointer: coarse) {
  /* Thiết bị cảm ứng: tăng tap target */
  .nav-menu a, .footer-links a, .sidebar-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  /* Tắt hover transform trên touch (tránh nhấp nháy) */
  .feature-card:hover,
  .service-card:hover,
  .review-card:hover { transform: none; }
}

/* ---- Print ---- */
@media print {
  .top-bar, .site-header, .zalo-float, .phone-float,
  .mobile-cta-bar, .site-footer { display: none !important; }
}

/* ============================================================
   TRANG DANH SÁCH LỚP
   ============================================================ */

/* ── Hero ──────────────────────────────────────────────────── */
.lop-hero {
  background: linear-gradient(150deg, #1e3a8a 0%, #1d4ed8 55%, #2563eb 100%);
  color: #fff;
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.lop-hero::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,179,237,.18) 0%, transparent 65%);
  pointer-events: none;
}
.lop-hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  position: relative; z-index: 1;
}
.lop-hero__badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  border-radius: 100px; padding: .4rem 1rem;
  font-size: .78rem; font-weight: 700; color: #bfdbfe;
  margin-bottom: 1rem; width: fit-content;
  text-transform: uppercase; letter-spacing: .06em;
}
.lop-hero__title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -.02em; margin-bottom: .85rem;
}
.lop-hero__desc { font-size: 1rem; line-height: 1.75; color: rgba(255,255,255,.85); max-width: 540px; }
.lop-hero__stats {
  display: flex; flex-direction: column; gap: .6rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius); padding: 1.5rem 2rem;
  min-width: 160px; flex-shrink: 0;
}
.lop-hero__stat { text-align: center; }
.lop-hero__stat-num   { display: block; font-size: 1.5rem; font-weight: 800; color: #93c5fd; letter-spacing: -.01em; }
.lop-hero__stat-label { display: block; font-size: .72rem; color: rgba(255,255,255,.75); margin-top: .15rem; }

/* ── Filter ────────────────────────────────────────────────── */
.lop-filter-section { background: #fff; border-bottom: 1px solid var(--border); }
.lop-filter { padding: 1.25rem 0; }
.lop-filter__row {
  display: flex; flex-wrap: wrap; gap: .75rem;
  align-items: flex-end;
}
.lop-filter__group { display: flex; flex-direction: column; gap: .3rem; flex: 1; min-width: 140px; }
.lop-filter__group--status { min-width: 130px; }
.lop-filter__label {
  display: flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em;
}
.lop-filter__select {
  padding: .6rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .875rem; color: var(--text);
  background: #fff;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%2364748b' d='M7 7l3-3 3 3m0 6l-3 3-3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .6rem center;
  background-size: 14px;
  padding-right: 2rem;
  transition: border-color .2s;
}
.lop-filter__select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29,78,216,.1); }
.lop-filter__actions { display: flex; align-items: flex-end; }
.lop-filter__count {
  margin-top: .85rem;
  font-size: .85rem; color: var(--text-muted);
}
.lop-filter__count strong { color: var(--primary); }

/* ── Listing grid ──────────────────────────────────────────── */
.lop-listing { background: var(--bg-gray); padding: 2.5rem 0 4rem; }
.lop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.25rem;
}

/* ── Card ──────────────────────────────────────────────────── */
.lop-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  overflow: hidden;
}
.lop-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.lop-card--closed { opacity: .7; }
.lop-card--closed:hover { opacity: 1; }

.lop-card__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-gray);
}
.lop-card__code {
  font-size: .78rem; font-weight: 700;
  color: var(--text-muted); letter-spacing: .05em;
  font-family: 'Courier New', monospace;
}
.lop-card__status {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .75rem; font-weight: 700; border-radius: 100px;
  padding: .2rem .7rem;
}
.lop-card__status--open   { background: #d1fae5; color: #065f46; }
.lop-card__status--closed { background: #fee2e2; color: #991b1b; }

.lop-card__subject { padding: 1.1rem 1.25rem .75rem; }
.lop-card__subject h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--text);
  margin-bottom: .5rem; line-height: 1.3;
}
.lop-card__badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.lop-card__cap-badge {
  font-size: .72rem; font-weight: 700;
  padding: .2rem .65rem; border-radius: 100px;
}
.lop-card__grade {
  font-size: .8rem; font-weight: 600; color: var(--text-muted);
  background: var(--bg-gray); border: 1px solid var(--border);
  padding: .2rem .65rem; border-radius: 100px;
}

.lop-card__info {
  list-style: none;
  display: flex; flex-direction: column; gap: .55rem;
  padding: 0 1.25rem 1rem;
  flex: 1;
}
.lop-card__info-item {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .875rem; color: var(--text-muted); line-height: 1.4;
}
.lop-card__info-item svg { flex-shrink: 0; margin-top: 1px; color: var(--text-light); }
.lop-card__fee { font-weight: 700; color: var(--success); }

.lop-card__note {
  margin: 0 1.25rem .85rem;
  font-size: .82rem; color: var(--text-muted);
  font-style: italic; line-height: 1.55;
  border-left: 3px solid var(--border);
  padding-left: .75rem;
}

.lop-card__footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border); }
.lop-card__cta { font-size: .9rem; }

/* ── Empty state ───────────────────────────────────────────── */
.lop-empty {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 4rem 1rem;
  gap: 1rem; color: var(--text-muted);
}
.lop-empty h3 { font-size: 1.15rem; color: var(--text); }
.lop-empty a  { color: var(--primary); text-decoration: underline; }

/* ── CTA section ───────────────────────────────────────────── */
.lop-cta__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem; align-items: center;
  padding: 3rem 0;
}
.lop-cta__title { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: .5rem; }
.lop-cta__desc  { font-size: .95rem; color: rgba(255,255,255,.8); line-height: 1.65; max-width: 480px; }
.lop-cta__actions { display: flex; gap: .85rem; flex-shrink: 0; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 767px) {
  .lop-hero__inner { grid-template-columns: 1fr; }
  .lop-hero__stats { flex-direction: row; justify-content: space-around; padding: 1rem; }
  .lop-hero__stat-num { font-size: 1.2rem; }
  .lop-filter__row { flex-direction: column; gap: .6rem; }
  .lop-filter__group { min-width: 100%; }
  .lop-filter__actions { width: 100%; }
  .lop-filter__actions .btn { width: 100%; justify-content: center; }
  .lop-listing { padding-bottom: 100px; }
  .lop-cta__inner { grid-template-columns: 1fr; }
  .lop-cta__actions { flex-direction: column; }
  .lop-cta__actions .btn { width: 100%; justify-content: center; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .lop-filter__group { min-width: 160px; }
}

/* =========================================
   HERO TRANG CHỦ — bản có ảnh nền (.hero--photo)
   Chỉ áp dụng cho front-page; các trang khác vẫn dùng .hero cũ.
   ========================================= */
.hero--photo {
  padding: 0;
  background: linear-gradient(180deg, #1d6fe0 0%, #1554d1 100%);
  overflow: hidden;
}
.hero--photo .hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero--photo .hero__shade,
.hero--photo .hero__plane,
.hero--photo .hero__leaf { display: none; }
.hero--photo .hero__inner {
  position: relative;
  z-index: 2;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 1.75rem;
  padding-bottom: 4.5rem;
}
.hero--photo .hero__badge {
  color: #fff;
  font-size: .95rem;
  font-weight: 500;
  padding: .5rem 1.1rem;
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.55);
  margin-bottom: 1.25rem;
}
.hero--photo .hero__title {
  font-size: clamp(2rem, 7.5vw, 3.9rem);
  line-height: 1.18;
  letter-spacing: -.01em;
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 18px rgba(10,40,120,.25);
}
.hero--photo .hero__title .text-highlight { color: #ffd43b; }
.hero--photo .hero__desc {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 1.25rem;
  color: #fff;
}
.hero__checks { list-style: none; display: grid; gap: .7rem; margin: 0 0 2rem; }
.hero__checks li {
  position: relative;
  padding-left: 2.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.75rem;
  color: #fff;
}
.hero__checks li::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  background: #22c55e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/68% no-repeat;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* Thẻ số liệu trắng */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: #fff;
  color: var(--text);
  border-radius: 16px;
  box-shadow: 0 18px 40px -12px rgba(15,40,100,.35);
  padding: .5rem;
}
.hero-stats__item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem .75rem;
}
.hero-stats__icon {
  flex: none;
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: #e7f6ec;
  color: #16a34a;
}
.hero-stats__icon svg { width: 1.6rem; height: 1.6rem; }
.hero-stats__num   { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1.15; color: #1d4ed8; }
.hero-stats__place { display: block; font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: #1d4ed8; margin-bottom: .2rem; }
.hero-stats__label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-top: .2rem; }
.hero-stats__sub   { display: block; font-size: .75rem; color: var(--text-muted); margin-top: .2rem; }

/* Form */
.hero--photo .quick-form {
  max-width: 500px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 24px 50px -16px rgba(15,40,100,.45);
}
.hero--photo .quick-form__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  background: #1556e0;
  padding: 1.4rem 1.6rem;
}
.quick-form__icon { flex: none; width: 3.2rem; height: 3.2rem; }
.hero--photo .quick-form__header h2 { font-size: clamp(1.35rem, 2vw, 1.95rem); font-weight: 700; line-height: 1.2; margin-bottom: .3rem; }
.hero--photo .quick-form__header p  { font-size: .95rem; opacity: 1; }
.hero--photo .quick-form__body { padding: 1.5rem 1.6rem 1.25rem; }
.hero--photo .form-group { gap: .5rem; margin-bottom: 1.15rem; }
.hero--photo .form-group label { font-size: .95rem; font-weight: 600; }
.hero--photo .form-group input,
.hero--photo .form-group select {
  height: 3rem;
  padding: 0 1.4rem;
  border: 1px solid #d5deea;
  border-radius: 8px;
  font-size: .95rem;
}
.hero--photo .form-group input::placeholder { color: #6b7280; }
.hero--photo .form-group select:invalid { color: #4b5563; }
/* Icon bên trái cho select */
.hero--photo .qf-ico { position: relative; }
.hero--photo .qf-ico select { padding-left: 2.9rem; }
.hero--photo .qf-ico::before {
  content: "";
  position: absolute; left: 1rem; bottom: .9rem;
  width: 1.25rem; height: 1.25rem;
  background: center/contain no-repeat;
  pointer-events: none;
  z-index: 1;
}
.hero--photo .qf-ico--book::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M2 5c3-1.5 7-1.5 10 1 3-2.5 7-2.5 10-1v14c-3-1.5-7-1.5-10 1-3-2.5-7-2.5-10-1z'/%3E%3Cpath d='M12 6v14'/%3E%3C/svg%3E"); }
.hero--photo .qf-ico--cap::before  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M1 9l11-5 11 5-11 5z'/%3E%3Cpath d='M5 11v5c2 2 4.5 3 7 3s5-1 7-3v-5M22 9v6'/%3E%3C/svg%3E"); }
.hero--photo .qf-ico--pin::before  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='1.8'%3E%3Cpath d='M12 22s7-7.2 7-12.5A7 7 0 0 0 5 9.5C5 14.8 12 22 12 22z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.hero--photo .form-row { gap: 1.5rem; }
.hero--photo .quick-form__submit {
  min-height: 3.6rem;
  margin-top: .25rem;
  font-size: 1.1rem;
  font-weight: 700;
  gap: .75rem;
  background: #0b4fdc;
  border-color: #0b4fdc;
  white-space: normal;
}
.hero--photo .quick-form__submit:hover { background: #0a43bb; border-color: #0a43bb; }
.hero--photo .form-note { justify-content: center; font-size: .8rem; margin-top: 1rem; }

.hero--photo .hero__checks { animation: fadeInUp .5s ease .40s both; }
.hero--photo .hero-stats   { animation: fadeInUp .5s ease .52s both; }
@media (prefers-reduced-motion: reduce) {
  .hero--photo .hero__checks, .hero--photo .hero-stats { animation: none; }
}

/* Mobile/tablet: ảnh là banner phía trên, nội dung xếp dọc */
@media (max-width: 1199px) {
  .hero--photo .hero__photo {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    max-height: 460px;
    width: 100%;
  }
  .hero--photo .hero__photo img { object-position: 50% 30%; }
  .hero--photo .hero__photo::after {
    content: "";
    position: absolute; inset: auto 0 0 0; height: 45%;
    background: linear-gradient(180deg, rgba(29,111,224,0) 0%, #1d6fe0 100%);
  }
  .hero--photo .hero__inner { margin-top: -3.5rem; }
  .hero--photo .hero__form-wrap { justify-content: center; }
  .hero--photo .quick-form { max-width: 560px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .hero-stats__item { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767px) {
  .hero--photo .hero__title { font-size: clamp(1.9rem, 8.6vw, 2.6rem); }
  .hero--photo .hero__desc,
  .hero--photo .hero__checks li { font-size: 1rem; }
  .hero--photo .form-row { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .hero--photo .quick-form__header { padding: 1.15rem 1.15rem; }
  .hero--photo .quick-form__body { padding: 1.25rem 1.15rem 1rem; }
  .quick-form__icon { width: 2.5rem; height: 2.5rem; }
  .hero--photo .quick-form__submit { font-size: 1rem; }
  .hero-stats { padding: .35rem; }
  .hero-stats__item { gap: .55rem; padding: .7rem .5rem; align-items: flex-start; }
  .hero-stats__icon { width: 2.25rem; height: 2.25rem; }
  .hero-stats__icon svg { width: 1.2rem; height: 1.2rem; }
  .hero-stats__num { font-size: 1.3rem; }
  .hero-stats__place { font-size: .95rem; }
  .hero-stats__label { font-size: .8rem; line-height: 1.35; }
  .hero-stats__sub { display: none; }
}
@media (max-width: 374px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero--photo .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* Desktop: ảnh phủ toàn hero, người ở giữa, form bên phải */
@media (min-width: 1200px) {
  /* Nền trắng: ảnh được đẩy lên + mờ dần đáy → hoà vào trắng (khớp dải sóng trắng ở đáy ảnh) */
  .hero--photo { background: #fff; }
  .hero--photo .hero__photo { position: absolute; inset: 0; z-index: 0; }
  /* Ảnh cao = hero, rộng tự theo tỉ lệ; mặt gia sư nằm ở 43% chiều ngang ảnh
     → dời ảnh để mặt gia sư luôn ở ~46% màn hình, mọi độ rộng. */
  .hero--photo .hero__photo img {
    position: absolute; top: 0; left: 46%;
    width: auto; height: 100%; max-width: none;
    transform: translate(-43%, -22%); /* đẩy ảnh lên để tay + vở không bị thẻ số liệu che */
    /* mờ dần đáy ảnh vào nền trắng → không lộ đường cắt ngang */
    -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  }
  .hero--photo .hero__shade {
    display: block;
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(20,86,210,.55) 0%, rgba(20,86,210,.25) 32%, rgba(20,86,210,0) 48%);
    pointer-events: none;
  }
  .hero--photo .hero__plane {
    display: block;
    position: absolute; z-index: 1;
    left: 58%; top: 4.5rem;
    width: 52px;
    overflow: visible;
    opacity: .9;
  }
  .hero--photo .hero__leaf {
    display: block;
    position: absolute; z-index: 3;
    left: -4px; bottom: 2.5rem;
    width: 72px;
  }
  .hero--photo .container {
    max-width: 1880px;
    padding-left: 4.8vw;
    padding-right: 4.8vw;
  }
  .hero--photo .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 500px);
    gap: clamp(2rem, 5vw, 9rem);
    align-items: start;
    padding-top: 3.4rem;
    padding-bottom: 5rem;
  }
  .hero--photo .hero__content { padding-top: 1rem; }
  .hero--photo .hero__title { font-size: clamp(2.6rem, 3.2vw, 3.8rem); }
  .hero--photo .hero__checks { margin-bottom: 3.6rem; }
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    max-width: 960px;
    padding: 1.25rem .5rem;
  }
  .hero-stats__item { padding: .25rem 1rem; min-width: 0; }
  .hero-stats__item + .hero-stats__item { border-left: 1px solid #e2e8f0; }
  .hero--photo .hero__form-wrap { justify-content: flex-end; }
  .hero--photo .hero__wave svg { height: 90px; }
}
/* Màn rất rộng (2K+): ảnh tỉ lệ ~2.9:1 không đủ phủ ngang → chuyển sang cover, cắt bớt phía trên */
@media (min-width: 2000px) {
  .hero--photo .hero__photo img {
    left: 0; top: -22%; width: 100%; transform: none; /* đẩy lên giống desktop thường */
    object-fit: cover; object-position: 50% 100%;
  }
}
@media (min-width: 1200px) and (max-width: 1599px) {
  .hero--photo .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(380px, 450px); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: .75rem; }
  .hero-stats__item:nth-child(3) { border-left: 0; }
}
@media (min-width: 1600px) {
  .hero-stats__label, .hero-stats__sub, .hero-stats__place { white-space: nowrap; }
}
