/* =============== Venus MICE – Elegant v2 =============== */
:root {
  --vt-primary: #26528c;
  --vt-primary-600: #1f4574;
  --vt-ink: #121725;
  --vt-ink-2: #2a3143;
  --vt-text: #4c556b;
  --vt-muted: #8b94a6;
  --vt-line: #e9edf5;
  --vt-soft: #f7f9ff;
  --vt-bg: #fbfcff;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-sm: 0 4px 12px rgba(17, 30, 56, 0.06);
  --shadow-md: 0 10px 24px rgba(17, 30, 56, 0.08);
  --shadow-lg: 0 20px 40px rgba(17, 30, 56, 0.1);
}

html {
  scroll-behavior: smooth;
}
body {
  color: var(--vt-ink);
  background: var(--vt-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.wrap {
  width: min(1320px, 92%);
  margin: auto;
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 750;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: all 0.18s ease;
  border: 1px solid var(--vt-primary);
  color: var(--vt-primary);
  background: #fff;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn-primary {
  background: var(--vt-primary);
  color: #fff;
  border-color: var(--vt-primary);
}
.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: var(--shadow-sm);
}

/* -------- Hero -------- */
.mice-hero {
  position: relative;
  color: #fff;
  padding: 96px 0 86px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: radial-gradient(
      1200px 420px at 60% -10%,
      rgba(38, 82, 140, 0.62),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(10, 24, 52, 0.55), rgba(10, 24, 52, 0.55)),
    var(--mice-hero) center/cover no-repeat;
}
.mice-hero .wrap {
  text-align: center;
}
.mice-hero h1 {
  margin: 0 0 8px;
  line-height: 1.08;
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.mice-hero .sub {
  max-width: 780px;
  margin: 0 auto 16px;
  opacity: 0.96;
  font-size: clamp(14.5px, 1.8vw, 17px);
}

/* -------- Section Titles -------- */
.mice-block-title {
  margin: 0 0 16px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 900;
  letter-spacing: 0.005em;
  color: var(--vt-primary);
  position: relative;
  display: inline-block;
}
.mice-block-title:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 3px;
  width: 48px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--vt-primary), #5ea1ff);
  opacity: 0.8;
}

/* -------- Cards base -------- */
.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--vt-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card .img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.card h3 {
  font-size: 18.5px;
  margin: 12px 14px 6px;
  color: var(--vt-ink-2);
  font-weight: 800;
}
.card .meta {
  color: var(--vt-muted);
  margin: 0 14px 16px;
}

/* -------- USPs -------- */
.mice-usps .row {
  row-gap: 18px;
}
.mice-usps .usp-card {
  background: #fff;
  border: 1px solid var(--vt-line);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.mice-usps .usp-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #dfe7f4;
}
.mice-usps .usp-icon img {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.06));
}
.mice-usps .usp-title {
  font-size: 18.5px;
  font-weight: 800;
  color: var(--vt-ink-2);
  margin: 6px 0 6px;
}
.mice-usps .usp-desc {
  color: var(--vt-text);
  margin: 0;
}

/* -------- Services grid -------- */
.mice-services {
  padding: 28px 0;
}
.mice-services .row {
  row-gap: 18px;
}
.mice-services .svc-card {
  background: #fff;
  border: 1px solid var(--vt-line);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.mice-services .svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #dfe7f4;
}
.mice-services .svc-ic {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mice-services .svc-ic img {
  border-radius: 10px;
  display: block;
}
.mice-services .svc-ic .fa-solid {
  font-size: 28px;
  color: var(--vt-primary);
}
.mice-services .svc-ic .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f4c100;
}
.mice-services .svc-tt {
  font-size: 18px;
  font-weight: 800;
  margin: 8px 0 6px;
  color: var(--vt-ink-2);
}
.mice-services .svc-desc {
  color: var(--vt-text);
  margin: 0 0 8px;
}
.mice-services .svc-link {
  font-weight: 700;
  color: var(--vt-primary);
  text-decoration: none;
}
.mice-services .svc-link:hover {
  text-decoration: underline;
}

