/* -------------------------------------------------------
   BANNER / HERO SECTION  —  Styles/banner.css
   Ðu?c dùng b?i Vn/default.aspx (và En/default.aspx)
   Google Fonts (Be Vietnam Pro + Fraunces) du?c load
   riêng trong head c?a default.aspx
   ------------------------------------------------------- */

/* --- CSS VARIABLES (scoped trong .hero) --- */
.hero {
  --g:       #0A6B3B;
  --g-dark:  #075430;
  --g-mid:   #0D8A4C;
  --g-pale:  #C5E8D4;
  --g-mist:  #52B788;
  --g-white: #FFFFFF;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 73px); /* 73px = chi?u cao header */
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 64px 48px 80px;
  overflow: hidden;
  background: url(/Design/background-bn.jpg);
  color: #fff;
  font-family: 'Be Vietnam Pro', 'SegoeUI', sans-serif;
}

/* --- DECORATIVE BACKGROUND --- */
.hero-deco {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
}
.hero-deco-circle {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
  animation: heroSpinSlow linear infinite;
}
.hero-deco-circle:nth-child(1) { width: 600px; height: 600px; top: -200px; right: -100px; animation-duration: 60s; }
.hero-deco-circle:nth-child(2) { width: 380px; height: 380px; top: -40px;  right: 80px;  animation-duration: 40s; animation-direction: reverse; }
.hero-deco-circle:nth-child(3) { width: 180px; height: 180px; bottom: 40px; left: 60px;  animation-duration: 30s; border-color: rgba(255,255,255,0.07); }
.hero-deco-dot {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.hero-deco-dot:nth-child(4) { top: 20%; left: 12%; animation: heroFloat 4s ease-in-out infinite; }
.hero-deco-dot:nth-child(5) { top: 60%; left:  6%; animation: heroFloat 5s ease-in-out 1s  infinite; }
.hero-deco-dot:nth-child(6) { top: 80%; left: 30%; animation: heroFloat 6s ease-in-out 2s  infinite; }

/* --- KEYFRAMES --- */
@keyframes heroSpinSlow   { to { transform: rotate(360deg); } }
@keyframes heroFloat      { 0%,100%{ transform: translateY(0); }  50%{ transform: translateY(-8px); } }
@keyframes heroFadeUp     { from{ opacity:0; transform: translateY(24px); }  to{ opacity:1; transform: translateY(0); } }
@keyframes heroFadeIn     { from{ opacity:0; }  to{ opacity:1; } }
@keyframes heroSlideInRight { from{ opacity:0; transform: translateX(32px); }  to{ opacity:1; transform: translateX(0); } }
@keyframes heroPulse      { 0%,100%{ opacity:1; transform: scale(1); }  50%{ opacity:0.6; transform: scale(0.8); } }
@keyframes heroScrollLine {
  0%  { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100%{ transform: scaleY(0); transform-origin: bottom; }
}

/* --- HERO LEFT --- */
.hero-left { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 99px;
  font-size: 11px; font-weight: 600; color: var(--g-pale);
  letter-spacing: 0.07em; text-transform: uppercase;
  margin-bottom: 22px;
  animation: heroFadeUp 0.6s 0.2s ease both;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--g-mist);
  animation: heroPulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: 'Fraunces', 'SegoeUI', serif;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--g-white);
  margin-bottom: 20px;font-size:45px;
  animation: heroFadeUp 0.7s 0.3s ease both;
}
.hero-title em {
  font-style: italic;
  color: var(--g-pale);
  font-weight: 300;
}

.hero-desc {
  font-size: 15px; font-weight: 400;
  color: rgba(255,255,255,0.65);
  line-height: 1.75; max-width: 460px;
  margin-bottom: 32px;
  animation: heroFadeUp 0.7s 0.4s ease both;
}

.hero-buttons {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 32px;
  animation: heroFadeUp 0.7s 0.5s ease both;
}

/* --- BUTTONS (prefix bnr- tránh xung d?t Bootstrap) --- */
.bnr-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px;
  font-family: 'Be Vietnam Pro', 'SegoeUI', sans-serif;
  font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  position: relative; overflow: hidden;
}
.bnr-btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0; transition: opacity 0.2s;
}
.bnr-btn:hover::before { opacity: 1; }
.bnr-btn:hover         { transform: translateY(-2px); text-decoration: none; }
.bnr-btn:active        { transform: translateY(0); }

.bnr-btn-primary {
  background: #FFFFFF; color: #0A6B3B;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.bnr-btn-primary:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.2); color: #0A6B3B; }

.bnr-btn-secondary {
  background:var(--main);
  border: 1px solid rgba(255,255,255,0.2);
  color: #FFFFFF;
}
.bnr-btn-secondary:hover { color: #FFFFFF; }

.bnr-btn-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  transition: transform 0.3s;
}
.bnr-btn:hover .bnr-btn-arrow { transform: translateX(4px); }

/* --- CHIPS --- */
.hero-chips {
  display: flex; gap: 8px; flex-wrap: wrap;
  animation: heroFadeUp 0.7s 0.6s ease both;
}
.hero-chip {
  padding: 5px 13px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 99px;
  font-size: 16px; font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  cursor: default;
}
.hero-chip:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.25);
  color: #FFFFFF;
}

