body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #d4eaf8;
}

.container {
  max-width: 1200px; 
  margin: 0 auto;    
  padding: 0 15px;   
}

/* ===== HEADER ===== */
.header {
  background-image: url('images/header_top.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 5px 20px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.header-left {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-info-group {
  display: flex;
  flex-direction: column; 
  justify-content: center;
  align-items: flex-start; 
  gap: 6px; 
}

.header-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  height: 50px;
}

.slogan img {
  height: 50px;
}

.header-item {
  display: flex;
  align-items: center;
  font-size: 15px;
  line-height: 1;
  padding: 0;
  margin-top: 3px;
}

.header-item a {
  text-decoration: none;
  color: black;
}

@keyframes iconBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  animation: iconBounce 1.5s infinite;
  display: inline-block;
  vertical-align: middle;
}

/* ===== LINE WIDTH ===== */
.blue-divider {
  height: 4px; 
  background-color: #8fc0db; 
  width: 100%;
  margin: 0 auto;
}

/* ===== BANNER ===== */
.banner-full {
  width: 1200px;
  height: 378.609px;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
}

.banner-img {
  text-align: center;
}

.banner-img img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* ===== WHY CHOOSE ===== */
.why-choose {
  text-align: center;
  padding: auto;
  background-color: white;
  padding-top: 25px;
}

.why-choose h1, p {
  margin-top: 0;   
}

.reasons {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
}

