.section-normal {
    padding: 60px 0;
}

.section-white {
    padding: 60px 0;
    background-color: white;
}

/* Định dạng cụm tiêu đề Section */
.section-header {
    text-align: center;
    max-width: 700px;
    /* Nới rộng một chút để câu subtitle hiển thị đẹp trên 2 dòng */
    margin: 0 auto 20px auto;
}

.section-title {
    font-size: 25px;
    font-weight: bold;
    color: var(--color-text-dark);
    letter-spacing: -0.5px;
}

.cta-brand-tag a,
.section-title a {
    transition: var(--transition-smooth);
}

.cta-brand-tag a:hover,
.section-title a:hover {
    margin-left: 2px;
}

.section-subtitle {
    font-size: 18px;
    line-height: 1.3;
    color: var(--color-text-dark);
    letter-spacing: -0.3px;
    margin-top: 5px;
}

.mobile-scrollbar {
    -webkit-overflow-scrolling: touch;
    /* Vuốt mượt có quán tính trên iOS */
}

/* Định nghĩa độ cao tổng thể của thanh cuộn ngang */
.mobile-scrollbar.scroll-x::-webkit-scrollbar {
    height: 5px;
    display: block;
    /* Ép trình duyệt không tự ẩn */
}

.mobile-scrollbar.scroll-y::-webkit-scrollbar {
    width: 5px;
    display: block;
    /* Ép trình duyệt không tự ẩn */
}

/* Định dạng thanh nền (Track) bên dưới */
.mobile-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.07);
    border-radius: 10px;
}

/* Định dạng cục kéo (Thumb) chuyển động */
.mobile-scrollbar::-webkit-scrollbar-thumb {
    background-color: var(--color-moss-light);
    border-radius: 10px;
}

/* ==========================================================================
   KHỐI HERO BANNER NGHỆ THUẬT (Sử dụng cấu trúc Display Table/Block cho SSR)
   ========================================================================== */
.hero-banner {
    position: relative;
    width: 100%;
    padding: 90px 0;
    overflow: hidden;
    background-color: var(--color-moss);
    background: radial-gradient(ellipse 80% 100% at 100% 0%,
            var(--color-light) 0%,
            rgba(183, 199, 186, 0.4) 30%,
            var(--color-moss) 110%);
}

/* Container dàn trận hai cột bằng cấu trúc Table để tương thích tốt với SSR */
.hero-wrapper {
    display: table;
    width: 100%;
    table-layout: fixed;
}

/* --- CỘT TRÁI: KHÔNG GIAN NỘI DUNG CHỮ --- */
.hero-text-column {
    display: table-cell;
    width: 55%;
    vertical-align: middle;
    padding-right: 40px;
}

.hero-headline {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.4;
    color: white;
    opacity: 0.95;
    letter-spacing: -0.5px;
}

.hero-subheadline {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: white;
    margin-bottom: 35px;
    margin-top: 24px;
}

