:root {
  --brand:#0066E0;
  --muted:#777;
  --bg:#fff;
  --surface:#f8f9fb;
  --radius:10px;
  --shadow:0 6px 18px rgba(15,15,15,.08);
  --Accent:#3399FF;
  --bthover:#004bbd;
}

/* Regular (400) */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter_28pt-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

/* SemiBold (600) */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter_28pt-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: block;
}

.btn:hover {background-color: var(--bthover);}

body *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {
  font-size: 18px;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1; /* chiếm hết không gian trống để đẩy footer xuống */
}



a {
  text-decoration: none;
  color: inherit;
}

body {
  margin:0;
  font-family:Inter,sans-serif;
  color:#222;
  background:var(--bg);
}

.mute{color:var(--muted)}

.wrap {
  max-width:1100px;
  margin:0 auto;
  padding:18px;
}

.wrap2 {
  max-width:1100px;
  margin:0 auto -30px auto;
}

.btn {
  padding:18px 34px;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
  cursor:pointer;
  background:var(--brand);
  color:#fff;
  transition: background-color 0.3s ease; /* thời gian chuyển mượt */
}


.hero {
  padding:20px 0;
}

.hero h1 {
  line-height: 1.3;
}

.hero p {
  line-height: 2;
}

.products-grid {
  display: flex;
  justify-content: center; /* canh giữa ngang */
  gap: 40px;               /* khoảng cách giữa các card */
  flex-wrap: wrap;         /* để mobile xuống hàng */
}



.products-section .wrap {
  background-image: url("../images/bg-products.webp"); /* ảnh nền của bạn */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius);   /* Góc trên bên trái */
  padding: 40px 0px;      /* khoảng cách bên trong */
  color: #fff;             /* đổi chữ sáng nếu cần */
  position: relative;
  overflow: hidden;
  margin-top:10px;
}

/* overlay để chữ rõ hơn */
.products-section .wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  z-index: 0;
}

.products-section .grid,
.products-section h2,
.products-section .product-card {
  position: relative; /* để nổi lên trên overlay */
  z-index: 1;
}



.site-footer {
  border-top:1px solid #eee;
  padding:20px 0;
  text-align:center;

  margin-top: auto;
  position: relative;
  bottom: 0px; /* giữ cách đáy 50px */
}

.header {
  margin-top: 20px;
  margin-bottom: 10px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.main_nav {
  margin-right: auto;
  text-decoration: none;
}

.main_nav a {
  text-decoration: none;
  padding: 0 5px;
  margin-right: 40px;
  color: #666666;
}

.logo img {
  height: 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
}

.hero-text {
  text-align: left;
}

.cta-group {
  margin-top: 40px;
}

.hero-image img {
  width: 85%;
  height: auto;
  border-radius: 12px;
}

.icon img {
  display: block;
  margin: 0 auto;
  width: 60%;
}

.icon {
  border-radius: 12px;
  border-color: var(--brand);
  width: 66px;
  height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;   /* NOTE: gộp class trùng */
  overflow: visible;    /* NOTE: gộp class trùng */
  background-color: var(--brand);
  transition: background-color 0.3s ease, border-color 0.3s ease; /* gộp 2 thuộc tính */
}

.product-card:hover .icon {
  background-color:var(--bthover);
  border-color: var(--bthover);
}



.info {
  padding: 40px 0;
}

.info img {
  width: 70%;
}

.info-text {
  margin-left: 40px; /* NOTE: gộp class trùng */
}

.info-text h2 {
  line-height: 1.3;
  margin-bottom: 20px;

}

.info-text p {
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--muted);
}

.info-text .btn {
  margin-top: 20px;
}

@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
  .info-image {
    order: -1;
  }
  .info-image img {
    width: 100%;
  }
}

.product-card {
  background:#ffffff;
  border-radius:12px;
  box-shadow:var(--shadow);
  text-align: center;
  width:250px;
  padding: 30px 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* slide hợp tác */
.info-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  align-items: center;
  gap: 20px;
}

.info-image {
  width: 350px;
  height: 450px;
  overflow: hidden;
  border-radius: 12px;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* Responsive cho info-grid */
@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .info-image {
    width: 100%;
    max-width: 200px;
    height: 300px;
  }
}

.cards-section {
  overflow: hidden;
  padding: 50px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
}

.slider-container {
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 80px;
  transition: transform 0.01s linear;
}

