/* Áp dụng cho toàn bộ khối nội dung */
.offset-content {
  font-family: "Roboto", Arial, sans-serif;
  line-height: 1.7;
  color: #333;
  margin: 0px auto;
}

/* H2: responsive, đậm, có gạch chân gradient */
.offset-content h2 {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  font-weight: 700;
  margin: 0.5em 0 0.7em;
  position: relative;
  color: #111;
}
.offset-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #0073e6, #00c6ff);
  border-radius: 2px;
}

/* H3: responsive nhỏ hơn, có thanh kẻ bên trái */
.offset-content h3 {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: 600;
  margin: 1.2em 0 0.5em;
  padding-left: 10px;
  border-left: 4px solid #0073e6;
  color: #222;
}

/* Đoạn văn */
.offset-content p {
  font-size: 1rem;
  color: #444;
  text-align: justify;
}

/* Bảng */
.offset-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95rem;
}
.offset-content th,
.offset-content td {
  border: 1px solid #ddd;
  padding: 8px 12px;
}
.offset-content th {
  background: #f7f9fc;
  font-weight: 600;
}

/* Danh sách */
.offset-content ul,
.offset-content ol {
  margin: 0 0 1em 1.5em;
  padding: 0;
}
.offset-content li {
  margin-bottom: 0.5em;
}
/* Mặc định mobile: bảng chiếm 100% */
.offset-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em auto;
  font-size: 0.95rem;
}
.offset-content th,
.offset-content td {
  border: 1px solid #ddd;
  padding: 8px 12px;
}
.offset-content th {
  background: #f7f9fc;
  font-weight: 600;
}

/* PC: bảng hẹp lại còn 80% */
@media (min-width: 769px) {
  .offset-content table {
    width: 80% !important;
  }
}
.offset-content table {
  border-collapse: collapse;
  margin: 1.5em auto;
  font-size: 0.95rem;
  width: 100%;
}

.offset-content th,
.offset-content td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: center;   /* ép căn giữa tất cả */
  vertical-align: middle;
}

.offset-content th {
  background: #f7f9fc;
  font-weight: 600;
}
.content-style {
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #222;
  margin: 1.2em 0;
  padding-left: 1.2em;
}

.content-style ul {
  list-style: disc;       /* dùng bullet chấm mặc định */
  padding-left: 1.5em;    /* thụt vào vừa đủ */
  margin: 0;
}

.content-style li {
  margin-bottom: 0.6em;   /* cách đều giữa các dòng */
}

.content-style strong {
  color: #000;
  font-weight: 600;
}

.content-style em {
  font-style: italic;
  color: #555;
}
.offset-content a:hover,
.content-style a:hover {
  color: #0073e6;          /* đỏ nhấn khi hover */
  text-decoration: none;
}
.offset-content a,
.content-style a {
  color: #0073e6;          /* đỏ nhấn khi hover */
  text-decoration: none;
}
/* Author Box */
.author-box {
  display: flex;
  align-items: flex-start;
  padding: 20px;
  margin-top: 40px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.author-box .author-image img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
  border: 3px solid #f1f1f1;
}

.author-box .author-info {
  flex: 1;
}

.author-box .author-name {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #222;
}

.author-box .author-title {
  margin: 6px 0 12px;
  font-size: 1rem;
  color: #666;
}

.author-box .author-bio {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 14px;
  line-height: 1.6;
}

/* Social Icons */
.author-box .author-social {
  display: flex;
  gap: 12px;
}

.author-box .author-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f5f5f5;
  color: #555;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.author-box .author-social a:hover {
  background: #007bff;
  color: #fff;
}
/* Author Box mobile style */
@media (max-width: 768px) {
  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
  }

  .author-box .author-image {
    margin-bottom: 15px;
  }

  .author-box .author-image img {
    width: 100px;
    height: 100px;
    margin-right: 0;
  }

  .author-box .author-info {
    width: 100%;
  }

  .author-box .author-name {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }

  .author-box .author-title {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #666;
  }

  .author-box .author-bio {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
  }

  .author-box .author-social {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .author-box .author-social a {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}
/* Review Box Grid */
.review-box{
  display:grid; gap:20px; margin:30px 0;
  grid-template-columns:1fr;
}
.review-item{
  background:#fff; border-radius:12px; padding:20px;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
  text-align:center; display:flex; flex-direction:column; align-items:center;
  transition:transform .25s, box-shadow .25s;
}
.review-item:hover{ transform:translateY(-5px); box-shadow:0 8px 18px rgba(0,0,0,.12); }

.review-avatar{ margin-bottom:12px; }
.review-avatar img{
  width:120px; height:120px; aspect-ratio:1/1; object-fit:cover;
  border-radius:50%; display:block; border:3px solid #f1f1f1; box-shadow:0 2px 6px rgba(0,0,0,.1);
}

.review-name{ margin:8px 0 6px; font-weight:600; color:#222; font-size:1rem; }
.review-stars{ color:#f5a623; font-size:1.5rem; letter-spacing:.15em; margin:2px 0 10px; }
.review-text{ color:#555; font-size:.95rem; line-height:1.6; margin:0; }

/* Tablet 2 cột, PC 3 cột */
@media (min-width:768px){ .review-box{ grid-template-columns:repeat(2,1fr);} }
@media (min-width:992px){ .review-box{ grid-template-columns:repeat(3,1fr);} }
