/* ═══ LANDING PAGE (index.php) ══════════════════════════════════════════════
   H1.10 — dựng lại theo demo Canva 09/2026.
   Section: hero → lợi ích → chiến dịch → giải MCN → hướng dẫn → đối tác → liên hệ.
   Các class `home-fs-*` ở cuối file do landing-page.js sinh ra — KHÔNG đổi tên.
   ═════════════════════════════════════════════════════════════════════════ */

/* Landing chạy full-bleed: vô hiệu hoá container của layout.php, mỗi section
   tự bọc `.container` bên trong để lấy lại bề ngang chuẩn. */
main.container.pb-5.rh-section {
    max-width: unset;
    padding: 0;
}

:root {
    --lp-cream: #fffaf5;      /* nền trung tính ấm */
    --lp-peach: #fce9d9;      /* nền section nhấn */
    --lp-peach-deep: #fbdcc4; /* dải nền tảng, đường timeline */
}

/* ─── Tiêu đề section dùng chung ─── */
.lp-h2 {
    text-align: center;
    font-weight: 800;
    line-height: 1.25;
    color: var(--primary);
    font-size: clamp(1.5rem, 3.4vw, 2.6rem);
    margin: 0 0 2rem;
}

/* ═══ 1. HERO ═══════════════════════════════════════════════════════════ */
.lp-hero {
    background: var(--lp-cream);
    padding: 3rem 0 3.5rem;
}

/* Bố cục hero bằng grid-template-areas: ảnh mascot chỉ xuất hiện MỘT LẦN trong DOM
   nhưng đổi được vị trí theo breakpoint (desktop: cột phải chiếm cả 4 hàng;
   mobile: nằm ngay cạnh dải nền tảng như bản demo điện thoại). */
.lp-hero-grid {
    display: grid;
    align-items: center;
    column-gap: 2rem;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "title art"
        "lead  art"
        "plat  art"
        "cta   art";
}

.lp-hero-title { grid-area: title; }
.lp-hero-lead  { grid-area: lead; }
.lp-plat       { grid-area: plat; }
.lp-hero-art   { grid-area: art; }
.lp-hero-foot  { grid-area: cta; }

.lp-hero-title {
    font-weight: 800;
    line-height: 1.2;
    font-size: clamp(1.9rem, 4.2vw, 3.3rem);
    margin: 0 0 1rem;
    align-self: end;
}

.lp-brand,
.lp-accent {
    color: var(--primary);
}

.lp-hero-lead {
    font-style: italic;
    font-size: clamp(0.95rem, 1.3vw, 1.12rem);
    color: var(--dark);
    max-width: 640px;
    margin: 0 0 1.5rem;
}

/* Dải "Hoạt động đa nền tảng" */
.lp-plat {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--lp-peach-deep);
    border-radius: var(--radius-lg);
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.75rem;
}

.lp-plat-label {
    flex: 0 0 auto;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.25;
}

.lp-plat-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-plat-list img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.lp-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.lp-hero-cta .btn {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.7rem 1.9rem;
}

.lp-hero-login {
    display: inline-block;
    /* padding dọc để vùng chạm đạt ~40px trên mobile */
    padding: 0.6rem 0;
    margin-top: 0.4rem;
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.lp-hero-foot {
    align-self: start;
}

/* Ảnh mascot: thẻ trắng + khối cam lệch góc (hiệu ứng "đổ bóng khối" của demo).
   Chừa 16px lề phải để khối cam lệch ra không làm tràn ngang ở mobile. */
.lp-hero-art,
.lp-mcn-art {
    position: relative;
    margin: 0 16px 16px 0;
}

.lp-hero-art::before,
.lp-mcn-art::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 14px;
    right: -14px;
    bottom: -14px;
    background: var(--primary);
    border-radius: 26px;
}

.lp-hero-art img,
.lp-mcn-art img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 26px;
}

.lp-hero-art {
    max-width: 420px;
    margin-inline: auto 16px;
}

.lp-hero-art img {
    background: #fff;
    padding: 6%;
}

/* ═══ 2. LỢI ÍCH ════════════════════════════════════════════════════════ */
.lp-benefits {
    background: var(--lp-peach);
    padding: 3rem 0;
}

.lp-benefit-card {
    height: 100%;
    background: #fff;
    border-radius: 14px;
    border-top: 6px solid var(--primary);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.lp-benefit-icon {
    font-size: 1.6rem;
    line-height: 1;
    color: var(--dark);
}

.lp-benefit-card h3 {
    margin: 0.75rem 0 0.5rem;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--primary);
}

.lp-benefit-card p {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--dark);
}

/* ═══ 3. CHIẾN DỊCH NỔI BẬT ═════════════════════════════════════════════ */
.lp-campaigns {
    background: #fff;
    padding: 3rem 0;
}

/* Tiêu đề và nút "Xem tất cả" nằm CÙNG một hàng: cỡ chữ chung của .lp-h2 quá to
   làm nút bị đẩy xuống dòng riêng. */
