/* =============================================
   AAU — KHÓA HỌC (Course Grid · cask-inspired)
   Per-card accent color via --cc CSS variable.
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap');

:root {
  --kh-primary: #1b2a4a;
  --kh-primary-light: #2d4a7a;
  --kh-accent: #d72660;
  --kh-text: #1f2937;
  --kh-text-muted: #6b7280;
  --kh-border: #e5e7eb;
  --kh-bg: #f9fafb;
  --kh-white: #ffffff;
  --kh-chip-bg: #f3f4f6;
  --kh-radius: 14px;
}

.aau-kh {
  background: var(--kh-bg);
  font-family: 'Be Vietnam Pro', 'Inter', sans-serif;
  color: var(--kh-text);
}
.aau-kh__wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* === Breadcrumb === */
.aau-kh__breadcrumb {
  background: var(--kh-white);
  border-bottom: 1px solid var(--kh-border);
  padding: 14px 0;
  font-size: 13px;
  color: var(--kh-text-muted);
}
.aau-kh__breadcrumb a { color: var(--kh-text-muted); text-decoration: none; transition: color .15s; }
.aau-kh__breadcrumb a:hover { color: var(--kh-primary); }
.aau-kh__breadcrumb span { margin: 0 6px; }

/* === Hero === */
.aau-kh__hero {
  background: linear-gradient(135deg, #0f1b33 0%, var(--kh-primary) 55%, var(--kh-primary-light) 100%);
  text-align: center;
  padding: 64px 24px 56px;
  position: relative;
  overflow: hidden;
}
.aau-kh__hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -25%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.aau-kh__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--kh-white);
  margin: 0 0 12px;
  letter-spacing: -0.8px;
  position: relative;
}
.aau-kh__subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  margin: 0;
  max-width: 640px;
  margin-inline: auto;
  position: relative;
  line-height: 1.5;
}
.aau-kh__subtitle strong {
  color: #ffd86b;
  font-weight: 700;
}

/* === Filter pills === */
.aau-kh__filters-wrap {
  background: var(--kh-white);
  border-bottom: 1px solid var(--kh-border);
  padding: 22px 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,0.02);
}
.aau-kh__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.aau-kh__filter-btn {
  font-family: 'Montserrat', sans-serif;
  padding: 8px 18px;
  border-radius: 22px;
  border: 1.5px solid var(--kh-border);
  background: var(--kh-chip-bg);
  font-size: 13px;
  font-weight: 600;
  color: var(--kh-text-muted);
  cursor: pointer;
  transition: all .2s;
}
.aau-kh__filter-btn:hover {
  border-color: var(--kh-primary);
  color: var(--kh-primary);
  background: var(--kh-white);
}
.aau-kh__filter-btn.is-active {
  background: var(--kh-primary);
  border-color: var(--kh-primary);
  color: var(--kh-white);
}
.aau-kh__filter-count { font-weight: 500; opacity: 0.75; font-size: 12px; }

/* === Grid === */
.aau-kh__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin: 40px 0 64px;
}

/* === Card === */
.aau-kh__card {
  --cc: #1b2a4a;
  background: var(--kh-white);
  border-radius: var(--kh-radius);
  overflow: hidden;
  border: 1px solid var(--kh-border);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.aau-kh__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
  border-color: var(--cc);
}

/* Card image */
.aau-kh__card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--cc);
  display: flex;
  align-items: center;
  justify-content: center;
}
.aau-kh__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.aau-kh__card:hover .aau-kh__card-img { transform: scale(1.04); }
.aau-kh__card-img--placeholder {
  position: relative;
}
.aau-kh__card-monogram {
  font-family: 'Montserrat', sans-serif;
  font-size: 56px;
  font-weight: 800;
  color: var(--cc);
  opacity: 0.42;
  letter-spacing: -2px;
  line-height: 1;
}
.aau-kh__card-soon-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 10px;
  background: #fef3c7;
  color: #92400e;
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 12px;
  letter-spacing: 0.3px;
  border: 1px solid #fcd34d;
}

/* Coming Soon card state */
.aau-kh__card--soon { opacity: 0.78; }
.aau-kh__card--soon:hover { opacity: 1; }
.aau-kh__card--soon .aau-kh__card-img-wrap { filter: grayscale(0.25); }
.aau-kh__card--soon:hover .aau-kh__card-img-wrap { filter: grayscale(0); }

/* Card body */
.aau-kh__card-body {
  padding: 18px 20px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.aau-kh__card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--kh-primary);
  margin: 0 0 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}
