/**
 * ERIC CAPITAL - HOME PAGE ADVANCED CSS (home.css)
 * Chứa các style riêng biệt cho Section Chẩn Đoán (#diag), Bảng So Sánh Khóa Học và Bento Glow
 */

/* DIAGNOSTIC TOOL SECTION (#diag) */
.diag-section {
  background: var(--p);
  position: relative;
  overflow: hidden;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.diag-section .st { color: #fff; }
.diag-section .ss { color: rgba(255,255,255,.7); }
.diag-container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(10,22,40,0.88);
  border: 1px solid rgba(200,151,58,.35);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 1;
}
.diag-progress-wrapper {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,.1);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 16px;
}
.diag-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--a), var(--gl));
  border-radius: 100px;
  transition: width .4s cubic-bezier(.4,0,.2,1);
}
.diag-step-info {
  font-size: 13px;
  font-weight: 700;
  color: var(--gl);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 28px;
  text-align: right;
}
.diag-step {
  display: none;
  animation: diagFadeIn .4s ease;
}
.diag-step.diag-step-active {
  display: block;
}
@keyframes diagFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.diag-q-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.45;
}
.diag-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.diag-option {
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: 16px;
  padding: 18px 24px;
  color: rgba(255,255,255,.9);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all .3s;
  font-family: inherit;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 12px;
}
.diag-option:hover {
  background: rgba(26,111,232,.25);
  border-color: var(--al);
  color: #fff;
  transform: translateX(6px);
  box-shadow: 0 8px 24px rgba(26,111,232,.3);
}
.diag-result-card {
  text-align: center;
}
.diag-result-header { margin-bottom: 28px; }
.diag-result-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--gl);
  margin-bottom: 12px;
}
.diag-result-desc {
  font-size: 16px;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
}
.diag-rec-course-box {
  background: rgba(26,111,232,.18);
  border: 1.5px solid rgba(91,168,255,.45);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 32px;
  position: relative;
}
.diag-course-tag {
  display: inline-block;
  background: var(--ga);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.diag-course-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.diag-course-detail {
  font-size: 15px;
  color: rgba(255,255,255,.78);
  line-height: 1.6;
}
.diag-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* COURSE COMPARISON MATRIX TABLE MODAL */
.matrix-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
  border: 1px solid var(--b);
  border-radius: 16px;
}
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 760px;
}
.matrix-table th, .matrix-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--b);
  font-size: 14px;
  vertical-align: middle;
}
.matrix-table th {
  background: var(--p);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}
.matrix-table th:first-child, .matrix-table td:first-child {
  width: 22%;
  background: var(--s);
  border-right: 1px solid var(--b);
}
.matrix-table tbody tr:last-child td { border-bottom: none; }
.col-highlight {
  background: rgba(200,151,58,.08) !important;
  border-left: 2px solid var(--g);
  border-right: 2px solid var(--g);
  font-weight: 700;
  color: var(--p);
}
.matrix-table th.col-highlight {
  background: linear-gradient(135deg, #1C2333, #0A1628) !important;
  color: var(--gl);
  border-top: 3px solid var(--g);
}
.badge-mini {
  display: inline-block;
  font-size: 10px;
  background: var(--gg);
  color: #fff;
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 6px;
  vertical-align: middle;
}
.modal-footer-cta {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--b);
}

@media(max-width: 640px) {
  .diag-container { padding: 24px; }
  .diag-q-title { font-size: 18px; }
  .diag-option { font-size: 14px; padding: 14px 18px; }
  .matrix-table th, .matrix-table td { padding: 12px 14px; font-size: 13px; }
}
