/*
 * BLOG LIST STYLES (Editorial Magazine Grid)
 */

/* --- 1. HERO SECTION --- */
.blog-hero {
    position: relative;
    /* [SYNC] Chiều cao tối ưu không gian */
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    background-color: #0066ff; /* Fallback color */
    margin-bottom: 0; /* Sát với sticky bar */
    overflow: visible; /* [FIX] Để dropdown tràn ra ngoài */
    z-index: 1000; /* Cao hơn sticky bar */
}

/* [NEW] Wrapper cho ảnh nền để cắt góc/zoom */
.blog-hero-visuals {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: 0;
    border-radius: 0; /* [FIX] Bỏ bo góc để không lộ nền xanh */
}

.blog-hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    animation: slowZoom 20s linear infinite alternate;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* Lớp phủ tối để làm nổi bật chữ trên nền ảnh */
.blog-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 1;
}

.blog-hero-title {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.blog-hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 2;
}

/* [SYNC] Search Box (Đồng bộ với Service List) */
.hero-search-box {
    background: #fff;
    padding: 8px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    z-index: 10; /* [FIX] Tăng z-index để click được trên Desktop */
}

/* [NEW] Search Suggestions Dropdown */
.search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 15px;
    z-index: 1050;
    display: none;
    text-align: left;
    border: 1px solid rgba(0,0,0,0.05);
}
.search-suggestions-dropdown.show {
    display: block;
    animation: fadeInUp 0.2s ease-out;
}
.suggestions-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: #999;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-left: 10px;
}
.suggestion-item {
    display: block;
    padding: 10px 12px;
    color: #444;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.95rem;
    font-weight: 500;
}
.suggestion-item:hover {
    background: #f3f4f6;
    color: var(--primary-color);
    transform: translateX(5px);
}

/* [NEW] Animation Fade In Up */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0; /* Ẩn ban đầu */
}

.search-form {
    display: flex;
    width: 100%;
    align-items: center;
}

.search-icon {
    color: #999;
    margin-left: 15px;
    font-size: 1.2rem;
}

.search-input {
    border: none;
    box-shadow: none !important;
    padding: 12px 15px;
    font-size: 1rem;
    background-color: transparent !important;
}

.btn-search {
    background: var(--primary-color);
    color: #fff;
    border-radius: 40px;
    padding: 10px 25px;
    font-weight: 600;
    border: none;
    white-space: nowrap;
}

