/* === GLOBAL RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #fff;
  color: #333;
  padding-top: 0px !important; /* ✅ sửa lại đúng chiều cao header cố định */
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

h1, h2, h3 {
  color: #004466;
  margin-top: 0;
}

ul {
  list-style: disc;
  padding-left: 20px;
}

.text-center {
  text-align: center;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-primary {
  background-color: #004466;
  color: white;
}

.btn-primary:hover {
  background-color: #006699;
}

.btn-secondary {
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
}

.btn-secondary:hover {
  background-color: #e0e0e0;
}

.btn-outline {
  border: 1px solid #004466;
  color: #004466;
  background-color: transparent;
}

.btn-outline:hover {
  background-color: #004466;
  color: white;
}

.btn-light {
  background-color: white;
  color: #004466;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 3px;
}

/* === HEADER === */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 20px;
}

.logo img {
  height: 38px;
  width: auto;
}

/* === MENU NAVIGATION === */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  position: relative;
  color: #111;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 5px 0;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background-color: #007bff;
  transition: width 0.3s ease;
}

.nav-menu li a:hover {
  color: #007bff;
}

.nav-menu li a:hover::after {
  width: 100%;
}

/* === HAMBURGER MENU === */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.menu-toggle span {
  background-color: #111;
  height: 3px;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* === RESPONSIVE === */
@media screen and (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
    display: none;
    gap: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  }

  .nav-menu.show {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}


/* === HERO SECTION === */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  color: white;
  max-width: 800px;
  padding: 0 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* ✅ Căn giữa toàn bộ nội dung trong khung */
  text-align: center;
  height: 100vh;
  gap: 8px; /* ✅ Rút gọn khoảng cách giữa các dòng */
}



.hero h1 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: white;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  color: white;
  max-width: 700px;
  margin: auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.hero-title {
  font-size: 48px;
  font-weight: bold;
  color: white;
  margin-bottom: 10px;
}

.hero-underline {
  width: 60px;
  height: 4px;
  background-color: #ffc107;
  margin: 0 auto 20px auto;
}

.hero-subtitle {
  font-size: 18px;
  color: white;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* === ANIMATIONS === */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeup {
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
}

.animate-fadeup.delay-1 {
  animation-delay: 0.3s;
}

.animate-fadeup.delay-2 {
  animation-delay: 0.6s;
}

/* === CARDS === */
.service-card,
.project-card {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: 0.3s ease;
  background: white;
}

.service-card:hover,
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* === SECTION HEADINGS === */
.section-header h2 {
  font-size: 32px;
  color: #004466;
}

.section-header .subtitle {
  font-size: 18px;
  color: #666;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .main-header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-menu {
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 18px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .about-section .container {
    flex-direction: column;
  }

  .about-section img {
    margin-bottom: 20px;
  }
}
.partner-section img:hover {
  transform: scale(1.1);
}
/*=== ABOUT ===*/
/* === BANNER SECTION – HERO ABOUT === */
.hero-about {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url('../images/banner4.png') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-about-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.hero-about-overlay::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%);
  animation: moveLight 10s linear infinite;
  z-index: 0;
}

@keyframes moveLight {
  0% {
    transform: translate(0%, 0%);
  }
  50% {
    transform: translate(10%, 10%);
  }
  100% {
    transform: translate(0%, 0%);
  }
}

.hero-about-content {
  text-align: center;
  color: white;
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-about-content h1 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #fff;
  animation: fadeUp 1s ease-out forwards;
  opacity: 0;
  animation-delay: 0.2s;
  position: relative;
}

.hero-about-content h1::after {
  content: '';
  display: block;
  margin: 12px auto 0;
  height: 3px;
  width: 0;
  background-color: #ffc107;
  animation: slideLine 1s ease-out forwards;
  animation-delay: 0.6s;
}

@keyframes slideLine {
  0% {
    width: 0;
  }
  100% {
    width: 80px;
  }
}

.hero-about-content p {
  font-size: 18px;
  line-height: 1.6;
  color: #f0f0f0;
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 1s;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 2s ease-out;
}

.fade-on-scroll.show {
  opacity: 1;
  transform: translateY(0);
}


/*=== GIỚI THIỆU CHI TIẾT ===*/
.about-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
}

