/* Reset đơn giản */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

/* Header tổng thể */
.navbar {
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 3px solid red; /* ← thêm dòng này */
}

/* Logo */
.logo-section {
  flex-shrink: 0;
}

.logo {
  height: 50px;
  width: auto;
}

/* Menu chính */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 12px;
  transition: color 0.3s, background-color 0.3s;
  border-radius: 4px;
}

.nav-links li a:hover {
  color: #a3080f; /* Màu thương hiệu */
  background-color: rgba(163, 8, 15, 0.08); /* Tông màu nhẹ */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(163, 8, 15, 0.2); /* Đổ bóng nhẹ */
  transform: translateY(-1px);
  transition: all 0.3s ease;
}

/* Icon và flag */
.icon,
.flag {
  margin-right: 6px;
}

/* Responsive (tùy chọn, nếu cần) */
@media (max-width: 768px) {
  .nav-links {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* Main */
main {
  width: 100%;
  height: auto;
}
/* Slide container */
.slider {
  position: relative;
  width: 100%;
  /* max-width: 1200px; */
  height: 500px;
  margin: auto;
  overflow: hidden;
  border-radius: 10px;
}

/* Slide wrapper */
.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Individual slide */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 0;
}

/* Active slide */
.slide.active {
  opacity: 1;
  z-index: 1;
}

/* Navigation buttons */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 8px 16px;
  cursor: pointer;
  z-index: 10;
  border-radius: 5px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}
/* Tổng thể section */
.about-section {
  background: linear-gradient(to right, #f2f3f5, #797878);
  padding: 60px 20px;
  border-radius: 16px;
}

/* Container */
.about-section {
  background-color: #f8f8f8;
  padding: 60px 20px;
  border-radius: 16px;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

/* Text content */
.about-text {
  flex: 1 1 50%;
}

.about-text h2 {
  color: #e60000;
  font-size: 2rem;
  margin-bottom: 10px;
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 16px;
}

/* Button */
.btn-toggle {
  background-color: #eb0606;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-toggle a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: text-decoration 0.3s ease;
}

/* Hover effect */
.btn-toggle:hover {
  background-color: #dfca10; /* Màu nền khi hover */
}

.btn-toggle:hover a {
  text-decoration: underline; /* Gạch chân khi hover */
}

/* Hình ảnh */
.about-image {
  flex: 1 1 40%;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.about-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive cho màn hình nhỏ */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text,
  .about-image {
    flex: 1 1 100%;
  }

  .about-text h2 {
    font-size: 1.6rem;
  }

  .about-text h3 {
    font-size: 1.2rem;
  }
}
.services-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
}
/* Phần bất động sản */

.services-container {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.service-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 20px;
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  min-height: 520px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
}

.service-item:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
}

.service-item img,
.video-wrapper iframe {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.service-item:hover img,
.service-item:hover .video-wrapper iframe {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.video-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
}

.service-item h3 {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  margin: 16px 0 12px;
}

.service-item p {
  font-size: 15px;
  text-align: justify;
  color: #333;
  flex-grow: 1;
  margin-bottom: 0; /* xóa khoảng dư ở cuối */
}
/* Nút chi tiết */
/* Nút Chi tiết */
.service-card {
  position: relative;
  width: 100%;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-card img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.service-card:hover img {
  transform: scale(1.05); /* Phóng to ảnh khi hover */
}

.service-info {
  padding: 15px;
}

.service-info h3 {
  font-size: 1.25rem;
  color: #333;
  margin-bottom: 10px;
}

.service-info p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 15px;
}

/* Nút Chi tiết */
.btn-detail {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: #eb0606;
  padding: 8px 15px;
  border-radius: 5px;
  color: rgb(12, 12, 12);
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-detail:hover {
  background-color: #dfca10;
  text-decoration: underline;
}

/* Responsive (mobile) */
@media (max-width: 768px) {
  .services-container {
    flex-direction: column;
    align-items: center;
  }

  .service-item {
    width: 90%;
  }
}
/* Căn lề */
.service-item p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6; /* giãn dòng nhẹ cho dễ đọc */
  text-align: justify; /* căn đều hai bên */
  text-justify: inter-word; /* căn theo từ, không kéo giãn chữ */
  margin: 0 5px;
}
/* Tin tức */
.section-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #111827;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
/* Image tin tức */
.card-container {
  display: flex;
  gap: 20px;
}
.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%; /* Thêm dòng này */
  justify-content: space-between; /* Đảm bảo phần nội dung không bị đè */
  transition: transform 0.3s ease;
  flex: 1;
}
.card-wrapper {
  display: flex;
  gap: 20px;
  align-items: stretch; /* Tự kéo cho card cao bằng nhau */
}

.card:hover {
  transform: translateY(-10px);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  display: block;
}

.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.card-body h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  min-height: 48px;
}

.card-body p {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  flex-grow: 1;
  min-height: 72px;
  text-align: justify;
}

.card-body .btn {
  display: inline-block;
  margin-top: 12px;
  background: #007bff;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.card-body .btn:hover {
  background: #0056b3;
}

/* Nút tin tức */
.section-title {
  font-size: 32px;
  font-weight: bold;
  /* text-align: center; */
  margin-bottom: 30px;
  display: block;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.section-title:hover {
  /* color: #e41515; */
  /* text-decoration: underline; */
}

/* Nút xem chi tiết */
.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}

.btn:hover {
  background: #1d4ed8;
}
/* Tuyển dụng */
html {
  scroll-behavior: smooth;
}
/* #ung-tuyen {
  scroll-margin-top: 80px;
} */
.recruitment-section {
  padding: 60px 20px;
  background-color: #f5f8fa;
  font-family: "Segoe UI", sans-serif;
  text-align: center;
}

.section-title {
  font-size: 32px;
  color: #222;
  margin-bottom: 40px;
}

.recruitment-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.job-card {
  background: #fff;
  border: 1.5px solid #00aaff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  padding: 25px;
  width: 320px;
  transition: all 0.3s ease;
  text-align: left;
}

.job-card h3 {
  font-size: 20px;
  color: #0077b6;
  margin-bottom: 15px;
}

.job-card p {
  color: #333;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.job-card a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 18px;
  background-color: #00aaff;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.job-card a:hover {
  background-color: #0077b6;
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
  /* background-color: #880315; */
  color: #f1f5f9;
  font-size: 0.95rem;
  width: 100%;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  /* justify-content: space-between; */
  gap: 40px;
  /* max-width: 1200px; */
  width: 100%;
  /* margin: auto; */
  background-color: #7c0f0f;
  /* align-items: center; */
}

.footer h3 {
  margin-bottom: 12px;
  color: #f5f6f7;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: #f1f5f9;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #38bdf8;
}

.footer-bottom {
  text-align: center;
  /* margin-top: 30px; */
  border-top: 1px solid #07a166be;
  padding-top: 12px;
  font-size: 0.85rem;
  color: #f6f6f7;
  background-color: #dfa403;
}
.footer-map {
  flex: 1 1 300px;
}

.footer-map h3 {
  color: #f5f7f8;
  margin-bottom: 12px;
}

.map-container iframe {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
/* Khách hàng & Đối tác */
.partners-section {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}

.section-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 40px;
}

.marquee-container {
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused; /* dừng lại khi hover */
}

.partner-item {
  flex: 0 0 auto;
  margin: 0 20px;
}

.partner-item img {
  height: 60px;
  filter: grayscale(0%);
  transition: transform 0.3s ease;
}

.partner-item:hover img {
  transform: scale(1.1);
}

/* Animation */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}