.lp-campaigns-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-bottom: 1.75rem;
}

.lp-campaigns-title {
    margin: 0;
    text-align: left;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.lp-campaigns-empty {
    margin: 0;
    padding: 1.25rem;
    border-radius: var(--radius);
    background: var(--lp-cream);
    color: var(--text-muted);
    text-align: center;
}

.lp-campaigns-head .btn {
    flex: 0 0 auto;
    border-radius: 999px;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
}

/* ═══ 4. GIẢI THƯỞNG MCN ════════════════════════════════════════════════ */
.lp-mcn {
    background: var(--lp-peach);
    padding: 3rem 0;
}

.lp-mcn-art {
    max-width: 340px;
    margin-inline: auto;
}

.lp-mcn-title {
    font-weight: 800;
    color: var(--primary);
    font-size: clamp(1.5rem, 3.2vw, 2.6rem);
    margin: 0 0 1rem;
}

.lp-mcn-desc {
    font-style: italic;
    margin-bottom: 0.75rem;
}

.lp-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 2.25rem;
    margin: 1.75rem 0 0;
}

.lp-stats div {
    min-width: 96px;
}

.lp-stats dt {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    color: var(--primary);
    line-height: 1.1;
}

.lp-stats dd {
    margin: 0.25rem 0 0;
    font-weight: 700;
    font-size: var(--fs-sm);
}

/* ═══ 5. HƯỚNG DẪN ══════════════════════════════════════════════════════ */
.lp-guide {
    background: var(--lp-cream);
    padding: 3rem 0;
}

.lp-guide-phone {
    max-width: 300px;
    width: 100%;
    height: auto;
}

.lp-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-steps li {
    position: relative;
    padding: 0 0 2rem 62px;
}

.lp-steps li:last-child {
    padding-bottom: 0;
}

/* Đường nối dọc giữa các bước — dừng ở bước cuối. */
.lp-steps li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 46px;
    bottom: 0;
    width: 2px;
    background: var(--lp-peach-deep);
}

.lp-step-num {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

.lp-steps h3 {
    margin: 0.4rem 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 800;
}

.lp-steps p {
    margin: 0;
    font-style: italic;
    color: var(--dark);
}

/* ═══ 6. ĐỐI TÁC ════════════════════════════════════════════════════════ */
.lp-partners {
    background: #fff;
    padding: 3rem 0;
}

.lp-partner-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem 1rem;
    align-items: center;
    justify-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

 /* Mọi logo đã được trim + ép về khung 240×84 nên chỉ cần scale đồng loạt
    là cao bằng nhau về mặt thị giác, không cần object-fit. */
.lp-partner-grid img {
    width: 100%;
    max-width: 170px;
    height: auto;
}

/* ═══ 7. LIÊN HỆ ════════════════════════════════════════════════════════ */
.lp-contact {
    background: var(--lp-peach);
    padding: 2.5rem 0;
}

.lp-contact-logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    background: #fff;
    border-radius: 18px;
    padding: 8px;
}

.lp-contact-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 0.5rem;
}

.lp-contact-desc {
    font-style: italic;
    margin: 0;
}

.lp-contact-line {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.lp-contact-line i {
    color: var(--primary);
}

.lp-contact-line a {
    color: var(--dark);
    text-decoration: none;
}

/* ═══ RESPONSIVE ════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
    .lp-hero {
        padding: 2rem 0 2.5rem;
    }

    /* Dải nền tảng và mascot đứng cạnh nhau; tiêu đề/mô tả/CTA chiếm trọn bề ngang. */
    .lp-hero-grid {
        column-gap: 1rem;
        grid-template-columns: 1fr 0.85fr;
        grid-template-areas:
            "title title"
            "lead  lead"
            "plat  art"
            "cta   cta";
    }

    .lp-hero-title {
        align-self: auto;
    }

    .lp-hero-art {
        max-width: 230px;
        margin: 0 14px 14px auto;
    }

    /* Khối cam lệch của mascot thấp hơn dải nền tảng ⇒ chỉ còn 13px tới hàng nút.
       Đẩy hàng nút xuống cho bằng nhịp các khối trên. */
    .lp-hero-foot {
        margin-top: 1rem;
    }

    /* Cột hẹp: nhãn xuống trên, icon xếp lưới 3 cột — giống bản demo điện thoại. */
    .lp-plat {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .lp-plat-list {
        display: grid;
        grid-template-columns: repeat(3, 44px);
        gap: 0.75rem 1rem;
    }

    .lp-mcn-art {
        max-width: 300px;
        margin-inline: auto;
    }

    .lp-partner-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767.98px) {
    .lp-benefits,
    .lp-campaigns,
    .lp-mcn,
    .lp-guide,
    .lp-partners {
        padding: 2.25rem 0;
    }

    .lp-h2 {
        margin-bottom: 1.5rem;
    }

    .lp-hero-cta .btn {
        flex: 1 1 auto;
        padding: 0.65rem 1.25rem;
    }

    /* Cột hẹp: tiêu đề xuống trên, nút trải ngang cho đủ vùng chạm 44px. */
    .lp-campaigns-head {
        flex-direction: column;
        align-items: stretch;
    }

    .lp-campaigns-title {
        text-align: center;
    }

    .lp-campaigns-head .btn {
        min-height: 44px;
    }

    .lp-benefit-card {
        padding: 1rem;
    }

    .lp-steps li {
        padding-left: 52px;
    }

    .lp-step-num {
        width: 34px;
        height: 34px;
    }

    .lp-steps li:not(:last-child)::before {
        left: 16px;
        top: 40px;
    }

    .lp-partner-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem 0.75rem;
    }

    /* Logo xuống hàng riêng nên thu nhỏ lại, tránh mảng trắng lớn trên khối liên hệ. */
    .lp-contact-logo {
        width: 68px;
        height: 68px;
        border-radius: 14px;
        padding: 6px;
    }

    .lp-contact {
        padding: 2rem 0;
    }

    .lp-partner-grid img {
        max-width: 120px;
    }

    .lp-stats {
        gap: 1.25rem;
    }

    .lp-stats div {
        min-width: 88px;
    }
}
/* ≤575px: thu nhỏ icon nền tảng để dải nền tảng và mascot vừa 2 cột ngang nhau.
   Icon 44px làm cột trái nở quá rộng, mascot còn ~110px → mất cân đối. */