.card {
  min-width: 400px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  text-align: center;
}

.card h3 {
  margin:0px;
}

.card p {
  margin-top:5px;
}

.card img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .card {
    min-width: 300px;
  }
  .slider-track {
    gap: 40px;
  }
}

.hero-text-simdata h1 {
  text-align: center;
}

.table-section {
  padding: 40px 20px;
  background: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 12px;
}

.table-section select {
  padding: 12px 20px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
  margin-bottom: 20px;
}

.table-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.table-box {
  max-width: 1000px;
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.table-custom {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 15px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.table-custom thead th {
  background: #f5f5f5;
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid #ccc;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-custom td {
  padding: 12px 16px;
  border-bottom: 1px solid #e8e8e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.2s ease;
}

.table-custom tr:hover td {
  background: #e9e9e9;
}

@media (max-width: 768px) {
  .table-custom {
    font-size: 14px;
  }
  .table-custom th,
  .table-custom td {
    padding: 8px 10px;
  }
}

.news-offers {
  padding: 40px 0;
  background-color: #f9f9f9;
}

.news-offers .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: #333; /* NOTE: gộp class trùng */
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin: 20px 0; /* NOTE: gộp class trùng */
}

.news-item {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.news-content {
  padding: 16px;
  flex: 1;
}

.news-title {
  font-size: 1.25rem;
  margin: 0 0 12px;
  color: #222;
}

.news-title a {
  text-decoration: none;
  color: inherit;
}

.news-excerpt {
  font-size: 1rem;
  color: #666;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-date {
  font-size: 0.875rem;
  color: #999;
}

.news-more {
  text-align: center;
  margin-top: 30px;
}

.btn-more {
  display: inline-block;
  padding: 12px 24px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.btn-more:hover {
  background-color: #0056b3;
}

.simdata-section .back-link {
  align-self: flex-start;
  text-align: left;
}

.simdata-section .wrap.back-link-wrap ,.back-link {
  padding: 0;
  margin: 0;
}


.simdata-section .wrap.back-link-wrap {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.back-link a:hover {
  color: #0066E0;
}

.simdata-section .sim-filter {
  padding: 12px 20px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
  margin-bottom: 25px;
  background: #fff;
  cursor: pointer;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.simdata-section .sim-filter:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,102,224,0.15);
  outline: none;
}

/* nen anh cho banner*/
.sub-banner .wrap {
  background-image: url("../images/bg-products.webp"); /* hoặc ảnh riêng cho sim data */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  padding: 40px 0px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.sub-banner .wrap h1 {margin-left:20px}


.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1100px;
}

.simdata-section {
  padding: 40px 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.simdata-section .filter {
  display: flex;
  justify-content: center;
  width: 100%;
}

.sim-card {
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: border-color 0.3s, transform 0.2s;
    max-width: 280px;   /* chiều ngang tối đa */
      display: flex;
  flex-direction: column;   /* xếp nội dung theo cột */
  justify-content: space-between; /* đẩy nút xuống cuối */
}

.sim-card:hover {
  transform: translateY(-3px);
}

.sim-card.selected {
  border-color: var(--brand);
}

.sim-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: #222;
  font-weight: 600;
}

.sim-card h2 {
margin:10px 0 5px 0;
padding:0;
}

.sim-card {
line-height: 1; /* chữ dễ đọc hơn */
}

.tag-loai {
  display: inline-block;
  background: #e6f0ff;
  color: var(--brand);
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  font-weight: 500;
  white-space: nowrap;
  width: fit-content;
}

.detail {
  font-size: 14px;
  margin: 4px 0;
  color: #555;
}

.detail.price {
  font-size: 18px;
  font-weight: bold;
  color: #e63946;
  margin: 10px 0;
}

.btn-bao-gia {
  margin-top: auto;       /* luôn đẩy nút xuống cuối */
  width: 100%;            /* full chiều ngang card */
  padding: 15px 14px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  transition: background 0.3s;
  font-size: 18px;
}

.btn-bao-gia:hover {
  background: var(--bthover);
}

.zalo-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #0066ff;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.zalo-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.banner {
  padding: 40px;
  width: 100%;
  height: 200px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background-image: url('../images/test.webp');
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
}

.news-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(15, 15, 15, .08);
  padding: 18px;
  transition: transform 0.2s ease;
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 12px;
}

.news-card h3 {
  font-size: 18px;
  margin: 10px 0;
}

.news-card p {
  color: #555;
  font-size: 14px;
}

.center-btn {
  text-align: center;
  margin-top: 20px;
}

.news-section .center-btn {
  margin-top: 40px;
  text-align: center;
}

.news-detail .news-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 16px;
  line-height: 1.5;
}

