
/* ====================== RESET CƠ BẢN ====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ====================== BODY & FONT ====================== */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #ffffff;
  color: #2c2c2c;
  line-height: 1.6;
}

/* ====================== LINK ====================== */
a {
  text-decoration: none;
  color: inherit;
}

/* ====================== HEADER ====================== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 999;
  /* Không wrap trên màn hình lớn */
  flex-wrap: nowrap;
}

/* Khi kích thước màn hình rất nhỏ, cho phép header wrap */
@media (max-width: 600px) {
  .header {
    flex-wrap: wrap;
    justify-content: center;
  }
  .header-left,
  .header-nav {
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }
  .header-right {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }
}

.header-left .logo img {
  width: 48px;
  height: auto;
}

.header-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;  /* Cho phép cuộn ngang nếu cần */
  scrollbar-width: none; /* Ẩn scrollbar trên Firefox */
}
.header-nav ul::-webkit-scrollbar {
  display: none; /* Ẩn scrollbar trên Chrome */
}

.header-nav ul li a {
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.3s;
  white-space: nowrap;
  font-size: 0.9rem; /* Giảm font-size cho phù hợp trên màn hình nhỏ */
}

.header-nav ul li a:hover {
  background-color: #eaeaea;
}

.header-right .btn-primary {
  background-color: #0072ff;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s;
  white-space: nowrap;
  font-size: 0.9rem;
}

.header-right .btn-primary:hover {
  background-color: #005adb;
}

