/* Reset đơn giản */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: #f8f8f8;
  color: #333;
}

a {
  color: #0077cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Header */
header {
  background-color: #fff;
  height: 80px;
  position: fixed;
  left: 0;
  right: 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}

#mobile {
  display: none;
}

#bars {
  border: 1px solid;
  border-radius: 3px;
  padding: 5px 10px;
  display: none;
}

#bars:hover {
  opacity: 0.5;
}

header h1 {
  display: inline-block;
  color: #0077cc;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
}

nav li a {
  font-weight: bold;
}

/* Banner */
#banner img {
  max-width: 100%;
  display: block;
  padding-top: 80px;
}

/* Section titles */
h2 {
  margin: 30px 0 20px;
  font-size: 24px;
  color: #444;
  border-bottom: 2px solid #0077cc;
  padding-bottom: 5px;
}

/* Grid 3 cột */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Card nhà mạng */
.card {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  height: 100%;
  /* Quan trọng */
}

.card img {
  height: 60px;
  margin-bottom: 10px;
}

.btn {
  display: inline-block;
  margin-top: 10px;
  background-color: #0077cc;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
}

.btn:hover {
  background-color: #005fa3;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.card img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.card h3 {
  font-size: 18px;
  margin-top: 12px;
  color: #333;
}

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

.card .btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: #0077cc;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.card .btn:hover {
  background: #005fa3;
}

/* Blog */
#blog article {
  margin-bottom: 20px;
}

/*Post*/
#post article ul li {
  list-style: none;
}
#post article img {
  display: block;
  margin: 0 auto;
}
/* FAQ */
#faq strong {
  display: block;
  margin-top: 15px;
  color: #0077cc;
}

/* Form tư vấn */
form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

form input,
form select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

form button {
  background-color: #28a745;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
}

form button:hover {
  background-color: #218838;
}

/* Footer */
footer {
  background-color: #222;
  color: #ccc;
  padding: 40px 20px;
  margin-top: 40px;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 20px;
}

.footer-cols div {
  flex: 1 1 250px;
}

footer h4 {
  margin-bottom: 10px;
  color: #fff;
  margin-left: 20px;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 8px;
}

footer ul li a {
  color: #ccc;
}

footer ul li a:hover {
  color: #fff;
}

footer p:last-child {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: #999;
}

/* breadcrumb */

.breadcrumb {
  padding-top: 100px;
}

/* CSS mở rộng riêng cho trang login */
.login-wrapper {
  max-width: 400px;
  margin: 120px auto;
  /* tránh dính header cố định */
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Dashboard */
a:hover {
  text-decoration: underline;
}

/* Header giả lập */
header {
  height: 80px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.btn-logout {
  background-color: #e11d48;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.btn-logout:hover {
  background-color: #be123c;
}

header h1 {
  color: #0077cc;
}

/* Layout Dashboard */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  padding-top: 80px;
  /* tránh header */
}

.sidebar {
  width: 240px;
  background-color: #1e293b;
  color: #fff;
  padding: 20px;
  position: fixed;
  top: 80px;
  bottom: 0;
  left: 0;
  overflow-y: auto;
}

.sidebar h2 {
  margin-bottom: 20px;
  font-size: 20px;
  color: #fff;
}

.sidebar ul {
  list-style: none;
  padding-left: 0;
}

.sidebar ul li {
  margin-bottom: 15px;
}

.sidebar ul li a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
}

.sidebar ul li a:hover {
  color: #fff;
}

.main-content {
  margin-left: 240px;
  padding: 40px 20px;
  flex: 1;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  background-color: #0077cc;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 20px;
}

.btn:hover {
  background-color: #005fa3;
}

.float-right {
  float: right;
}