/* --- HERO RIGHT: SLIDESHOW --- */
.hero-right {
  position: relative; z-index: 2;
  animation: heroSlideInRight 0.8s 0.4s ease both;
}

.hero-slideshow {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  cursor: grab;
  user-select: none;
  transition: box-shadow 0.3s;
}
.hero-slideshow:hover  { box-shadow: 0 32px 72px rgba(0,0,0,0.38); }
.hero-slideshow:active { cursor: grabbing; }

.hero-slides-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.hero-slide-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
.hero-slide:hover .hero-slide-img { transform: scale(1.03); }

.hero-slide-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
}
.hero-slide-placeholder svg { opacity: 0.25; }
.hero-slide-placeholder-text { font-size: 12px; color: rgba(255,255,255,0.35); font-weight: 400; }

.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(5,50,28,0.5)  70%,
    rgba(5,50,28,0.85) 100%
  );
  pointer-events: none;
}

.hero-slide-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 20px 16px; z-index: 2;
}

.hero-slide-tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 99px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 10px; font-weight: 600;
  color: #FFFFFF; margin-bottom: 8px;
  backdrop-filter: blur(4px);
}
.hero-slide-tag.done   { background: rgba(82,183,136,0.25); border-color: rgba(82,183,136,0.4); }
.hero-slide-tag.active { background: rgba(255,193,7,0.2);   border-color: rgba(255,193,7,0.4); color: #FFD54F; }

.hero-slide-title {
  font-family: 'Be Vietnam Pro', 'SegoeUI', sans-serif;
  font-size: 18px; font-weight: 700;
  color: #FFFFFF; line-height: 1.35; margin-bottom: 4px;
}
.hero-slide-meta { font-size: 15px; color: rgba(255,255,255,0.6); font-weight: 400; }

/* Arrow controls */
.hero-slide-controls {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 0 12px;
  pointer-events: none;
}
.hero-slide-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; pointer-events: all;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
  opacity: 0; color: #FFFFFF;
}
.hero-slideshow:hover .hero-slide-btn  { opacity: 1; }
.hero-slide-btn:hover                  { background: rgba(255,255,255,0.28); transform: scale(1.1); }
.hero-slide-btn:active                 { transform: scale(0.95); }

/* Bottom bar */
.hero-slide-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  backdrop-filter: blur(12px);
  background:var(--main-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative; z-index: 3;
}
.hero-slide-dots { display: flex; align-items: center; gap: 6px; }
.hero-slide-dot {
  height: 6px; width: 6px; border-radius: 99px;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: width 0.4s ease, background 0.3s;
}
.hero-slide-dot.active { width: 22px; background: #FFFFFF; }

.hero-slide-counter { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; }
.hero-slide-counter span { color: #FFFFFF; }

/* Progress bar */
.hero-slide-progress {
  position: absolute; top: 0; left: 0;
  height: 2px; background: #52B788;
  width: 0; transition: none; z-index: 5;
}
.hero-slide-progress.animating { transition: width 4s linear; width: 100%; }

/* Slide background gradients */
.hero-slide-bg-1 { background: linear-gradient(135deg, #063d22 0%, #0a5c33 100%); }
.hero-slide-bg-2 { background: linear-gradient(135deg, #073324 0%, #0d7040 100%); }
.hero-slide-bg-3 { background: linear-gradient(135deg, #04291a 0%, #086b38 100%); }
.hero-slide-bg-4 { background: linear-gradient(135deg, #052c1d 0%, #0b4f2c 100%); }

/* --- SCROLL HINT --- */
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0.4; animation: heroFadeIn 1s 1.5s ease both;
  z-index: 5;
}
.scroll-hint span {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.scroll-hint-line {
  width: 1px; height: 32px;
  background: rgba(255,255,255,0.4);
  animation: heroScrollLine 1.5s ease-in-out infinite;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 24px 60px;
    gap: 40px;
    min-height: auto;
  }
  .hero-title { font-size: clamp(28px, 6vw, 40px); }
  .hero-desc  { max-width: 100%; }
  .hero-right { order: -1; }
}
@media (max-width: 640px) {
  .hero         { padding: 32px 16px 48px; gap: 32px; }
  .hero-title   { font-size: 26px; }
  .hero-desc    { font-size: 14px;}
  .hero-slide-meta{height:32px;}
  .bnr-btn      { padding: 11px 18px; font-size: 13px; }
  .hero-chips   { gap: 6px; }
  .hero-chip    { font-size: 10px; padding: 4px 10px; }
}
  