:root {
  --red: #c1272d;
  --red-dark: #a01f24;
  --orange: #db7306;
  --orange-light: #f5a623;
  --topbar: #b85c1a;
  --text: #333;
  --gray-bg: #f5f5f5;
  --white: #fff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

/* Top bar */
.top-bar {
  background: var(--topbar);
  color: var(--white);
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
}

.top-bar__track {
  display: inline-block;
  padding: 8px 0;
  animation: marquee 28s linear infinite;
}

.top-bar__track span {
  padding: 0 40px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Header */
.header {
  background: var(--red);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.menu-toggle {
  background: transparent;
  border: 2px solid var(--white);
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
}

.logo img {
  height: 70px;
  width: auto;
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-desktop a {
  color: var(--white);
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
  transition: background 0.2s;
}

.nav-desktop a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.header__hotline {
  display: none;
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
}

.header__hotline:hover {
  text-decoration: underline;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  background: var(--red-dark);
  padding: 12px 16px 20px;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile ul {
  list-style: none;
}

.nav-mobile a {
  display: block;
  color: var(--white);
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 500;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: #111;
}

.hero__slides {
  display: flex;
  transition: transform 0.5s ease;
}

.hero__slide {
  min-width: 100%;
  position: relative;
}

.hero__slide img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.hero__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
}

.hero__dot.active {
  background: var(--white);
}

/* Section title */
.section-title {
  text-align: center;
  padding: 30px 16px 20px;
}

.section-title h2 {
  color: var(--red);
  font-size: clamp(20px, 4vw, 28px);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

.section-title h2::before,
.section-title h2::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 60px;
  height: 2px;
  background: #ddd;
}

.section-title h2::before { right: calc(100% + 16px); }
.section-title h2::after { left: calc(100% + 16px); }

/* Course cards */
.courses {
  padding: 0 16px 40px;
}

.courses__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.course-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.course-card__banner {
  position: relative;
  min-height: 190px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background-size: cover;
  background-position: center;
}

.course-card__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.course-card__banner-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  width: 100%;
}

.course-card__banner h3 {
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.course-card__price {
  font-size: 22px;
  font-weight: 800;
  color: #ffe566;
}

.course-card__body {
  padding: 16px;
}

.course-card__body h4 {
  font-size: 15px;
  margin-bottom: 12px;
  color: #555;
}

.course-card__link {
  display: inline-block;
  color: var(--red);
  font-weight: 600;
  font-size: 14px;
}

.course-card__link:hover {
  text-decoration: underline;
}

/* Registration form */
.register-section {
  background: linear-gradient(180deg, #fff8f0 0%, #fff 100%);
  padding: 40px 16px;
}

.register-box {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--red);
  border-radius: 12px;
  padding: 30px 24px;
  box-shadow: var(--shadow);
}

.register-box h2 {
  color: var(--red);
  text-align: center;
  font-size: 22px;
  margin-bottom: 8px;
}

.register-box .discount {
  text-align: center;
  color: var(--orange);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 24px;
}

.register-box--inline {
  max-width: none;
  margin: 0 0 20px;
  padding: 0;
  overflow: hidden;
}

.register-box--inline .register-box__header {
  background: linear-gradient(135deg, #ea6363, var(--red));
  color: var(--white);
  padding: 24px 20px;
  text-align: center;
}

.register-box--inline .register-box__header h4 {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 600;
}

.register-box--inline .register-box__header h2 {
  font-size: 26px;
  margin: 4px 0;
  color: var(--white);
}

.register-box--inline .register-form {
  padding: 24px 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

.form-group input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(193, 39, 45, 0.15);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
}

.checkbox-group input {
  margin-top: 4px;
  accent-color: var(--red);
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: var(--red-dark);
}

.btn-zalo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0068ff;
  color: var(--white);
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  margin-top: 16px;
}

.btn-zalo:hover {
  background: #0055cc;
}

/* Content sections */
.content-section {
  padding: 40px 16px;
}

.content-section:nth-child(even) {
  background: var(--gray-bg);
}

.content-section h3 {
  color: var(--red);
  font-size: 20px;
  margin-bottom: 16px;
  text-align: center;
}

.content-section h4 {
  color: var(--red);
  margin: 20px 0 10px;
}

.content-section p {
  margin-bottom: 12px;
  text-align: justify;
}

.content-section ul {
  margin: 12px 0 12px 24px;
}

.content-section li {
  margin-bottom: 8px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.highlight-box {
  background: linear-gradient(135deg, #ea6363, var(--red));
  color: var(--white);
  padding: 24px;
  border-radius: 8px;
  text-align: center;
}

.highlight-box h4 {
  color: var(--white);
  font-size: 18px;
}

.image-full {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 20px auto;
  max-width: 900px;
}

.benefits h4 {
  color: var(--red);
  font-style: italic;
  margin: 10px 0;
}

/* Contact cards */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.contact-card {
  background: var(--white);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-card h4 {
  color: var(--red);
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.contact-card a {
  color: var(--red);
}

/* Footer */
.footer {
  background: #222;
  color: #ccc;
  padding: 40px 16px 20px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto 24px;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 16px;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 8px;
}

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

.footer__bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 13px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Floating buttons */
.floating-bar {
  position: fixed;
  right: 12px;
  bottom: 80px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.floating-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 30px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}

.floating-btn:hover {
  transform: scale(1.05);
}

.floating-btn--zalo { background: #f58320; }
.floating-btn--call { background: #2d6a7a; }
.floating-btn--sms { background: #0068ff; }

.floating-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Responsive */
@media (min-width: 768px) {
  .hero__slide img {
    height: 450px;
  }

  .courses__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col {
    grid-template-columns: 1fr 1fr;
  }

  .contact-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .menu-toggle {
    display: none;
  }

  .nav-desktop {
    display: block;
  }

  .header__hotline {
    display: block;
  }

  .nav-mobile {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .courses__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__slide img {
    height: 550px;
  }
}