.about-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h2 {
  font-size: 32px;
  color: #004466;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 16px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-image {
  flex: 1;
  min-width: 300px;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
/*--- TẦM NHÌN & SỨ MỆNH ---*/
.vision-mission-section {
  background-color: #ffffff;
  padding: 80px 20px;
}

.section-header h2 {
  font-size: 32px;
  color: #004466;
  margin-bottom: 10px;
}

.section-header .subtitle {
  font-size: 18px;
  color: #666;
  margin-bottom: 40px;
}

.vision-mission-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.vision-box, .mission-box {
  background-color: #f6f9fc;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  padding: 30px;
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  text-align: center;
  transition: 0.3s ease;
}

.vision-box:hover, .mission-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.icon-box {
  font-size: 40px;
  color: #004466;
  margin-bottom: 20px;
}

.vision-box h3, .mission-box h3 {
  font-size: 24px;
  color: #004466;
  margin-bottom: 15px;
}

.vision-box p, .mission-box p {
  font-size: 16px;
  color: #444;
  line-height: 1.7;
}
/*=== GIÁ TRỊ CỐT LÕI ===*/
.core-values-section {
  padding: 80px 20px;
  background-color: #f2f6f9;
}

.core-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.core-value-box {
  background-color: #fff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: 0.3s ease;
}

.core-value-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.core-value-box i {
  font-size: 36px;
  color: #004466;
  margin-bottom: 20px;
}

.core-value-box h3 {
  font-size: 20px;
  color: #004466;
  margin-bottom: 12px;
}

.core-value-box p {
  font-size: 15px;
  color: #444;
  line-height: 1.6;
}
/*=== NĂNG LỰC SẢN XUẤT & CHỨNG NHẬN ===*/
.certificates-section, .capacity-section {
  padding: 80px 20px;
  background-color: #ffffff;
}

.certificates-grid, .capacity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.certificate-box, .capacity-box {
  text-align: center;
  background: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.certificate-box:hover, .capacity-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.certificate-box img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 16px;
}

.capacity-box i {
  font-size: 40px;
  color: #004466;
  margin-bottom: 20px;
}

.capacity-box h3, .certificate-box h3 {
  font-size: 20px;
  color: #004466;
  margin-bottom: 10px;
}

.capacity-box p, .certificate-box p {
  font-size: 15px;
  color: #444;
  line-height: 1.6;
}
/*== CHẶNG ĐƯỜNG PHÁT TRIỂN ==*/
.timeline-alternate {
  background-color: #f7f9fc;
  padding: 80px 20px;
  position: relative;
}

.timeline-alternate .section-title {
  text-align: center;
  font-size: 32px;
  color: #004080;
  font-weight: bold;
  margin-bottom: 10px;
}

.timeline-alternate .section-subtitle {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin-bottom: 60px;
}

.timeline-wrapper {
  position: relative;
  max-width: 900px;
  margin: auto;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #004080;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 20px;
  width: 40px;
  height: 40px;
  background-color: #004080;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  z-index: 1;
}

.timeline-item.left .timeline-dot {
  right: -20px;
}

.timeline-item.right .timeline-dot {
  left: -20px;
}

.timeline-box {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.timeline-box h3 {
  margin-top: 0;
  color: #004080;
  font-size: 18px;
}

.timeline-box p {
  margin: 5px 0 0;
  font-size: 15px;
  color: #333;
}

@media screen and (max-width: 768px) {
  .timeline-wrapper {
    padding-left: 0;
  }

  .timeline-item,
  .timeline-item.left,
  .timeline-item.right {
    width: 100%;
    left: 0 !important;
    text-align: left;
    padding-left: 40px;
    padding-right: 20px;
    box-sizing: border-box;
  }

  .timeline-item .timeline-dot {
    position: absolute;
    left: 0;
    right: auto;
    top: 20px;
    margin-bottom: 0;
  }

  .timeline-box {
    margin-left: 40px;
    text-align: left;
  }

  .timeline-wrapper::before {
    left: 20px;
  }
}

/* === Animation Keyframes === */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Áp dụng hiệu ứng === */
@media screen and (max-width: 768px) {
  .timeline-wrapper {
    padding-left: 0;
  }

  .timeline-item {
    padding-left: 0;
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0 !important;
    text-align: center !important;
  }

  .timeline-item .timeline-dot {
    position: relative;
    left: auto !important;
    right: auto !important;
    margin-bottom: 10px;
  }

  .timeline-box {
    text-align: left;
    max-width: 90%;
  }

  .timeline-wrapper::before {
    display: none;
  }
}


/*== LIÊN HỆ HỢP TÁC ==*/
.cta-contact {
  background-color: #337ab7;
  padding: 60px 20px;
  color: white;
  text-align: center;
  animation: fadeInUp 1s ease-in-out both;
}

.cta-contact h2 {
  font-weight: bold;
  font-size: 28px;
  margin-bottom: 15px;
  color:#ffffff;
}

.cta-contact p {
  font-size: 16px;
  margin-bottom: 30px;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.call-btn {
  background-color: #fff;
  color: #337ab7;
  padding: 12px 20px;
  font-weight: bold;
  font-size: 16px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.call-btn:hover {
  background-color: #ffcc00;
  color: #333;
  transform: translateY(-3px);
}

.shake-icon {
  animation: shake 2s infinite;
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
  75% { transform: rotate(-5deg); }
}
/*=== FOOTER ===*/
.fade-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-on-scroll.show {
  opacity: 1;
  transform: translateY(0);
}
/*== DỊCH VỤ ==*/
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  padding-top: 80px;
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  position: relative;
  animation: fadeIn 0.3s ease;
}

.modal .close-modal {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 28px;
  color: #333;
  cursor: pointer;
  font-weight: bold;
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.95);}
  to {opacity: 1; transform: scale(1);}
}
/*== CARD DỊCH VỤ ==*/
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.service-card img {
  width: 100%;
  height: 250px; /* cố định chiều cao ảnh */
  object-fit: cover; /* giữ tỷ lệ ảnh, không méo hình */
  display: block;
}
.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-info {
  flex-grow: 1;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.service-info {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-info h2 {
  color: #004466;
  font-size: 20px;
  margin-bottom: 16px;
}

.service-info ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: auto;
  line-height: 1.8;
}

.service-info .dot {
  color: #ffc107;
  font-weight: bold;
  margin-right: 6px;
}

.cta-button {
  margin-top: 20px;
  display: inline-block;
  background: #004466;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  text-align: center;
}
/*== BANNER ==*/
.service-banner-overlay {
  position: relative;
  background-image: url('../images/bannerdichvu1.jpg');
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  color: white;
  overflow: hidden;
}

.service-banner-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15));
  z-index: 1;
}

