/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/* ==================================================
   HỒNG DẤU – HERO TEXT CONTENT
================================================== */

.hd-hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 610px;
  padding: 42px 0 34px;
  font-family: "Be Vietnam Pro", "Montserrat", Arial, sans-serif;
  color: #0b3778;
}

/* Badge tuyển sinh */
.hd-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  margin-bottom: 20px;
  border: 2px solid #3878ff;
  border-radius: 999px;
  color: #2162e8;
  background: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.2px;
  box-shadow: 0 5px 18px rgba(40, 106, 224, 0.08);
  backdrop-filter: blur(4px);
}

/* Tiêu đề */
.hd-hero-title {
  margin: 0 0 18px;
  color: #0a3474;
  font-size: 54px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.8px;
}

/* Nội dung mô tả */
.hd-hero-desc {
  max-width: 520px;
  margin: 0 0 25px;
  color: #3f4652;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
}

/* Nút */
.hd-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid #2470f5;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none !important;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease,
    background 0.25s ease;
}

.hd-btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, #1f65e8 0%, #347fff 100%);
  box-shadow: 0 8px 20px rgba(35, 105, 236, 0.24);
}

.hd-btn-primary:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(35, 105, 236, 0.32);
}

.hd-btn-outline {
  color: #2162e8 !important;
  background: rgba(255, 255, 255, 0.78);
}

.hd-btn-outline:hover {
  color: #fff !important;
  background: #216bea;
  transform: translateY(-2px);
}

/* 3 khối lợi ích */
.hd-hero-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  width: 100%;
  max-width: 570px;
}

.hd-benefit-item {
  display: flex;
  align-items: center;
  min-height: 75px;
  padding: 13px 14px;
  border: 1px solid rgba(218, 229, 243, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(21, 62, 112, 0.1);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.hd-benefit-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(21, 62, 112, 0.15);
}

.hd-benefit-icon {
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  margin-right: 10px;
  color: #1554b7;
}

.hd-benefit-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hd-benefit-text {
  color: #313841;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

/* ==================================================
   TABLET
================================================== */

@media screen and (max-width: 1024px) {
  .hd-hero-content {
    max-width: 535px;
    padding: 35px 0;
  }

  .hd-hero-title {
    font-size: 46px;
  }

  .hd-hero-desc {
    font-size: 15px;
    line-height: 1.65;
  }

  .hd-benefit-item {
    padding: 11px 10px;
  }

  .hd-benefit-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    margin-right: 8px;
  }

  .hd-benefit-text {
    font-size: 12px;
  }
}

/* ==================================================
   MOBILE
================================================== */

@media screen and (max-width: 549px) {
  .hd-hero-content {
    max-width: 100%;
    padding: 25px 15px 24px;
  }

  .hd-hero-badge {
    min-height: 34px;
    padding: 7px 13px;
    margin-bottom: 16px;
    font-size: 12px;
    border-width: 1.5px;
  }

  .hd-hero-title {
    margin-bottom: 14px;
    font-size: 38px;
    line-height: 1.1;
    letter-spacing: -1.2px;
  }

  .hd-hero-desc {
    max-width: 100%;
    margin-bottom: 19px;
    font-size: 14px;
    line-height: 1.65;
  }

  .hd-hero-actions {
    gap: 9px;
    margin-bottom: 23px;
  }

  .hd-btn {
    min-height: 42px;
    padding: 10px 13px;
    border-radius: 7px;
    font-size: 11px;
  }

  .hd-hero-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .hd-benefit-item {
    min-height: 68px;
    padding: 9px 7px;
    border-radius: 10px;
  }

  .hd-benefit-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin-right: 5px;
  }

  .hd-benefit-text {
    font-size: 9px;
    line-height: 1.35;
  }
}