.btn-clear {
    color: #999;
    margin-right: 10px; /* Tạo khoảng cách an toàn với nút tìm kiếm */
    font-size: 1.2rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.btn-clear:hover {
    color: #dc3545;
}

/* [FIX] Mobile Search Trigger Style (Đồng bộ Service List) */
.hero-search-trigger {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    color: #555;
    width: 100%;
    max-width: 340px;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* --- 2. STICKY CATEGORY BAR (Đồng bộ với Service List) --- */
.sticky-category-bar {
    position: -webkit-sticky;
    position: sticky;
    top: var(--site-header-height, 76px);
    z-index: 999;
    background-color: transparent; /* [SYNC] Nền trong suốt ban đầu */
    padding: 10px 0;
    
    /* [NEW] Breakout để full width màn hình (phá vỡ giới hạn container) */
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    
    /* [SYNC] Transition để trượt mượt mà và đổi nền */
    transition: all 0.3s ease-in-out;
}

/* [SYNC] Trạng thái ĐÃ DÍNH (dựa trên JS) */
.sticky-category-bar.is-stuck {
    background-color: rgba(255, 255, 255, 0.95); /* [FIX] Nền trắng mờ làm mặc định */
    background-color: color-mix(in srgb, var(--sticky-bg, #ffffff), transparent 5%); /* Dự phòng nếu có cấu hình Admin */
    backdrop-filter: blur(var(--sticky-blur, 12px));
    -webkit-backdrop-filter: blur(var(--sticky-blur, 12px));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Bóng đổ sâu hơn tạo chiều sâu */
    border-bottom: 1px solid #f3f4f6;
}

.category-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Ẩn thanh cuộn Firefox */
}

.category-scroll::-webkit-scrollbar { display: none; } /* Ẩn thanh cuộn Chrome */

/* Mobile: Căn trái để vuốt */
@media (max-width: 768px) {
    .category-scroll {
        justify-content: flex-start;
        padding-left: 12px;
        padding-right: 12px;
        gap: 6px;
    }

    /* [FIX] Mobile: Ghim chặt thanh dính lên đỉnh (vì không có Navbar) */
    .sticky-category-bar {
        top: 0 !important;
        padding: 8px 0;
    }

    .cat-pill {
        padding: 6px 12px;
        font-size: 0.8rem;
        gap: 6px;
    }
}

.cat-pill {
    background: white;
    color: #4b5563;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6; /* Màu nền xám nhẹ mặc định */
}

.cat-pill:hover {
    transform: translateY(-2px);
    color: var(--primary-color);
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cat-pill.active {
    background: color-mix(in srgb, var(--primary-color), transparent 90%);
    color: var(--primary-color);
    border-color: color-mix(in srgb, var(--primary-color), transparent 80%);
}

.cat-pill .cat-count {
    font-size: 0.72rem;
    opacity: 0.8;
    margin-left: 2px;
    font-weight: 600;
}

/* --- 3. EDITORIAL MAGAZINE POST GRID (3 CỘT RỘNG RÃI TOÀN CONTAINER) --- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

@media (max-width: 991.98px) {
    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        margin-bottom: 24px;
    }
}

@media (max-width: 575.98px) {
    .post-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        margin-bottom: 20px;
    }
}

.post-grid-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* --- 4. POST CARD STYLE (Đồng bộ với Service Card) --- */
.post-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border-color: var(--primary-color);
}

.post-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    display: block;
    overflow: hidden;
    background: #f1f5f9;
}

.post-thumb img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.post-card:hover .post-thumb img {
    transform: scale(1.05);
}

.post-cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(4px);
    color: #0f172a;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    z-index: 2;
}

.post-body {
    padding: 14px 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.post-title {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.post-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}

.post-title a:hover { color: var(--primary-color); }

.post-meta-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 6px 0 10px 0;
    padding: 0;
    border: none;
    height: 24px;
    min-height: 24px;
    overflow: hidden;
}

.post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.post-meta-item i {
    color: var(--primary-color);
    font-size: 0.72rem;
}

.post-meta-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-excerpt {
    font-size: 0.86rem;
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3em;
}

.post-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    color: #94a3b8;
}

.post-footer-meta {
    display: inline-flex;
    align-items: center;
}

.post-read-link {
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.post-read-link:hover {
    gap: 7px;
    color: var(--primary-color);
}

/* --- DẢI DỊCH VỤ THỔ ĐỊA ĐỒNG HÀNH (SHOWCASE 3 DỊCH VỤ NGANG) --- */
.post-grid-breakout {
    grid-column: 1 / -1;
    margin: 8px 0 16px 0;
}

.service-showcase-strip {
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    border: 1.5px solid #bae6fd;
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.06);
}

.service-strip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e0f2fe;
    gap: 16px;
    flex-wrap: wrap;
}

.service-strip-badge {
    display: inline-flex;
    align-items: center;
    background: #0284c7;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

.service-strip-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2px;
}

.service-strip-subtitle {
    font-size: 0.82rem;
    color: #64748b;
}

.service-strip-viewall {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0284c7;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid #bae6fd;
    border-radius: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(2, 132, 199, 0.08);
}

.service-strip-viewall:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.service-strip-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.service-strip-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0;
    display: flex;
    align-items: stretch;
    height: 108px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.service-strip-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.12);
    border-color: #38bdf8;
}

.service-strip-thumb {
    width: 100px;
    min-width: 100px;
    height: 100%;
    position: relative;
    display: block;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
    border: none;
    border-radius: 0;
    border-right: 1px solid #e2e8f0;
}

.service-strip-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.service-strip-item:hover .service-strip-thumb img {
    transform: scale(1.08);
}