/* -------- Featured Venues -------- */
.mice-venues {
  padding: 28px 0;
}
.mice-venues .cards .card .img img {
  height: 220px;
}
.mice-venues .card h3 {
  font-size: 19px;
}

/* -------- Gallery -------- */
.mice-gallery {
  padding: 10px 0 24px;
}
.mice-gallery .mg-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.mice-gallery .mg-item {
  grid-column: span 4;
  background: #fff;
  border: 1px solid var(--vt-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
@media (max-width: 991px) {
  .mice-gallery .mg-item {
    grid-column: span 6;
  }
}
@media (max-width: 560px) {
  .mice-gallery .mg-item {
    grid-column: span 12;
  }
}
.mice-gallery .mg-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.mice-gallery .mg-link:hover img {
  transform: scale(1.03);
}
.mice-gallery figcaption {
  padding: 9px 12px;
  color: var(--vt-text);
  font-size: 14px;
  border-top: 1px dashed var(--vt-line);
}

/* -------- RFP block -------- */
.mice-rfp {
  margin: 38px 0;
  padding: 40px 0 52px;
  background: linear-gradient(180deg, #fafdff, #f5f7fc);
  border-top: 1px solid var(--vt-line);
  border-bottom: 1px solid var(--vt-line);
  border-radius: var(--radius-lg);
}
.mice-rfp h2 {
  text-align: center;
}
.mice-rfp .small-note {
  color: var(--vt-muted);
  text-align: center;
}

/* Contact Form 7 (generic) */
.mice-rfp .wpcf7 form {
  max-width: 860px;
  margin: 18px auto 8px;
  display: grid;
  gap: 12px;
}
.mice-rfp input[type="text"],
.mice-rfp input[type="email"],
.mice-rfp input[type="tel"],
.mice-rfp select,
.mice-rfp textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--vt-line);
  border-radius: 10px;
  background: #fff;
  color: var(--vt-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mice-rfp textarea {
  min-height: 140px;
}
.mice-rfp input:focus,
.mice-rfp select:focus,
.mice-rfp textarea:focus {
  border-color: #c9d8f2;
  box-shadow: 0 0 0 3px rgba(38, 82, 140, 0.12);
  outline: 0;
}

/* -------- FAQ (details/summary) -------- */
.mice-faq {
  padding: 6px 0 30px;
}
.mice-faq .faq-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mice-faq .faq-item {
  background: #fff;
  border: 1px solid var(--vt-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.mice-faq .faq-item[open] {
  box-shadow: var(--shadow-md);
}
.mice-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 16px;
  font-weight: 800;
  color: var(--vt-ink-2);
  position: relative;
}
.mice-faq summary::-webkit-details-marker {
  display: none;
}
.mice-faq summary:after {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--vt-muted);
  transition: transform 0.18s;
}
.mice-faq details[open] summary:after {
  transform: translateY(-50%) rotate(180deg);
}
.mice-faq .faq-a {
  padding: 0 16px 14px;
  color: var(--vt-text);
  line-height: 1.75;
  border-top: 1px dashed var(--vt-line);
}

/* -------- Case Single (kept but refined) -------- */
.case-single {
  width: min(1100px, 92%);
  margin: 48px auto 88px;
  color: var(--vt-ink);
}
.case-single .hero-img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}
.cs-card {
  background: #fff;
  border: 1px solid var(--vt-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}
.cs-title {
  color: var(--vt-primary);
  font-weight: 900;
}

/* -------- Tables (generic) -------- */
.table-scroll {
  overflow: auto;
}
.tbl {
  width: 100%;
  border: 1px solid var(--vt-line);
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.tbl thead th {
  background: #f2f6ff;
  font-weight: 800;
}
.tbl th,
.tbl td {
  padding: 10px 12px;
  border-bottom: 1px dashed var(--vt-line);
  color: var(--vt-ink-2);
}

/* -------- Utilities -------- */
.section-pad {
  padding: 26px 0;
}
.text-muted {
  color: var(--vt-muted);
}
.hidden {
  display: none !important;
}

/* Small tweaks for mobile */
@media (max-width: 680px) {
  .mice-hero {
    padding: 74px 0 66px;
  }
  .card .img img {
    height: 180px;
  }
}
/* ===========================
   Venus MICE – RFP Form
   =========================== */

/* =========================
   FORM GRID
   ========================= */
.mice-rfp .wpcf7 .rfp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 16px;
  row-gap: 12px;
  margin: 0 auto;
  max-width: 860px;
}

/* =========================
   FIELD WRAPPER
   ========================= */
.mice-rfp .wpcf7 .fld {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 6px;
}

/* Label top gọn */
.mice-rfp .wpcf7 .fld .lbl {
  font-size: 13px;
  font-weight: 600;
  color: #2b3a55;
  margin-left: 2px;
}

/* =========================
   INPUT / SELECT / TEXTAREA
   ========================= */
.mice-rfp .wpcf7 .fld input,
.mice-rfp .wpcf7 .fld select,
.mice-rfp .wpcf7 .fld textarea {
  border: 1.5px solid #cdd6e5;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14.5px;
  color: #1f2a44;
  background: #fff;
  transition: all 0.2s ease;
  width: 100%;
}

.mice-rfp .wpcf7 .fld input:focus,
.mice-rfp .wpcf7 .fld select:focus,
.mice-rfp .wpcf7 .fld textarea:focus {
  border-color: #26528c;
  box-shadow: 0 0 0 2px rgba(38, 82, 140, 0.15);
  outline: none;
}

/* =========================
   DATE ROW
   ========================= */
.mice-rfp .wpcf7 .fld-row.dates {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: end;
}
.mice-rfp .wpcf7 .fld-row .date-sep {
  display: none;
}

/* =========================
   CHECKBOX / SERVICES
   ========================= */
.mice-rfp .wpcf7 .fld-chk {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.mice-rfp .wpcf7 .fld-chk legend {
  font-size: 13px;
  font-weight: 700;
  color: #2b3a55;
  margin-bottom: 6px;
}

.mice-rfp .wpcf7 .fld-chk .wpcf7-list-item {
  margin: 4px 6px 4px 0;
}

.mice-rfp .wpcf7 .fld-chk input[type="checkbox"] {
  display: none;
}

.mice-rfp .wpcf7 .fld-chk label {
  display: inline-block;
  padding: 6px 14px;
  border: 1.5px solid #cdd6e5;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s ease;
}

.mice-rfp
  .wpcf7
  .fld-chk
  input[type="checkbox"]:checked
  + .wpcf7-list-item-label {
  background: #26528c;
  color: #fff;
  border-color: #26528c;
}

/* =========================
   TEXTAREA
   ========================= */
.mice-rfp .wpcf7 .fld.area {
  grid-column: 1 / -1;
}
.mice-rfp .wpcf7 textarea {
  min-height: 120px;
  resize: vertical;
}

/* =========================
   FILE UPLOAD
   ========================= */
.mice-rfp .wpcf7 .fld.file {
  grid-column: 1 / -1;
}
.mice-rfp .wpcf7 .fld.file input[type="file"] {
  font-size: 14px;
}
.mice-rfp .wpcf7 .fld.file .help {
  display: block;
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

/* =========================
   CONSENT
   ========================= */
.mice-rfp .wpcf7 .consent {
  grid-column: 1 / -1;
  font-size: 13px;
  margin-top: 8px;
}

/* =========================
   SUBMIT BUTTON
   ========================= */
.mice-rfp .wpcf7 input[type="submit"] {
  grid-column: 1 / -1;
  margin-top: 16px;
  background: #26528c;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  justify-self: start;
}

.mice-rfp .wpcf7 input[type="submit"]:hover {
  background: #1d3d6b;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 640px) {
  .mice-rfp .wpcf7 .rfp-grid {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }
  .mice-rfp .wpcf7 .fld-row.dates {
    grid-template-columns: 1fr;
  }
}
.rfp-grid br {
  display: none;
}
.wpcf7-not-valid-tip {
  font-size: 14px !important;
}
/* ===== Featured Venues – Polished & Consistent ===== */
.mice-venues {
  padding: 8px 0 24px;
}
.mice-venues .cards {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.mice-venues .card {
  /* anchor bao toàn bộ -> biến thành card chuẩn */
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e7ecf5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(17, 30, 56, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    border-color 0.22s ease;
  min-height: 100%;
}
.mice-venues .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(17, 30, 56, 0.12);
  border-color: #dfe6f5;
}

/* Ảnh luôn cùng tỷ lệ, không “nhảy” */
.mice-venues .card .img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.mice-venues .card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  transition: transform 0.35s ease;
}
.mice-venues .card:hover .img img {
  transform: scale(1.04);
}

/* Text block */
.mice-venues .card h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  margin: 12px 16px 4px;
  color: #1f2333;
  /* clamp 2 dòng để tiêu đề dài không làm vỡ layout */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mice-venues .card .meta {
  margin: 0 16px 16px;
  color: #63708a;
  font-size: 14px;
  border-top: 1px dashed #e9edf5;
  padding-top: 8px;
  /* đẩy meta xuống đáy để các card cao bằng nhau */
  margin-top: auto;
}

/* Link style tinh tế (không gạch chân cả block) */
.mice-venues .card:hover h3 {
  color: #26528c;
}
.mice-venues .card h3,
.mice-venues .card .meta {
  text-decoration: none;
}
.mice-venues .card h3 a,
.mice-venues .card .meta a {
  text-decoration: none;
}

/* Bo viền ảnh đồng bộ với card (trường hợp theme thêm radius riêng) */
.mice-venues .card .img img {
  border-radius: 0;
}

/* Responsive: khoảng cách nhẹ hơn trên mobile */
@media (max-width: 640px) {
  .mice-venues .cards {
    gap: 16px;
  }
}
/* ===== Case Studies Grid ===== */
.case-studies {
  padding: 16px 0 32px;
}

.case-studies .cards {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.case-studies .card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e7ecf5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(17, 30, 56, 0.08);
  transition: all 0.25s ease;
}

.case-studies .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(17, 30, 56, 0.12);
}

/* Ảnh trên */
.case-studies .card .img {
  position: relative;
  aspect-ratio: 4/3; /* đồng bộ chiều cao */
  overflow: hidden;
}
.case-studies .card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.case-studies .card:hover .img img {
  transform: scale(1.05);
}

/* Nội dung */
.case-studies .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 18px;
}

.case-studies .card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1f2333;
  line-height: 1.4;
}
.case-studies .card h3 a {
  text-decoration: none;
  color: inherit;
}
.case-studies .card h3 a:hover {
  color: #26528c;
}

/* Mô tả ngắn */
.case-studies .card .desc {
  font-size: 14px;
  color: #606d85;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* chỉ lấy 3 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 640px) {
  .case-studies .cards {
    gap: 16px;
  }
}
.mice-cases .cards {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.mice-cases .card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e7ecf5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(17, 30, 56, 0.08);
  transition: all 0.25s ease;
}
.mice-cases .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(17, 30, 56, 0.12);
}

/* Ảnh với tỷ lệ đều */
.mice-cases .card .img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  display: block;
}
.mice-cases .card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.mice-cases .card:hover .img img {
  transform: scale(1.05);
}