.service-banner-overlay .overlay {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-left: 60px;
  padding-right: 20px;
  color: white;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

/* Fade effect */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.banner-text h1 {
  font-size: 44px;
  font-weight: 900;
  color: white;
  margin-bottom: 30px;
  line-height: 1.3;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
}

.banner-text h1 span {
  display: block;
  font-size: 46px;
  color: white;
}

.banner-text ul {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.banner-text ul li {
  font-size: 18px;
  margin-bottom: 14px;
  padding-left: 28px;
  position: relative;
  color: white;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.banner-text ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: white; /* đổi từ đỏ sang trắng */
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
}

.contact {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff; /* vàng nổi bật */
  margin-top: 20px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
/*=== QUY TRÌNH LÀM VIỆC ===*/
.service-process {
  padding: 60px 20px;
  background-color: #f8f9fb;
  text-align: center;
}

.service-process .section-title {
  font-size: 28px;
  font-weight: 700;
  color: #004466;
  margin-bottom: 10px;
}

.service-process .section-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 40px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.step {
  background-color: white;
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
}

.step-icon {
  font-size: 40px;
  margin-bottom: 15px;
  color: #004466;
}

.step h3 {
  font-size: 18px;
  color: #004466;
  margin-bottom: 10px;
}

.step p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}
/*=== WHY CHOOSE US ===*/
.why-us {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.why-us .section-title {
  font-size: 28px;
  color: #004466;
  font-weight: 700;
  margin-bottom: 10px;
}

.why-us .section-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 40px;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.why-box {
  background-color: white;
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.why-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.why-box.active {
  background-color: #004466;
  color: white;
}

.why-box.active .icon {
  color: #ffc107;
}

.why-box .icon {
  font-size: 30px;
  margin-bottom: 15px;
  display: block;
  color: #004466;
}

.why-box h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}

.why-box p {
  font-size: 14px;
  color: #555;
}
/*== CTA ==*/
.cta-cooperation {
  background-color: #2e7bc0;
  color: white;
  text-align: center;
  padding: 60px 20px;
  border-radius: 8px;
  margin-top: 60px;
}

.cta-cooperation h2 {
    color: #ffffff;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.cta-cooperation p {
  font-size: 16px;
  margin-bottom: 30px;
}

.cta-phone-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-phone {
  background: white;
  color: #2e7bc0;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: background 0.3s ease;
}

.cta-phone:hover {
  background: #f1f1f1;
}
/* ===== SẢN PHẨM - GIAO DIỆN ĐẸP CHUYÊN NGHIỆP ===== */

/* === HERO SECTION (BANNER ĐẦU TRANG) === */
.product-hero {
  position: relative;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('/wp-content/themes/codienyenhung/assets/images/banner5.png') center center / cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 40px 20px;
  box-sizing: border-box;
  overflow: hidden;
}

.product-hero .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  z-index: 2;
}

.product-hero h1 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #fff;
}

.product-hero p {
  font-size: 20px;
  max-width: 700px;
  margin-bottom: 30px;
  color: #eee;
}

.product-hero .btn {
  padding: 14px 32px;
  font-size: 16px;
  background-color: #ffc107;
  color: #003344;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.product-hero .btn:hover {
  background-color: #e0a800;
  color: #ffffff;
}

/* === ANIMATION === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.2s; }
.fade-in:nth-child(2) { animation-delay: 0.4s; }
.fade-in:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === BANNER TIÊU ĐỀ DANH MỤC === */
.product-banner {
  background-color: #f7f9fc;
  padding: 60px 20px;
  text-align: center;
}

.product-banner .section-title {
  font-size: 32px;
  color: #004466;
  margin-bottom: 10px;
  font-weight: bold;
}

.product-banner .section-subtitle {
  font-size: 16px;
  color: #666;
}

/* === DANH SÁCH SẢN PHẨM === */
.product-archive {
  padding: 60px 20px;
  background-color: #ffffff;
}

.product-archive .section-title {
  font-size: 28px;
  font-weight: bold;
  color: #004466;
  text-align: center;
  margin-bottom: 40px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center;
  padding: 60px 0;
}
.product-excerpt {
  font-size: 14px;
  color: #555;
  line-height: 1.5em;
  height: 5em; /* Giới hạn đúng 2 dòng */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 15px;
}

/* === THẺ SẢN PHẨM === */
.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  height: 350px; /* cố định chiều cao */
  width:250px;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 15px;
}