/* Mobile rất nhỏ */
@media screen and (max-width: 370px) {
  .hd-hero-title {
    font-size: 33px;
  }

  .hd-btn {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 10px;
  }

  .hd-benefit-item {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .hd-benefit-icon {
    margin: 0 0 4px;
  }
}

.hd-counter-section{

display:flex;
justify-content:space-between;
align-items:center;

background:#fff;

border-radius:22px;

box-shadow:0 10px 35px rgba(0,0,0,.08);

padding:35px 20px;

position:relative;

z-index:20;

}

.hd-counter-item{

flex:1;

display:flex;

align-items:center;

justify-content:center;

gap:18px;

border-right:1px solid #ececec;

}

.hd-counter-item:last-child{

border-right:none;

}

.hd-counter-icon{

font-size:48px;

line-height:1;

color:#ff9800;

}

.hd-counter-number{

font-size:52px;

font-weight:800;

color:#2367ef;

line-height:1;

}

.hd-counter-title{

font-size:17px;

font-weight:500;

color:#555;
line-height:1.5;
}
.hd-counter-item:hover{
transform:translateY(-6px);
transition:.3s;
}
@media(max-width:849px){
.hd-counter-section{
flex-wrap:wrap;
}
.hd-counter-item{
width:50%;
flex:none;
padding:30px;
border:none;
}
}

@media(max-width:549px){
.hd-counter-section{
padding:10px;
margin-top:0;
}
.hd-counter-item{
width:100%;
justify-content:flex-start;
padding:18px;
border-bottom:1px solid #eee;
}
.hd-counter-item:last-child{
border:none;
}
.hd-counter-icon{
font-size:32px;
}
.hd-counter-number{
font-size:34px;
}
.hd-counter-title{
font-size:14px;
}
}

/* =========================================
   HỒNG DẤU - CHƯƠNG TRÌNH ĐÀO TẠO
========================================= */

.hd-courses {
  width: 100%;
  padding: 42px 20px 50px;
  background: #fff;
  font-family: "Be Vietnam Pro", "Montserrat", Arial, sans-serif;
}

.hd-courses__inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
/* Toàn bộ card là liên kết */
a.hd-course-card {
  display: block;
  color: inherit;
  text-decoration: none !important;
  cursor: pointer;
}

a.hd-course-card:hover,
a.hd-course-card:focus {
  color: inherit;
  text-decoration: none !important;
}

/* Nút xem chi tiết ẩn mặc định */
.hd-course-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 13px;
  padding: 7px 15px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2166df;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.hd-course-card:hover .hd-course-link,
.hd-course-card:focus .hd-course-link {
  opacity: 1;
  transform: translateY(0);
}

/* Hiệu ứng icon */
.hd-course-card .hd-course-icon {
  transition: transform 0.3s ease;
}

.hd-course-card:hover .hd-course-icon {
  transform: scale(1.06);
}

/* Viền theo màu từng môn khi hover */
.hd-course-card--blue:hover {
  border-color: rgba(38, 104, 255, 0.45);
}

.hd-course-card--green:hover {
  border-color: rgba(7, 134, 47, 0.45);
}

.hd-course-card--purple:hover,
.hd-course-card--physics:hover {
  border-color: rgba(113, 54, 231, 0.42);
}

.hd-course-card--math:hover {
  border-color: rgba(8, 125, 52, 0.42);
}

.hd-course-card--chemistry:hover {
  border-color: rgba(255, 90, 19, 0.45);
}

/* Hiển thị link luôn trên thiết bị cảm ứng */
@media screen and (max-width: 849px) {
  .hd-course-link {
    opacity: 1;
    transform: none;
  }
}

.hd-section-heading {
  margin-bottom: 25px;
  text-align: center;
}

.hd-section-heading h2 {
  margin: 0;
  color: #0b3474;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: -0.4px;
}

.hd-section-heading span {
  display: block;
  width: 65px;
  height: 3px;
  margin: 8px auto 0;
  border-radius: 99px;
  background: #f5a623;
}

.hd-course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 28px;
}

.hd-course-card {
  position: relative;
  min-height: 310px;
  padding: 23px 24px 20px;
  overflow: hidden;
  border: 1px solid #e8edf3;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  box-shadow: 0 7px 24px rgba(27, 60, 104, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.hd-course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(27, 60, 104, 0.14);
}

.hd-course-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.hd-course-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 122px;
  height: 86px;
  margin: 2px auto 5px;
}

