/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #c41e3a;
  --primary-dark: #a01830;
  --secondary: #1a2b4a;
  --dark: #1a1a2e;
  --light: #f8f9fa;
  --gray: #6c757d;
  --white: #ffffff;
}

body {
  font-family: "Be Vietnam Pro", sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Top Bar */
.top-bar {
  background: var(--secondary);
  color: var(--white);
  padding: 10px 0;
  font-size: 14px;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info {
  display: flex;
  gap: 30px;
}

.contact-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-info i {
  color: var(--primary);
}

.social-links a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--primary);
}

/* Header */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary);
  border-bottom: 3px solid var(--secondary);
  padding-bottom: 5px;
}

.nav-list {
  display: flex;
  gap: 30px;
}

.nav-list a {
  font-weight: 500;
  color: var(--secondary);
  transition: color 0.3s;
  padding: 10px 0;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--secondary);
}

/* Hero Slider */
.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.slider {
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  
  /* CODE SỬA: Ẩn hoàn toàn khi không active */
  opacity: 0;
  visibility: hidden; 
  z-index: 0; /* Nằm dưới */
  
  /* Transition cho cả opacity và visibility để hiệu ứng mượt */
  transition: opacity 0.8s ease, visibility 0.8s; 
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 10;
  transition: opacity 0.8s ease, visibility 0s;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 43, 74, 0.7);
}

.slide-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 80px;
  color: var(--white);
}

.slide-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.slide-content p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 500px;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 5px;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
}

.slider-btn:hover {
  background: var(--primary);
}

.slider-btn.prev {
  left: 20px;
}

.slider-btn.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: var(--primary);
}

/* Stats Section */
.stats {
  background: var(--secondary);
  padding: 50px 0;
  margin-top: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  color: var(--white);
}

.stat-number {
  font-size: 42px;
  font-weight: 700;
  display: block;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Vision Section */
.vision {
  padding: 80px 0;
  background: var(--light);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  display: block;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--secondary);
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.vision-card {
  background: var(--white);
  padding: 40px 25px;
  text-align: center;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  transition: all 0.3s;
}

.vision-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.vision-icon {
  font-size: 48px;
  color: var(--secondary);
  margin-bottom: 20px;
}

.vision-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--secondary);
}

.vision-card p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 20px;
}

.card-btn {
  width: 45px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  transition: all 0.3s;
}

.card-btn:hover {
  background: var(--primary);
}

/* Skills Section */
.skills {
  padding: 80px 0;
}

.skills-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.skills-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.skills-text .section-tag {
  text-align: left;
}

.skills-text h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 25px;
  line-height: 1.3;
}

.skills-text p {
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.8;
}

.skills-text .btn {
  margin-top: 15px;
}

/* Blog Section */
.blog {
  padding: 80px 0;
  background: var(--light);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-content {
  padding: 25px;
}

.blog-date {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 12px;
}

.blog-date i {
  margin-right: 5px;
  color: var(--primary);
}

.blog-content h3 {
  font-size: 18px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-content h3 a {
  color: var(--secondary);
  transition: color 0.3s;
}

.blog-content h3 a:hover {
  color: var(--primary);
}

.blog-content p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 15px;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}

.read-more:hover {
  gap: 12px;
}

/* Footer */
.wave-wrap {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: transparent;
  margin-bottom: -1px;
}

.wave-layer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  height: 100%;
  display: flex;
  will-change: transform;
}

.wave-svg {
  width: 50%;
  height: 100%;
}

.wave-svg svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* --- PHẦN CHỈNH MÀU SÓNG (QUAN TRỌNG) --- */
/* Sóng 1 (Dưới cùng): Màu trùng với Footer (#1D2A44) */
.wave1 svg path {
  fill: #1D2A44 !important;
}
.wave1 {
  opacity: 1;
  z-index: 3; /* Đè lên các sóng kia để che chân sóng */
  animation: moveX 12s linear infinite;
}

/* Sóng 2 (Giữa): Màu xanh trung gian */
.wave2 svg path {
  fill: #274b7c !important;
}
.wave2 {
  opacity: 1; /* Để 1 để màu lên rõ đẹp */
  z-index: 2;
  animation: moveX 9s linear infinite;
}

/* Sóng 3 (Trên cùng): Màu xanh sáng */
.wave3 svg path {
  fill: #3b75c8 !important;
}
.wave3 {
  opacity: 1;
  z-index: 1;
  animation: moveX 6s linear infinite;
}

@keyframes moveX {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- FOOTER CHÍNH --- */
.site-footer {
  /* Màu nền footer chuẩn theo yêu cầu */
  background: #1D2A44; 
  color: #fff;
  text-align: center;
  padding: 0 20px 40px;
  position: relative;
  z-index: 10;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 10px;
}

.socials {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 12px;
}

.socials a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: 0.3s;
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.3);
}

