body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f4f4f4;
}
h1 {
  font-size: 22px;
  text-align: center;
  color:ff6600;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 18px;
}

p {
  font-size: 16px;
}
a{
  font-size: 14px;
}
li{
  list-style: none;
}
div{
  gap: 10px;
}

header,
nav,
main,
footer {
  padding: 0px;
  /* bottom: 10px; */
}

/* Banner */
.banner-container {
  width: 100vw;
  height: auto;
  overflow: hidden;
  position: relative;
  align-items: center;
}

.banner-slider {
  display: flex;
  width: 300vw; /* 100vw * số slide */
  height: 100%;
  transition: transform 0.5s ease;
  touch-action: pan-y;
}

.banner-slide {
  width: 100vw;
  height: 100%;
  flex-shrink: 0;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fpt-benefits {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
}

.fpt-benefits h2 {
  color: #ff6600;
  font-size: 24px;
  margin-bottom: 30px;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* mặc định điện thoại: 2 cột */
  gap: 20px; /* khoảng cách 20px giữa các item */
  width: 90%; /* chiếm 90% chiều ngang section */
  margin: 0 auto; /* canh giữa */
}

.benefit-item {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.benefit-item i {
  font-size: 36px;
  color: #ff6600;
  margin-bottom: 10px;
}

.benefit-item h3 {
  font-size: 18px;
  margin: 5px 0;
  color: #333;
}

.benefit-item p {
  font-size: 14px;
  color: #555;
}

/* Máy tính: hiển thị 4 item 1 hàng */
@media (min-width: 992px) {
  .benefit-list {
    grid-template-columns: repeat(4, 1fr);
  }
}





/* Nội dung chính */
#home {
  text-align: center;
}
.container {
  padding: 0px;
  background-color: white;
  margin-top: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.price-item {
  display: flex;
  align-items: center;
  text-align: center;
}
.price-lv1 p {
  position: relative;
  text-align: center;
  align-items: center;
}
.price-lv2 p {
  position: relative;
  padding-left: 24px; /* Chừa khoảng trống bên trái để thêm dấu tích */
  margin-bottom: 10px;
  text-align: left;
}

.price-lv2 p::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: green; /* Màu xanh biểu thị tích */
  font-weight: bold;
}

.container h2 {
  font-weight: bold;
  color: #ff6600;
  text-align: center;
}
.container p {
  color: #353434;
  font-size: 16px!important;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 cột cho mobile */
  gap: 20px;
}
@media (min-width: 769px) {
  .services {
    grid-template-columns: repeat(4, 1fr); /* 4 cột cho desktop */
  }
}

.internet{
  text-align: center;
  margin-top: auto;
  /* display: flex;
  flex-wrap: nowrap;
  gap: 20px; */
}
.service-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  min-height: auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  position: relative;
  padding-bottom: 70px;
  width: 100%;
  box-sizing: border-box;

  /* Hiệu ứng ban đầu */
  /* opacity: 0;
  transform: translateY(60px); /* Dịch xuống để tạo hiệu ứng cuộn lên */
  transition: opacity 0.8s ease, transform 0.8s ease; 
}

/* Khi vào khung nhìn */
.service-box.visible {
  opacity: 1;
  transform: translateY(0); /* Trả về vị trí ban đầu */
}


.service-box img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.service-box h3 {
  text-align: center;
  margin-top: 10px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-top: 10px;       /* Sát viền trên */
  margin-bottom: 10px; /* Khoảng cách nhẹ bên dưới */
}
.service-box p {
  text-align: center;
  color: #666;
}

.btn-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;              /* khoảng cách giữa 2 nút */
  margin-top: 15px;
}

.btn-group a {
  flex: 1;                /* mỗi nút chiếm 50% chiều ngang */
  text-decoration: none;
}