@media (max-width: 575.98px) {
    .lp-hero-grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 0.75rem;
    }

    .lp-plat {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .lp-plat-label {
        font-size: 0.92rem;
    }

    .lp-plat-list {
        grid-template-columns: repeat(3, 32px);
        gap: 0.55rem;
    }

    .lp-plat-list img {
        width: 32px;
        height: 32px;
    }

    .lp-hero-art {
        max-width: 100%;
        margin: 0 10px 10px 0;
    }

    .lp-hero-art::before {
        top: 10px;
        left: 10px;
        right: -10px;
        bottom: -10px;
        border-radius: 20px;
    }

    .lp-hero-art img {
        border-radius: 20px;
    }
}

/* ===== Featured campaigns — flashsale style ===== */
.home-fs-card {
    cursor: pointer;
    height: 100%;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.home-fs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
}

.home-fs-cover {
    position: relative;
    /* Tỷ lệ chuẩn của banner chiến dịch là 2/1 (xem campaign-detail-page.css,
       brand-campaigns-page.css). KHÔNG dùng height cố định 148px như .c-card-thumb:
       card ở trang chủ rộng 419px (trang /campaigns chỉ 316px) nên 148px cho ra
       2.83/1, banner bị bẹt và cắt mất nội dung.
       `height: auto` là BẮT BUỘC: div này mang kèm class .home-camp-cover
       (riohub-theme.css) có height:132px — còn height cố định thì aspect-ratio
       quay ra suy CHIỀU RỘNG (264px) chứ không phải chiều cao. */
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
}

.home-fs-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}
.home-fs-badge-hot {
    background: linear-gradient(90deg, #F97316, #EF4444);
}
.home-fs-badge-full {
    background: linear-gradient(90deg, #EF4444, #B91C1C);
}

/* Tiêu đề cố định 2 dòng → các card không lệch nhau. */
.home-fs-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    line-height: 1.3;
}

.home-fs-cast {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 0.55rem;
}
.home-fs-cast-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
}
.home-fs-cast-val {
    font-size: 1.02rem;
    font-weight: 900;
    color: var(--primary);
}

.home-fs-prog {
    margin-bottom: 0.4rem;
}
.home-fs-bar {
    height: 6px;
    border-radius: 999px;
    background: #FBE3DA;
    overflow: hidden;
}
.home-fs-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #F59E0B, #F97316);
    transition: width 0.3s ease;
}
.home-fs-fill-full {
    background: linear-gradient(90deg, #EF4444, #B91C1C);
}
.home-fs-prog-meta {
    margin-top: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #EF4444;
}

/* ────────────────────────────────────────────────────────────────────
   Sàn cỡ chữ mobile — thang chuẩn phase 02.
   `--fs-xs` (0.78rem ≈ 12.5px) là sàn cố ý của dự án (riohub-theme.css:600).
   3 nhãn dưới đây đo 11.5–11.8px ở 390px. Đặt CUỐI FILE để không bị block

/* ────────────────────────────────────────────────────────────────────
   Sàn cỡ chữ mobile — thang chuẩn phase 02 (mobile UI optimization).
   `--fs-xs` (0.78rem ≈ 12.5px) là sàn cố ý của dự án (riohub-theme.css).
   2 nhãn dưới đây đo 11.5–11.8px ở 390px. Đặt CUỐI FILE để không bị block
   767.98 ở trên đè (cùng specificity, chỉ thứ tự nguồn quyết định).
   ──────────────────────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .home-fs-badge,
    .home-fs-cast-label {
        font-size: var(--fs-xs);
    }
}
