/* Trang chủ – mobile: gọn hơn, bo góc nhỏ hơn, slider báo giá */

@media (max-width: 768px) {
  body.page-home {
    --home-inset: 22px;
    --r: 10px;
    --r-sm: 6px;
    --btn-radius: 22px;
  }

  /* Bo góc nhỏ – toàn trang */
  .page-home .btn {
    border-radius: var(--btn-radius) !important;
  }

  .page-home .price-card,
  .page-home .price-intro,
  .page-home .rev-card,
  .page-home .blog-card,
  .page-home .studio-card,
  .page-home .cta-band,
  .page-home .cta-offer,
  .page-home .about-img-main,
  .page-home .hero-img-main,
  .page-home .hero-float-img,
  .page-home .ba-slider-wrap,
  .page-home .collection-section .collection-carousel-wrap,
  .page-home .collection-section .inner-wrap,
  .page-home .collection-section .in-slide,
  .page-home .home-banner-nav {
    border-radius: var(--r-sm) !important;
  }

  .page-home .price-card.featured::before {
    border-radius: 0 0 8px 8px;
    font-size: 0.58rem;
    padding: 4px 12px;
  }

  .page-home .play-btn,
  .page-home .home-banner-dot {
    border-radius: 50% !important;
  }

  /* Section gọn hơn */
  .page-home > section.home-section,
  .page-home section.hero.home-section,
  .page-home .ba-section.home-section,
  .page-home .collection-section.home-section {
    padding-top: calc(var(--home-inset) * 0.85);
    padding-bottom: calc(var(--home-inset) * 0.85);
  }

  /* Lề ngang: viền viewport → nội dung */

  body.page-home header .container,
  .page-home .container {
    padding-left: var(--home-inset);
    padding-right: var(--home-inset);
  }

  .page-home > section.home-banner {
    padding: 0 !important;
    margin: 0;
  }

  .page-home .home-banner-slide {
    height: min(58vh, 380px);
    min-height: 300px;
  }

  .page-home .home-banner-content {
    justify-content: flex-end;
    padding-bottom: 0;
  }

  .page-home .home-banner-eyebrow {
    font-size: 0.76rem;
  }

  .page-home .home-banner-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .page-home .home-banner-desc {
    font-size: 0.92rem;
    margin-bottom: 18px;
    line-height: 1.65;
  }

  .page-home .home-banner-cta {
    font-size: 0.82rem;
    padding: 10px 20px;
  }

  .page-home .home-banner-nav {
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
  }

  .page-home .home-banner-nav.prev {
    left: 12px;
  }

  .page-home .home-banner-nav.next {
    right: 12px;
  }

  .page-home .home-banner-dots {
    bottom: 14px;
  }

  .page-home .home-banner-overlay {
    background: linear-gradient(
      180deg,
      rgba(42, 31, 23, 0.15) 0%,
      rgba(42, 31, 23, 0.55) 45%,
      rgba(42, 31, 23, 0.82) 100%
    );
  }

  .page-home .home-banner-slide.is-active .home-banner-part {
    animation-duration: 0.75s;
    animation-delay: calc(0.1s + var(--banner-i, 0) * 0.1s);
  }

  .page-home .ba-section {
    padding-left: 0;
    padding-right: 0;
  }

  /* Gỡ khoảng cách thừa từ user-custom */
  .page-home .reveal-anim {
    padding-bottom: 0 !important;
  }

  .page-home .home-section-head,
  .page-home .section-head {
    margin-bottom: 1rem !important;
  }

  .page-home .home-section-head .sec-title {
    font-size: 1.45rem;
  }

  .page-home .home-section-head .sec-sub {
    font-size: 0.78rem;
    line-height: 1.55;
  }

  .page-home .ba-intro {
    margin-bottom: 24px;
  }

  .page-home .ba-intro p {
    font-size: 0.86rem;
    line-height: 1.65;
  }

  /* Typography – thu nhỏ (fallback cho section không dùng partial) */
  .page-home .sec-title {
    font-size: 1.75rem;
  }

  .page-home .sec-tag {
    font-size: 0.5rem !important;
    letter-spacing: 2px;
    margin-bottom: 16px;
    opacity: 0.85;
  }

  .page-home .sec-sub {
    font-size: 0.7rem;
    margin-top: 8px;
  }

  /* Bootstrap row – mobile gutter */
  .page-home .row.g-4,
  .page-home .row.g-5 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }

  /* Hero – Bootstrap order đã xử lý trên HTML */
  .page-home .hero.home-section {
    padding: var(--home-inset) 0;
  }

  .page-home .hero-title {
    font-size: 1.65rem;
    margin-bottom: 8px;
  }

  .page-home .hero-desc {
    font-size: 0.82rem;
    margin-bottom: 14px;
    line-height: 1.55;
  }

  .page-home .hero-actions {
    margin-bottom: 16px;
  }

  .page-home .hero .row.flex-nowrap .col-3 > .count-up {
    font-size: 1.4rem !important;
  }

  .page-home .hero .row.flex-nowrap .col-3 > small {
    font-size: 0.68rem;
  }

  .page-home .hero-img-main img {
    height: auto;
  }

  .page-home .hero-float-img {
    width: 84px;
    bottom: -8px;
  }

  /* About – order đã set qua order-lg-* / order-* trên HTML */

  .page-home .about-img-main img {
    height: 220px;
  }

  .page-home .about-quote {
    font-size: 0.95rem !important;
    margin-bottom: 12px;
    line-height: 1.55;
  }

  .page-home .quote-open {
    font-size: 2.75rem;
  }

  /* Studio cards */
  .page-home .card-grid {
    gap: 16px;
  }

  .page-home .studio-card h4 {
    font-size: 1.05rem !important;
  }

  .page-home .studio-card-body {
    padding: 12px 14px 16px;
  }

  .page-home .studio-card-body p {
    font-size: 0.82rem;
  }

  /* Phim trường – giữ 2 cột trên mobile */
  .page-home .studio-phim-row {
    --bs-gutter-x: 0.625rem;
    --bs-gutter-y: 0.75rem;
  }

  .page-home #tab-studio .studio-card-img {
    height: 128px;
  }

  .page-home #tab-studio .studio-card-body {
    padding: 10px 10px 12px;
  }

  .page-home #tab-studio .studio-card h4 {
    font-size: 0.8rem !important;
    color: var(--ink) !important;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .page-home #tab-studio .studio-card-body p {
    font-size: 0.7rem;
    color: var(--gold);
    font-weight: 500;
    line-height: 1.45;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .page-home #tab-studio .studio-card:hover {
    transform: none;
  }

  /* Before / after – mobile: 1 slider / hàng */
  .page-home .ba-grid.row {
    --bs-gutter-y: 1.25rem;
  }

  .page-home .ba-card-label {
    font-size: 1.05rem;
    margin-bottom: 0.65rem;
  }

  .page-home .ba-slider-wrap {
    aspect-ratio: 16 / 10;
    min-height: 190px;
    max-height: none;
    border-radius: 6px;
  }

  .page-home .video-inner {
    height: 240px;
  }

  .page-home .video-content-box {
    max-width: 320px;
    padding: 0.85rem 1rem 1rem;
    border-radius: 10px;
  }

  .page-home .video-title {
    font-size: 1.35rem;
  }

  .page-home .video-sub {
    font-size: 0.76rem;
    margin-bottom: 0.75rem;
  }

  .page-home .play-btn--compact {
    width: 52px;
    height: 52px;
    font-size: 0.95rem;
  }

  .page-home .play-btn--compact::before {
    width: 52px;
    height: 52px;
  }

  .page-home .video-stats-section {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .page-home .video-stats .vs-num {
    font-size: 1.5rem;
  }

  .page-home .video-stats .vs-label {
    font-size: 0.68rem;
  }

  /* Pricing – compact */
  .page-home .price-intro {
    padding: 14px 12px;
    margin-bottom: 16px;
  }

  .page-home .price-intro h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }

  .page-home .price-intro p {
    font-size: 0.78rem;
    line-height: 1.55;
  }

  .page-home .price-intro i {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }

  .page-home .price-name {
    font-size: 1.05rem;
    margin-bottom: 4px;
  }

  .page-home .price-amount {
    font-size: 1.55rem !important;
    margin: 6px 0;
  }

  .page-home .price-amount small {
    font-size: 0.82rem;
  }

  .page-home .price-features {
    margin: 10px 0 14px;
  }

  .page-home .price-features li,
  .page-home .price-features > div {
    font-size: 0.76rem;
    padding: 4px 0;
  }

  /* Reviews – compact */
  .page-home .rev-card {
    padding: 16px 14px;
  }

  .page-home .rev-text {
    font-size: 0.78rem;
    margin-bottom: 12px;
    line-height: 1.55;
  }

  .page-home .rev-author img {
    width: 40px;
    height: 40px;
  }

  /* Blog – compact */
  .page-home .blog-cat {
    font-size: 0.58rem;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 0 0 8px 0;
  }

  .page-home .blog-body {
    padding: 12px 12px 14px;
  }

  .page-home .blog-body h4 {
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .page-home .blog-body p {
    font-size: 0.76rem;
  }

  /* CTA – compact */
  .page-home .cta-band {
    padding: 1rem var(--home-inset);
  }

  .page-home .cta-title {
    font-size: 1.25rem;
  }

  .page-home .cta-sub {
    font-size: 0.78rem;
    line-height: 1.55;
  }

  .page-home .cta-pct {
    font-size: 1.85rem;
  }

  .page-home .btn {
    padding: 8px 18px;
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  body.page-home {
    --home-inset: 18px;
    --r-sm: 5px;
  }

  .page-home .hero-title {
    font-size: 1.45rem;
  }

  .page-home .home-section-head .sec-title,
  .page-home .sec-title {
    font-size: 1.25rem;
  }

  .page-home .hero-img-main img {
    height: auto;
  }

  .page-home .ba-slider-wrap {
    min-height: 170px;
    border-radius: 6px;
  }

  .page-home .video-inner {
    height: 220px;
  }

  .page-home .video-content-box {
    max-width: 280px;
    padding: 0.7rem 0.85rem 0.85rem;
  }

  .page-home .video-title {
    font-size: 1.2rem;
  }

  .page-home .cta-title {
    font-size: 1.15rem;
  }

  .page-home .studio-phim-row {
    --bs-gutter-x: 0.5rem;
  }

  .page-home #tab-studio .studio-card-img {
    height: 108px;
  }

  .page-home #tab-studio .studio-card h4 {
    font-size: 0.74rem !important;
    color: var(--ink) !important;
  }

  .page-home #tab-studio .studio-card-body p {
    font-size: 0.66rem;
    color: var(--gold);
  }
}

/* Báo giá – CSS-only slider: xem home-price-slider.css */
@media (max-width: 991.98px) {
  .page-home .price-css-slider.sr,
  .page-home .price-css-slider.sr.visible {
    opacity: 1;
    transform: none;
  }

  .page-home .price-css-slider__item .price-card {
    opacity: 1;
    visibility: visible;
  }
}
