/* ═══ Migrated Block — Fix 2 v3 ═══ */
/* Root: Prevent overflow from legacy <video>, <iframe>, fixed-width elements */

/* Wrapper */
.btm-migrated-content {
  margin: 60px 0 40px;
  padding: 32px 24px;
  background: #faf8f4;
  border-radius: 12px;
  border-left: 4px solid #c87854;
  overflow-x: hidden; /* CRITICAL — prevent overflow ra ngoài */
  max-width: 100%;
}

/* Section title via :before — D97: content từ ACF qua wp_add_inline_style */
.btm-migrated-content::before {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 24px;
  border-bottom: 1px solid #e8e0d4;
  padding-bottom: 16px;
}

/* CRITICAL — Force ALL media responsive */
.btm-migrated-content video,
.btm-migrated-content iframe,
.btm-migrated-content embed,
.btm-migrated-content object,
.btm-migrated-content .wp-video,
.btm-migrated-content .wp-video-shortcode,
.btm-migrated-content .mejs-container,
.btm-migrated-content [class*="video"] {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  display: block;
  margin: 16px 0;
}

/* CRITICAL — Force images responsive */
.btm-migrated-content img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

/* CRITICAL — Override any inline width:1080px style */
.btm-migrated-content [style*="width"] {
  max-width: 100% !important;
}

/* Aspect ratio for video container (16:9) */
.btm-migrated-content .wp-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.btm-migrated-content .wp-video video,
.btm-migrated-content .wp-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

/* Hide article wrapper noise */
.btm-migrated-content > article > .entry-header,
.btm-migrated-content > article > .entry-footer {
  display: none;
}

.btm-migrated-content > article {
  background: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
  border: none;
}

.btm-migrated-content .entry-content {
  padding: 0;
}

/* Typography */
.btm-migrated-content .entry-content p {
  margin: 12px 0;
  line-height: 1.7;
  color: #2c2c3e;
  font-size: 15px;
}

.btm-migrated-content .entry-content p strong {
  color: #1a1a2e;
  font-weight: 600;
}

/* Price list styling */
.btm-migrated-content .entry-content ul {
  list-style: none;
  padding: 16px 20px;
  margin: 16px 0;
  background: white;
  border-radius: 8px;
  border: 1px solid #e8e0d4;
}

.btm-migrated-content .entry-content ul li {
  padding: 10px 0;
  color: #c87854;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid #f5f0e8;
}

.btm-migrated-content .entry-content ul li:last-child {
  border-bottom: none;
}

/* Links */
.btm-migrated-content .entry-content a {
  color: #c87854;
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
  .btm-migrated-content {
    margin: 40px -16px;
    padding: 24px 16px;
    border-radius: 0;
  }

  .btm-migrated-content::before {
    font-size: 18px;
    margin-bottom: 16px;
  }
}

/* CRITICAL — Ensure body/html không scroll horizontal */
body {
  overflow-x: hidden;
}