.service-strip-content {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-strip-tag {
    font-size: 0.68rem;
    font-weight: 700;
    color: #0284c7;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.service-strip-card-title {
    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #0f172a;
}

.service-strip-card-title a {
    color: #0f172a;
    text-decoration: none;
}

.service-strip-card-title a:hover {
    color: #0284c7;
}

.service-strip-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.service-strip-price-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}

.service-strip-price-num {
    font-size: 0.95rem;
    font-weight: 850;
    color: #dc2626;
    letter-spacing: -0.02em;
}

.service-strip-price-unit {
    font-size: 0.7rem;
    color: #64748b;
}

.service-strip-action-btn {
    background: #0284c7;
    color: #ffffff !important;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
    transition: background 0.2s ease, transform 0.2s ease;
}

.service-strip-action-btn:hover {
    background: #0369a1;
    transform: translateY(-1px);
}

/* --- 5. FEATURED POST (Bài nổi bật) --- */
.featured-post-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 50px;
    border: 1px solid #eee;
    position: relative; /* Để định vị badge */
}
/* [FIX] Mobile: Ép tỷ lệ ảnh bài nổi bật để không bị vỡ */
.featured-img-col {
    position: relative;
    width: 100%;
    padding-top: 66.66%; /* Tỷ lệ 3:2 chuẩn đẹp */
    overflow: hidden;
}
.featured-img-col img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .featured-post-card { flex-direction: row; min-height: 350px; }
    .featured-img-col { width: 55%; padding-top: 0; /* Reset padding trên desktop */ }
    .featured-content-col { width: 45%; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
}

.featured-label {
    color: var(--secondary-color);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: block;
    letter-spacing: 1px;
}

.featured-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.featured-title a { color: #2c3e50; text-decoration: none; }
.featured-title a:hover { color: var(--primary-color); }

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    margin-top: 20px;
    transition: gap 0.2s;
}
.btn-read-more:hover { gap: 12px; }