.btn-group button {
  width: 100%;
  padding: 12px 0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Nút Đăng ký */
.btn-dang-ky button {
  background: #0073ff;
  color: #fff;
  border: none;
}

.btn-dang-ky button:hover {
  background: #005ad1;
}

/* Nút Xem chi tiết */
.btn-chi-tiet button {
  background: #fff;
  color: #0073ff;
  border: 2px solid #0073ff;
  background-color: #009933;
}

.btn-chi-tiet button:hover {
  background: #f0f6ff;
}


/* Bảng giá trong bài viết */
.btn-bang-gia {
  background-color: #ff6600;
  color: white;
  padding: 3px 10px;  /* nhỏ hơn */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;    /* chữ nhỏ hơn */
  transition: background-color 0.5s, transform 0.2s;
  animation: blink 1.2s infinite; /* hiệu ứng nhấp nháy */
}

@keyframes blink {
  0%, 100% {
    background-color: #d18452;
  }
  50% {
    background-color: #ff3300; /* màu đậm hơn khi nhấp nháy */
  }
}

/* Tin tức */

/* ===== Tin tức list ===== */
#news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

/* Card */
.news-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: #e7e7e7;
}

/* Ảnh đại diện */
.news-thumb img {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* Nội dung */
.news-title a {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  line-height: 1.35;
}
.news-title a:hover,
.news-title a:focus {
  color: #ff6600;
  text-decoration: underline;
}

.news-excerpt {
  margin-top: 6px;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  /* 2 dòng như yêu cầu */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 992px) {
  #news-list { grid-template-columns: 1fr; }
  .news-thumb img { width: 180px; height: 120px; }
}

@media (max-width: 520px) {
  .news-item { padding: 12px; gap: 10px; }
  .news-thumb img { width: 120px; height: 84px; }
  .news-title a { font-size: 16px; }
  .news-excerpt { font-size: 13px; }
}

/* CTA */
.cta {
  text-align: center;
  margin: 40px 40px;
  .p{
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
  }
}
img{
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  align-items: center;
}
.cta button {
  background-color: #ff6600;
  color: white;
  padding: 15px 30px;
  font-size: 14px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.cta button:hover {
  background-color: #ff4500;
}
  .table-responsive{
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    border-radius: 10px;
    align-items: center;
  }
  table, th, td {
  border: 1px solid rgb(223, 138, 34);  /* viền đen 1px */
  border-collapse: collapse; /* gộp viền lại cho gọn */
}

/* Footer */
.footer {
  background-color: #f1f1f1;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}

.footer-top {
  text-align: left;
  margin-bottom: 30px;
}

.footer-logo {
  max-width: 150px;
  height: auto;
  justify-items: center ;

}


.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  transform: translateY(-60px);
}


.footer-info {
  flex: 1;
  min-width: 280px;
}

.footer-info h3 {
  margin-bottom: 15px;
  color:#0072bc;
  text-align: left;
}

.footer-info p {
  margin: 8px 0;
  font-size: 12px;
  line-height: 1.6;
  color: #666;
  text-align: left;
}

.footer-info a {
  text-decoration: none;
  color:#666;
  transition: color 0.3s;
}

.footer-info a:hover {
  color: #ff6600;
}
.footer-social{
  flex: 1;
  min-width: 280px;
  text-align: center; 
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-social h3{
  font-size: 15;
  margin-bottom: 15px;
  color:#0072bc;
  
}
.footer-social img {
  vertical-align: middle;
  width: 18px;
  height: 18px;
  margin-right: 5px;
  object-fit: contain;
}

.social-icons {
  display: flex;
  justify-content: center; /* Căn giữa ngang */
  align-items: center;     /* Căn giữa dọc nếu cần */
  gap: 15px;               /* Khoảng cách giữa các icon */
}
.social-icons a img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.social-icons a:hover img {
  transform: scale(1.2);
}



/* Responsive: chỉ hiển thị trên mobile */

  .banner-container {
    height: auto;
    width: 100%;
  }

  .container {
    padding: 0px;
    margin-top: 10px;
  }

  .price-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .internet{
    text-align: center;
    
  }

  .service-container {
    flex-direction: column;
    gap: 20px;
  }

  .service-box {
    
    padding-bottom: 80px;
  }

  .cta button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }

  .quy-trinh-len-hd{
    margin-top: 20px;
    text-align: center;
    align-items: center;
    background-color: white;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden; /* để ảnh không tràn khi zoom */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .footer-top {
    padding: 10px 0;
  }

  .footer-info {
    text-align: center;
  }


   /* Box mobile */
   .services {
  /* display: grid; */
  grid-template-columns: repeat(1, 1fr);
  gap: 10px;
  /* justify-content: space-between; */
  }

  .service-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    position: relative;
    padding-bottom: 70px;
    width: 100%;
    box-sizing: border-box;
  }

  .service-box img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .service-box h3 {
    text-align: center;
    margin-top: 10px;
    text-align: center;
    font-size: 16px;
    margin: 10px 0;
    color: #333;
    flex: 1;
  }
  .price-lv1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-grow: 1;
  }
  .price-lv1 p {
    padding-top: 16px;
    font-size: 14px;
    text-align: center;
  }
  .price-lv1 p b{
    color: #009933;
    font-size: 16px;
  }

  .price-lv2 p {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    font-size: 13px;
    text-align: left;
    flex-grow: 1;
  }

  .price-lv2 p::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: green;
  }

  .service-box a {
    display: block;
    flex-grow: 1;
    text-align: center;
  }


  .service-box button:hover {
    background-color: #ff4500;
  }
