/* Font nhẹ nhàng, hiện đại */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
html, body {
  background-color: #CDB4DB; /* hoặc màu nền header/banner của chị */
}
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #333;
  background: url('1111.jpg') no-repeat center center;
  background-size: cover;
}
/* Header */
header {
  background-color: #FF6B35;
  color: white;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Logo */
.logo {
  height: 150px;
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(1.05);
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  padding: 0;
  margin: 0;
}
nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}
nav ul li a:hover {
  opacity: 0.8;
}

/* Nội dung chính */
main {
  padding: 40px 20px;
  background-color: rgba(255, 255, 255, 0.8);
  min-height: 400px;
  border-radius: 8px;
}

/* Footer */
footer {
  background-color: #CDB4DB;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
}

/* --- Navigation cấp 1 --- */
nav > ul {
  list-style: none;
  display: flex;
  gap: 25px;
  padding: 0;
  margin: 0;
  align-items: center;
}

nav > ul > li {
  position: relative;
}

nav > ul > li > a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 6px;
  display: inline-block;
  transition: opacity 0.3s;
}

nav > ul > li > a:hover {
  opacity: 0.8;
}

/* ==== FIXED BANNER GỌN & KHÔNG CHẠY ==== */
.banner {
  position: relative;
  width: 100%;
  height: 260px; /* ✅ Chiều cao gọn gàng, không phình */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  background-color: #000; /* fallback nếu ảnh load chậm */
}

.banner img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover; /* ✅ Fill toàn khung, không méo */
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none; /* tránh lỗi hover */
}

.banner h2 {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: clamp(1.4rem, 2vw + 0.5rem, 2rem);
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  width: 90%;
  line-height: 1.4;
}

/* ✅ Trên mobile: banner thấp hơn */
@media (max-width: 768px) {
  .banner {
    height: 180px;
  }
  .banner h2 {
    font-size: 1.2rem;
  }
}

/* ✅ Trên desktop lớn: banner nhỉnh hơn 1 chút */
@media (min-width: 1200px) {
  .banner {
    height: 300px;
  }
}

/* ====== PHẦN TEST ====== */
.tests {
  padding: 40px;
  background-color: #ffC8DD;
  font-family: 'Inter', sans-serif;
}

.tests h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #2c2c2c;
}

.test-box {
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.test-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
}

.test-box h3 {
  color: #b33344;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.test-box ul {
  list-style: none;
  padding: 0;
}

.test-box li {
  margin: 8px 0;
}

.test-box a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.test-box a:hover {
  color: #b30000;
  text-decoration: underline;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #FF6B35;
  color: #fff;
  padding: 15px 0 10px;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

.footer-column h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  border-bottom: 2px solid #fff;
  display: inline-block;
  padding-bottom: 4px;
  color: #fff;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin: 8px 0;
}

.footer-column a,
.footer-column p {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.6;
}

.footer-column a:hover {
  color: #FFD700;
  text-decoration: none;
}

/* Logo */
.footer-logo {
  width: 150px;
  margin-bottom: 10px;
  display: block;
}

/* ==== Social icons ==== */
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

.social-links a {
  font-size: 26px;
  color: #fff;
  transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
  color: #FFD700;
  transform: scale(1.15);
}

/* ==== Liên kết phụ ==== */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 6px 0;
}

.footer-links a {
  color: #fff;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #FFD700;
}

/* ==== Dòng cuối footer ==== */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 10px;
  opacity: 0.9;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  nav ul {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
  }
  .logo {
    height: 45px;
    margin-bottom: 10px;
  }
  main {
    padding: 15px;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 14px;
  }
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  nav ul li {
    width: 100%;
    text-align: center;
  }
  nav ul li a {
    display: block;
    padding: 10px 0;
  }
  main {
    padding: 10px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .social-links {
    justify-content: center;
  }
}
/* Nút toggle menu */
.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 25px;
    z-index: 1001;
  }

  .menu-toggle span {
    display: block;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: 0.3s;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .navbar ul {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 15px 0;
    z-index: 1000;
  }

  .navbar ul.show {
    display: flex;
  }

  .navbar ul li a {
    color: #A3282D;
    padding: 12px 0;
    font-weight: 600;
    width: 100%;
    text-align: center;
  }

  .navbar ul li a:hover {
    color: #7b1b23;
    background: rgba(163,40,45,0.1);
  }
}


.dropdown-content {
  display: none;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #FFCC99;
  min-width: 200px;
  border-radius: 8px;
  z-index: 1000;
  transition: opacity 0.25s ease;
}

.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
}

.dropdown-content li a {
  display: block;
  padding: 10px 16px;
  color: white;
  text-align: left;
}

.dropdown-content li a:hover {
  background-color: #a11c1c;
}

/* Cho mobile toggle */
.navbar ul.show {
  display: block;
  flex-direction: column;
}


/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .home-boxes {
    flex-direction: column; /* xếp dọc khi màn hình nhỏ */
  }

  .home-boxes .box {
    flex: 1 1 100%; /* full chiều rộng */
  }
}
body {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

body.loaded {
  opacity: 1;
}

.home-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 20px 40px;
}

/* Box đặc biệt: nằm trên cùng, dài ngang, nổi bật */
.content-box.special {
  background: linear-gradient(135deg, #ffd6e8, #ffeaf3);
  border: 2px solid #d63384;
  box-shadow: 0 10px 25px rgba(214,51,132,0.25);
  border-radius: 24px;
  padding: 36px 60px;
  max-width: 1000px;
  width: 100%;
  text-align: center;
  transform: scale(1.02);
}

.content-box.special h2 {
  color: #d63384;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.content-box.special p {
  color: #5a0039;
  font-size: 1.05rem;
}

.special-btn {
  background-color: #d63384;
}
.special-btn:hover {
  background-color: #b32d6f;
}

/* Hàng 2 box nhỏ phía dưới */
.box-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 60px;
  width: 100%;
  max-width: 1000px;
  margin-top: 16px; /* thêm khoảng cách phía trên */
}

.box-row .content-box {
  background-color: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  padding: 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1 1 320px;
  max-width: 320px;
  flex: 1 1 340px; /* 👈 hơi nới nhẹ chiều rộng để cân */
  max-width: 360px; /* giúp box không dính nhau */
}

.box-row .content-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.content-box h2 {
  color: #8b0000;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.content-box p {
  color: #333;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.btn {
  background-color: #8b0000;
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}
.btn:hover {
  background-color: #a11c1c;
}

/* Responsive */
@media (max-width: 900px) {
  .content-box.special {
    padding: 28px;
  }
  .box-row {
    flex-direction: column;
    align-items: center;
  }
  .box-row .content-box {
    max-width: 90%;
  }
}
.test-grid {
  padding: 40px 20px;
  max-width: 1100px;
  margin: auto;
  background-color: #FFCC99;
  border-radius: 10px;
  font-family: Arial, sans-serif;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: #8b0000;
  margin-bottom: 10px;
}

.section-desc {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 30px;
  color: #333;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.test-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.test-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.test-card h3 {
  font-size: 1.3rem;
  color: #d63384;
  margin-bottom: 12px;
}

.test-card ul {
  padding-left: 0;
  list-style: none;
}

.test-card li {
  margin-bottom: 8px;
}

.test-card a {
  color: #8b0000;
  text-decoration: none;
  font-weight: 600;
}

.test-card a:hover {
  text-decoration: underline;
}