/* Khối bao bọc các nút bấm hành động (CTA) */
.hero-action-cta {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

/* --- CỘT PHẢI: KHÔNG GIAN HÌNH ẢNH MOCKUP --- */
.hero-visual-column {
    display: table-cell;
    width: 45%;
    vertical-align: middle;
    text-align: right;
}

.visual-mockup-container {
    display: inline-block;
    position: relative;
    max-width: 100%;
}

.mockup-display-img {
    display: block;
    max-width: 100%;
    height: auto;
    /* Hiệu ứng bóng đổ nghệ thuật mềm mại cho mockup Album ảnh cưới */
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: floatingMockup 6s ease-in-out infinite;
}

/* Hiệu ứng chuyển động lơ lửng nhẹ nhàng giúp Banner sinh động */
@keyframes floatingMockup {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ==========================================================================
   KHỐI VIDEO DEMO (Tối ưu hóa hiển thị Responsive 16:9)
   ========================================================================== */

/* Khung bọc ngoài tạo độ nổi bento và đổ bóng tinh tế cho khung video */
.video-wrapper {
    max-width: 960px;
    /* Chiều rộng vàng để xem video trên desktop không bị mỏi mắt */
    margin: 0 auto;
    background: white;
    padding: 12px;
    /* Tạo viền trắng bao quanh như một khung tranh nghệ thuật */
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(44, 62, 53, 0.08);
    /* Đổ bóng sắc rêu mờ nhẹ */
}

/* Kỹ thuật Padding-bottom hack giữ trọn tỉ lệ 16:9 tuyệt đối */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* Tỷ lệ 16:9 (9 / 16 * 100) */
    overflow: hidden;
    background-color: black;
    /* Nền đen chìm trong lúc đợi YouTube load */
    border-radius: 4px;
}

/* Ép iframe lấp đầy không gian tỷ lệ */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   KHỐI TÍNH NĂNG NỔI BẬT (Bento Grid Layout)
   ========================================================================== */
/* Khung sườn Bento Grid */
.features-section {
    font-size: 14px;
}

.features-bento-grid {
    display: flex;
    gap: 20px;
    width: 100%;
}

/* Định dạng thẻ bento chung */
.bento-card {
    background-color: #f8faf9;
    /* Màu kem rêu cực nhẹ */
    border: 1px solid rgba(78, 96, 82, 0.08);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.bento-card:hover {
    transform: translateY(-3px);
    background-color: white;
    box-shadow: 0 15px 35px rgba(44, 62, 53, 0.06);
    border-color: rgba(78, 96, 82, 0.2);
}

/* Khối lớn (Chiếm 55% độ rộng) */
.card-large {
    flex: 55;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.card-space {
    margin-top: 15px;
}

/* Cột phải chứa các khối nhỏ (Chiếm 45% độ rộng) */
.bento-column-right {
    flex: 45;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-market {
    flex: 1;
}

.card-text {
    display: block;
    flex: 1;
}

.card-badge {
    display: block;
    background-color: var(--color-moss);
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    width: 90px;
    line-height: 24px;
    height: 24px;
    border-radius: 13px;
    letter-spacing: 0.5px;
    margin-left: 4px;
    float: right;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 14px;
    letter-spacing: -0.3px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.ic-soul,
.ic-vault,
.ic-marketing {
    display: block;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.ic-soul {
    background-image: url('/icons/social-media.png');
}

.ic-vault {
    background-image: url('/icons/canvas.png');
}

.ic-marketing {
    background-image: url('/icons/marketing.png');
}

.visual-mock {
    width: 100%;
    border-radius: 6px;
    background: linear-gradient(45deg, #e2eaed, #b7c7ba);
    height: 160px;
}

.visual-mock img {
    border-radius: 6px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
}

/* ==========================================================================
   KHỐI BIỂU ĐỒ XU HƯỚNG (SVG Line Chart - Bản Tinh Giản)
   ========================================================================== */
.trend-section {
    padding-bottom: 0 !important;
}

/* Khối bao bọc lớn cho toàn bộ biểu đồ */
.chart-master {
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(44, 62, 53, 0.04);
    /* Đổ bóng sắc rêu cực mảnh */
}

/* Khung responsive cho đồ họa vector SVG */
.svg-chart-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.line-chart-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Định dạng các đường nét kỹ thuật bên trong SVG */
.grid-line {
    stroke: #edf2f7;
    stroke-width: 1px;
    stroke-dasharray: 4 4;
    /* Tạo đường nét đứt tinh tế */
}

.axis-line {
    stroke: #cbd5e1;
    stroke-width: 2px;
}

.axis-text {
    font-size: 13px;
    font-weight: 500;
    fill: #718096;
    text-anchor: middle;
    /* Đảm bảo chữ căn chính xác giữa tọa độ cột X */
}

/* Hoạt họa vẽ đường tăng trưởng phi mã của Mozy */
.chart-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.trend-section.animate-start .chart-line {
    animation: drawLine 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.line-digital {
    stroke: var(--color-moss);
    stroke-width: 5px;
}

.chart-dot {
    fill: white;
    stroke-width: 3px;
    cursor: pointer;
    transform: scale(0);
    transform-origin: center;
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.3s ease, r var(--transition-smooth);
}

.dot-digital {
    stroke: var(--color-moss);
}

.trend-section.animate-start .chart-dot {
    transform: scale(1);
    opacity: 1;
}

/* Tạo độ trễ nối đuôi để các điểm chấm xuất hiện tăm tắp theo nhịp đường vẽ */
.trend-section.animate-start .chart-dot:nth-of-type(1) {
    transition-delay: 0.2s;
}

.trend-section.animate-start .chart-dot:nth-of-type(2) {
    transition-delay: 0.4s;
}

.trend-section.animate-start .chart-dot:nth-of-type(3) {
    transition-delay: 0.8s;
}

.trend-section.animate-start .chart-dot:nth-of-type(4) {
    transition-delay: 1.3s;
}

.trend-section.animate-start .chart-dot:nth-of-type(5) {
    transition-delay: 1.7s;
}

/* Hiệu ứng hoành tráng khi người dùng rê chuột vào điểm nút */
.chart-dot:hover {
    r: 8px;
}

/* Keyframes giữ nguyên cấu trúc đỉnh cao của sếp */
@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* ==========================================================================
   9. KHỐI BẢNG SO SÁNH TỐI GIẢN (Compare Table Section)
   ========================================================================== */
.compare-section {
    padding-bottom: 60px;
}

.compare-wrapper {
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.compare-table th,
.compare-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #e0dfdf;
}

.compare-table tr>th:nth-child(2) {
    border-left: 1px solid #e9f0ec;
    border-right: 1px solid #e9f0ec;
}

.compare-table td {
    background-color: white;
    border-left: 1px solid #e0dfdf;
}

.compare-table th {
    font-weight: bold;
    color: var(--color-text-dark);
    background-color: #c5d3cc;
    font-size: 14px;
}

/* Làm nổi bật cột giải pháp của Mozy */
.compare-table tr>th:last-child {
    background-color: var(--color-moss);
    color: white;
    text-align: center;
    border-top-right-radius: 8px;
}

.compare-table tr>td:last-child {
    border-right: 1px solid #e0dfdf;
}

.compare-table tr>th:first-child {
    border-top-left-radius: 8px;
}


/* ==========================================================================
   KHỐI KÊU GỌI HÀNH ĐỘNG CUỐI TRANG (Final CTA - Premium Magazine Style)
   ========================================================================== */

.cta-wrapper {
    display: table;
    width: 100%;
    table-layout: fixed;
    background-color: white;
}

/* --- CỘT TRÁI: NỘI DUNG CHỮ XANH RÊU CHỦ ĐẠO --- */
.cta-left {
    display: table-cell;
    width: 50%;
    vertical-align: middle;
    padding: 40px 60px 40px 0;
    color: var(--color-text-dark);
}

.cta-brand-tag {
    display: block;
    font-weight: 700;
    margin-bottom: 24px;
}

.cta-main-text {
    line-height: 1.6;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
    font-size: 18px;
}

/* --- CỘT PHẢI: NỀN ẢNH ALBUM VẢI CAO CẤP MỘC MẠC --- */
.cta-right {
    display: table-cell;
    width: 50%;
    vertical-align: top;
    padding: 25px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;

    /* Gán ảnh nền album vải mộc cho cột phải */
    background-image: url('/images/sara-henry.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

/* Lớp phủ tối (Overlay) mờ mịn để chữ đè lên trên đọc được rõ ràng, không bị lẫn vào nền ảnh */
.cta-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 53, 0.25);
    /* Phủ lớp màu rêu xám mờ nhẹ tạo chiều sâu */
    z-index: 1;
}

.quote-overlay {
    position: relative;
    z-index: 2;
    text-align: left;
    margin-top: 40px;
    margin-left: 20px;
    max-width: 380px;
}

.art-quote {
    font-family: var(--font-handwritten);
    font-size: 25px;
    line-height: 1.3;
    color: white;
    font-weight: 400;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.quote-regards {
    display: block;
    font-size: 10px;
    color: #e2e8f0;
    letter-spacing: 1.5px;
}

/* ==========================================================================
   KHỐI HIỂN THỊ BLOG MỚI (Dàn trận bằng cấu trúc Table tương thích SSR)
   ========================================================================== */

.blog-wrapper {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-spacing: 25px 0;
    margin-left: -25px;
    width: calc(100% + 50px);
}

.blog-card {
    display: table-cell;
    vertical-align: top;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(44, 62, 53, 0.08);
}

.blog-cover {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.blog-thumb {
    display: none;
}

.blog-thumb img,
.blog-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: var(--color-moss-light);
}

.blog-info {
    padding: 25px;
}

.blog-meta {
    display: block;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--color-moss-light);
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* --- CẤU HÌNH TIÊU ĐỀ BLOG (Giới hạn nghiêm ngặt trong 2 dòng + Hiện 3 chấm) --- */
.blog-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    transition: var(--transition-smooth);

    /* CÚ PHÁP ĐẦY ĐỦ ĐỂ BẬT DẤU BA CHẤM CHỐNG SÓT: */
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-title:hover {
    padding-left: 2px;
}

/* --- CẤU HÌNH MÔ TẢ NGẮN (Giới hạn nghiêm ngặt trong 3 dòng + Hiện 3 chấm) --- */
.blog-excerpt {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ==========================================================================
   RESPONSIVE THÍCH ỨNG CHO MOBILE VÀ TABLET
   ========================================================================== */

/* 💻 TABLET (Màn hình dưới 992px) */
@media screen and (max-width: 992px) {
    .hero-wrapper {
        display: flex;
        flex-direction: column;
    }

    .hero-text-column,
    .hero-visual-column {
        display: block;
        width: 100%;
        padding-right: 0;
    }

    .visual-mockup-container {
        padding-right: 2.5%;
    }

    .hero-text-column {
        order: 2;
        padding-left: 30px;
        padding-right: 30px;
    }

    .hero-visual-column {
        order: 1;
        text-align: center;
        padding: 0 15px 15px 15px;
    }

    .hero-subheadline {
        margin-top: 20px;
        margin-bottom: 26px;
    }

    .hero-action-cta {
        justify-content: center;
        gap: 12px;
    }

    /* Ép Bento Grid bung thành cột dọc để không bị bóp méo */
    .features-bento-grid {
        flex-direction: column;
    }

    .card-large,
    .card-market,
    .bento-column-right {
        flex: none;
    }

    /* Ép khối CTA cuối trang thành 1 cột dọc */
    .cta-wrapper {
        display: flex;
        flex-direction: column;
    }

    .cta-left,
    .cta-right {
        display: block;
        width: 100%;
    }

    .cta-left {
        padding: 0;
        margin-bottom: 40px;
    }

    .cta-right {
        min-height: 350px;
    }

    /* Xử lý khối Blog: Bung bảng table thành Flex wrap */
    .blog-wrapper {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        margin-left: 0;
        gap: 20px;
    }

    .blog-card {
        display: block;
        width: calc(50% - 10px);
    }
}

@media screen and (min-width: 769px) and (max-width: 992px) {

    /* 🚀 BỔ SUNG MỚI: Định dạng riêng thẻ Blog số 3 (Tablet) */
    .blog-card:nth-child(3) {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 20px;
        width: 100%;
        padding: 20px;
    }

    .blog-card:nth-child(3) .blog-cover {
        width: 50%;
    }

    .blog-card:nth-child(3) .blog-info {
        padding: 0;
        width: 50%;
    }

    .blog-card:nth-child(3) .blog-excerpt {
        line-clamp: 4;
        -webkit-line-clamp: 4;
        display: block;
    }
}


/* 📱 SMARTPHONE (Màn hình dưới 768px) */
@media screen and (max-width: 768px) {

    .section-normal,
    .section-white {
        padding: 40px 0;
    }

    .hero-banner {
        padding: 30px 0;
        background: radial-gradient(ellipse 80% 50% at 100% 0%,
                var(--color-light) 0%,
                rgba(183, 199, 186, 0.4) 30%,
                var(--color-moss) 130%);
    }

    .hero-text-column {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-headline {
        font-size: 20px;
    }


    .hero-action-cta {
        flex-direction: column;
    }

    .hero-action-cta .btn {
        width: 100%;
    }

    .bento-card {
        padding: 15px;
    }

    .compare-wrapper {
        padding-bottom: 10px;
    }

    .compare-table {
        min-width: 520px;
    }

    .compare-table th,
    .compare-table td {
        padding: 6px 10px;
    }

    .svg-chart-wrapper {
        padding: 8px;
    }

    .line-chart-svg {
        min-width: 500px;
    }

    .chart-master {
        padding: 12px;
    }

    .mobile-scrollbar.scroll-x {
        overflow-x: auto;
    }

    .mobile-scrollbar.scroll-y {
        overflow-y: auto;
    }

    .blog-card {
        display: block;
        width: 100%;
    }

    .blog-card .blog-cover {
        display: none;
    }

    .blog-card .blog-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 20px;
    }

    .blog-card .blog-excerpt {
        line-clamp: initial;
        -webkit-line-clamp: initial;
        display: block;
        max-width: 500px;
    }

    .blog-card .blog-thumb {
        display: block;
        float: left;
        width: 135px;
        height: 90px;
        margin-right: 15px;
    }
}