/**
 * style.css - Cổng thông tin Phong trào thi đua “Sáng kiến mỗi ngày” trong ngành Công Thương năm 2026 &
 * Cuộc thi “Nhóm giải pháp Đổi mới sáng tạo - Chuyển đổi số ngành Công Thương”
 *
 * HỆ THỐNG THIẾT KẾ UI/UX CHUẨN BACKDROP LỄ PHÁT ĐỘNG 2026 (ROYAL TECH BLUE & ELECTRIC CYAN & GOLD):
 * 1. Bảng màu nhận diện theo Backdrop:
 *    - Xanh Hoàng Gia / Cobalt Chủ đạo: #091B5A / #17379E / #1D4ED8
 *    - Xanh Ánh Sáng Công Nghệ (Electric Cyan): #00D2FF / #38BDF8
 *    - Vàng Ánh Kim Điểm Nhấn (Amber Gold): #F59E0B / #FFE066
 *    - Nền Xanh Băng Sáng (Ice Blue Surface): #F0F6FF / #EFF6FF / #FFFFFF
 * 2. Quy chuẩn Typography nghiêm ngặt:
 *    - Font-size nhỏ nhất toàn trang = 14px (0.875rem). Tuyệt đối không có chữ < 14px.
 *    - Line-height đồng nhất = 1.5 trên toàn bộ phần tử.
 * 3. Mọi chỉ báo tiến trình đang chạy bắt buộc là hình tròn (border-radius: 50% !important).
 */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;1,400&display=swap');

:root {
  --tcct-primary-deep: #003ea8;
  --tcct-primary: #004FD3;
  --tcct-primary-bright: #004FD3;
  --tcct-accent-red: #e31c23;
  --tcct-accent-red-hover: #c5141b;
  --tcct-cyan: #004FD3;
  --tcct-gold: #e31c23;
  --tcct-gold-light: #ffe4e6;

  /* Brand Palette: Primary Blue #004FD3 & Accent Red #e31c23 — Zero Black Text */
  --tcct-red: #004FD3;
  --tcct-red-hover: #003ea8;
  --tcct-red-soft: #EEF5FF;
  --tcct-text-main: #004FD3;
  --tcct-text-body: #1E407C;
  --tcct-text-muted: #4A6A9C;
  --tcct-grey-200: #D6E4FF;
  --tcct-grey-100: #F5F9FF;
  --tcct-white: #ffffff;

  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   1. GLOBAL UNIFIED LINE-HEIGHT 1.5, MAX FONT-WEIGHT 500 & ZERO BLACK TEXT
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  line-height: 1.5 !important;
}

/* Enforce strict max font-weight: 500 across the entire website */
h1, h2, h3, h4, h5, h6,
strong, b, th, dt, label, button, summary,
.display-title,
.section-heading,
.font-medium,
.font-semibold,
.font-bold,
.font-extrabold,
.font-black {
  font-weight: 500 !important;
}

body, p, li, dd, td, input, select, textarea {
  font-weight: 400;
}