.main-content h1 {
  font-size: 28px;
  margin-bottom: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card-stat {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.card-stat h3 {
  color: #0077cc;
  margin-bottom: 10px;
}

.card-stat p {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

/* table */
.table-wrapper {
  margin-top: 40px;
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

table th,
table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

table th {
  background-color: #f1f5f9;
  color: #333;
  font-weight: bold;
}

.btn-action {
  padding: 6px 12px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  margin-right: 6px;
}

.btn-edit {
  background-color: #3b82f6;
}

.btn-edit:hover {
  background-color: #2563eb;
}

.btn-delete {
  background-color: #ef4444;
}

.btn-delete:hover {
  background-color: #dc2626;
}

.sidebar-menu li a {
  color: #333;
  text-decoration: none;
  padding: 10px;
  display: block;
}

.sidebar-menu li.active a {
  color: #fff;
  background-color: #007bff;
  font-weight: bold;
}

.quick-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 30px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
  justify-content: center;
}

.quick-nav a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 5px;
  background: #e7f1ff;
  transition: background 0.2s;
}

.quick-nav a:hover {
  background: #d0e8ff;
}

.quick-nav {
  top: 60px;
  display: flex;
  /* flex-direction: column; */
  background: white;
}

.alert {
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 5px;
  font-weight: bold;
}

.alert.success {
  background: #d4edda;
  color: #155724;
}

.alert.error {
  background: #f8d7da;
  color: #721c24;
}

.alert.warning {
  background: #fff3cd;
  color: #856404;
}

.see-more-btn,
.see-less-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #f27227;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  margin-top: 12px;
  transition: background 0.3s;
}

.see-more-btn:hover,
.see-less-btn:hover {
  background: #0056b3;
}

.see-more-wrapper,
.see-less-wrapper {
  text-align: center;
}

#register {
  display: none;
  background: rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 999;
}
#register .card {
  margin: 0 auto;
}
#close {
  float: right;
  color: red;
  cursor: pointer;
}

.call-now-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #28a745;
  color: white;
  padding: 12px 18px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.call-now-btn:hover {
  background-color: #218838;
}


/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    position: relative;
    width: 100%;
    top: 0;
  }

  .main-content {
    margin-left: 0;
  }

  .dashboard-wrapper {
    flex-direction: column;
  }
}

/* Card gói Internet kế thừa */
.internet-card {
  position: relative;
  padding: 30px 20px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.internet-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

/* Badge nổi bật */
.internet-card .badge {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f6691d;
  color: white;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Vòng tròn tốc độ */
.circle-speed {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #0077cc, #00aaff);
  color: #fff;
  border-radius: 50%;
  margin: 20px auto;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.08);
}

/* Giá */
.internet-card .price {
  font-size: 18px;
  font-weight: bold;
  color: #0077cc;
  margin: 10px 0;
}

/* Danh sách lợi ích */
.internet-card .features {
  list-style: square;
  padding: 0;
  margin: 15px 0;
  min-height: 100px;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

.internet-card .features li {
  margin-bottom: 6px;
  text-align: justify;
  margin-left: 10px;
}

/* Mô tả ngắn */
.internet-card .desc {
  font-size: 14px;
  color: #555;
  margin: 15px 0 20px;
  line-height: 1.5;
  text-align: justify;
}

/* Grid 4 cột tự động xuống dòng */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;

}

.card .actions {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  margin-bottom: 0;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.card .actions a {
  display: block;
}

.detail-link {
  font-size: 14px;
  color: #555;
  text-decoration: underline;
}

/* Giới hạn cứng tối đa 4 cột khi đủ rộng */
@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* Responsive */
@media (max-width: 768px) {
  .pc {
    display: none;
  }

  #bars {
    display: block;
  }

  #mobile {
    /* display: block; */
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }

  #mobile ul {
    padding-top: 80px;
    flex-direction: column;
    padding-left: 20px;
  }

  #mobile ul li {
    display: block;
  }

  #mobile ul li a {
    display: block;
    color: #fff;
  }

  .footer-cols {
    flex-direction: column;
    text-align: center;
  }
}