/* ===================================================
   QUANG TRUNG COLLEGE — Trang chủ Custom Styles
   Paste vào: Appearance → Customize → Additional CSS
   =================================================== */

/* ── HERO ── */
.qt-hero-wrap {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.qt-hero-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.qt-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.qt-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #FFC700;
  margin-bottom: 24px;
}
.qt-hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  flex-shrink: 0;
  animation: qt-pulse 2s infinite;
}
@keyframes qt-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}
.qt-hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.qt-hero-title em {
  font-style: normal;
  color: #FFC700;
}
.qt-hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 38px;
}
.qt-hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.qt-btn-gold {
  padding: 14px 30px;
  border-radius: 12px;
  background: #FFC700;
  color: #000 !important;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255, 199, 0, 0.3);
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.qt-btn-gold:hover {
  background: #E5B200;
  transform: translateY(-2px);
  color: #000 !important;
}
.qt-btn-outline {
  padding: 14px 30px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.qt-btn-outline:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  color: #fff;
}

/* ── HERO STATS ── */
.qt-stat-grid {
  background: rgba(11, 19, 43, 0.45);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.qt-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 360px;
  margin-left: auto;
}
.qt-stat-box {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.qt-stat-box.hl {
  background: rgba(180, 10, 15, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}
.qt-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.qt-stat-num sup {
  font-size: 1rem;
  color: #FFC700;
}
.qt-stat-lbl {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
  font-weight: 500;
}

/* ── TICKER ── */
.qt-ticker-wrap {
  overflow: hidden;
}
.qt-ticker {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: qt-ticker 28s linear infinite;
}
.qt-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
}
.qt-ticker-item::before {
  content: '🚩';
  font-size: 0.9rem;
}
@keyframes qt-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SECTION LABELS ── */
.qt-section-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #D61C23;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.qt-section-label--gold {
  color: #FFC700;
}
.qt-section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0B132B;
  margin-bottom: 14px;
  line-height: 1.25;
}
.qt-section-title--white {
  color: #fff;
}
.qt-section-sub {
  font-size: 1.05rem;
  color: #64748B;
  line-height: 1.65;
}
.qt-section-sub--white {
  color: rgba(255, 255, 255, 0.7);
}
.qt-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.qt-see-all {
  color: #D61C23;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}
.qt-see-all:hover {
  text-decoration: underline;
}

/* ── THÔNG BÁO ── */
.qt-notice-col h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0B132B;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid #E2E8F0;
  padding-bottom: 10px;
}
.qt-notice-col h3::before {
  content: '';
  width: 4px;
  height: 18px;
  background: #D61C23;
  display: inline-block;
  border-radius: 2px;
}
.qt-notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.qt-notice-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #E2E8F0;
  align-items: flex-start;
}
.qt-notice-list li:last-child { border-bottom: none; }

/* Date box luôn align top, không co */
.qt-notice-date {
  align-self: flex-start;
  flex-shrink: 0;
}
/* Info text chiếm hết phần còn lại, title giới hạn 2 dòng */
.qt-notice-info {
  flex: 1;
  min-width: 0;
}
.qt-notice-info a {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin-bottom: 4px;
}
.qt-notice-date {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #FFF0F1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(214, 28, 35, 0.1);
}
.qt-notice-date .day {
  font-size: 1rem;
  font-weight: 800;
  color: #D61C23;
  line-height: 1;
}
.qt-notice-date .mo {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  margin-top: 2px;
}
.qt-notice-info a {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1C2541;
  text-decoration: none;
  line-height: 1.4;
  display: block;
  margin-bottom: 4px;
}
.qt-notice-info a:hover {
  color: #D61C23;
}
.qt-notice-info span {
  font-size: 0.78rem;
  color: #64748B;
  font-weight: 500;
}
.qt-new-tag {
  background: #D61C23;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}

/* ── CHƯƠNG TRÌNH ── */
.qt-prog-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #E2E8F0;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  height: 100%;
}
.qt-prog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(214, 28, 35, 0.06);
  border-color: rgba(214, 28, 35, 0.3);
}
.qt-prog-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.qt-prog-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1C2541;
  margin-bottom: 10px;
}
.qt-prog-card p {
  font-size: 0.88rem;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: 20px;
}
.qt-prog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #E2E8F0;
  padding-top: 16px;
}
.qt-prog-time {
  font-size: 0.78rem;
  color: #D61C23;
  font-weight: 700;
  background: #FFF0F1;
  padding: 4px 12px;
  border-radius: 100px;
}
.qt-prog-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  transition: all 0.2s;
  text-decoration: none;
}
.qt-prog-card:hover .qt-prog-arrow {
  background: #D61C23;
  color: #fff;
}