.reason {
  width: 30%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-divider {
  width: 100px;
  height: 7px;
  background-color: #90dbff;
  margin: 10px auto 20px auto;
  border-radius: 2px;
}

/* ===== MOBILE & DESKTOP VERSION ===== */
.section-banner {
  width: 100%;
  overflow: hidden;
}

.section-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== ĐĂNG KÝ ===== */
.trial-register {
  background-color: white;
  padding: auto;
}

.register-wrapper {
  display: flex;
  justify-content: center;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px white !important;
}

.register-image {
  flex: 1;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.register-image img {
  max-width: 100%;
  height: auto;
}

.register-form {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center; 
}

.register-form form {
  width: 100%;
  max-width: 500px;
}

.register-form h2 {
  color: #0066cc;
  margin-bottom: 5px;
}

.register-form p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  flex: 1;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 14px;
}

.form-group input,
.form-group select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.btn-submit {
  margin-top: 10px;
  padding: 12px;
  background-color: #c1e2ff;
  color: #000;
  font-weight: bold;
  width: 100%;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-submit:hover {
  background-color: #aad7ff;
}

.input-error {
    border: 2px solid red;
    background-color: #ffe6e6;
}

/* ===== FOOTER ===== */
.footer-carousel {
  background: white;
  padding: 30px 0px;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-title {
  font-weight: bold;
  text-align: center;
  font-size: 20px;
  margin-bottom: 15px;
  color: #000000;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  padding: 0 40px;
}

.carousel-track {
  display: flex;
  transition: all 0.5s ease;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.carousel-item {
  min-width: 200px;
  flex: 0 0 auto;
  background: white;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
  text-align: center;
  scroll-snap-align: start;
}

.carousel-item img {
  width: 100%;
  height: auto;
}

.owl-carousel .owl-item img{
  width: 50% !important;
}

.carousel-item .product-title {
  margin: 10px 0 5px;
  font-weight: bold;
}

.carousel-item .price {
  color: red;
  font-weight: bold;
  font-size: 14px;
}

.product-title {
  font-weight: bold;
  font-size: 18px;
  color: rgb(0, 0, 0);
  text-align: center;
  margin-top: 4px;
}

.product-price {
  font-weight: bold;
  font-size: 16px;
  color: #c00;
  text-align: center;
  margin-top: 4px;
}

.carousel-item .package {
  background: #0b3b5b;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
  font-size: 12px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  background: #fff;
  border: none;
  cursor: pointer;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

.carousel-btn.left {
  left: 0;
}

.carousel-btn.right {
  right: 0;
}

.item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center; 
  justify-content: center; 
}

.footer {
  background: linear-gradient(to top, #90dbff, #e0f7ff);
  padding: 40px 20px;
  color: black;
  font-family: Arial, sans-serif;
  position: relative; 
  overflow: hidden; 
}

.footer-robot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: auto;
  user-select: none;
  z-index: 0;
  pointer-events: none; 
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-col {
  flex: 1 1 180px;
  margin: 10px;
}

.footer-col h3 {
  font-size: 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid black;
  padding-bottom: 5px;
  text-transform: uppercase;
}

.icon-heading {
  display: flex;
  align-items: center; 
  gap: 6px;
  font-weight: bold;
  border-bottom: 2px solid black;
  padding-bottom: 5px;
}

.icon-heading span {
  color: #3087fe;
}

.icon-title {
  width: 20px;
  height: 20px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
  font-size: 13px;
  color: black;
}

.footer-link {
  color: black;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.footer-link:hover {
  color: #007BFF; 
}

.contact p {
  font-size: 20px;
  line-height: 1.6;
  color: black;
}

.logoSOF {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 10px;
  display: block;
}

.slogan {
  font-style: italic;
  color: black;
}

.map-section iframe {
  width: 110%;
}

/* ===== COPYRIGHT ===== */
.copyright {
  padding: 20px;
  padding: 0 auto;
  background-color: #3087fe;
  color: white;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
}

/* ===== BACK TO TOP BUTTON ===== */
#backtop {
  width: 50px;
  height: 50px;
  background-color: #9cd9ee;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: fixed;
  bottom: 40px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#backtop:hover {
  background-color: #5db2d1;
  transform: translateY(-3px);
}

/* ===== ICON ZALO, PHONE ===== */
@keyframes bouncePulse {
  0% {
    transform: scale(1) translateY(0);
    box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.6);
  }
  25% {
    transform: scale(1.1) translateY(-10px);
    box-shadow: 0 0 10px 5px rgba(33, 150, 243, 0.3);
  }
  50% {
    transform: scale(1) translateY(0);
    box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.6);
  }
  75% {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 0 6px 3px rgba(33, 150, 243, 0.4);
  }
  100% {
    transform: scale(1) translateY(0);
    box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.6);
  }
}

.contact-buttons {
  position: fixed;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: bouncePulse 1.4s infinite ease-in-out;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.contact-icon:hover {
  transform: scale(1.2);
}

.contact-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  pointer-events: none;
  filter: brightness(0) invert(1); 
}

.zalo-icon {
  background-color: #2196f3; 
}

.phone-icon {
  background-color: #2196f3;
}

/* ===================== RESPONSIVE CHO MOBILE ===================== */
@media (max-width: 768px) {
  /* ===== HEADER ===== */
    .header-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px;
    gap: 8px;
  }

  .logo {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .logo img {
    height: 50px;
    max-width: 100%;
  }

  .header-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .header-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1.4;
    justify-content: center;
  }

  .header-item .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .slogan img {
    display: none;
  }

  /* ===== BANNER ===== */
  .banner-full,.banner-image {
    width: 100%;
    height: 40vw;  
    background-image: url('images/Anhbia_BaiGuiXe.jpg');
    background-size: cover;  
    background-position: center;
    background-repeat: no-repeat;
  }

  .register-wrapper {
    flex-direction: column;
    box-shadow: none;
    border-radius: 0;
  }

  .register-image {
    order: 2;
    padding: 10px;
  }

  .register-form {
    padding: 10px;
    order: 1;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .carousel-wrapper {
    padding: 0 10px;
  }

  .carousel-item {
    min-width: 70%;
  }

  /* ===== FOOTER ===== */
  .footer {
    padding: 20px 20px;
  }

  .footer-col.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-column {
    flex: 1 1 100%;
    min-width: unset;
  }

  .footer-logo img {
    height: 50px;
    margin: 10px auto;
    display: block;
  }

  .slogan {
    font-size: 16px;
    margin: 10px 0;
  }

  .contact-section h4,
  .map-section h4 {
    font-size: 20px;
  }

  .contact-section p {
    font-size: 15px;
    justify-content: center;
    text-align: center;
  }

  .map-section iframe {
    width: 100%;
    height: 200px;
  }

  /* ===== COPYRIGHT ===== */
  .copyright {
    padding: 10px;
    font-size: 12px;
  }

  .contact-buttons {
    left: 10px;
    gap: 10px;
  }

  .banner-img img {
    width: 100px;
    height: 100px;
  }

  .why-choose .reasons {
    flex-direction: column;
    gap: 15px;
  }

  .reason {
    width: 100%;
  }

  .btn-submit {
    font-size: 16px;
  }

  .carousel-btn {
    display: none;
  }
}

.owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 15px; 
  pointer-events: none; 
}

.owl-nav button.owl-prev,
.owl-nav button.owl-next {
  background-color: rgba(0, 0, 0, 0.2);  
  border: none;
  border-radius: 50%;
  font-size: 20px;
  color: white;
  width: 35px;
  height: 35px;
  pointer-events: all;  
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s ease;
}

.owl-nav button.owl-prev:hover,
.owl-nav button.owl-next:hover {
  background-color: rgba(0, 0, 0, 0.4);
}