.news-detail .news-content th,
.news-detail .news-content td {
  border: 1px solid #ddd;
  padding: 10px 12px;
  text-align: left;
}

.news-detail .news-content th {
  background-color: #f5f7fa;
  font-weight: bold;
  color: #333;
}

.news-detail .news-content tr:nth-child(even) {
  background-color: #fafafa;
}

.news-detail .news-content tr:hover {
  background-color: #f0f8ff;
}

.news-detail .news-content ul {
  margin: 20px 0;
  padding-left: 25px;   /* thụt vào */
  list-style: none;     /* bỏ bullet mặc định */
}

.news-detail .news-content ul li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 20px;
  line-height: 1.6;
  color: #333;
  font-size: 16px;
}

.news-detail .news-content ul li::before {
  content: "•";          /* thay bullet đẹp hơn */
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);   /* màu xanh thương hiệu */
  font-size: 20px;
  line-height: 1.2;
}

/*menu ẩn */
/* ==== NAVIGATION RESPONSIVE ==== */
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.nav-logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #666;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 0;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  width: 30px;
  height: 25px;
  justify-content: center;
  align-items: center;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--brand);
    flex-direction: column;
    align-items: center;
    gap: 15px;
    overflow: hidden;

    max-height: 0;
    transition: max-height 0.4s ease;
  }

  .nav-links a {
    color: #fff;
  }

  .nav-links.active {
    max-height: 300px;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hamburger thành X */
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}
/* Mặc định: hiển thị menu cũ, ẩn menu mới */
.nav-wrapper {
  display: none;
}


/* trang lien he*/
.lienhe-banner .wrap{
  background-image: url("../images/lienhe.webp"); /* hoặc ảnh riêng cho sim data */
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  border-radius: var(--radius);
  color: #fff;
  position: relative;
  overflow: hidden;

  width: 100%;
  height: 200px;
  margin: 0 auto;
}



/* Mobile: ẩn menu cũ, hiển thị menu mới */
@media (max-width: 768px) {
  .header {
    display: none;
  }
  .nav-wrapper {
    display: flex;
  }
}


/* respon cho trang simdata*/

/* Desktop mặc định: giữ nguyên như cũ */

/* Tablet (<= 1024px) */
@media (max-width: 1024px) {
  .cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cột */
    gap: 16px;
  }
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr; /* 1 cột */
    gap: 12px;
  }
  .sim-card {
    width: 100%; /* full chiều ngang */
  }
}


/* respon trang lien he*/
@media (max-width: 1024px) {
  .banner {
    width: 80%;
  }

  .hero-image {display: none;}

    .hero-grid {
    grid-template-columns: 1fr; /* chuyển thành 1 cột */
    text-align: center;
  }
}










/* respon trang index */
/* Tablet (<= 1024px) */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 cột */
    gap: 16px;
  }
  .product-card {
    width: 100%; /* cho card full chiều ngang cột */
    max-width: 320px;
  }
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr; /* 1 cột */
    gap: 14px;
    margin: 40px 0 30px 0;
  }
  .product-card {
    width: 100%;
    max-width: 100%; /* card chiếm full chiều ngang */
    padding: 30px 18px 25px 18px; /* giảm padding cho gọn */
  }
}


/* ==== Responsive cho info-image ==== */

/* Tablet (<= 1024px) */
@media (max-width: 1024px) {
  .info-grid {
    grid-template-columns: 1fr; /* Chuyển thành 1 cột */
    gap: 20px;
  }

  .info-image {
    width: 100%;        /* co giãn theo màn hình */
    max-width: 300px;   /* giới hạn chiều ngang */
    height: auto;       /* tự động theo ảnh */
    margin: 0 auto;     /* canh giữa */
  }

  .info-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .info-text {
    margin-left: 0;     /* bỏ khoảng cách bên trái */
    text-align: center; /* căn giữa nội dung */
  }
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
  .info-image {
    max-width: 220px;  /* nhỏ gọn hơn trên mobile */
    height: auto;
  }

  .info-text {
    padding: 0 10px;
    font-size: 16px;   /* giảm font chữ */
  }
}