/* [NEW] Mobile Featured Card Redesign */
@media (max-width: 767.98px) {
    .featured-post-card {
        border: 1px solid #e2e8f0;
        box-shadow: 0 4px 16px rgba(0,0,0,0.06);
        margin-bottom: 20px;
        border-radius: 14px;
        overflow: hidden;
    }

    .featured-img-col {
        aspect-ratio: 16 / 9;
        padding-top: 0;
    }

    /* Badge nổi trên ảnh */
    .featured-badge-mobile {
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 10;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        padding: 4px 10px;
        border-radius: 20px;
        font-weight: 700;
        font-size: 0.72rem;
        color: #0f172a;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
        text-transform: uppercase;
        letter-spacing: 0.4px;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .featured-content-col {
        padding: 14px 16px !important;
    }

    .featured-title {
        font-size: 1.15rem;
        margin-bottom: 6px;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Nút đọc full width trên mobile */
    .featured-content-col .btn-read-more {
        display: flex;
        justify-content: center;
        width: 100%;
        background: var(--primary-color);
        color: white;
        padding: 8px 16px;
        font-size: 0.85rem;
        border-radius: 20px;
        margin-top: 10px;
    }
    .featured-content-col .btn-read-more:hover {
        background: color-mix(in srgb, var(--primary-color), black 10%);
        gap: 8px;
    }

    /* [NEW] Limit excerpt to 2 lines on mobile */
    .featured-content-col p {
        font-size: 0.85rem !important;
        line-height: 1.45 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 10px !important;
    }
}

/* --- TRENDING MAGAZINE CARD (TẦNG 1 HERO CLUSTER) --- */
.magazine-trending-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 4px;
    border-radius: 10px;
    border-bottom: 1px dashed #f1f5f9;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.trending-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.trending-item:hover {
    background-color: #f8fafc;
    transform: translateX(3px);
}
.trending-rank-num {
    font-size: 1.15rem;
    font-weight: 850;
    color: #cbd5e1;
    font-family: inherit;
    line-height: 1;
    flex-shrink: 0;
    min-width: 24px;
    text-align: center;
}
.trending-item:first-child .trending-rank-num { color: #ef4444; }
.trending-item:nth-child(2) .trending-rank-num { color: #f97316; }
.trending-item:nth-child(3) .trending-rank-num { color: #eab308; }

.trending-thumb {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    background: #f1f5f9;
}
.trending-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.trending-item:hover .trending-thumb img {
    transform: scale(1.08);
}

.trending-content { min-width: 0; flex: 1; }
.trending-cat-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #0284c7;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 2px;
}
.trending-title {
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #1e293b;
}
.trending-item:hover .trending-title { color: var(--primary-color); }
.trending-meta { font-size: 0.74rem; color: #64748b; }

/* Active Filter Bar */
.active-filter-bar {
    border-radius: 12px;
}

/* --- TẦNG 4: BOTTOM CTA BANNER --- */
.blog-bottom-cta-banner {
    border: none;
    border-radius: 20px;
}
@media (max-width: 767.98px) {
    .blog-bottom-cta-banner {
        padding: 24px 18px !important;
        border-radius: 16px;
        margin-top: 24px !important;
    }
}

/* --- 7. MOBILE CONTENT LAYOUT --- */
@media (max-width: 767.98px) {
    
    /* Reset padding body */
    
    
    /* [SYNC] Mobile Hero Height */
    .blog-hero {
        height: 220px;
        padding-top: 10px;
    }
    .blog-hero-title {
        font-size: 1.55rem;
    }
    .blog-hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    /* [USER] Tối ưu không gian Mobile - Chuẩn Single-Surface 12px Gutter Law */
    .blog-container,
    .main-content-wrapper > .container.blog-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        padding-top: 14px !important;
        padding-bottom: 30px !important;
    }

    /* [EDITORIAL MOBILE POST GRID] */
    .post-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        margin-bottom: 20px;
    }

    .post-card {
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
    }

    .post-thumb {
        aspect-ratio: 16 / 9;
        width: 100%;
    }

    .post-body {
        padding: 12px 12px;
    }

    .post-title {
        font-size: 0.95rem;
        margin-bottom: 5px;
        line-height: 1.35;
        height: auto;
        max-height: 2.7em;
    }

    .post-meta-list {
        margin: 4px 0 8px;
        gap: 6px 8px;
    }

    .post-meta-item {
        font-size: 0.7rem;
        padding: 2px 7px;
    }

    .post-excerpt {
        font-size: 0.82rem;
        line-height: 1.45;
        margin-bottom: 10px;
        color: #64748b;
    }

    .post-footer {
        padding-top: 8px;
        font-size: 0.74rem;
    }

    /* Mobile Trending Card */
    .magazine-trending-card {
        padding: 14px !important;
        border-radius: 14px !important;
        margin-bottom: 20px;
    }
    .trending-item {
        padding: 6px 0;
        gap: 10px;
    }
    .trending-thumb {
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 6px;
    }
    .trending-rank-num {
        font-size: 1rem;
        min-width: 20px;
    }
    .trending-title {
        font-size: 0.82rem;
        margin-bottom: 2px;
    }
    .trending-meta {
        font-size: 0.7rem;
    }

    /* Mobile Service Showcase Strip */
    .service-showcase-strip {
        padding: 16px 14px;
        border-radius: 14px;
        margin: 6px 0 16px 0;
    }
    .service-strip-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
        gap: 8px;
    }
    .service-strip-title {
        font-size: 1rem;
    }
    .service-strip-subtitle {
        font-size: 0.76rem;
    }
    .service-strip-viewall {
        font-size: 0.76rem;
        padding: 5px 12px;
        width: 100%;
        justify-content: center;
    }
    .service-strip-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
    .service-strip-item {
        height: 108px !important;
        padding: 0 !important;
        border-radius: 12px;
    }
    .service-strip-thumb {
        width: 100px !important;
        min-width: 100px !important;
        height: 100% !important;
        border-radius: 0;
        border-right: 1px solid #e2e8f0;
    }
    .service-strip-content {
        padding: 10px 12px;
    }
    .service-strip-card-title {
        font-size: 0.82rem;
    }
    .service-strip-action-btn {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    /* [USER] Tối ưu thanh tìm kiếm Mobile nhỏ gọn */
    .hero-search-box {
        padding: 3px;
        max-width: 80%; /* [USER] Giảm chiều rộng để gọn hơn */
        margin: 0 auto;
    }
    
    .search-input {
        padding: 0 10px;
        font-size: 0.9rem;
        height: 36px; /* Chiều cao nhỏ gọn */
    }
    
    .search-icon {
        font-size: 0.9rem;
        margin-left: 10px;
    }
    
    .btn-search {
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 50%;
        font-size: 0; /* Ẩn chữ Tìm kiếm */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-search::after {
        content: "\f002"; /* Icon kính lúp */
        font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
        font-weight: 900;
        font-size: 0.9rem;
    }

    /* [NEW] Mobile Hot Services (2 Rows Horizontal Scroll) */
    .mobile-hot-services-scroll {
        display: grid;
        grid-template-rows: repeat(2, 1fr); /* 2 hàng */
        grid-auto-flow: column; /* Xếp theo cột rồi cuộn ngang */
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
        margin-right: -12px;
        padding-right: 12px;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
    }

    .mobile-hot-services-scroll::-webkit-scrollbar { display: none; }

    .mobile-hot-service-item {
        width: 250px;
        scroll-snap-align: start;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 0;
        display: flex;
        align-items: stretch;
        gap: 0;
        box-shadow: 0 1px 3px rgba(0,0,0,0.03);
        overflow: hidden;
        height: 76px;
        position: relative;
    }

    .mobile-hot-service-item img {
        width: 76px;
        height: 100%;
        border-radius: 0;
        object-fit: cover;
        flex-shrink: 0;
    }

    .mobile-hot-service-info {
        min-width: 0;
        flex: 1;
        padding: 8px 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .mobile-hot-service-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #333; }
    .mobile-hot-service-price { color: #dc3545; font-weight: 700; font-size: 0.85rem; }

    /* [NEW] Badge Giảm giá cho Mobile */
    .mobile-promo-badge {
        position: absolute; top: 0; left: 0;
        background-color: #dc3545; color: white;
        font-size: 9px; font-weight: 700;
        padding: 2px 8px; border-bottom-right-radius: 8px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.1); z-index: 10;
    }

    /* [NEW] Mobile Popular Posts (Horizontal Scroll) */
    .mobile-popular-posts-scroll {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
        margin-right: -12px;
        padding-right: 12px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
    }
    .mobile-popular-posts-scroll::-webkit-scrollbar { display: none; }

    .mobile-popular-post-card {
        width: 250px;
        scroll-snap-align: start;
        flex-shrink: 0;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 10px 12px;
        display: flex;
        align-items: center;
        gap: 10px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.03);
        transition: transform 0.2s;
    }
    .mobile-popular-post-card:active {
        transform: scale(0.98);
    }
    
    .popular-rank {
        font-size: 1.5rem;
        font-weight: 900;
        color: var(--primary-color);
        opacity: 0.4;
        min-width: 24px;
        text-align: center;
        font-style: italic;
    }

    .popular-content { min-width: 0; flex: 1; }

    .popular-title {
        font-size: 0.9rem;
        font-weight: 700;
        color: #333;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.3;
    }

    .popular-meta { font-size: 0.75rem; color: #888; }
}

/* [NEW] Sidebar Promo Badge (Desktop) */
.sidebar-promo-badge {
    position: absolute; top: 0; left: 0;
    background-color: #dc3545; color: white;
    font-size: 9px; font-weight: 700;
    padding: 2px 6px; 
    border-top-left-radius: 10px; /* Bo theo góc ảnh */
    border-bottom-right-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1); z-index: 10;
}

/* [NEW] Sidebar Popular Posts */
.list-group-item-action:hover {
    background-color: transparent;
    transform: translateX(5px);
    transition: transform 0.2s;
}
/* Sort Dropdown Active State */
.dropdown-item.active, .dropdown-item:active {
    background-color: var(--primary-color);
}