/* =====================================================================
   CMS page blocks (Admin → Trang chủ & Giới thiệu)
   Colour themes, advertising blocks, sliders and list layouts.
   ===================================================================== */

/* ---------- Colour themes ---------- */
.section-dark { background: radial-gradient(1200px 500px at 85% -10%, rgba(215, 25, 32, .28), transparent 60%), #0f1115; color: rgba(255, 255, 255, .78); }
.section-brand { background: linear-gradient(125deg, var(--brand-700), var(--brand) 55%, #ef4136); color: rgba(255, 255, 255, .88); }
.section-dark :is(h2, h3, .section-title), .section-brand :is(h2, h3, .section-title) { color: #fff; }
.section-dark .section-desc, .section-brand .section-desc { color: rgba(255, 255, 255, .75); }
.section-dark .eyebrow { color: var(--gold); }
.section-brand .eyebrow { color: #ffe3a3; }
.section-dark .eyebrow::before, .section-brand .eyebrow::before { background: currentColor; }
.section-dark .prose, .section-brand .prose { color: rgba(255, 255, 255, .85); }
.section-dark .prose strong, .section-brand .prose strong { color: #fff; }
.section-brand .btn-light-brand, .section-dark .btn-light-brand { background: rgba(255, 255, 255, .14); color: #fff; border-color: transparent; }
.section-brand .btn-light-brand:hover, .section-dark .btn-light-brand:hover { background: #fff; color: var(--brand); }
.section-brand .btn-brand { background: #fff; color: var(--brand); border-color: #fff; }
.section-dark .cat-tile, .section-brand .cat-tile { color: var(--ink-2); }
.section-dark .cat-tile strong, .section-brand .cat-tile strong { color: var(--ink); }

/* ---------- Spotlight (big advertising banner) ---------- */
.spot { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 128px) 0; isolation: isolate; }
.spot-dark { background: radial-gradient(900px 480px at 10% 0%, rgba(215, 25, 32, .35), transparent 60%), #0b0c10; color: rgba(255, 255, 255, .82); }
.spot-brand { background: linear-gradient(125deg, #5c0a0d, var(--brand-700) 35%, var(--brand) 75%, #f0532f); color: rgba(255, 255, 255, .9); }
.spot-light { background: linear-gradient(135deg, #fff, var(--brand-50)); color: var(--ink-2); }
.spot-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.spot-bg img { width: 100%; height: 100%; object-fit: cover; }
/* 16:9 iframe always covering the box */
.spot-bg iframe { position: absolute; top: 50%; left: 50%; width: max(100%, 177.78vh); height: max(100%, 56.25vw); min-height: 100%; transform: translate(-50%, -50%); border: 0; pointer-events: none; }
.spot.has-bg { min-height: min(78vh, 680px); display: flex; align-items: center; }
.spot.has-bg > .container { width: 100%; }
.spot-shade { position: absolute; inset: 0; z-index: -1; }
.spot-dark .spot-shade { background: linear-gradient(90deg, rgba(8, 9, 12, .9) 0%, rgba(8, 9, 12, .6) 50%, rgba(8, 9, 12, .25) 100%); }
.spot-brand .spot-shade { background: linear-gradient(90deg, rgba(120, 10, 14, .92) 0%, rgba(184, 20, 26, .65) 55%, rgba(184, 20, 26, .2) 100%); }
.spot-light .spot-shade { background: linear-gradient(90deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .75) 55%, rgba(255, 255, 255, .2) 100%); }
.spot-center .spot-shade { background: radial-gradient(circle at 50% 50%, rgba(8, 9, 12, .55), rgba(8, 9, 12, .88)); }
.spot-center.spot-brand .spot-shade { background: radial-gradient(circle at 50% 50%, rgba(150, 16, 21, .6), rgba(110, 8, 12, .92)); }
.spot-center.spot-light .spot-shade { background: rgba(255, 255, 255, .82); }
.spot-badge {
    display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .9rem; border-radius: 999px;
    font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px);
}
.spot-badge i { color: var(--gold); }
.spot-light .spot-badge { background: var(--brand-50); color: var(--brand); border-color: var(--brand-100); }
.spot-title { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.75rem); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; margin: 1rem 0 .9rem; color: #fff; }
.spot-light .spot-title { color: var(--ink); }
.spot-sub { font-size: clamp(1rem, .95rem + .3vw, 1.2rem); max-width: 640px; margin: 0; }
.spot-center .spot-sub { margin-inline: auto; }
.spot-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.4rem 0 0; }
.spot-chips li { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: 999px; font-size: .9rem; font-weight: 600; background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .18); }
.spot-chips li i { color: var(--gold); }
.spot-light .spot-chips li { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.spot-light .spot-chips li i { color: var(--brand); }
.spot-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); background: #000; transform: rotate(-1deg); }
.spot-frame iframe, .spot-frame img { border: 0; width: 100%; height: 100%; }

/* ---------- Horizontal scroller (reels, product carousel, testimonials) ---------- */
.scroller { position: relative; }
.scroller-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .25rem .25rem 1rem; margin: 0 -.25rem; scrollbar-width: thin; }
.scroller-track > * { scroll-snap-align: start; flex: 0 0 auto; }
.scroller-item { width: min(270px, 72vw); }
.scroller-btn {
    position: absolute; top: 45%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
    background: #fff; color: var(--ink); box-shadow: var(--shadow); display: none; align-items: center; justify-content: center;
    transition: transform .2s var(--ease), opacity .2s;
}
.scroller-btn:hover { transform: scale(1.08); color: var(--brand); }
.scroller-btn.prev { left: -18px; }
.scroller-btn.next { right: -18px; }
.scroller-btn[disabled] { opacity: 0; pointer-events: none; }
@media (min-width: 992px) { .scroller-btn { display: inline-flex; } }
.scroller.is-grid .scroller-track { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; }
@media (min-width: 768px) { .scroller.is-grid .scroller-track { grid-template-columns: repeat(4, 1fr); } .scroller.is-grid-3 .scroller-track { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767.98px) { .scroller.is-grid-3 .scroller-track { grid-template-columns: 1fr; } }
.scroller.is-grid .scroller-btn { display: none; }

/* ---------- Reels (vertical videos) ---------- */
.reel { width: min(240px, 62vw); }
.scroller.is-grid .reel { width: auto; }
.reel-media {
    position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border: 0; padding: 0; border-radius: 18px; overflow: hidden;
    background: #111; color: #fff; text-align: left; box-shadow: var(--shadow); cursor: pointer;
}
.reel-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.reel-media:hover img { transform: scale(1.05); }
.reel-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .78)); }
.reel-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; width: 58px; height: 58px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem; background: rgba(255, 255, 255, .2); backdrop-filter: blur(6px);
    border: 2px solid rgba(255, 255, 255, .7); transition: transform .2s var(--ease), background .2s;
}
.reel-media:hover .reel-play { transform: translate(-50%, -50%) scale(1.1); background: var(--brand); border-color: var(--brand); }
.reel-cap { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; font-weight: 700; font-size: .95rem; line-height: 1.35; color: #fff; }
.reel-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

/* ---------- Promo cards (bento) ---------- */
.promo { display: grid; gap: 1rem; }
.promo-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
.promo-bento .is-big { grid-column: span 2; grid-row: span 2; }
@media (min-width: 992px) { .promo-bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; } }
.promo-cols-3 { grid-template-columns: 1fr; }
.promo-cols-2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .promo-cols-3 { grid-template-columns: repeat(3, 1fr); } .promo-cols-2 { grid-template-columns: repeat(2, 1fr); } }
.promo-cols-3 .promo-card { aspect-ratio: 4 / 5; }
.promo-cols-2 .promo-card { aspect-ratio: 16 / 10; }
.promo-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; color: #fff; background: #222; min-height: 180px; }
.promo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.promo-card:hover img { transform: scale(1.06); }
.promo-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .78)); }
.promo-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem; display: flex; flex-direction: column; gap: .3rem; }
.promo-body strong { font-size: 1.15rem; line-height: 1.25; }
.promo-card.is-big .promo-body { padding: 1.75rem; }
.promo-card.is-big .promo-body strong { font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem); }
.promo-text { font-size: .92rem; color: rgba(255, 255, 255, .85); }
.promo-cta { font-size: .85rem; font-weight: 700; color: var(--gold); display: inline-flex; gap: .4rem; align-items: center; margin-top: .2rem; }
a.promo-card:hover { color: #fff; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 1rem 0; }
.marquee-brand { background: var(--brand); color: #fff; }
.marquee-dark { background: #0f1115; color: #fff; }
.marquee-light { background: var(--surface-2); color: var(--ink); border-block: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex: 0 0 auto; }
.marquee-item { display: inline-flex; align-items: center; gap: .6rem; padding: 0 2rem; font-weight: 700; font-size: 1.05rem; white-space: nowrap; text-transform: uppercase; letter-spacing: .02em; }
.marquee-item i { color: var(--gold); }
.marquee-light .marquee-item i { color: var(--brand); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; } }

/* ---------- Testimonials ---------- */
.quote-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 1rem; color: var(--ink-2); width: min(340px, 82vw); }
.scroller.is-grid .quote-card { width: auto; }
.quote-stars { color: var(--gold); display: flex; gap: .15rem; }
.quote-card blockquote { margin: 0; font-size: 1rem; line-height: 1.7; flex: 1; }
.quote-card figcaption { display: flex; align-items: center; gap: .75rem; }
.quote-card figcaption img, .quote-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.quote-avatar { display: inline-flex; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand); font-weight: 800; }
.quote-card figcaption strong { display: block; color: var(--ink); }
.quote-card figcaption span span { display: block; font-size: .85rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list .accordion-item { border: 1px solid var(--line); border-radius: var(--radius) !important; overflow: hidden; margin-bottom: .75rem; }
.faq-list .accordion-button { font-weight: 700; color: var(--ink); font-size: 1rem; }
.faq-list .accordion-button:not(.collapsed) { background: var(--brand-50); color: var(--brand); box-shadow: none; }
.faq-list .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(215, 25, 32, .15); }
.faq-list .accordion-body { color: var(--ink-2); }

/* ---------- Product showcase ---------- */
.showcase-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.showcase-card .media { display: block; aspect-ratio: 4 / 3; background: var(--surface-2); }
.showcase-card .media img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.showcase-card .body { padding: 1.25rem 1.5rem 1.5rem; }

/* ---------- Compact post rows ---------- */
.post-rows { display: grid; gap: .75rem; }
.post-row { display: flex; gap: .9rem; align-items: center; padding: .6rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink-2); transition: box-shadow .2s, transform .2s var(--ease); }
.post-row:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink-2); }
.post-row img { width: 118px; height: 84px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.post-row-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.post-row-body .cat { font-size: .74rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; }
.post-row-body strong { color: var(--ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-row-body .meta { font-size: .8rem; color: var(--muted); }