/* ── TẠI SAO CHỌN ── */
.qt-why-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.25s;
}
.qt-why-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
  border-color: rgba(255, 199, 0, 0.3);
}
.qt-why-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}
.qt-why-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.qt-why-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

/* ── TIN TỨC ── */
.qt-news-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  transition: transform 0.25s, box-shadow 0.25s;
}
.qt-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(214, 28, 35, 0.06);
}
.qt-news-thumb {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qt-news-card.featured .qt-news-thumb {
  aspect-ratio: 4 / 3;
  font-size: 4rem;
}
.qt-news-card.small .qt-news-thumb {
  aspect-ratio: 16 / 9;
  font-size: 2.8rem;
}
.qt-news-body {
  padding: 24px;
}
.qt-news-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #D61C23;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.qt-news-card h3 {
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 10px;
}
.qt-news-card.featured h3 { font-size: 1.25rem; }
.qt-news-card.small   h3 { font-size: 1rem; }
.qt-news-card h3 a {
  color: #0B132B;
  text-decoration: none;
  transition: color 0.2s;
}
.qt-news-card h3 a:hover { color: #D61C23; }
.qt-news-desc {
  font-size: 0.88rem;
  color: #64748B;
  line-height: 1.6;
  margin: 8px 0 12px;
}
.qt-news-meta {
  font-size: 0.78rem;
  color: #64748B;
  font-weight: 500;
}
.qt-news-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── CTA BANNER ── */
.qt-cta-btn {
  display: inline-block;
  padding: 15px 36px;
  border-radius: 12px;
  background: #FFC700;
  color: #0B132B;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.15s;
  white-space: nowrap;
}
.qt-cta-btn:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  color: #0B132B;
}

/* ── FONT ── */
.qt-hero-wrap,
.qt-ticker-wrap,
.qt-notice-col,
.qt-prog-card,
.qt-why-card,
.qt-news-card,
.qt-section-title,
.qt-section-label,
.qt-section-sub,
.qt-stat-box,
.qt-cta-btn {
  font-family: 'Be Vietnam Pro', sans-serif;
}

/* ── HERO GRADIENT (override Flatsome flat bg-color) ── */
.section:has(.qt-hero-inner) {
  background: linear-gradient(135deg, #7A0C10 0%, #D61C23 60%, #FF4D54 100%) !important;
}

/* ── FIX CLASSIC EDITOR BR & P TAG THỪA ── */
/* Classic Editor tự thêm <br> và <p></p> vào trong [ux_html] — ẩn đi */
.qt-hero-btns br,
.qt-notice-info br,
.qt-ticker br,
.qt-prog-card br,
.qt-why-card br,
.qt-news-body br,
.qt-stat-box br,
.qt-section-header br { display: none; }
/* Giữ <br> trong h1 title để xuống dòng đúng chỗ */
.qt-hero-title br { display: inline !important; }

.qt-hero-wrap p:empty,
.qt-hero-inner p:empty,
.qt-notice-col p:empty,
.qt-prog-card p:empty,
.qt-why-card p:empty,
.qt-news-card p:empty,
.qt-stat-grid p:empty,
.qt-section-header p:empty { display: none; }

/* ── FIX CLASSIC EDITOR P TAG MARGINS ── */
.qt-hero-wrap p,
.qt-ticker-wrap p,
.qt-notice-col p,
.qt-notice-list p,
.qt-notice-info p,
.qt-prog-card p,
.qt-why-card p,
.qt-news-card p,
.qt-news-body p,
.qt-stat-box p {
  margin: 0;
  padding: 0;
}
.qt-notice-list li p { margin: 0; }
.qt-notice-date p { margin: 0; line-height: 1; }
.qt-prog-card > p { margin-bottom: 20px; }
.qt-section-header p { margin: 0; }

/* ── SECTION PADDING OVERRIDE (Flatsome default = 80px !important) ── */
/* Giảm khoảng trắng các section chính */
#section_1497521703,
#section_847516201,
#section_669280557 {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .qt-hero-inner   { grid-template-columns: 1fr; }
  .qt-stat-grid    { display: none; }
  .qt-hero-title   { font-size: 2.2rem; }
}