.footer-menu {
  list-style: none;
  display: flex;
  gap: 26px;
  justify-content: center;
  margin: 12px 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  opacity: 0.95;
}

.footer-copy {
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.85;
}

/* Layout chia cột bạn thêm vào */
.chiacot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left; /* Căn trái chung cho grid */
}

/* Nếu bạn muốn cột 1 căn trái, cột 2 căn phải hoặc khác thì chỉnh ở đây */
.cot1 {
  text-align: left;
}

/* --- Phần Section bao quanh --- */
.skills {
    background-color: #132A47; /* MÀU MỚI: Xanh dương đậm */
    padding: 60px 0;
    color: #ffffff;
}

.skills .skills-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Form Wrapper (Khung chứa form) --- */
.form-wrapper {
    background-color: #F0F4F8; /* MÀU MỚI: Xanh dương rất nhạt */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    color: #132A47; /* MÀU MỚI: Chữ chính màu xanh dương đậm */
    max-width: 700px;
    margin: 0 auto;
}

/* --- Tiêu đề Form --- */
.form-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #132A47; /* MÀU MỚI */
    text-transform: uppercase;
}

/* --- Lưới layout cho 4 ô input đầu --- */
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* --- Nhóm Input (Chứa icon và input) --- */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

/* --- Style cho các ô input và textarea --- */
.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #132A47; /* Viền màu xanh xám nhạt */
    border-radius: 8px;
    font-size: 16px;
    color: #132A47; /* MÀU MỚI */
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* Style riêng cho input file */
.input-group input[type="file"] {
    padding: 10px;
}

/* Hiệu ứng khi focus vào input */
.input-group input:focus,
.input-group textarea:focus {
    border-color: #132A47; /* Màu nhấn vàng chanh khi focus */
    box-shadow: 0 0 8px rgba(162, 195, 0, 0.2);
    outline: none;
}

/* --- Style cho Icon --- */
.form-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #132A47; /* Màu icon là màu vàng chanh */
    font-size: 18px;
}

.input-group textarea + .form-icon {
    top: 20px;
}

/* --- Style cho Label (Nhãn) --- */
.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #132A47; /* MÀU MỚI */
}

/* --- Các trường lớn (Textarea, Upload) --- */
.large-field {
    grid-column: span 2;
}
.large-field input,
.large-field textarea {
     padding-left: 15px;
}

/* --- Nút Gửi (Submit Button) --- */
.submit-button {
    width: 100%;
    padding: 15px;
    background-color: #132A47; /* Màu nền nút là màu vàng chanh */
    color: white; /* Màu chữ nút là màu xanh dương đậm */
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #8EAB00;
    box-shadow: 0 5px 15px rgba(162, 195, 0, 0.4);
    transform: translateY(-2px);
}

.text-carousel{
  width: 100%;
  overflow: hidden;
  background: #0d254a;
  padding: 15px 0;
  position: relative;
}
.text-track{
  display: flex;
  gap: 80px;
  white-space: nowrap;
  animation: slide 15s linear infinite;
}

.text-track span{
  font-size: 22px;
  color: #fff;
  font-weight: 600px;
}

/* HEADER */
.mobile-header {
  width: 100%;
  background: #0d254a;
  color: #fff;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: bold;
}

.hamburger {
  font-size: 26px;
  cursor: pointer;
}

/* MENU */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #12345e;
  padding: 10px 0;
}

.mobile-menu a {
  color: #fff;
  padding: 12px 20px;
  text-decoration: none;
  font-size: 18px;
}

.mobile-menu a:hover {
  background: rgba(255,255,255,0.1);
}

/* HIỆN MENU */
.mobile-menu.active {
  display: flex;
}

/* Tắt menu trên Desktop */


@keyframes slide {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
/* Responsive */
@media (max-width: 1024px) {
  .vision-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid-2 {
        grid-template-columns: 1fr;
    }
    .form-wrapper {
        padding: 25px;
    }
     .hamburger, .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .top-bar-content {
    flex-direction: column;
    gap: 10px;
  }

  .contact-info {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
  }

  .nav.active {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 15px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .slide-content {
    padding: 0 30px;
  }

  .slide-content h1 {
    font-size: 32px;
  }

  .skills-content {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-2 {
        grid-template-columns: 1fr;
    }
    .form-wrapper {
        padding: 25px;
    }
     .hamburger, .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .vision-grid {
    grid-template-columns: 1fr;
  }

  .slide-content h1 {
    font-size: 26px;
  }

  .section-header h2 {
    font-size: 28px;
  }
  .form-grid-2 {
        grid-template-columns: 1fr;
    }
    .form-wrapper {
        padding: 25px;
    }
     .hamburger, .mobile-menu {
    display: none !important;
  }
}