/* === THÔNG TIN SP === */
.product-title {
  font-size: 18px;
  color: #004466;
  font-weight: bold;
  margin: 10px 0 15px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.product-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  height: 42px;
  overflow: hidden;
  margin-bottom: 15px;
}

.product-meta {
  font-size: 15px;
  color: #333;
  margin-top: 10px;
}

.product-price {
  color: #d60000;
  font-weight: bold;
}

/* === NÚT XEM CHI TIẾT === */
.product-card .btn {
  background-color: #004080;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  transition: background-color 0.3s;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
}

.product-card .btn:hover {
  background-color: #0059b3;
}

/* === DANH MỤC DANH SÁCH === */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin-bottom: 12px;
}

.category-link,
.category-list li a {
  display: block;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #e6eef7;
  color: #004080;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}

.category-link:hover,
.category-link.active,
.category-list li a:hover,
.category-list li a.active {
  background-color: #004080 !important;
  color: white !important;
}

/* === PHÂN TRANG === */
.pagination {
  margin-top: 40px;
  text-align: center;
}

.pagination ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination li {
  display: inline-block;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #ccc;
  color: #004080;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  min-width: 38px;
  text-align: center;
}

.pagination a:hover {
  background: #004080;
  color: #fff;
  border-color: #004080;
}

.pagination .current {
  background: #004080;
  color: #fff;
  border-color: #004080;
}
/* --- News Page Styles --- */

/* Hero Section (nếu dùng) */
.news-hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('/wp-content/uploads/banner-tintuc.jpg') center/cover no-repeat;
  padding: 100px 20px;
  text-align: center;
  color: #fff;
}

.news-hero .hero-content h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 15px;
  animation: fadeInDown 1s ease-out;
}

.news-hero .hero-content p {
  font-size: 18px;
  color: #e0e0e0;
  animation: fadeInUp 1.2s ease-out;
}

/* Sidebar */
.news-sidebar {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.news-sidebar h2 {
  font-weight: 600;
  font-size: 20px;
  padding-bottom: 6px;
  margin-bottom: 16px;
  border-bottom: 2px solid #004080;
  color: #004080;
}

.news-sidebar ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 20px;
}

.news-sidebar ul li a {
  display: block;
  color: #333;
  font-size: 16px;
  padding: 8px 0;
  transition: all 0.3s;
}

.news-sidebar ul li a:hover {
  color: #007bff;
  padding-left: 4px;
}

.news-sidebar form input {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border 0.3s;
}

