/* ========== HEADER ========== */
.header-container {
  display: flex;
  align-items: center;       /* Căn giữa theo chiều cao */
  justify-content: space-between;
  padding: 0 30px;
  background: #000;
  height: 60px;
  position: relative;
  z-index: 10;
}

/* Logo */
.logo {
  font-size: 26px;
  font-weight: bold;
  color: #fff;
  animation: blinkText 1s infinite;
  margin: 0;
  line-height: 1;
}
@keyframes blinkText {
  0%,100% { color: #fff; }
  50% { color: #FFD700; }
}

/* Menu */
.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.header-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 0;
  padding: 0;
}
.header-nav a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  padding: 8px 0;
}
.header-nav a:hover { color: #FFD700; }

/* Dropdown menu */
.nav > li { position: relative; }
.nav .sub {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #111;
  list-style: none;
  margin: 0; padding: 5px 0;
  width: 200px;
  z-index: 999;
}
.nav > li:hover > .sub { display: block; }
.nav .sub li { border-bottom: 1px solid #333; }
.nav .sub a {
  display: block; padding: 12px 15px;
  color: #fff; font-size: 14px; text-decoration: none;
}
.nav .sub a:hover { background: #222; }
.nav-item > .nav-link::after {
  content: " ▼"; font-size: 12px; margin-left: 5px; color: #fff;
}

.nav-item.no-arrow > .nav-link::after {
  content: none !important;
}

/* Nút bên phải */
.header-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-buttons .btn-vip-login,
.header-buttons .btn-huongdan {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  font-weight: bold;
}
.btn-vip-login { background: red; color: #fff !important; }
.btn-huongdan {
  background: gold; color: #000 !important;
  animation: blink 1s infinite;
}
@keyframes blink {
  0%,100% { background: gold; color: #000; }
  50% { background: orange; color: #fff; }
}

/* ========== CONTAINER WIDTH ========== */
.container {
  max-width: 1200px;   /* Giới hạn khổ A4 ngang */
  margin: 0 auto;      /* Căn giữa */
  padding: 0 15px;     /* khoảng cách lề */
}

/* ========== HERO SECTION ========== */
.hero-section {
  padding: 25px 0 50px 0;
  position: relative;
  z-index: 2;
}
.hero-section .container {
  max-width: 1200px;
}

.hero-section .row {
  --bs-gutter-x: 30px;  /* khoảng cách giữa cột */
}

/* Cột trái */
.hero-section .col-md-4 {
  padding: 0 15px;
}
.hero-section .col-md-4 .card {
  width: 100%;
}

/* Cột giữa */
.hero-section .col-md-4,
.hero-section .col-md-5,
.hero-section .col-md-3 {
  display: flex;
  flex-direction: column;
  gap: 20px;  
}

.hero-section .container-fluid {
  max-width: 1400px;   /* rộng hơn container mặc định */
  margin: 0 auto;      /* căn giữa toàn bộ */
  padding: 0 20px;     /* giữ khoảng cách nhỏ với mép màn hình */
}

/* Hero center column */
.hero-center {
  text-align: center;
  margin: 20px auto 0 auto;
  max-width: 100% !important;   /* để chiếm full 1/3 */
  padding: 0 20px;              /* giữ khoảng cách với 2 bên */
}
.hero-center h1 { font-size: 2.2rem; font-weight: bold; }
.hero-center .lead { font-size: 1.2rem; color: #555; }

/* Feature cards */
.feature-card {
  border-radius: 12px;
  transition: all .3s ease-in-out;
}
.feature-card h5 { font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 1rem; color: #555; }
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  border-color: #ffc107;
}

/* ========== TRA CỨU BOX ========== */
.tracuu-box {
  width: 100%; max-width: 500px; margin: 0 auto 30px;
  padding: 20px; background: #fff; border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,.1);
}
.tracuu-box input.form-control {
  text-align: center; font-size: 16px; padding: 12px;
}

/* Login box bên phải */
.login-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);

  width: 100%;          /* chiếm trọn col */
  max-width: 100%;      /* bỏ giới hạn 320px */
}
.login-box h4 {
  font-size: 20px; font-weight: bold; margin-bottom: 20px;
  text-align: center; color: #222;
}
.login-box input {
  width: 100%; padding: 12px; margin-bottom: 12px;
  border: 1px solid #ddd; border-radius: 6px; font-size: 14px;
}
.login-box button {
  width: 100%; padding: 12px; background: #e53935; border: none;
  border-radius: 6px; font-size: 16px; font-weight: bold; color: #fff;
  cursor: pointer; transition: background .3s ease;
}
.login-box button:hover { background: #c62828; }
.login-box .d-flex a { font-size: 14px; color: #007bff; }
.login-box .d-flex a:hover { text-decoration: underline; }

/* ========== MODAL ========== */
.contact-modal {
  display: none; position: fixed; z-index: 1000;
  left: 0; top: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center; align-items: center;
  overflow: auto; padding: 20px;
}

/* Form */
.contact-form .form-group { margin-bottom: 15px; text-align: left; }
.contact-form label { display: block; margin-bottom: 5px; font-weight: bold; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 10px; border: none;
  border-radius: 8px; background: #2a2a2a; color: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { border: 1px solid #f33; }
.btn-send {
  background: #f33; border: none; padding: 12px 20px; width: 100%;
  font-weight: bold; border-radius: 8px; cursor: pointer; transition: .3s;
}
.btn-send:hover { background: #ff5555; }

/* ========== ANIMATIONS ========== */
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* ========== FOOTER ========== */
footer {
  background: #000; color: #fff; text-align: center;
  padding: 5px 0; font-size: 14px; z-index: 3; position: relative;
}

/* ========== BACKGROUND + SNOW ========== */
body {
  margin: 0; padding: 0;
  background: url('images/snow-bg.png') no-repeat center top, #cceeff;
  background-size: cover;
}
body::before {
  content: ""; position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.6);
  z-index: 0;
}
#snow {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}
.content { position: relative; z-index: 2; }

.contact-modal {
  display: none; 
  position: fixed; 
  z-index: 1000;
  left: 0; top: 0; 
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center; 
  align-items: center;
}

.close-btn {
  position: absolute; 
  right: 20px; 
  top: 10px; 
  cursor: pointer;
  font-size: 24px;
}

/* Nội dung modal */
.contact-content {
  background: #1a0f1f;                /* đen tím than, sang trọng */
  color: #f0eaff;                     /* chữ sáng nhẹ */
  padding: 25px;
  border-radius: 12px;
  width: 600px;
  max-width: 95%;
  box-shadow: 0 0 25px rgba(155, 48, 255, 0.5); /* tím phát sáng */
  border: 2px solid #9932CC;
  position: relative;
}

/* Tiêu đề */
.contact-content h2 {
  background: linear-gradient(90deg, #4B0082, #9932CC); 
  color: #fff;
  padding: 12px;
  font-size: 20px;
  font-weight: bold;
  margin: -25px -25px 20px -25px;   /* ăn trọn viền trên */
  border-radius: 12px 12px 0 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

/* Nút dịch */
#btn-translate {
  background: #9932CC;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: all .3s ease;
}
#btn-translate:hover {
  background: #BA55D3; /* tím sáng hơn khi hover */
}

/* Overlay */
.contact-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Khung modal dịch */
.translate-modal-content {
  background: #1a1a1a; /* đen sang trọng */
  color: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 600px;
  max-width: 95%;
  box-shadow: 0 0 20px rgba(155, 50, 255, 0.6); /* ánh tím sang trọng */
  position: relative;
}

/* Tiêu đề */
.translate-modal-content h2 {
  text-align: center;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700; /* vàng kim nổi bật */
  text-shadow: 0 0 8px rgba(255,215,0,0.7);
}

/* Nút đóng */
.translate-modal-content .close-btn {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #fff;
}

/* Chọn ngôn ngữ */
.translate-modal-content .lang-select {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.translate-modal-content select,
.translate-modal-content textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #2a2a2a;
  color: #fff;
}

/* Nút đổi chiều */
#swap-lang {
  background: #FFD700;
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
}

/* Nút dịch */
.btn-translate {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: none;
  border-radius: 6px;
  background: #e53935;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.btn-translate:hover { background: #c62828; }

/* Khung kết quả */
#result-box {
  margin-top: 15px;
  padding: 12px;
  background: #2a2a2a;
  color: #fff;
  border-radius: 8px;
  min-height: 60px;
}