.danh-sach-kenh{
  text-align: left;
  margin-top: 10px;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  padding-left: 10px;
}


/* Desktop (>=769px) */
@media (min-width: 769px) {
  .mobile-nav { display: none; }
  .top-nav, .bottom-nav { display: flex; }
}

/* Mobile (<=768px) */
@media (max-width: 768px) {
  body{border-width: 10px 10px 10px 15px;}
  header, nav, main, footer { padding: 2px; background-color: #ffffff;}
  .top-nav, .bottom-nav { display: none; }
  .top-nav { flex-direction: column; height: auto; gap: 10px; align-items: flex-start; }
  .bottom-nav { flex-direction: column; align-items: flex-start; gap: 10px; padding: 10px; }
  .bottom-nav .left { flex-direction: column; gap: 10px; }
  .menu { flex-direction: column; gap: 10px; }
  .banner-container { width: 100%; }
  .container { padding: 0px; margin-top: 10px; }
  .price-item { flex-direction: column; align-items: flex-start; }
  .services { flex-direction: column; gap: 20px; }
  .service-box {  padding-bottom: 80px; }
  .cta button { width: 100%; padding: 12px; font-size: 16px; }
  .floating-buttons { bottom: 10px; right: 10px; }
  .zalo-btn, .call-btn { width: auto; height: auto; font-size: 13px; }
  .footer-top { padding: 10px 0; }
  .footer-info { text-align: center; }
  .banner-slide img {
    min-height: 200px;
  }
  .services {
    display: flex !important;
    /* flex-direction: row; */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 10px 0;
  }

  .services::-webkit-scrollbar {
    display: none;
  }

  .service-box {
    flex: 0 0 85%;
    scroll-snap-align: start;
    box-sizing: border-box;
  }
}
/* === Responsive sửa lại: 2 box ở mobile, 4 box ở desktop === */

.services {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* 2 cột cho mobile */
  gap: 20px;
}
@media (min-width: 769px) {
  .services {
    grid-template-columns: repeat(4, 1fr); /* 4 cột cho desktop */
  }
}


.service-box {
  width: 100%; /* 2 box mỗi dòng trên mobile */
  box-sizing: border-box;
}

/* Khi lên desktop: hiển thị 4 box */
@media (min-width: 769px) {
  .service-box {
    width: 100%; /* 4 box mỗi dòng */
  }
}

/* 2. Responsive hiển thị box */

.services {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* 2 cột cho mobile */
  gap: 20px;
}
@media (min-width: 769px) {
  .services {
    grid-template-columns: repeat(4, 1fr); /* 4 cột cho desktop */
  }
}


.service-box {
  width: 100%; /* 2 box cho mobile */
  box-sizing: border-box;
}

/* 4 box cho desktop */
@media (min-width: 769px) {
  .service-box {
    width: 100%;
  }
}

/* 3. Căn trái text trong box */
.service-box h3{
  text-align: center;
  margin-top: 10px
}
.service-box p {
  text-align: left !important;
}

/* ==== CUSTOM FIXES CHO service-box ==== */

/* 1. Cố định chiều cao h3 */
.service-box h3 {
  height: 498px;
  /* overflow: hidden; */
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin: 10px 0;
}

/* 2. price-lv1 căn giữa, gần sát h3 */
.price-lv1 p {
  margin-top: 4px;
  margin-bottom: 6px;
  text-align: center;
  font-size: 16px;
}

/* 3. Đảm bảo price-lv2 nằm dưới price-lv1 */
.price {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* 4. Nút button cách viền dưới container 5px */
.service-box a{
  /* background-color: #0077cc; */
  height: 12%;
  display: flex;
  align-items: center;
  /* justify-content: center; */
  margin-top: auto;
  margin-bottom: 5px;
  text-decoration: none;
}
  
 
.service-box a button {
  margin-top: auto;
  margin-bottom: -15%;
  align-self: center;
  width: 80%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  
}

.service-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.btn-group a {
  flex: 1;
  text-decoration: none;
}

.btn-group button {
  width: 100%;
  padding: 12px 0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  color: #fff;
  background-color: #0073ff;
}

/* === Nút Đăng ký (xanh dương) === */
.btn-dang-ky button {
  background-color: #0073ff;
  color: #fff;
}
.btn-dang-ky button:hover {
  background-color: #005ad1;
}

/* === Nút Xem chi tiết (xanh lá) === */
.btn-chi-tiet button {
  background-color: #009933;
  color: #fff;
}
.btn-chi-tiet button:hover {
  background-color: #00b33c;
}

/* Chỉnh phần hiển thị vì sao */
.gioi-thieu ul {
  padding-left: 20px;
  list-style: none;
}

.gioi-thieu ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.5;
}

.gioi-thieu ul li::before {
  position: absolute;
  left: 0;
  top: 2px;
  font-weight: bold;
}

/* CSS POPUP */
  #popupTuVan {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    font-family: Arial, sans-serif;
  }

  #popupTuVan .popup-content {
    background: #fff;
    width: 60%;
    margin: auto;
    max-width: 420px;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    position: relative;
    animation: popupFadeIn 0.4s ease;
  }

  @keyframes popupFadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
  }

  #popupTuVan h3 {
    color: #f37021;
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
  }

  #popupTuVan label {
    font-weight: bold;
    color: #0072bc;
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 14px;
  }

  #popupTuVan input,
  #popupTuVan textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
  }

  #popupTuVan textarea {
    resize: vertical;
    min-height: 60px;
  }

  #popupTuVan button {
    padding: 10px 15px;
    margin-top: 15px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }

  #popupTuVan button[type="submit"] {
    background-color: #8dc63f;
    color: white;
    width: 100%;
  }

  #popupTuVan button[type="button"] {
    background-color: #ccc;
    color: #333;
    margin-top: 10px;
    width: 100%;
  }

  .close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 22px;
    color: #888;
    cursor: pointer;
    font-weight: bold;
  }

  .close-btn:hover {
    color: #000;
  }

  @media (max-width: 480px) {
    #popupTuVan .popup-content {
      margin: 50px auto;
      padding: 20px 15px;
    }

    #popupTuVan h3 {
      font-size: 16px;
    }

    #popupTuVan label,
    #popupTuVan input,
    #popupTuVan textarea,
    #popupTuVan button {
      font-size: 13px;
    }

    .close-btn {
      font-size: 20px;
      top: 10px;
      right: 12px;
    }
  }