.news-sidebar form input:focus {
  outline: none;
  border-color: #004080;
}

/* News Listing */
.news-listing {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* News cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.news-card .news-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 12px 12px 0 0;
}

.news-card h3 {
  font-size: 18px;
  color: #004080;
  font-weight: 600;
  margin: 16px 20px 8px;
  transition: color 0.3s;
}

.news-card p {
  color: #555;
  font-size: 15px;
  margin: 0 20px 12px;
}

.news-card .btn {
  margin: 0 20px 20px;
  align-self: flex-start;
  padding: 8px 16px;
  background-color: #004080;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s;
}

.news-card .btn:hover {
  background-color: #0066cc;
}

/* Pagination */
.pagination {
  text-align: center;
  margin-top: 30px;
}

.pagination ul {
  list-style: none;
  padding: 0;
  display: inline-flex;
  gap: 6px;
}

.pagination li a,
.pagination li span {
  display: inline-block;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #ccc;
  color: #004080;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
}

.pagination li a:hover {
  background: #004080;
  color: #fff;
  border-color: #004080;
}

.pagination li .current {
  background: #004080;
  color: #fff;
  border-color: #004080;
}

/* Fade Animations */
@keyframes fadeInDown {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}
@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}
/* ===== News Page Styling ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
}

.news-card:hover {
  transform: translateY(-6px);
}

.news-thumb-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.news-card h3 {
  font-size: 18px;
  color: #004080;
  margin: 0 0 8px 0;
}

.news-card p {
  color: #555;
  font-size: 15px;
  margin: 0 0 10px 0;
}

.news-card .btn {
  margin-top: 10px;
  display: inline-block;
  padding: 8px 16px;
  background-color: #004080;
  color: #fff;
  border-radius: 5px;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.news-card .btn:hover {
  background-color: #0066cc;
}

.news-sidebar h2 {
  font-weight: 600;
  padding-bottom: 6px;
  border-bottom: 2px solid #004080;
}

.news-sidebar ul li a {
  padding: 8px 0;
  display: block;
  transition: color 0.3s;
}

.news-sidebar ul li a:hover {
  color: #007bff;
}

.news-sidebar form input {
  font-size: 15px;
  transition: border 0.3s;
}
.news-sidebar form input:focus {
  outline: none;
  border-color: #004080;
}

.pagination {
  text-align: center;
}
.pagination ul {
  list-style: none;
  padding: 0;
  display: inline-flex;
  gap: 6px;
}
.pagination li a,
.pagination li span {
  display: inline-block;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #ccc;
  color: #004080;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
}
.pagination li a:hover,
.pagination li .current {
  background: #004080;
  color: #fff;
  border-color: #004080;
}
/* === News Card Horizontal Layout === */
.news-card-horizontal {
  display: flex;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  margin-bottom: 30px;
  transition: transform 0.3s;
}

.news-card-horizontal:hover {
  transform: translateY(-5px);
}

.news-thumb-horizontal {
  flex: 0 0 240px;
  overflow: hidden;
}

.news-thumb-horizontal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-info-horizontal {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-info-horizontal h3 {
  font-size: 20px;
  margin: 0 0 10px;
  color: #004080;
}

.news-info-horizontal h3 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

.news-info-horizontal h3 a:hover {
  color: #007bff;
}

.news-info-horizontal p {
  font-size: 15px;
  color: #555;
  margin-bottom: 10px;
}

.news-date {
  font-size: 14px;
  color: #888;
  margin-bottom: 10px;
}

.news-info-horizontal .btn {
  width: fit-content;
  padding: 8px 16px;
  background-color: #004080;
  color: #fff;
  border-radius: 5px;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.news-info-horizontal .btn:hover {
  background-color: #0066cc;
}
/* ==== RESPONSIVE TRANG TIN TỨC ==== */
@media (max-width: 768px) {

  .news-archive .container {
    flex-direction: column;
    padding: 0 15px;
  }

  .news-sidebar {
    order: 2;
    margin-top: 40px;
  }

  .news-listing {
    order: 1;
  }

  .news-card-horizontal {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
  }

  .news-thumb-horizontal img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }

  .news-info-horizontal {
    padding: 20px;
  }

  .news-info-horizontal h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #004080;
  }

  .news-info-horizontal p {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
  }

  .news-date {
    font-size: 14px;
    color: #888;
  }

  .btn {
    margin-top: 12px;
    display: inline-block;
    padding: 8px 16px;
    background-color: #004080;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
  }

  .pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 0;
  }

  .pagination li {
    list-style: none;
  }

  .pagination a,
  .pagination span {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    background: #e0e0e0;
    color: #333;
    font-size: 14px;
    text-decoration: none;
  }

  .pagination .current {
    background-color: #004080;
    color: #fff;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  body {
    padding-top: 80px; /* Ví dụ: tăng khoảng cách trên để tránh bị che */
  }

  .news-archive {
    padding: 40px 15px;
  }

  .sidebar,
  .main-content {
    width: 100%;         /* Cho hiển thị full chiều ngang */
    margin-bottom: 30px; /* Cách nhau rõ ràng khi xếp dọc */
  }

  .main-content img {
    max-width: 100%;
    height: auto;
  }

  /* Tùy chỉnh tìm kiếm hoặc widget */
  .widget_search input {
    width: 100%;
  }

  /* Nếu có layout dạng flex 2 cột */
  .container {
    flex-direction: column;
    gap: 20px;
  }
}
/* ===== Product Card – Clean & Modern ===== */
:root{
  --card-bg:#fff; --card-border:rgba(15,23,42,.08);
  --card-shadow:0 12px 28px rgba(2,6,23,.08);
  --card-shadow-hover:0 18px 46px rgba(2,6,23,.14);
}