.aau-kh__card-title a {
  color: inherit;
  text-decoration: none;
  transition: color .15s;
}
.aau-kh__card-title a:hover { color: var(--cc); }
.aau-kh__card-desc {
  font-size: 13px;
  color: var(--kh-text-muted);
  margin: 0 0 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Card meta */
.aau-kh__card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
}
.aau-kh__card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--kh-text-muted);
  font-weight: 500;
}
.aau-kh__card-meta-item svg { flex-shrink: 0; opacity: 0.7; }
.aau-kh__card-format {
  margin-left: auto;
  padding: 3px 10px;
  background: var(--kh-chip-bg);
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--kh-text-muted);
}

/* Card footer */
.aau-kh__card-footer {
  padding: 14px 20px 16px;
  border-top: 1px solid var(--kh-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.aau-kh__card-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--cc);
}
.aau-kh__card-price--soft {
  font-size: 13px;
  font-weight: 600;
  color: var(--kh-text-muted);
}
.aau-kh__card-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--cc);
  text-decoration: none;
  transition: opacity .15s, transform .15s;
}
.aau-kh__card-link:hover {
  opacity: 0.75;
  transform: translateX(2px);
}
button.aau-kh__card-link--btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* =============================================
   FEATURED variant for homepage
   ============================================= */
.aau-khf {
  background: var(--kh-white);
  font-family: 'Be Vietnam Pro', 'Inter', sans-serif;
  color: var(--kh-text);
  padding: 72px 0 80px;
}
.aau-khf__wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.aau-khf__eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--kh-accent);
  text-align: center;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.aau-khf__heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--kh-primary);
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.aau-khf__subheading {
  font-size: 16px;
  color: var(--kh-text-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.55;
}
.aau-khf__grid {
  margin: 0 0 40px;
}
.aau-khf__cta-wrap {
  text-align: center;
}
.aau-khf__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--kh-primary);
  color: var(--kh-white);
  border-radius: 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(27,42,74,0.18);
}
.aau-khf__cta:hover {
  background: var(--kh-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(215,38,96,0.28);
}
.aau-khf__cta svg { transition: transform .2s; }
.aau-khf__cta:hover svg { transform: translateX(3px); }

@media (max-width: 640px) {
  .aau-khf { padding: 48px 0 56px; }
  .aau-khf__heading { font-size: 26px; }
  .aau-khf__subheading { font-size: 14.5px; margin-bottom: 28px; }
  .aau-khf__grid { margin-bottom: 28px; }
  .aau-khf__cta { padding: 12px 22px; font-size: 13px; }
}

/* === Responsive === */
@media (max-width: 1024px) {
  .aau-kh__title { font-size: 34px; }
  .aau-kh__hero { padding: 50px 20px 40px; }
}

@media (max-width: 640px) {
  .aau-kh__grid { gap: 18px; margin: 28px 0 40px; }
  .aau-kh__title { font-size: 26px; }
  .aau-kh__subtitle { font-size: 14.5px; }
  .aau-kh__hero { padding: 38px 16px 30px; }
  .aau-kh__filters-wrap { padding: 16px 0; }
  .aau-kh__filters { justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; flex-wrap: nowrap; }
  .aau-kh__filters::-webkit-scrollbar { display: none; }
  .aau-kh__filter-btn { flex-shrink: 0; padding: 7px 14px; font-size: 12.5px; }
  .aau-kh__wrap { padding: 0 16px; }
  .aau-kh__card-title { font-size: 15px; min-height: auto; }
  .aau-kh__card-img-wrap { height: 160px; }
}

/* === Nhóm hiển thị: Đang mở tuyển sinh / Sắp ra mắt === */

.aau-kh__card { order: 2; }
.aau-kh__card--soon { order: 4; }
.aau-kh__group-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--kh-border);
}
.aau-kh__group-head--open { order: 1; }
.aau-kh__group-head--soon { order: 3; margin-top: 34px; }
.aau-kh__group-head[hidden] { display: none; }
.aau-kh__group-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--kh-primary);
  margin: 0;
  letter-spacing: -0.3px;
}
.aau-kh__group-note {
  font-size: 13.5px;
  color: var(--kh-text-muted);
  margin: 0;
}
@media (max-width: 749px) {
  .aau-kh__group-head--soon { margin-top: 24px; }
  .aau-kh__group-title { font-size: 18px; }
  .aau-kh__group-note { font-size: 12.5px; }
}

/* === Nhãn nhóm nằm trong phần thông tin của thẻ === */
.aau-kh__card-cat {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 4px 11px;
  background: var(--kh-chip-bg);
  color: var(--cc);
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 4px;
  line-height: 1.5;
}