.hd-course-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hd-course-icon svg text {
  fill: currentColor;
  stroke: none;
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.hd-course-subtitle {
  min-height: 40px;
  margin: 1px 0 10px;
  color: #30343a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.hd-course-desc {
  margin: 0;
  color: #4b5057;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}

/* Tiếng Anh */
.hd-course-card--blue {
  color: #2668ff;
}

.hd-course-card--blue h3 {
  color: #2765ef;
}

/* Tiếng Trung */
.hd-course-card--green {
  color: #ed3f49;
}

.hd-course-card--green h3 {
  color: #07862f;
}

/* HSK */
.hd-course-card--purple {
  color: #7c38e6;
}

.hd-course-card--purple h3 {
  color: #2b6bf1;
}

/* Toán */
.hd-course-card--math {
  color: #087d34;
}

.hd-course-card--math h3 {
  color: #087d34;
}

.hd-course-icon--math {
  display: grid;
  grid-template-columns: repeat(2, 48px);
  grid-auto-rows: 40px;
  align-content: center;
  width: 120px;
  color: #087d34;
  font-size: 41px;
  font-weight: 600;
  line-height: 1;
}

.hd-course-icon--math span {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vật lý */
.hd-course-card--physics {
  color: #7136e7;
}

.hd-course-card--physics h3 {
  color: #7136e7;
}

/* Hóa học */
.hd-course-card--chemistry {
  color: #2472ff;
}

.hd-course-card--chemistry h3 {
  color: #ff5a13;
}

.hd-course-card--chemistry svg path:nth-child(3),
.hd-course-card--chemistry svg circle {
  stroke: #ff7518;
}

/* =========================================
   TABLET
========================================= */

@media screen and (max-width: 849px) {
  .hd-courses {
    padding: 36px 20px 42px;
  }

  .hd-section-heading h2 {
    font-size: 24px;
  }

  .hd-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .hd-course-card {
    min-height: 300px;
  }
}

/* =========================================
   MOBILE
========================================= */

@media screen and (max-width: 549px) {
  .hd-courses {
    padding: 30px 12px 35px;
  }

  .hd-section-heading {
    margin-bottom: 20px;
  }

  .hd-section-heading h2 {
    font-size: 20px;
    line-height: 1.45;
  }

  .hd-section-heading span {
    width: 52px;
    height: 2px;
    margin-top: 6px;
  }

  .hd-course-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hd-course-card {
    min-height: 0;
    padding: 20px 15px 21px;
    border-radius: 15px;
  }

  .hd-course-card h3 {
    font-size: 19px;
  }

  .hd-course-icon {
    width: 110px;
    height: 80px;
  }

  .hd-course-subtitle,
  .hd-course-desc {
    font-size: 13px;
  }
}

/* =========================================
   HỒNG DẤU - CTA LUYỆN THI
========================================= */

.hd-exam-cta {
  width: 100%;
  padding: 10px 20px;
  font-family: "Be Vietnam Pro", "Montserrat", Arial, sans-serif;
}

.hd-exam-cta__inner {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;

  width: 100%;
  max-width: 1180px;
  min-height: 115px;
  margin: 0 auto;
  padding: 18px 35px 18px 26px;

  border: 1px solid rgba(247, 198, 116, 0.28);
  border-radius: 17px;

  background:
    linear-gradient(
      90deg,
      #fffaf1 0%,
      #fffdf8 44%,
      #fff1cf 100%
    );

  box-shadow: 0 8px 26px rgba(131, 86, 18, 0.11);
}

/* Icon */
.hd-exam-cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  color: #df433b;
}

.hd-exam-cta__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hd-exam-cta__icon svg circle:nth-child(2) {
  stroke: #f19a3f;
}

.hd-exam-cta__icon svg circle:nth-child(3) {
  stroke: #efcf59;
}

.hd-exam-cta__icon svg path:nth-of-type(1),
.hd-exam-cta__icon svg path:nth-of-type(2),
.hd-exam-cta__icon svg path:nth-of-type(3) {
  stroke: #0b6a97;
}

/* Nội dung */
.hd-exam-cta__content h3 {
  margin: 0 0 7px;
  color: #0b3474;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.25px;
}

.hd-exam-cta__content p {
  margin: 0;
  color: #66707b;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

/* Button */
.hd-exam-cta__action {
  display: flex;
  justify-content: flex-end;
}

.hd-exam-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 160px;
  min-height: 52px;
  padding: 12px 22px;

  border: 2px solid #f4a000;
  border-radius: 10px;

  background: #f7a800;
  color: #143b72 !important;

  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;

  box-shadow: 0 7px 18px rgba(247, 168, 0, 0.23);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.hd-exam-cta__button:hover {
  background: #0b4e9a;
  border-color: #0b4e9a;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 11px 24px rgba(11, 78, 154, 0.24);
}

/* =========================================
   TABLET
========================================= */

@media screen and (max-width: 849px) {
  .hd-exam-cta__inner {
    grid-template-columns: 78px minmax(0, 1fr) auto;
    gap: 16px;
    padding: 16px 22px;
  }

  .hd-exam-cta__icon {
    width: 70px;
    height: 70px;
  }

  .hd-exam-cta__content h3 {
    font-size: 18px;
  }

  .hd-exam-cta__content p {
    font-size: 12px;
  }

  .hd-exam-cta__button {
    min-width: 135px;
    min-height: 46px;
    padding: 10px 16px;
    font-size: 12px;
  }
}

/* =========================================
   MOBILE
========================================= */

@media screen and (max-width: 549px) {
  .hd-exam-cta {
    padding: 8px 12px;
  }

  .hd-exam-cta__inner {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 13px;

    padding: 16px;
    border-radius: 14px;
  }

  .hd-exam-cta__icon {
    width: 58px;
    height: 58px;
  }

  .hd-exam-cta__content h3 {
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 1.4;
  }

  .hd-exam-cta__content p {
    font-size: 11px;
    line-height: 1.55;
  }

  .hd-exam-cta__action {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .hd-exam-cta__button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin-top: 3px;
  }
}
/* =========================================
   HỒNG DẤU - SECTION GIỚI THIỆU
========================================= */

.hd-about {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 40px 20px 45px;
  background:
    radial-gradient(circle at 18% 20%, rgba(224, 241, 255, 0.7), transparent 35%),
    linear-gradient(100deg, #edf7ff 0%, #ffffff 48%, #edf7ff 100%);
  font-family: "Be Vietnam Pro", "Montserrat", Arial, sans-serif;
}

.hd-about__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 50px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

/* =========================
   KHỐI ẢNH
========================= */

.hd-about__media {
  position: relative;
  min-height: 500px;
}

.hd-about__main-image {
  width: calc(100% - 35px);
  height: 500px;
  overflow: hidden;
  border-radius: 24px;
  background: #dfeaf5;
  box-shadow: 0 14px 35px rgba(26, 71, 118, 0.13);
}

.hd-about__main-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hd-about__small-image {
  position: absolute;
  left: -28px;
  bottom: -14px;
  width: 205px;
  height: 205px;
  overflow: hidden;
  border: 7px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 32px rgba(25, 70, 120, 0.2);
}

.hd-about__small-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   NỘI DUNG
========================= */

.hd-about__content {
  position: relative;
  z-index: 2;
  padding: 15px 0;
}

.hd-about__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}

.hd-about__eyebrow span {
  position: relative;
  color: #0d4a98;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.4px;
}

.hd-about__eyebrow span::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin-top: 8px;
  border-radius: 99px;
  background:
    linear-gradient(
      90deg,
      #f4a61e 0 32%,
      transparent 32% 48%,
      #f4a61e 48% 78%,
      transparent 78%
    );
}

.hd-about__content h2 {
  margin: 0 0 18px;
  color: #0a3474;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
}

.hd-about__description {
  max-width: 540px;
  margin: 0 0 19px;
  color: #56616e;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
}

.hd-about__list {
  margin: 0 0 23px;
  padding: 0;
  list-style: none;
}

.hd-about__list li {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
  color: #4b5663;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.hd-about__check {
  display: inline-flex;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2f73f5;
  box-shadow: 0 4px 10px rgba(47, 115, 245, 0.22);
}

.hd-about__check svg {
  display: block;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hd-about__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid #2c70ed;
  border-radius: 9px;
  background: linear-gradient(135deg, #2467df 0%, #357fff 100%);
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 9px 22px rgba(37, 103, 224, 0.24);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.hd-about__button:hover {
  color: #fff !important;
  background: #0b4d99;
  border-color: #0b4d99;
  transform: translateY(-2px);
  box-shadow: 0 13px 27px rgba(11, 77, 153, 0.26);
}

/* =========================
   ICON TRANG TRÍ
========================= */

.hd-about__decor {
  position: absolute;
  right: 12px;
  bottom: -8px;
  width: 175px;
  height: 135px;
  color: rgba(114, 164, 229, 0.18);
}

.hd-about__decor svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================
   TABLET
========================= */

@media screen and (max-width: 849px) {
  .hd-about {
    padding: 35px 20px 40px;
  }

  .hd-about__inner {
    gap: 30px;
  }

  .hd-about__media {
    min-height: 420px;
  }

  .hd-about__main-image {
    height: 420px;
  }

  .hd-about__small-image {
    left: -12px;
    width: 165px;
    height: 165px;
  }

  .hd-about__content h2 {
    font-size: 32px;
  }

  .hd-about__description {
    font-size: 14px;
    line-height: 1.75;
  }

  .hd-about__decor {
    width: 130px;
    height: 100px;
  }
}

/* =========================
   MOBILE
========================= */

@media screen and (max-width: 549px) {
  .hd-about {
    padding: 28px 12px 34px;
  }

  .hd-about__inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hd-about__media {
    min-height: 350px;
  }

  .hd-about__main-image {
    width: 100%;
    height: 350px;
    border-radius: 18px;
  }

  .hd-about__small-image {
    left: 12px;
    bottom: -26px;
    width: 130px;
    height: 130px;
    border-width: 5px;
  }

  .hd-about__content {
    padding-top: 8px;
  }

  .hd-about__content h2 {
    margin-bottom: 14px;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.6px;
  }

  .hd-about__description {
    font-size: 13px;
    line-height: 1.75;
  }

  .hd-about__list li {
    align-items: flex-start;
    font-size: 13px;
  }

  .hd-about__button {
    width: 100%;
  }

  .hd-about__decor {
    display: none;
  }
}

/* =========================================
   HỒNG DẤU - LỘ TRÌNH HỌC TẬP
========================================= */

.hd-roadmap {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 30px 20px 36px;
  background:
    radial-gradient(circle at 10% 30%, rgba(31, 86, 170, 0.24), transparent 24%),
    radial-gradient(circle at 90% 65%, rgba(10, 48, 118, 0.25), transparent 28%),
    linear-gradient(110deg, #084190 0%, #0e4fa8 46%, #062e77 100%);
  font-family: "Be Vietnam Pro", "Montserrat", Arial, sans-serif;
}

.hd-roadmap::before,
.hd-roadmap::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  opacity: 0.1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.hd-roadmap::before {
  top: 15px;
  left: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='3'%3E%3Cellipse cx='60' cy='60' rx='45' ry='17'/%3E%3Cellipse cx='60' cy='60' rx='45' ry='17' transform='rotate(60 60 60)'/%3E%3Cellipse cx='60' cy='60' rx='45' ry='17' transform='rotate(120 60 60)'/%3E%3Ccircle cx='60' cy='60' r='5'/%3E%3C/g%3E%3C/svg%3E");
}

.hd-roadmap::after {
  right: 20px;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='3'%3E%3Cpath d='M44 17h32M52 17v28L24 91c-4 7 1 13 9 13h54c8 0 13-6 9-13L68 45V17'/%3E%3Cpath d='M34 78h52'/%3E%3C/g%3E%3C/svg%3E");
}

.hd-roadmap__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.hd-roadmap__heading {
  margin-bottom: 24px;
  text-align: center;
}

.hd-roadmap__heading h2 {
  margin: 0;
  color: #fff;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.35px;
}

.hd-roadmap__heading span {
  display: block;
  width: 66px;
  height: 3px;
  margin: 8px auto 0;
  border-radius: 99px;
  background: #f5ab21;
}

.hd-roadmap__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 46px;
}

.hd-roadmap__grid::before {
  content: "";
  position: absolute;
  top: 99px;
  left: 11%;
  right: 11%;
  border-top: 3px dashed rgba(255, 255, 255, 0.8);
  z-index: 0;
}

.hd-roadmap__item {
  position: relative;
  z-index: 1;
  min-height: 275px;
  padding: 24px 18px 20px;
  border: 1px solid rgba(217, 229, 246, 0.85);
  border-radius: 18px;
  background: #fff;
  text-align: center;
  box-shadow: 0 14px 30px rgba(1, 24, 63, 0.22);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.hd-roadmap__item:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 38px rgba(1, 24, 63, 0.3);
}

.hd-roadmap__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  margin: -11px auto 7px;
  border: 4px solid #edf4ff;
  border-radius: 50%;
  background: #2e6af0;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(39, 100, 232, 0.3);
}

.hd-roadmap__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 69px;
  margin: 0 auto 5px;
  color: #174da8;
}

.hd-roadmap__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hd-roadmap__item h3 {
  margin: 0 0 9px;
  color: #2a6cef;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.hd-roadmap__item p {
  margin: 0;
  color: #4f5864;
  font-size: 12px;
  line-height: 1.65;
}

/* Tablet */
@media screen and (max-width: 849px) {
  .hd-roadmap {
    padding: 32px 20px 40px;
  }

  .hd-roadmap__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
  }

  .hd-roadmap__grid::before {
    display: none;
  }

  .hd-roadmap__item {
    min-height: 260px;
  }
}

/* Mobile */
@media screen and (max-width: 549px) {
  .hd-roadmap {
    padding: 28px 12px 34px;
  }

  .hd-roadmap__heading h2 {
    font-size: 21px;
  }

  .hd-roadmap__heading {
    margin-bottom: 20px;
  }

  .hd-roadmap__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hd-roadmap__item {
    min-height: 0;
    padding: 21px 16px 20px;
    border-radius: 15px;
  }

  .hd-roadmap__item h3 {
    font-size: 16px;
  }

  .hd-roadmap__item p {
    font-size: 13px;
  }
}

/* =========================================
   HỒNG DẤU - FORM ĐĂNG KÝ TƯ VẤN
========================================= */

.hd-register {
  width: 100%;
  padding: 16px 20px 22px;
  background: #fff;
  font-family: "Be Vietnam Pro", "Montserrat", Arial, sans-serif;
}

.hd-register__inner {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  width: 100%;
  max-width: 1180px;
  min-height: 285px;
  margin: 0 auto;
  overflow: hidden;
  border: 4px solid #0a3379;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(13, 52, 115, 0.14);
}

/* =========================
   CỘT THÔNG TIN
========================= */

.hd-register__info {
  position: relative;
  padding: 45px 30px 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(50, 112, 219, 0.45), transparent 35%),
    linear-gradient(135deg, #123f91 0%, #072c70 100%);
  color: #fff;
}

.hd-register__info::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.hd-register__info h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  color: #ffbd19;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.2px;
}

