/* Main Stylesheet - File CSS chính cho landing page */
:root {
  --primary-bg: #DB0000;
  --primary-color: #ffffff;
  --primary-border-color: #E84545;
  --primary-shadow: 0px 4px 0px 0px #A30000;
  --light-bg: #ffffff;
  --light-color: #DB0000;
  --light-border-color: #F5C2C2;
  --light-shadow: 0px 4px 0px 0px #E09A9A;
  /* Chuyển động dùng chung cho hiệu ứng xuất hiện và hover */
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hover-duration: 0.6s;
}

html[lang="en"] [data-lang="vi"],
html:not([lang="en"]) [data-lang="en"] {
  display: none !important;
}

/* Nút lên đầu trang (tạo trong js/main.js) */
.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--primary-border-color);
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary-color);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(219, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: #A30000;
  transform: translateY(-3px);
}

.scroll-top-btn:focus-visible {
  outline: 3px solid #F5C2C2;
  outline-offset: 2px;
}

@media screen and (max-width: 768px) {
  .scroll-top-btn {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
}

/* Con trỏ hình tròn + vệt tàn ảnh (tạo trong js/main.js) */
.cursor-trail {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cursor-visible .cursor-trail {
  opacity: 1;
}

.cursor-trail__head,
.cursor-trail__ghost {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  will-change: transform;
}

.cursor-trail__head::before,
.cursor-trail__ghost::before {
  content: "";
  position: absolute;
  top: -9px;
  left: -9px;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border-radius: 50%;
}

.cursor-trail__head::before {
  background: rgba(219, 0, 0, 0.3);
  transition: transform var(--hover-duration) var(--motion-ease), background-color var(--hover-duration) var(--motion-ease);
}

.cursor-trail__ghost::before {
  background: var(--primary-bg);
  opacity: var(--ghost-opacity, 0.2);
  transform: scale(var(--ghost-scale, 0.5));
  filter: blur(4px);
}

.cursor-hover .cursor-trail__head::before {
  transform: scale(1.8);
  background: rgba(219, 0, 0, 0.15);
}

.cursor-down .cursor-trail__head::before {
  transform: scale(0.7);
  background: rgba(219, 0, 0, 0.5);
}

.cursor-hover.cursor-down .cursor-trail__head::before {
  transform: scale(1.4);
}

.btn-primary {
  background-color: var(--primary-bg);
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 12px;
  border: 4px solid var(--primary-border-color);
  cursor: pointer;
  box-shadow: var(--primary-shadow);
  transition: all 0.3s ease;
  &:hover {
    box-shadow: none;
    transform: translateY(4px);
  }
}

.btn-light {
  background-color: var(--light-bg);
  color: var(--light-color);
  font-size: 16px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 12px;
  border: 4px solid var(--light-border-color);
  cursor: pointer;
  box-shadow: var(--light-shadow);
  transition: all 0.3s ease;
  &:hover {
    box-shadow: none;
    transform: translateY(4px);
  }
}

/* Target Group Section */
.target-group {
  background-color: #ffffff;
  padding: 74px 0 120px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.target-group-container {
  max-width: 1720px;
  width: 100%;
  margin: 0 auto;
}

@media screen and (max-width: 1720px) {
  .target-group-container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.target-group-header {
  text-align: center;
  margin-bottom: 40px;
}

.target-group-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.brand-name {
  color: #262626;
}

.highlight-text {
  color: var(--primary-bg);
}

.target-group-subtitle {
  font-size: 18px;
  color: #6e6e6e;
  font-weight: 400;
}

.target-group-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.target-card {
  background-color: #FFF5F5;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.card-icon {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, var(--primary-bg) 0%, #E84545 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-title {
  font-weight: 700;
  font-style: Bold;
  font-size: 28px;
  line-height: 36px;
}

.card-benefits {
  display: flex;
  flex-direction: column;
  list-style: none;
  text-align: left;
  margin-bottom: 16px;
  flex-grow: 1;
  width: 100%;
  gap: 16px;
}

.card-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 16px;
  color: #333333;
  line-height: 1.5;
}

.card-benefits li .check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.card-benefits li span {
  flex: 1;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
}

.card-btn {
  align-self: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .target-group-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .target-group {
    padding: 60px 16px;
  }


  .target-group-cards {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .target-card {
    padding: 32px 24px;
  }

}

/* Partner Section - Bạn đồng hành */
.partner {
  background-color: #ffffff;
}

.partner-container {
  max-width: 1720px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: space-between;
}

@media screen and (max-width: 1720px) {
  .partner-container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.partner-image {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
}

.partner-image img {
  max-width: 560px;
  height: auto;
  object-fit: contain;
}

.partner-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 40px;
}

.partner-label {
  display: inline-block;
  background-color: #feecca;
  color: var(--primary-bg);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 12px;
  width: fit-content;
}

.partner-title-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.partner-title {
  font-weight: 700;
  font-size: 48px;
  line-height: 56px;
  color: #262626;
  display: flex;
  flex-direction: column;
}

.title-audience {
  font-weight: 700;
  font-size: 48px;
  line-height: 56px;
  color: var(--primary-bg);
}

.partner-description {
  font-size: 18px;
  color: #666666;
  line-height: 1.6;
}

.partner-features {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.partner-features .partner-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 18px;
  color: #333333;
  line-height: 1.6;
  width: calc(50% - 24px);
}

.partner-features .partner-feature .check-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-top: 2px;
}

.partner-features li span {
  flex: 1;
  font-weight: 500;
}

/* Responsive Design for Partner Section */
@media (max-width: 1024px) {
  .partner-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .partner-image {
    order: 1;
  }

  .partner-content {
    order: 2;
  }

}

@media (max-width: 768px) {
  .partner {
    padding: 60px 0;
  }

  .partner-container {
    flex-direction: column;
    padding: 0 16px;
    gap: 32px;
  }

  .partner-image {
    order: 1;
    width: 100%;
  }

  .partner-image img {
    width: 100%;
    max-width: 100%;
  }

  .partner-content {
    order: 2;
    width: 100%;
  }

  .partner-title {
    line-height: 1.4;
  }

  .title-audience {
    line-height: 1.4;
  }

  .partner-features {
    flex-direction: column;
  }

  .partner-features .partner-feature {
    width: 100%;
  }
}

/* Learning System Section */
.learning-system {
  background-color: #fef8f0;
  padding: 120px 0;
}

.learning-system-container {
  max-width: 1720px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: space-between;
}

@media screen and (max-width: 1720px) {
  .learning-system-container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.learning-system-content {
  max-width: 830px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.learning-system-title-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.learning-system-title {
  font-weight: 700;
  font-size: 48px;
  line-height: 56px;
  color: #262626;
  display: flex;
  flex-direction: column;
}

.learning-system-title .title-highlight {
  font-weight: 700;
  font-size: 48px;
  line-height: 56px;
  color: var(--primary-bg);
}

.learning-system-description {
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  color: #6e6e6e;
}

.learning-system-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.learning-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FFF5F5;
  border-radius: 8px;
}

.feature-icon svg {
  width: 48px;
  height: 48px;
}

.feature-content {
  flex: 1;
}

.feature-title {
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: #262626;
}

.feature-description {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #6e6e6e;
}

.learning-system-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.learning-system-image img {
  width: 830px;
  height: auto;
  object-fit: contain;
}

/* Responsive Design for Learning System Section */
@media (max-width: 1024px) {
  .learning-system-container {
    flex-direction: column;
    gap: 40px;
  }

  .learning-system-content {
    max-width: 100%;
  }

  .learning-system-image {
    order: -1;
  }

}

@media (max-width: 768px) {
  .learning-system {
    padding: 60px 0;
  }

  .learning-system-container {
    flex-direction: column;
    padding: 0 16px;
    gap: 32px;
  }

  .learning-system-image {
    order: 1;
    width: 100%;
  }

  .learning-system-image img {
    width: 100%;
    max-width: 100%;
  }

  .learning-system-content {
    order: 2;
    max-width: 100%;
  }

  .learning-system-title {
    line-height: 1.4;
  }

  .learning-system-features {
    gap: 24px;
  }

  .learning-feature {
    gap: 16px;
  }

  .feature-icon {
    width: 56px;
    height: 56px;
  }

  .feature-icon svg {
    width: 40px;
    height: 40px;
  }

  .feature-title {
    font-size: 18px;
  }

  .feature-description {
    font-size: 14px;
  }
}

.learning-system,
.partner,
.target-group {
  display: none !important;
}

/* Hiệu ứng hover */
.target-card {
  transition: transform var(--hover-duration) var(--motion-ease), box-shadow var(--hover-duration) var(--motion-ease);
}

.card-icon {
  transition: transform var(--hover-duration) var(--motion-ease);
}

.feature-icon {
  transition: transform var(--hover-duration) var(--motion-ease), background-color var(--hover-duration) var(--motion-ease);
}

.feature-title {
  transition: color var(--hover-duration) var(--motion-ease);
}

.partner-features .partner-feature,
.partner-features .partner-feature .check-icon {
  transition: transform var(--hover-duration) var(--motion-ease);
}

.learning-system-image img,
.partner-image img {
  transition: transform 1s var(--motion-ease);
}

@media (hover: hover) {
  .target-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(219, 0, 0, 0.14);
  }

  .target-card:hover .card-icon {
    transform: scale(1.08) rotate(-6deg);
  }

  .learning-feature:hover .feature-icon {
    transform: scale(1.08);
    background-color: #FFE5DF;
  }

  .learning-feature:hover .feature-title {
    color: var(--primary-bg);
  }

  .partner-features .partner-feature:hover {
    transform: translateX(6px);
  }

  .partner-features .partner-feature:hover .check-icon {
    transform: scale(1.15);
  }

  .learning-system-image img:hover,
  .partner-image img:hover {
    transform: scale(1.03);
  }
}