/* Nội dung */
.mice-cases .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 18px;
}
.mice-cases .card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.4;
}
.mice-cases .card h3 a {
  text-decoration: none;
  color: #1f2333;
}
.mice-cases .card h3 a:hover {
  color: #26528c;
}

/* Mô tả ngắn (clamp 3 dòng) */
.mice-cases .card .desc {
  font-size: 14px;
  color: #606d85;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Minimal Lightbox for .mice-gallery --- */
.mg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(9, 14, 25, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
}
.mg-lightbox.open {
  display: flex;
}
.mg-lb__stage {
  position: relative;
  width: min(96vw, 1200px);
  height: min(90vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mg-lb__img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  object-fit: contain;
}
.mg-lb__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: #e9eef8;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
  padding: 18px 80px 16px;
  font-size: 14.5px;
  text-align: center;
}
.mg-lb__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
}
.mg-lb__btn:hover {
  background: rgba(255, 255, 255, 0.22);
}
.mg-lb__prev {
  left: 16px;
}
.mg-lb__next {
  right: 16px;
}
.mg-lb__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
}
.mg-lb__btn svg {
  width: 22px;
  height: 22px;
}
@media (max-width: 640px) {
  .mg-lb__stage {
    width: 96vw;
    height: 80vh;
  }
  .mg-lb__cap {
    padding: 14px 54px 12px;
  }
  .mg-lb__prev {
    left: 8px;
  }
  .mg-lb__next {
    right: 8px;
  }
}
.mg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  position: relative;
}
.mg-item {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.mg-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Nút view all */
.mg-viewall {
  grid-column: 1/-1;
  text-align: right;
}
.btn-viewall {
  background: #26528c;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-viewall:hover {
  background: #1d3f6b;
}
/* Grid & item giữ nguyên như bạn đang có */
.mice-gallery .mg-grid {
  position: relative;
}

/* Figure để nút overlay bám góc */
.mice-gallery .mg-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.mice-gallery .mg-item img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

/* Nút View all – overlay ở góc dưới phải item thứ 6 */
.mg-viewall-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(17, 30, 56, 0.28);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  backdrop-filter: saturate(120%) blur(4px);
  box-shadow: 0 6px 18px rgba(17, 30, 56, 0.25);
  cursor: pointer;
  transition: filter 0.18s ease, background 0.18s ease, transform 0.18s ease,
    border-color 0.18s ease;
}
.mg-viewall-btn:hover {
  background: rgba(38, 82, 140, 0.85);
  border-color: rgba(255, 255, 255, 0.6);
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* (tuỳ chọn) hiệu ứng ảnh mờ nhẹ dưới nút khi hover nút */
.mg-viewall-btn:hover ~ a img {
  filter: brightness(0.98);
}

/* Lightbox counter */
.mg-lb__count {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(3px);
}
/* Smooth scroll cho anchor (ví dụ click "Request Proposal") */
html {
  scroll-behavior: smooth;
}

/* ===== Scroll Reveal – core ===== */
.reveal {
  opacity: 0;
  transform: var(--from, translateY(18px));
  transition: opacity var(--dur, 1.5s)
      var(--ease, cubic-bezier(0.22, 0.61, 0.36, 1)),
    transform var(--dur, 0.6s) var(--ease, cubic-bezier(0.22, 0.61, 0.36, 1));
  will-change: transform, opacity;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal.is-out {
  opacity: 0;
  transform: var(
    --to,
    translateY(-18px)
  ); /* khi rời viewport sẽ bay nhẹ lên & mờ dần */
}

/* ===== Presets (đặt bằng class hoặc data-anim) ===== */
.reveal.fade-up {
  --from: translateY(36px);
  --to: translateY(-14px);
}
.reveal.fade-down {
  --from: translateY(-18px);
  --to: translateY(14px);
}
.reveal.slide-left {
  --from: translateX(26px);
  --to: translateX(-20px);
}
.reveal.slide-right {
  --from: translateX(-26px);
  --to: translateX(20px);
}
.reveal.zoom-in {
  --from: scale(0.96);
  --to: scale(0.96);
}
.reveal.flip {
  transform-origin: 50% 60%;
  --from: rotateX(-12deg);
  --to: rotateX(12deg);
}

/* Stagger: mỗi item sẽ đọc --delay được JS gán */
.reveal {
  transition-delay: var(--delay, 500ms);
}

/* Giảm/loại hiệu ứng nếu người dùng bật reduce-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-in,
  .reveal.is-out {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