.hd-register__info h2 span {
  color: #ffbd19;
}

.hd-register__contact {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hd-register__contact li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 13px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.hd-register__contact a {
  color: #fff !important;
  text-decoration: none !important;
}

.hd-register__contact a:hover {
  color: #ffbd19 !important;
}

.hd-register__icon {
  display: inline-flex;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

.hd-register__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hd-register__copyright {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  line-height: 1.55;
}

/* =========================
   CỘT FORM
========================= */

.hd-register__form {
  padding: 17px 35px 22px;
  background:
    linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
}

.hd-register__form h3 {
  margin: 0 0 15px;
  color: #0c3478;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.hd-register__cf7 p {
  margin: 0;
}

.hd-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.hd-form-field {
  min-width: 0;
}

.hd-form-field--full {
  grid-column: 1 / -1;
}

.hd-register input[type="text"],
.hd-register input[type="tel"],
.hd-register input[type="email"],
.hd-register select,
.hd-register textarea {
  width: 100%;
  height: 47px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #dfe5ed;
  border-radius: 5px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 400;
  box-shadow: none;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.hd-register textarea {
  min-height: 58px;
  height: 58px;
  resize: vertical;
}

.hd-register input:focus,
.hd-register select:focus,
.hd-register textarea:focus {
  border-color: #3478ed;
  box-shadow: 0 0 0 3px rgba(52, 120, 237, 0.12);
}

.hd-register input::placeholder,
.hd-register textarea::placeholder {
  color: #929aa5;
  opacity: 1;
}

.hd-register .wpcf7-spinner {
  display: none;
}

.hd-register input[type="submit"].hd-form-submit,
.hd-register .hd-form-submit {
  width: 100%;
  min-height: 46px;
  margin: 0;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #ffaf2e 0%, #ff9f1c 100%);
  color: #0b3975;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 7px 18px rgba(255, 164, 31, 0.25);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.hd-register input[type="submit"].hd-form-submit:hover,
.hd-register .hd-form-submit:hover {
  background: #0a4d9a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(10, 77, 154, 0.24);
}

.hd-register .wpcf7-not-valid-tip {
  margin-top: 4px;
  font-size: 11px;
}

.hd-register .wpcf7-response-output {
  margin: 12px 0 0 !important;
  padding: 8px 12px !important;
  border-radius: 5px;
  font-size: 12px;
}

/* =========================
   TABLET
========================= */

@media screen and (max-width: 849px) {
  .hd-register__inner {
    grid-template-columns: 285px minmax(0, 1fr);
  }

  .hd-register__info {
    padding: 25px 22px;
  }

  .hd-register__info h2 {
    font-size: 19px;
  }

  .hd-register__form {
    padding: 17px 22px 22px;
  }

  .hd-form-grid {
    gap: 10px 12px;
  }
}

/* =========================
   MOBILE
========================= */

@media screen and (max-width: 549px) {
  .hd-register {
    padding: 12px;
  }

  .hd-register__inner {
    grid-template-columns: 1fr;
    border-width: 3px;
    border-radius: 15px;
  }

  .hd-register__info {
    padding: 24px 20px;
  }

  .hd-register__info h2 {
    margin-bottom: 18px;
    font-size: 21px;
  }

  .hd-register__contact li {
    font-size: 12px;
  }

  .hd-register__form {
    padding: 20px 16px 22px;
  }

  .hd-register__form h3 {
    font-size: 16px;
  }

  .hd-form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hd-form-field--full {
    grid-column: auto;
  }

  .hd-register input[type="text"],
  .hd-register input[type="tel"],
  .hd-register input[type="email"],
  .hd-register select {
    height: 44px;
  }
}

/* Căn liên kết Xem chi tiết xuống cuối mỗi thẻ */
.hd-course-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Giữ các thẻ có chiều cao đồng đều */
.hd-course-desc {
  margin-bottom: 0;
}

/* Link xem chi tiết */
.hd-course-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;

  color: #1677ed;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.hd-course-detail::after {
  content: "→";
  display: inline-block;
  font-size: 17px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.hd-course-detail:hover {
  color: #063f7b;
  transform: translateY(-1px);
}

.hd-course-detail:hover::after {
  transform: translateX(4px);
}

/* Màu link đồng bộ từng chương trình */
.hd-course-card--green .hd-course-detail,
.hd-course-card--math .hd-course-detail {
  color: #2e9a45;
}

.hd-course-card--purple .hd-course-detail,
.hd-course-card--physics .hd-course-detail {
  color: #7453e6;
}

.hd-course-card--chemistry .hd-course-detail {
  color: #f27d13;
}

/* Mobile */
@media (max-width: 549px) {
  .hd-course-detail {
    padding-top: 15px;
    font-size: 14px;
  }
}