/* ====================== HERO ====================== */
.hero {
  min-height: 80vh;
  position: relative;
  /* Sử dụng hero-bg.jpg làm background với gradient overlay */
  background: linear-gradient(to bottom, rgba(0, 61, 115, 0.7), rgba(0, 61, 115, 0.4)),
              url('../img/hero-bg.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 3rem 1rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  background: radial-gradient(rgba(255, 255, 255, 0.15), transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  width: 100%;
}

.hero-big-logo {
  display: block;
  margin: 0 auto 1.5rem;
  width: 350px;
  max-width: 80%;
  height: auto;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
  transition: transform 0.3s ease;
}

.hero-big-logo:hover {
  transform: scale(1.03);
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #80deea;
}

.hero-subtitle {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: #fff;
  font-weight: 600;
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1.5s forwards;
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* ====================== EDUCATION SECTION - DESIGN MỚI ====================== */
.education-section.new-design {
  background: linear-gradient(135deg, #0072ff, #80deea);
  padding: 4rem 2rem;
  color: #fff;
  text-align: center;
  border-radius: 0 0 8px 8px;
  position: relative;
  overflow: hidden;
  margin: 0;
}

.education-section.new-design::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/education-bg.png') center/cover no-repeat;
  opacity: 0.1;
  z-index: 0;
}

.education-section.new-design .container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.education-section.new-design .education-header {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  display: inline-block;
}

.education-section.new-design .education-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: #fff;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.education-section.new-design .education-divider {
  width: 80px;
  height: 4px;
  background-color: #fff;
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

.education-section.new-design .education-description {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  text-align: justify;
}

/* ====================== MAIN ====================== */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* ====================== SECTION: INTRO ====================== */
.intro {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
}

/* ====================== FEATURES - Trang chủ ====================== */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.feature-item {
  flex: 1 1 250px;
  min-width: 250px;
  background-color: #e8f3ff;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 114, 255, 0.15);
}

.feature-item h3 {
  margin-bottom: 0.75rem;
  color: #0072ff;
  font-size: 1.25rem;
  font-weight: 600;
}

/* ====================== FEATURED NEWS SECTION ====================== */
.featured-news {
  background-color: #f0f4ff;
  padding: 3rem 2rem;
  text-align: center;
}

.featured-news .container {
  max-width: 1200px;
  margin: 0 auto;
}

.featured-news .news-header {
  margin-bottom: 2rem;
}

.featured-news .news-header h2 {
  font-size: 2.5rem;
  color: #0072ff;
  margin-bottom: 0.5rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.featured-news .news-divider {
  width: 80px;
  height: 4px;
  background-color: #0072ff;
  margin: 0 auto;
  border-radius: 2px;
}

.featured-news .news-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.featured-news .news-item {
  background-color: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 1rem;
  flex: 1 1 calc(25% - 1.5rem);
  max-width: calc(25% - 1.5rem);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.featured-news .news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 114, 255, 0.15);
}

.featured-news .news-item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.featured-news .news-item h3 {
  font-size: 1.25rem;
  color: #0072ff;
  margin-bottom: 0.5rem;
}

.featured-news .news-item p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* ====================== PAGE-HEADER (cho about, services, contact) ====================== */
.page-header {
  background: #f9f9f9;
  padding: 3rem 2rem;
  text-align: center;
  border-bottom: 1px solid #eaeaea;
}
.page-header h1 {
  font-size: 2.5rem;
  color: #0072ff;
}

/* ====================== ABOUT TABS LAYOUT ====================== */
.about-tabs-container {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  background-color: #e8f3ff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 114, 255, 0.1);
}

.about-tabs-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 0 0 250px;
}

.about-tab-item {
  background-color: #f5faff;
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  font-weight: 500;
  text-align: center;
}
.about-tab-item:hover {
  background-color: #dfefff;
  transform: translateY(-2px);
}
.about-tab-item.active {
  background-color: #0072ff;
  color: #fff;
  transform: translateY(0);
}

.about-tabs-content {
  flex: 1;
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
}

.about-tab-panel {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.4s ease forwards;
}

.about-tab-panel h2 {
  font-size: 1.75rem;
  color: #0072ff;
  margin-bottom: 1rem;
}

.about-tab-panel p,
.about-tab-panel li {
  font-size: 1.125rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.about-tab-panel img {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 1rem;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====================== ACCORDION (TRONG TAB 4) ====================== */
.product-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.product-accordion-item {
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
}

.product-accordion-header {
  background-color: #f5f5f5;
  padding: 1rem;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
}

.product-accordion-header:hover {
  background-color: #eaeaea;
}

.product-accordion-body {
  display: none;
  padding: 1rem;
  background-color: #fff;
  border-top: 1px solid #eee;
}

.product-accordion-body ul {
  list-style: disc inside;
  margin-top: 1rem;
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 768px) {
  .header {
    flex-wrap: wrap;
  }
  .header-nav ul {
    gap: 1rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
  .hero-big-logo {
    width: 60%;
    max-width: 350px;
  }
  .page-header h1 {
    font-size: 2rem;
  }
  .about-tabs-container {
    flex-direction: column;
    padding: 1rem;
  }
  .about-tabs-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: auto;
    justify-content: center;
  }
  .about-tab-item {
    flex: 1 1 100px;
    text-align: center;
  }
  .about-tabs-content {
    margin-top: 1rem;
    padding: 1rem;
  }
  /* Responsive cho Featured News */
  .featured-news .news-items {
    flex-direction: column;
    gap: 1rem;
  }
  .featured-news .news-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* ====================== PHẦN BRAIN STORM VỚI 6 DỊCH VỤ ====================== */
.services-network {
  position: relative;
  width: 600px;
  height: 600px;
  margin: 3rem auto;
  border: 2px dashed #0072ff;
  border-radius: 50%;
  background-color: #f9f9f9;
}

.central-service {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 180px;
  margin: -90px 0 0 -90px;
  background-color: #0072ff;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 15px rgba(0, 114, 255, 0.4);
  text-align: center;
  padding: 1rem;
}
.central-service h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.central-service p {
  font-size: 1rem;
  color: #fff;
}

/* 6 ô dịch vụ xung quanh chỉ hiển thị tiêu đề */
.service-card {
  position: absolute;
  width: 140px;
  background-color: #f5f5f5;
  border: 2px solid #0072ff;
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card h3 {
  color: #0072ff;
  font-size: 1.1rem;
  margin: 0;
}

.service-1 {
  top: calc(50% - 200px);
  left: 50%;
  transform: translate(-50%, 0);
}
.service-2 {
  top: calc(50% - 100px);
  left: calc(50% + 173px);
  transform: translate(-50%, -50%);
}
.service-3 {
  top: calc(50% + 100px);
  left: calc(50% + 173px);
  transform: translate(-50%, -50%);
}
.service-4 {
  top: calc(50% + 200px);
  left: 50%;
  transform: translate(-50%, -50%);
}
.service-5 {
  top: calc(50% + 100px);
  left: calc(50% - 173px);
  transform: translate(-50%, -50%);
}
.service-6 {
  top: calc(50% - 100px);
  left: calc(50% - 173px);
  transform: translate(-50%, -50%);
}

.service-card:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 114, 255, 0.2);
}

/* ====================== PHẦN CHI TIẾT DỊCH VỤ ====================== */
.services-details {
  background-color: #d0e7ff;
  padding: 4rem 2rem;
  text-align: center;
}

.services-details h2 {
  font-size: 2rem;
  color: #0072ff;
  margin-bottom: 2rem;
}

.services-details-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.detail-card {
  background-color: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 2rem;
  text-align: left;
  transition: box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.detail-card:hover {
  box-shadow: 0 6px 15px rgba(0, 114, 255, 0.1);
}

.detail-icon {
  font-size: 64px;
  color: #0072ff;
  margin-bottom: 1rem;
}

.detail-card h3 {
  font-size: 1.25rem;
  color: #0072ff;
  margin-bottom: 1rem;
  text-align: center;
}

.detail-card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

/* ====================== CONTACT PAGE (nếu có) ====================== */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
}

.contact-info {
  flex: 1 1 300px;
}

.contact-info h2 {
  color: #0072ff;
  margin-bottom: 1rem;
}

.contact-form-container {
  flex: 1 1 400px;
}

.contact-form-container h2 {
  color: #0072ff;
  margin-bottom: 1rem;
}

#contact-form {
  display: flex;
  flex-direction: column;
}

#contact-form label {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

#contact-form input,
#contact-form textarea {
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#contact-form button {
  align-self: flex-start;
  background-color: #0072ff;
  color: #fff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#contact-form button:hover {
  background-color: #005adb;
}

/* ====================== FOOTER ====================== */
.footer {
  background-color: #f9f9f9;
  border-top: 1px solid #eaeaea;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-left,
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo img {
  width: 48px;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.footer-links li a {
  color: #0072ff;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-links li a:hover {
  color: #005adb;
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 768px) {
  .header {
    flex-wrap: wrap;
  }
  .header-nav ul {
    gap: 1rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
  .hero-big-logo {
    width: 60%;
    max-width: 350px;
  }
  .page-header h1 {
    font-size: 2rem;
  }
  .about-tabs-container {
    flex-direction: column;
    padding: 1rem;
  }
  .about-tabs-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: auto;
    justify-content: center;
  }
  .about-tab-item {
    flex: 1 1 100px;
    text-align: center;
  }
  .about-tabs-content {
    margin-top: 1rem;
    padding: 1rem;
  }
  /* Responsive cho Featured News */
  .featured-news .news-items {
    flex-direction: column;
    gap: 1rem;
  }
  .featured-news .news-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
