/* Main Stylesheet entry point */
/* Global Reset & Base Styles */
/* Import modular stylesheets */
@import url("modern-normalize.css");
@import url("variables.css");
@import url("header-footer.css");
@import url("sections.css");
@import url("form-popup.css");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family:
    "Roboto",
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.6;
  color: var(--slate-700);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
/* Typography Components */
h1,
h2,
h3,
h4 {
  font-family: var(--font-main);
  line-height: 1.2;
  margin: 0 0 16px;
}

.h1 {
  font-size: var(--text-3xl);
  font-weight: var(--font-black);
}
.h2 {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
}
.text-lead {
  font-size: var(--text-lg);
  color: var(--slate-600);
}

a {
  text-decoration: none;
  color: inherit;
}
p {
  margin: 0 0 12px;
}
/* Common Layout Components */
.container {
  width: min(var(--maxw), calc(100% - (var(--container-pad) * 2)));
  margin: 0 auto;
}
.section {
  padding: 80px 0;
}
.section-blue {
  background: linear-gradient(135deg, var(--blue-950) 0%, var(--blue-900) 100%);
  color: rgba(255, 255, 255, 0.95);
}
.section-white {
  background-color: var(--white);
  color: var(--slate-700);
}
.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
/* Button & Call-to-action styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: var(--transition);
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background-color: var(--gold);
  color: var(--blue-950);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(220, 167, 27, 0.2);
}
.btn-primary:hover {
  background-color: var(--gold-hover);
  box-shadow: 0 6px 20px rgba(220, 167, 27, 0.35);
}
.btn-wide {
  width: min(280px, 100%);
}

.lucide {
  width: 40px;
  height: 40px;
  stroke-width: 2px;
}
/* Swiper button only */
.swiper-button-next,
.swiper-button-prev {
  background-color: var(--slate-500);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 15px;
  font-weight: bold;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: var(--gold-hover);
  box-shadow: 0 6px 20px rgba(220, 167, 27, 0.35);
}
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid white;
  opacity: 1;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
.swiper-pagination-bullet-active {
  width: 32px;
  border-radius: 6px;
  background: var(--gold-hover);
}

/* ===== MAJORS ==== */
.majors-full {
  padding: 80px 0;
  background-color: var(--blue-tint);
  background-image: radial-gradient(
    circle at top right,
    rgba(30, 115, 190, 0.3) 0%,
    transparent 70%
  );
  position: relative;
  /* color: var(--white); */
  margin: 40px auto;
  box-shadow: 0 25px 50px -12px rgba(30, 115, 190, 0.25);
}
.majors-header {
  text-align: center;
  margin-bottom: 32px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-badge {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand-blue);
  background: var(--blue-tint);
  border-radius: 999px;
  border: 1px solid var(--blue-tint-dark);
}
.section-title {
  background: linear-gradient(
    135deg,
    var(--blue-950) 0%,
    var(--brand-blue) 50%,
    var(--blue-700) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: var(--text-md);
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Title divider decorations */
.title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--brand-blue);
  margin-top: 12px;
}
.title-line {
  height: 3px;
  width: 64px;
  border-radius: 999px;
  background-color: currentColor;
}
.title-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}
.title-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.majors-slider {
  overflow: hidden;
  padding: 10px 0;
}
.major-card {
  position: relative;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
}
.major-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.major-card:hover .card-image {
  transform: scale(1.05);
}
.major-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%; /* Chiều cao lớp phủ */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  z-index: 1;
}
.major-card h3 {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 20px;
  color: var(--white);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  text-align: center;
  margin: 0;
  transition: var(--transition);
}
.major-card:hover h3 {
  background: linear-gradient(to top, var(--brand-blue), transparent);
}
.card-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
}