.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:22px;
}

/* Card container */
.product-card{
  position:relative;
  display:flex; flex-direction:column;
  background:var(--card-bg);
  border:1px solid var(--card-border);
  border-radius:16px;
  overflow:hidden;
  box-shadow:var(--card-shadow);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--card-shadow-hover);
  border-color:rgba(15,23,42,.14);
}

/* Thumbnail */
.product-card .thumb{
  position:relative;
  background:#eef2f7;
  aspect-ratio:16/9;          /* chống méo + đều thẻ */
  overflow:hidden;
}
.product-card .thumb img{
  width:100%; height:100%; object-fit:cover; display:block;
  transform:scale(1.02);
  transition:transform .45s ease;
}
.product-card:hover .thumb img{ transform:scale(1.06); }

/* Subtle overlay khi hover */
.product-card .thumb:after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(to top, rgba(0,0,0,.18), transparent 45%);
  opacity:.0; transition:opacity .3s ease;
}
.product-card:hover .thumb:after{ opacity:1; }

/* Badge “Mới” */
.product-card .badge{
  position:absolute; left:12px; top:12px;
  background:#0f172a; color:#fff;
  padding:6px 10px; border-radius:999px;
  font-size:12px; font-weight:800; letter-spacing:.2px;
  box-shadow:0 8px 18px rgba(0,0,0,.22);
}

/* Body */
.product-card .info{ padding:16px; display:flex; flex-direction:column; gap:8px; }
.product-title{ margin:0; font-size:18px; line-height:1.25; font-weight:800; }
.product-title a{ color:#0f172a; text-decoration:none; }
.product-title a:hover{ color:var(--dark); }

/* 2–3 dòng mô tả gọn */
.product-excerpt{
  margin:0; color:#475569; font-size:14px;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}

/* Actions: 2 nút tròn gọn đẹp */
.card-actions{
  display:flex; justify-content:space-between; align-items:center;
  gap:10px; padding:0 16px 16px;
}
.btn-mini{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 14px; border-radius:999px;
  font-weight:800; text-decoration:none; font-size:14px;
  transition:.18s ease; line-height:1;
}
/* Ghost (Chi tiết) */
.btn-mini:first-child{
  background:#fff; color:var(--dark); border:2px solid var(--dark);
}
.btn-mini:first-child:hover{
  transform:translateY(-2px);
  background:var(--dark); color:#fff;
}
/* Solid (Báo giá) */
.btn-mini:last-child{
  background:var(--primary); color:#fff; border:2px solid var(--primary);
  box-shadow:0 8px 22px rgba(230,126,34,.22);
}
.btn-mini:last-child:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 30px rgba(230,126,34,.32);
}

/* Focus-visible để truy cập bằng bàn phím */
.product-card a:focus-visible{ outline:3px solid #dbe7ff; outline-offset:3px; border-radius:12px }

/* Nhẹ nhàng hơn trên nền xám */
.product-archive .section,
section[style*="background:#f7f9fc"] .product-card{
  background:#fff; /* giữ trắng tinh cho card */
}

/* Responsive */
@media (max-width:520px){
  .product-grid{ grid-template-columns:1fr; }
  .product-card{ border-radius:14px }
}