/* Zero Black Text: Map all dark/charcoal/zinc/slate utilities to Brand Blue #004FD3 & Blue-Slate #1E407C */
.text-black,
.text-zinc-950,
.text-slate-950,
.text-zinc-900,
.text-slate-900,
.text-\[\#091B5A\],
.text-\[\#061549\],
.text-\[\#0D277A\],
.text-\[\#17379E\],
.text-\[\#004FD3\] {
  color: #004FD3 !important;
}

.text-zinc-800,
.text-slate-800,
.text-zinc-700,
.text-slate-700 {
  color: #1E407C !important;
}

.text-zinc-600,
.text-slate-600,
.text-zinc-500,
.text-slate-500 {
  color: #3B5B92 !important;
}

.text-\[\#E11D24\],
.text-\[\#e31c23\] {
  color: #e31c23 !important;
}

/* Prevent text truncation ("còn cắt chữ") on titles, cards, badges, and buttons */
.truncate,
.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
}

/* Brand Blue & Red background overrides */
.bg-\[\#17379E\],
.bg-\[\#091B5A\],
.bg-\[\#061549\],
.bg-\[\#0D277A\],
.bg-\[\#004FD3\] {
  background: #004FD3 !important;
}
.bg-\[\#E11D24\],
.bg-\[\#e31c23\] {
  background: #e31c23 !important;
}
.hover\:text-\[\#E11D24\]:hover,
.hover\:text-\[\#e31c23\]:hover,
.group:hover .group-hover\:text-\[\#E11D24\],
.group:hover .group-hover\:text-\[\#e31c23\] {
  color: #e31c23 !important;
}
.hover\:text-\[\#17379E\]:hover,
.hover\:text-\[\#004FD3\]:hover,
.group:hover .group-hover\:text-\[\#17379E\],
.group:hover .group-hover\:text-\[\#004FD3\] {
  color: #004FD3 !important;
}
.bg-\[\#FEF2F2\],
.bg-\[\#EFF6FF\],
.hover\:bg-\[\#FEF2F2\]:hover,
.hover\:bg-\[\#EFF6FF\]:hover {
  background-color: #EEF5FF !important;
}
.bg-\[\#F4F4F6\],
.bg-\[\#F0F6FF\] {
  background-color: #F6F9FF !important;
}
.selection\:bg-\[\#E11D24\] *::selection,
.selection\:bg-\[\#E11D24\]::selection,
.selection\:bg-\[\#17379E\] *::selection,
.selection\:bg-\[\#17379E\]::selection,
.selection\:bg-\[\#004FD3\] *::selection,
.selection\:bg-\[\#004FD3\]::selection {
  background-color: #004FD3 !important;
  color: #ffffff !important;
}
.focus\:bg-\[\#E11D24\]:focus,
.focus\:bg-\[\#17379E\]:focus,
.focus\:bg-\[\#004FD3\]:focus {
  background-color: #004FD3 !important;
}

html {
  scroll-behavior: smooth;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5 !important;
  color: var(--tcct-text-body);
  background-color: var(--tcct-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5 !important;
  background-color: var(--tcct-white);
  color: var(--tcct-text-body);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #004FD3;
  font-weight: 500 !important;
  letter-spacing: -0.01em;
  line-height: 1.5 !important;
  margin: 0;
  text-wrap: pretty;
}

p, li, dd, dt, blockquote {
  line-height: 1.5 !important;
  text-wrap: pretty;
}

.display-title {
  font-size: clamp(1.625rem, 3.4vw, 2.5rem);
  font-weight: 500 !important;
  color: #004FD3;
  line-height: 1.5 !important;
  text-wrap: pretty;
}

.section-heading {
  font-size: clamp(1.375rem, 2.4vw, 1.95rem);
  font-weight: 500 !important;
  color: #004FD3;
  line-height: 1.5 !important;
  text-wrap: pretty;
}

/* Prevent any utility class from ever dropping below 14px (0.875rem) */
.text-xs,
small {
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
}

/* ==========================================================================
   2. SCROLL PROGRESS LINE & CIRCULAR INDICATORS
   ========================================================================== */
#tcct-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999;
  background-color: rgba(0, 79, 211, 0.12);
  pointer-events: none;
  transform: translateZ(0);
}

#tcct-scroll-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #004FD3 0%, #e31c23 100%);
  transform-origin: 0 50%;
  transform: scaleX(0);
  will-change: transform;
}

.sk-circular-pulse,
.sk-circular-dot,
.sk-circular-spinner,
.tcct-circular-spinner,
.pulse-dot {
  border-radius: 50% !important;
  aspect-ratio: 1 / 1;
  display: inline-block;
  flex-shrink: 0;
}

.sk-circular-pulse,
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #e31c23;
  position: relative;
}

.sk-circular-pulse::after,
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50% !important;
  background-color: rgba(227, 28, 35, 0.28);
  animation: tcctCircularPulse 1.8s infinite var(--ease-expo);
}

.sk-circular-pulse-white {
  background-color: #ffffff;
}

.sk-circular-pulse-white::after {
  background-color: rgba(255, 255, 255, 0.4);
}

.tcct-circular-spinner {
  width: 20px;
  height: 20px;
  border-radius: 50% !important;
  background: conic-gradient(from 0deg, transparent 20%, #ffffff 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  animation: tcctSpin 0.8s linear infinite;
}

.tcct-circular-spinner-red {
  width: 24px;
  height: 24px;
  border-radius: 50% !important;
  background: conic-gradient(from 0deg, transparent 20%, #e31c23 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  animation: tcctSpin 0.8s linear infinite;
}

@keyframes tcctSpin {
  to { transform: rotate(360deg); }
}

@keyframes tcctCircularPulse {
  0% { transform: scale(0.85); opacity: 0.9; }
  75% { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* ==========================================================================
   3. MINIMAL EDITORIAL HEADER & MOBILE DRAWER MENU (VINFUTURE STYLE)
   ========================================================================== */
.tcct-header {
  background-color: #ffffff;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  flex-shrink: 0;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: box-shadow 0.25s var(--ease-editorial);
}

.tcct-header.is-scrolled {
  box-shadow: 0 8px 24px -8px rgba(0, 79, 211, 0.1);
}

.tcct-header-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 640px) {
  .tcct-header-logo {
    height: 36px;
  }
}

.tcct-menubar-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.2rem;
  font-size: 0.875rem;
  font-weight: 500 !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.tcct-menubar-link:hover,
.tcct-menubar-link.active {
  background-color: #e31c23;
  color: #ffffff;
}

.tcct-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  font-size: 0.9375rem;
  font-weight: 500 !important;
  color: #004FD3;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.25s ease, background-color 0.25s ease;
  white-space: nowrap;
}

.tcct-nav-link:hover,
.tcct-nav-link.active {
  color: #e31c23;
  background-color: #FFF5F5;
}

/* Buttons - VinFuture Style (#e31c23 primary CTA & #004FD3 secondary CTA, font-weight: 500, 6px radius) */
.tcct-btn-red,
.btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
  box-sizing: border-box;
  background-color: #e31c23 !important;
  color: #ffffff !important;
  font-size: 0.875rem;
  font-weight: 500 !important;
  padding: 0.625rem 1.35rem;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid #e31c23;
  transition: transform 0.22s var(--ease-editorial), background-color 0.22s ease, box-shadow 0.22s ease;
}

@media (min-width: 640px) {
  .tcct-btn-red,
  .btn-red {
    font-size: 0.9375rem;
    padding: 0.7rem 1.5rem;
  }
}

.tcct-btn-red:hover,
.btn-red:hover {
  background-color: #c5141b !important;
  border-color: #c5141b;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(227, 28, 35, 0.35);
}

.tcct-btn-red:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.tcct-btn-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
  box-sizing: border-box;
  background-color: #004FD3 !important;
  color: #ffffff !important;
  font-size: 0.875rem;
  font-weight: 500 !important;
  padding: 0.625rem 1.35rem;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid #004FD3;
  transition: transform 0.22s var(--ease-editorial), background-color 0.22s ease;
}

.tcct-btn-blue:hover {
  background-color: #003ea8 !important;
  transform: translateY(-1px);
}

.tcct-btn-grey,
.tcct-btn-secondary,
.tcct-btn-dark,
.btn-charcoal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
  box-sizing: border-box;
  background-color: #ffffff;
  color: #004FD3 !important;
  font-size: 0.875rem;
  font-weight: 500 !important;
  padding: 0.625rem 1.3rem;
  border-radius: 6px;
  border: 1px solid #C9DCFF;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s var(--ease-editorial), background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

@media (min-width: 640px) {
  .tcct-btn-grey,
  .tcct-btn-secondary,
  .tcct-btn-dark,
  .btn-charcoal {
    font-size: 0.9375rem;
    padding: 0.7rem 1.45rem;
  }
}

.tcct-btn-grey:hover,
.tcct-btn-secondary:hover,
.tcct-btn-dark:hover,
.btn-charcoal:hover {
  background-color: #EEF5FF;
  border-color: #004FD3;
  color: #004FD3 !important;
  transform: translateY(-1px);
}

.tcct-btn-white,
.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
  box-sizing: border-box;
  background-color: #ffffff;
  color: #004FD3 !important;
  font-size: 0.875rem;
  font-weight: 500 !important;
  padding: 0.625rem 1.3rem;
  border-radius: 6px;
  border: 1px solid #D6E4FF;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s var(--ease-editorial), background-color 0.22s ease;
}

.tcct-btn-white:hover,
.btn-white:hover {
  background-color: #EEF5FF;
  border-color: #004FD3;
  transform: translateY(-1px);
}

.tcct-btn-outline-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
  box-sizing: border-box;
  background-color: #ffffff;
  color: #e31c23 !important;
  font-size: 0.875rem;
  font-weight: 500 !important;
  padding: 0.625rem 1.3rem;
  border-radius: 6px;
  border: 1px solid #e31c23;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s var(--ease-editorial), background-color 0.22s ease, color 0.22s ease;
}

.tcct-btn-red > span,
.btn-red > span,
.tcct-btn-blue > span,
.tcct-btn-grey > span,
.tcct-btn-secondary > span,
.tcct-btn-dark > span,
.btn-charcoal > span,
.tcct-btn-white > span,
.btn-white > span,
.tcct-btn-outline-red > span {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.tcct-btn-red.whitespace-nowrap,
.btn-red.whitespace-nowrap,
.tcct-btn-blue.whitespace-nowrap,
.tcct-btn-grey.whitespace-nowrap,
.tcct-btn-secondary.whitespace-nowrap,
.tcct-btn-dark.whitespace-nowrap,
.btn-charcoal.whitespace-nowrap,
.tcct-btn-white.whitespace-nowrap,
.btn-white.whitespace-nowrap,
.tcct-btn-outline-red.whitespace-nowrap {
  white-space: nowrap;
  flex-shrink: 0;
}

.w-full.tcct-btn-red,
.w-full.btn-red,
.w-full.tcct-btn-blue,
.w-full.tcct-btn-grey,
.w-full.tcct-btn-secondary,
.w-full.tcct-btn-white,
.w-full.tcct-btn-outline-red {
  display: flex;
  width: 100%;
  white-space: normal !important;
}

.tcct-btn-outline-red:hover {
  background-color: #e31c23;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   4. VINFUTURE PRIZE & REPO 2026 DESIGN SYSTEM ARCHITECTURE
   ========================================================================== */
.vf-countdown-bar {
  background-color: #004FD3;
  color: #ffffff;
  width: 100%;
  padding: 1.35rem 0;
}

.vf-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  font-weight: 500 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e31c23 !important;
}

.vf-kicker::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50% !important;
  background-color: #e31c23;
  flex-shrink: 0;
}

.vf-prize-display {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 500 !important;
  color: #004FD3 !important;
  letter-spacing: -0.02em;
  line-height: 1.5 !important;
}

.vf-prize-subdisplay {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500 !important;
  color: #004FD3 !important;
  letter-spacing: -0.015em;
  line-height: 1.5 !important;
}

.vf-open-divider {
  border-top: 1px solid #DCE8FF;
}

.curtain-reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.65s var(--ease-editorial), transform 0.65s var(--ease-editorial);
  will-change: opacity, transform;
}

.curtain-reveal.is-inview {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.motion-stagger > * {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.55s var(--ease-editorial), transform 0.55s var(--ease-editorial);
}

.motion-stagger.is-inview > *:nth-child(1) { transition-delay: 0.04s; opacity: 1; transform: translate3d(0, 0, 0); }
.motion-stagger.is-inview > *:nth-child(2) { transition-delay: 0.10s; opacity: 1; transform: translate3d(0, 0, 0); }
.motion-stagger.is-inview > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: translate3d(0, 0, 0); }
.motion-stagger.is-inview > *:nth-child(4) { transition-delay: 0.22s; opacity: 1; transform: translate3d(0, 0, 0); }
.motion-stagger.is-inview > *:nth-child(n+5) { transition-delay: 0.28s; opacity: 1; transform: translate3d(0, 0, 0); }

@media (prefers-reduced-motion: reduce) {
  .curtain-reveal,
  .motion-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Pinned Split-Screen Scrollytelling */
.pinned-split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.pinned-split-section > * {
  min-width: 0;
}

@media (min-width: 1024px) {
  .pinned-split-section {
    grid-template-columns: minmax(0, 3.8fr) minmax(0, 8.2fr);
    gap: 3rem;
  }
  .pinned-left-panel {
    position: sticky;
    top: 6rem;
  }
}

@media (min-width: 1280px) {
  .pinned-left-panel {
    top: 9.5rem;
  }
}

.scrolly-chapter-index,
.chapter-number {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 500 !important;
  letter-spacing: -0.02em;
  color: #004FD3;
  transition: transform 0.35s var(--ease-editorial), opacity 0.3s ease;
}

.scrolly-nav-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500 !important;
  color: #1E407C;
  background-color: #F5F9FF;
  border: 1px solid #DCE8FF;
  transition: all 0.25s var(--ease-editorial);
  text-decoration: none;
}

.scrolly-nav-pill:hover {
  color: #004FD3;
  background-color: #EEF5FF;
  border-color: #004FD3;
}

.scrolly-nav-pill.active {
  background-color: #004FD3;
  border-color: #004FD3;
  color: #ffffff;
}

.scrolly-nav-pill.active .scrolly-dot {
  background-color: #ffffff;
}

/* ==========================================================================
   5. MODERN CLEAN CARD ENCLOSURE & SURFACES (2026 REPO STANDARD)
   ========================================================================== */
.surface-white,
.editorial-plane-white {
  background-color: #ffffff !important;
  color: #1E407C;
  border: 1px solid #DCE8FF !important;
  border-radius: 12px !important;
  padding: 1.5rem !important;
  box-shadow: 0 4px 20px -4px rgba(0, 79, 211, 0.05);
}

@media (min-width: 640px) {
  .editorial-plane-white {
    padding: 1.75rem 2rem !important;
  }
}

.surface-grey {
  background-color: #F6F9FF;
  color: #1E407C;
}

.editorial-plane-grey,
.editorial-plane-dark,
.surface-charcoal {
  background-color: #F5F9FF !important;
  color: #1E407C;
  border: 1px solid #DCE8FF !important;
  border-radius: 12px !important;
  padding: 1.5rem !important;
}

@media (min-width: 640px) {
  .editorial-plane-grey,
  .editorial-plane-dark,
  .surface-charcoal {
    padding: 1.75rem 2rem !important;
  }
}

.surface-red,
.editorial-plane-red,
.editorial-plane-blue {
  background-color: #004FD3 !important;
  color: #ffffff !important;
  border: 1px solid #004FD3 !important;
  border-radius: 12px !important;
  padding: 1.5rem !important;
}

@media (min-width: 640px) {
  .surface-red,
  .editorial-plane-red,
  .editorial-plane-blue {
    padding: 1.75rem 2rem !important;
  }
}

/* Clean full-enclosure item card with proper padding (Never 0px horizontal padding!) */
.editorial-item {
  padding: 1.15rem 1.35rem !important;
  border-radius: 10px !important;
  background-color: #F8FBFF;
  border: 1px solid #E2ECFF !important;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.editorial-item.bg-white {
  background-color: #ffffff !important;
}

.editorial-item:hover {
  background-color: #F0F6FF;
  border-color: #C9DCFF !important;
}

.editorial-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500 !important;
  color: #e31c23;
  background-color: #FFF2F2;
  border: 1px solid #FFD6D6;
  padding: 0.2rem 0.7rem;
  border-radius: 6px;
  flex-shrink: 0;
  white-space: nowrap !important;
}

/* ==========================================================================
   6. SLIDING PILL TAB SWITCHER (FOR 3 FORMS)
   ========================================================================== */
.sliding-tabs-bar {
  position: relative;
  display: grid;
  background-color: #F4F8FF;
  padding: 0.35rem;
  border-radius: 8px;
  gap: 0.35rem;
}

.sliding-tab-btn {
  position: relative;
  z-index: 2;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  background: transparent;
  color: #1E407C;
  font-size: 0.875rem;
  font-weight: 500 !important;
  transition: background-color 0.25s ease, color 0.25s ease;
}

@media (min-width: 640px) {
  .sliding-tab-btn {
    padding: 1rem 1.2rem;
  }
}

.sliding-tab-btn.active {
  background: #004FD3;
  color: #ffffff;
}

.sliding-tab-btn:not(.active):hover {
  background-color: #ffffff;
  color: #004FD3;
}

/* ==========================================================================
   7. FORM INPUTS & BADGES (MIN 14PX, NO TEXT DROP IN PILLS)
   ========================================================================== */
.tcct-input,
.tcct-select,
.tcct-textarea {
  width: 100%;
  background-color: #F7FAFF;
  color: #1E407C;
  border: 1px solid #CFE0FF;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 400;
  font-family: inherit;
  outline: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tcct-input:focus,
.tcct-select:focus,
.tcct-textarea:focus {
  background-color: #ffffff;
  border-color: #004FD3;
  box-shadow: 0 0 0 3px rgba(0, 79, 211, 0.12);
}

.tcct-input-white {
  background-color: #ffffff;
}

.tcct-otp-input {
  width: 100%;
  background-color: #F5F9FF;
  color: #004FD3;
  border: 1px solid #C9DCFF;
  border-radius: 8px;
  padding: 0.95rem 1.25rem;
  font-size: 1.5rem;
  font-weight: 500 !important;
  letter-spacing: 0.35em;
  text-align: center;
  outline: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.tcct-otp-input:focus {
  background-color: #ffffff;
  border-color: #004FD3;
  box-shadow: 0 0 0 3px rgba(0, 79, 211, 0.18);
}

/* Tag / Kicker: Clean VinFuture uppercase red kicker */
.tcct-tag,
.editorial-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0;
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 500 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: transparent;
  color: #e31c23 !important;
  max-width: 100%;
}

.tcct-tag-red {
  background-color: transparent;
  color: #e31c23 !important;
}

.tcct-tag-dark,
.tcct-tag-grey {
  background-color: transparent;
  color: #004FD3 !important;
}

/* ==========================================================================
   8. HERO SLIDESHOW (HIGH VIEWPORT, COVER + CENTER) & INTRO MEDIA FRAME
   ========================================================================== */
.tcct-hero-viewport {
  position: relative;
  width: 100%;
  height: 300px;
  min-height: 300px;
  max-height: 300px;
  overflow: hidden;
  background: radial-gradient(circle at 25% 30%, #004FD3 0%, #003594 55%, #001F5C 100%);
}

@media (min-width: 640px) {
  .tcct-hero-viewport {
    height: 450px;
    min-height: 450px;
    max-height: 450px;
  }
}

@media (min-width: 1024px) {
  .tcct-hero-viewport {
    height: 600px;
    min-height: 600px;
    max-height: 600px;
  }
}

@media (min-width: 1280px) {
  .tcct-hero-viewport {
    height: 660px;
    min-height: 660px;
    max-height: 660px;
  }
}

.tcct-hero-viewport .hero-slide-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: opacity 0.45s ease;
}

.tcct-hero-viewport .hero-slide-item img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.tcct-intro-media-box {
  position: relative;
  width: 100%;
  height: 240px;
  min-height: 240px;
  max-height: 240px;
  overflow: hidden;
  border-radius: 10px;
  background: #004FD3;
}

@media (min-width: 640px) {
  .tcct-intro-media-box {
    height: 320px;
    min-height: 320px;
    max-height: 320px;
    border-radius: 12px;
  }
}

@media (min-width: 1024px) {
  .tcct-intro-media-box {
    height: 350px;
    min-height: 350px;
    max-height: 350px;
  }
  .intro-tab-panel {
    min-height: 340px;
  }
}

.tcct-intro-media-box img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* ==========================================================================
   9. 2-TASK GATEWAY CARDS & HYBRID FORM UPLOADER (ONLINE vs PDF UPLOAD)
   ========================================================================== */
.tcct-task-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  width: 100%;
  padding: 1.35rem 1.5rem;
  border-radius: 8px;
  background-color: #ffffff;
  color: #004FD3;
  border: 1px solid #D6E4FF;
  cursor: pointer;
  transition: all 0.25s var(--ease-editorial);
}

@media (min-width: 640px) {
  .tcct-task-card {
    padding: 1.5rem 1.75rem;
  }
}

.tcct-task-card:hover {
  border-color: #004FD3;
  background-color: #F7FAFF;
}

.tcct-task-card.active {
  background: #004FD3;
  border-color: #004FD3;
  color: #ffffff;
}

.tcct-task-card.active .tcct-task-badge {
  background-color: #e31c23;
  color: #ffffff;
}

.tcct-task-card:not(.active) .tcct-task-badge {
  background-color: #EEF5FF;
  color: #004FD3;
}

.tcct-task-card.active .tcct-task-desc,
.tcct-task-card.active .tcct-task-meta {
  color: rgba(255, 255, 255, 0.92);
}

.tcct-task-card:not(.active) .tcct-task-desc {
  color: #2A4B84;
}

.tcct-task-card:not(.active) .tcct-task-meta {
  color: #e31c23;
}

/* Sub-selector for Mẫu 01 vs Mẫu 02 inside Nhiệm vụ 1 */
.tcct-subform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 500 !important;
  cursor: pointer;
  background-color: #ffffff;
  color: #004FD3;
  border: 1px solid #C9DCFF;
  transition: all 0.22s ease;
}

.tcct-subform-pill:hover {
  background-color: #EEF5FF;
  border-color: #004FD3;
  color: #004FD3;
}

.tcct-subform-pill.active {
  background: #e31c23;
  border-color: #e31c23;
  color: #ffffff;
}

/* Hybrid Submission Mode Switcher (Online Form vs Upload PDF/DOCX) */
.tcct-mode-switcher {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  background-color: #EEF5FF;
  padding: 0.35rem;
  border-radius: 8px;
}

@media (min-width: 640px) {
  .tcct-mode-switcher {
    grid-template-columns: 1fr 1fr;
  }
}

.tcct-mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500 !important;
  cursor: pointer;
  background: transparent;
  color: #1E407C;
  transition: all 0.22s ease;
}

.tcct-mode-btn.active {
  background: #004FD3;
  color: #ffffff;
}

.tcct-mode-btn:not(.active):hover {
  background-color: #ffffff;
  color: #004FD3;
}

/* Drag and Drop PDF/DOCX Zone */
.tcct-pdf-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  border: 1px dashed #93B8FF;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.22s ease;
}

.tcct-pdf-dropzone:hover,
.tcct-pdf-dropzone.is-dragover {
  background-color: #F4F8FF;
  border-color: #004FD3;
}

.tcct-pdf-dropzone.has-file {
  background-color: #F0FDF4;
}

/* ==========================================================================
   10. FULL-VIEWPORT SLIDE-OVER FORM DRAWER & CONFIRMATION DIALOG
   ========================================================================== */
.tcct-drawer-root {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 9990 !important;
}

.tcct-drawer-root.hidden {
  display: none !important;
}

.tcct-drawer-backdrop {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background-color: rgba(0, 42, 118, 0.55) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9991 !important;
}

.tcct-drawer-panel {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: 920px !important;
  height: 100vh !important;
  height: 100dvh !important;
  background-color: #ffffff !important;
  box-shadow: -20px 0 50px -10px rgba(0, 42, 118, 0.28) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  z-index: 9992 !important;
  animation: tcctDrawerSlideIn 0.28s var(--ease-expo);
}

@keyframes tcctDrawerSlideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.tcct-drawer-header {
  flex-shrink: 0;
  padding: 1.15rem 1.5rem;
  background: #F4F8FF;
  border-bottom: 1px solid #D6E4FF;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 640px) {
  .tcct-drawer-header {
    padding: 1.35rem 2rem;
    align-items: center;
  }
}

.tcct-drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem 1.5rem 2.5rem;
}

@media (min-width: 640px) {
  .tcct-drawer-body {
    padding: 1.75rem 2rem 3rem;
  }
}

.tcct-drawer-confirm-overlay {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 9995 !important;
  background-color: rgba(0, 42, 118, 0.52) !important;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.tcct-drawer-confirm-overlay.hidden {
  display: none !important;
}

#tcct-otp-modal {
  z-index: 10020 !important;
}

#tcct-toast-wrap {
  z-index: 10030 !important;
}

#tcct-global-process-overlay {
  z-index: 10050 !important;
}

/* ==========================================================================
   Contest Fields OwlCarousel (Equal-height cards + Circular controls/dots)
   ========================================================================== */
.tcct-contest-fields-slider:not(.owl-loaded) {
  display: grid !important;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .tcct-contest-fields-slider:not(.owl-loaded) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .tcct-contest-fields-slider:not(.owl-loaded) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tcct-contest-fields-slider .owl-stage {
  display: flex;
  align-items: stretch;
}

.tcct-contest-fields-slider .owl-stage::after {
  display: none !important;
}

.tcct-contest-fields-slider .owl-item {
  display: flex;
  height: auto;
  float: none;
}

.tcct-contest-fields-slider .tcct-contest-field-slide {
  display: flex;
  width: 100%;
}

.tcct-contest-fields-slider .owl-dots {
  margin-top: 1.25rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.tcct-contest-fields-slider .owl-dots.disabled {
  display: none !important;
}

.tcct-contest-fields-slider .owl-dots .owl-dot {
  border-radius: 50% !important;
  padding: 2px !important;
}

.tcct-contest-fields-slider .owl-dots .owl-dot span {
  width: 9px !important;
  height: 9px !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background-color: #C9DCFF !important;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.tcct-contest-fields-slider .owl-dots .owl-dot.active span,
.tcct-contest-fields-slider .owl-dots .owl-dot:hover span {
  background-color: #004FD3 !important;
  border-radius: 50% !important;
}

.tcct-contest-fields-slider .owl-dots .owl-dot.active span {
  transform: scale(1.25);
}