/* ==== CLASSES ==== */
.classes-full {
  padding: 80px 0;
  background-color: var(--white);
  position: relative;
}
.classes-full::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 80%);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--slate-300) 50%,
    transparent 100%
  );
}
.classes-full::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(220, 167, 27, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}
.classes-full .container {
  position: relative;
  z-index: 1;
}
.classes-header {
  text-align: center;
  margin-bottom: 32px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.classes-slider {
  overflow: hidden;
  padding: 10px 0;
}
.majors-pagination,
.classes-pagination {
  margin-top: 20px;
  position: relative;
  z-index: 1;
}
.majors-pagination .swiper-pagination-bullet,
.classes-pagination .swiper-pagination-bullet {
  background: var(--slate-300);
  border: 2px solid var(--slate-400);
  box-shadow: none;
  transition: all 0.3s ease;
}
.majors-pagination .swiper-pagination-bullet:hover,
.classes-pagination .swiper-pagination-bullet:hover {
  background: var(--gold-light);
  border-color: var(--gold);
  transform: scale(1.2);
}
.majors-pagination .swiper-pagination-bullet-active,
.classes-pagination .swiper-pagination-bullet-active {
  background: var(--gold-hover);
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(220, 167, 27, 0.4);
  width: 32px;
  border-radius: 6px;
}

/* ===== REVIEWS (Đánh giá học viên) ===== */
.reviews-full {
  padding: 80px 0;
  background-color: var(--blue-tint);
  background-image: radial-gradient(
    circle at top left,
    rgba(30, 115, 190, 0.25) 0%,
    transparent 70%
  );
  position: relative;
  margin: 40px auto;
  box-shadow: 0 25px 50px -12px rgba(30, 115, 190, 0.25);
}

.reviews-header {
  text-align: center;
  margin-bottom: 32px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.reviews-slider {
  overflow: hidden;
  padding: 10px 0;
}

/* === REVIEW CARD === */
.review-card {
  padding: 20px;
  height: 280px;
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

/* Review Head (Avatar + Info) */
.review-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--blue-tint);
  flex-shrink: 0;
}

.review-name {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--blue-950);
  margin: 0 0 4px;
  line-height: 1.3;
}

.review-role {
  font-size: var(--text-sm);
  color: var(--slate-600);
  margin: 0;
  font-style: italic;
}

/* Review Text */
.review-text {
  font-size: var(--text-sm);
  color: var(--slate-700);
  line-height: 1.7;
  margin: 0;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}

/* Pagination */
.reviews-pagination {
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.reviews-pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.reviews-pagination .swiper-pagination-bullet-active {
  background: var(--gold-hover);
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(220, 167, 27, 0.4);
  width: 32px;
  border-radius: 6px;
}

/* ===== PARTNERS (Đơn vị hợp tác) ===== */
.partners-full {
  padding: 80px 0;
  background-color: var(--white);
  position: relative;
}

.partners-full::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 80%);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--slate-300) 50%,
    transparent 100%
  );
}

.partners-full::after {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px; /* ✅ ĐÃ DI CHUYỂN SANG TRÁI */
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(220, 167, 27, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.partners-full .container {
  position: relative;
  z-index: 1;
}

.partners-header {
  text-align: center;
  margin-bottom: 32px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.partners-slider {
  overflow: hidden;
  padding: 10px 0;
}

/* Partner Card */
.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--slate-50);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  height: 120px;
}

.partner-card:hover {
  transform: scale(1.05);
  border-color: var(--brand-blue);
  background: var(--blue-tint);
  box-shadow: var(--shadow-sm);
}

.partner-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: var(--transition);
}

.partner-card:hover img {
  transform: scale(1.05);
}

/* Pagination */
.partners-pagination {
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.partners-pagination .swiper-pagination-bullet {
  background: var(--slate-300);
  border: 2px solid var(--slate-400);
  box-shadow: none;
  transition: all 0.3s ease;
}

.partners-pagination .swiper-pagination-bullet:hover {
  background: var(--gold-light);
  border-color: var(--gold);
  transform: scale(1.2);
}

.partners-pagination .swiper-pagination-bullet-active {
  background: var(--gold-hover);
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(220, 167, 27, 0.4);
  width: 32px;
  border-radius: 6px;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--gold-hover);
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: -4px 5px 9px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}
.back-to-top:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  background-color: var(--gold);
  transform: translateY(-3px);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top i {
  font-size: 24px;
}

/* Banner Slider & Image Scaling */
.promo-slider {
  width: 100%;
  position: relative;
  overflow: hidden;
}
.promo-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
}
@media (max-width: 1024px) {
  .promo-image {
    height: 440px;
  }
}
@media (max-width: 768px) {
  .promo-image {
    height: 380px;
  }
}
@media (max-width: 480px) {
  .promo-image {
    height: 300px;
  }
}

/* Responsive Section Paddings & Spacings */
@media (max-width: 768px) {
  .section,
  .majors-full,
  .classes-full,
  .reviews-full,
  .partners-full,
  .benefits-full {
    padding: 48px 0 !important;
  }
  .majors-full,
  .reviews-full {
    margin: 20px auto !important;
  }
  /* Carousel cards bigger on tablet */
  .major-card {
    height: 300px !important;
  }
  .review-card {
    height: 310px !important;
  }
}

@media (max-width: 480px) {
  .section,
  .majors-full,
  .classes-full,
  .reviews-full,
  .partners-full,
  .benefits-full {
    padding: 36px 0 !important;
  }
  .majors-full,
  .reviews-full {
    margin: 10px auto !important;
  }
  /* Carousel cards on small phones */
  .major-card {
    height: 260px !important;
  }
  .review-card {
    height: 290px !important;
    padding: 20px !important;
  }
}
