/*
Theme Name: AutoAZ Cloud Theme
Theme URI: https://autoaz.vn
Author: autoaz.vn
Author URI: https://autoaz.vn
Description: Giao diện đa ngành nghề linh hoạt, tối ưu chuẩn SEO. Phát triển bởi Hiếu Nguyễn - 0899377738
Version: 1.0.3
*/

:root {
    --primary-color: #ed1c24;
    --primary: #ed1c24;
    --primary-dark: #cc181f;
}

/* ====== BASE HEADER STYLES (Desktop) ====== */
.icm-mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    color: #333;
    flex-shrink: 0;
}

.icm-header-logo {
    flex: 0 0 auto;
    margin-right: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding-left: 8px;
}

.icm-header-search-wrapper {
    flex: 1;
    max-width: 480px;
    margin: 0 20px;
}

.icm-header-search-bar {
    position: relative;
    width: 100%;
}

.icm-header-input-group {
    border: none;
    outline: none;
    width: 100%;
    padding: 0 20px;
    background: #f5f5f5;
    border-radius: 20px;
    height: 40px;
}

.icm-header-search-bar--btn {
    background: var(--primary-color);
    border: none;
    position: absolute;
    right: 0;
    top: 0;
    width: 45px;
    height: 40px;
    border-radius: 0 20px 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.icm-header-actions {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    margin-left: 15px;
    padding-right: 8px;
}

.icm-header-action-cart {
    font-size: 22px;
    cursor: pointer;
    position: relative;
}

.icm-header-action-login {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.icm-header-action-login a {
    color: #000;
    display: flex;
    align-items: center;
}

/* ====== EXISTING STYLES (Minified, Preserved) ====== */
.search-form{display:flex;background:#f5f5f7;border-radius:20px;padding:5px 15px}.search-field{border:none;background:0 0;outline:0;padding:5px;font-size:14px}.search-submit{border:none;background:0 0;color:var(--primary);font-weight:600;cursor:pointer}.icm-header-main-category>.container>.ant-row>.ant-col-6{display:flex;align-items:center;justify-content:flex-start}.icm-header-main-category>.container>.ant-row>.ant-col-6 a{display:inline-flex;align-items:center}.icm-header-main-category>.container>.ant-row>.ant-col-6 img{height:38px;width:auto}.logo img{height:40px;display:block}.icm-header-hover-menu{position:relative}.icm-header-cate{position:absolute!important;top:100%!important;left:0!important;z-index:1000!important;width:100%!important;max-width:260px!important;height:auto!important;max-height:400px!important;overflow-y:auto;overflow-x:hidden;background-color:#fff!important;border-radius:0 0 8px 8px;box-shadow:0 4px 15px rgba(0,0,0,.12);display:none}.icm-header-hover-menu:hover .icm-header-cate{display:block!important}.icm-header-cate ul{list-style:none;margin:0;padding:0}.icm-header-cate ul li{padding:4px 10px!important;border-bottom:1px solid rgba(0,0,0,.06)}.icm-header-cate ul li:last-child{border-bottom:none}.icm-header-cate ul li a{display:flex!important;align-items:center;gap:8px;font-size:13px;line-height:28px;color:#333!important;font-weight:500;transition:color .2s ease}.icm-header-cate ul li a:hover{color:var(--primary-color)!important}.icm-header-cate::-webkit-scrollbar{width:5px}.icm-header-cate::-webkit-scrollbar-track{background:#f5f5f5;border-radius:0 0 8px 0}.icm-header-cate::-webkit-scrollbar-thumb{background:#ccc;border-radius:10px}.icm-header-cate::-webkit-scrollbar-thumb:hover{background:#aaa}ul.list-level-01>li>a:after{margin-top:0!important;margin-bottom:0!important;position:absolute;bottom:0;left:0}.icm-menu-caret{display:inline-flex!important;vertical-align:middle}.list-level-01>li>ul.child{top:49px!important;border-radius:0 0 10px 10px;border-bottom:3px solid var(--primary-color);z-index:10000!important}.list-level-01>li>ul.child::before{content:'';position:absolute;top:-20px;left:0;width:100%;height:20px;background:0 0}.list-level-01>li:hover>ul.child{display:block!important}.list-level-01 ul.child li a{display:flex!important;align-items:center}.icm-reveal,.icm-reveal-stagger{opacity:0;transform:translateY(40px);transition:opacity .6s ease,transform .6s ease}.icm-reveal-stagger.is-visible,.icm-reveal.is-visible{opacity:1;transform:translateY(0)}@media (prefers-reduced-motion:reduce){.icm-reveal,.icm-reveal-stagger{opacity:1;transform:none;transition:none}}

/* ====== RESPONSIVE — TABLET (max-width: 991px) ====== */
@media (max-width: 991px) {
    /* HEADER: Stack vertically */
    .icm-header-main-menu--wrapper {
        flex-wrap: wrap;
        height: auto !important;
        padding: 10px 12px !important;
        gap: 10px;
    }
    
    .icm-mobile-menu-toggle {
        display: flex;
        align-items: center;
        order: 1;
    }
    
    .icm-header-logo {
        flex: 1;
        margin-right: 0 !important;
        justify-content: center;
        order: 2;
        padding-left: 0;
    }
    
    .icm-header-actions {
        flex: 0 0 auto;
        gap: 12px;
        margin-left: 0;
        padding-right: 0;
        order: 3;
    }
    
    .icm-header-action-phone { display: none; }
    .icm-header-action-login { display: none; }
    
    .icm-header-search-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0;
        order: 4;
    }
    
    /* NAVIGATION BAR */
    .icm-header-main-category .ant-col.ant-col-18 { display: none !important; }
    .icm-header-main-category .ant-col.ant-col-6 { width: 100%; flex: 0 0 100%; max-width: 100%; }
    .icm-header-category p { font-size: 16px !important; }
    
    /* BANNER */
    .icm-banner-banner-wapper .ant-col-18,
    .icm-banner-banner-wapper .ant-col-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    .icm-banner-banner-wapper .ant-row { margin: 0 !important; }
    .icm-banner-right-wrapper { display: flex; flex-direction: row; gap: 10px; margin-top: 10px; }
    .icm-banner-right-wrapper .ant-col-24 { flex: 1; }
    
    /* INSTRUCTIONS / PARTNERS */
    .icm-instruction-section .ant-col-6,
    .icm-home-brands .ant-col-4 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 20px;
    }
    
    /* PRODUCTS / NEWS */
    .icm-home-projects .ant-col-6,
    .icm-home-news .ant-col-6 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    /* DESIGN FLOOR */
    .icm-home-design .ant-col-12 { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; }
    
    /* TESTIMONIALS & FAQ */
    .icm-home-testimonials .ant-col-12,
    .icm-home-faq .ant-col-12 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* FLOATING ELEMENTS: Scale down and reposition */
    .icm-footer-return-to-top {
        width: 50px !important;
        height: 50px !important;
        right: 12px !important;
        bottom: 200px !important;
    }
    .icm-footer-return-to-top .icm-footer-loader-ring {
        width: 50px !important;
        height: 50px !important;
    }
    .icm-footer-return-to-top .icm-footer-rocket-wrapper {
        left: 12px !important;
        top: -15px !important;
    }
    .icm-footer-return-to-top .icm-footer-rocket {
        width: 20px !important;
    }
    .icm-footer-return-to-top .icm-footer-trail-wrapper {
        left: 9px !important;
        top: 38px !important;
    }
    
    .icm-pi-ai-wrapper {
        bottom: 130px !important;
        right: 15px !important;
        width: 50px !important;
        height: 50px !important;
    }
    .icm-pi-ai-open-btn img {
        width: 50px !important;
        height: 50px !important;
    }
    
    .icm-footer-zallo-call {
        bottom: 70px !important;
        right: 15px !important;
        width: 50px !important;
        height: 50px !important;
    }
    .icm-footer-zallo-call img {
        width: 50px !important;
        height: 50px !important;
    }
}

/* ====== RESPONSIVE — MOBILE (max-width: 576px) ====== */
@media (max-width: 576px) {
    /* HEADER: Compact mobile layout */
    .icm-header-main-menu--wrapper {
        padding: 8px 10px !important;
        gap: 8px;
    }
    
    .icm-header-logo img {
        max-height: 36px !important;
        max-width: 160px !important;
    }
    
    .icm-header-action-cart {
        font-size: 20px;
    }
    
    .icm-header-input-group {
        height: 36px;
        font-size: 14px;
    }
    .icm-header-search-bar--btn {
        width: 40px;
        height: 36px;
    }
    
    /* NAV: Full-width category bar */
    .icm-header-main-category .container {
        padding: 0 !important;
    }
    .icm-header-category {
        width: 100% !important;
    }
    
    /* BANNER: Proper aspect ratio on mobile */
    .icm-banner-slider img {
        height: auto !important;
        width: 50% !important;
        object-fit: cover;
        aspect-ratio: 16/9;
    }
    .icm-banner-prev,
    .icm-banner-next {
        width: 35px !important;
        height: 35px !important;
        font-size: 16px !important;
    }
    .icm-banner-right-wrapper { flex-direction: column; }
    
    /* BRANDS SECTION */
    .icm-brands-section-title {
        font-size: 18px !important;
        padding: 0 15px;
    }
    .icm-brands-slider-track > div {
        width: 130px !important;
        margin: 0 8px !important;
    }
    
    /* CATEGORIES */
    .icm-premium-cat-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
    .icm-premium-cat-box {
        padding: 15px 8px !important;
    }
    .icm-premium-cat-box .title {
        font-size: 12px !important;
    }
    
    /* SECTIONS: Reduce spacing */
    section[data-hydration-on-demand] {
        padding: 30px 0 !important;
        margin-bottom: 20px !important;
    }
    section[data-hydration-on-demand] h2 {
        font-size: 20px !important;
    }
    
    /* INSTRUCTION / BRANDS: Stack */
    .icm-instruction-section .ant-col-6,
    .icm-home-brands .ant-col-4 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .icm-home-projects .ant-col-6,
    .icm-home-news .ant-col-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* FLOATING: Even smaller on phones */
    .icm-footer-return-to-top {
        width: 45px !important;
        height: 45px !important;
        right: 10px !important;
        bottom: 170px !important;
    }
    .icm-footer-return-to-top .icm-footer-loader-ring {
        width: 45px !important;
        height: 45px !important;
        border-width: 3px !important;
    }
    .icm-footer-return-to-top .icm-footer-rocket-wrapper {
        left: 10px !important;
        top: -12px !important;
    }
    .icm-footer-return-to-top .icm-footer-rocket {
        width: 18px !important;
    }
    .icm-footer-return-to-top .icm-footer-trail-wrapper {
        left: 8px !important;
        top: 35px !important;
        width: 5px !important;
    }
    
    .icm-pi-ai-wrapper {
        bottom: 115px !important;
        right: 10px !important;
        width: 45px !important;
        height: 45px !important;
    }
    .icm-pi-ai-open-btn img {
        width: 45px !important;
        height: 45px !important;
    }
    
    .icm-footer-zallo-call {
        bottom: 60px !important;
        right: 10px !important;
        width: 45px !important;
        height: 45px !important;
    }
    .icm-footer-zallo-call img {
        width: 45px !important;
        height: 45px !important;
    }
    
    /* FOOTER: Stack on mobile */
    .icm-footer-footer-pri {
        background: #252525 !important;
        aspect-ratio: auto !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 30px 15px !important;
        height: auto !important;
        background-image: none !important;
    }
    .icm-footer-footer-pri > div {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 25px;
        padding: 0 !important;
    }
    
    /* LIBRARY SECTION: Tabs + Grid */
    .icm-library-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        position: relative;
    }
    .icm-library-tabs {
        margin-left: 0 !important;
        width: 100%;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px !important;
        padding-right: 30px !important;
        gap: 8px !important;
        scrollbar-width: none;
        mask-image: linear-gradient(to right, black 85%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    }
    .icm-library-tabs::-webkit-scrollbar { display: none; }
    .lib-tab {
        font-size: 12px !important;
        padding: 5px 12px !important;
        flex-shrink: 0;
    }
    .icm-library-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .icm-lib-card-img-wrap {
        padding-top: 75% !important;
    }
    .icm-lib-card h3,
    .icm-lib-card [style*="font-size:15px"] {
        font-size: 13px !important;
        height: auto !important;
        -webkit-line-clamp: 2 !important;
        margin-bottom: 8px !important;
    }
    .icm-lib-card [style*="padding:16px"] {
        padding: 10px !important;
    }
    .icm-lib-card [style*="font-size:13px"] {
        font-size: 11px !important;
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
    }
    .icm-lib-card a[style*="padding:10px 15px"] {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
    
    /* DESIGN PLATFORM: Smaller text */
    .design-platform-grid [style*="padding: 45px 40px"] {
        padding: 25px 20px !important;
    }
    .design-platform-grid h3 {
        font-size: 22px !important;
    }
    .design-platform-grid p {
        font-size: 14px !important;
    }
    .design-platform-grid ul li {
        font-size: 13px !important;
        margin-bottom: 12px !important;
    }
    .design-platform-grid a[style*="padding: 14px 32px"] {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }
    .design-platform-grid [style*="padding-top: 60%"] {
        padding-top: 55% !important;
    }
}

/* ====== LIBRARY — TABLET ONLY (577px to 991px) ====== */
@media (min-width: 577px) and (max-width: 991px) {
    .icm-library-header {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .icm-library-tabs {
        margin-left: 0 !important;
        width: 100%;
    }
    .icm-library-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ====== RESPONSIVE — SMALL PHONES (max-width: 400px) ====== */
@media (max-width: 400px) {
    .icm-premium-cat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .icm-header-logo img {
        max-height: 32px !important;
        max-width: 140px !important;
    }
}

/* ====== GLOBAL ANT DESIGN GRID RESPONSIVE OVERRIDES ====== */
@media (max-width: 991px) {
    .ant-col-lg-18 { flex: 0 0 100% !important; max-width: 100% !important; }
    .ant-col-lg-6 { flex: 0 0 100% !important; max-width: 100% !important; }
}

@media (max-width: 768px) {
    .ant-col-md-10 { flex: 0 0 100% !important; max-width: 100% !important; }
    .ant-col-md-14 { flex: 0 0 100% !important; max-width: 100% !important; }
    .ant-col-md-12 { flex: 0 0 100% !important; max-width: 100% !important; }
    .ant-col-md-8 { flex: 0 0 100% !important; max-width: 100% !important; }
    .ant-col-md-16 { flex: 0 0 100% !important; max-width: 100% !important; }
    .search-form { display: none; }
}

@media (max-width: 576px) {
    .ant-col-sm-12 { flex: 0 0 100% !important; max-width: 100% !important; }
    .ant-col-xs-24 { flex: 0 0 100% !important; max-width: 100% !important; }
}

/* Catch-all for Ant Design cols */
@media (max-width: 991px) {
    [class*="ant-col-lg-"] { flex: 0 0 100% !important; max-width: 100% !important; }
}
@media (max-width: 768px) {
    [class*="ant-col-md-"] { flex: 0 0 100% !important; max-width: 100% !important; }
}
@media (max-width: 576px) {
    [class*="ant-col-sm-"] { flex: 0 0 100% !important; max-width: 100% !important; }
}

/* Blog List Responsive */
@media (max-width: 768px) {
    .post-thumbnail { flex: 0 0 100% !important; max-width: 100% !important; }
}

/* Pagination / Posts Navigation */
.nav-links { display: flex; justify-content: center; gap: 10px; margin-top: 40px; border-top: 1px solid #eee; padding-top: 20px; }
.nav-previous a, .nav-next a { display: inline-block; background: #f5f5f5; color: #333; padding: 10px 20px; border-radius: 25px; font-weight: 500; transition: 0.3s; }
.nav-previous a:hover, .nav-next a:hover { background: var(--primary-color); color: #fff; }
.nav-links .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; background: #fff; color: #333; border: 1px solid #ddd; border-radius: 5px; font-weight: 600; font-size: 14px; transition: all 0.3s ease; text-decoration: none; padding: 0 15px; }
.nav-links .page-numbers:hover { background: #f5f5f5; border-color: #ccc; }
.nav-links .page-numbers.current { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.nav-links .dots { background: transparent; border: none; }

/* Fix menu gap */
ul.list-level-01 { justify-content: space-between; width: 100%; }
.icm-style-menustyle { width: 100%; }
.main-navbar { width: 100%; }

/* Fix right CTA alignment */
.icm-header-main-category .ant-col-18 .ant-col-6 { display: flex; justify-content: flex-end; align-items: center; }
/* CHECKLIST | 2026-08-19 | Responsive Overhaul v2 | ✅ Header mobile (hamburger+logo+cart) | ✅ Search full-width | ✅ Banner proportional | ✅ Categories 3-col/2-col grid | ✅ Floating buttons 45px | ✅ Footer stacked | ✅ Tested 375/412/768/1440 */

/* FOOTER RESPONSIVE */
@media (max-width: 991px) {
    .icm-footer-footer-pri {
        background: #252525 !important;
        aspect-ratio: auto !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 40px 20px !important;
        height: auto !important;
    }
    .icm-footer-footer-pri > div {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 30px;
        padding: 0 !important;
    }
    .icm-footer-nav-title {
        font-size: 18px !important;
        color: #fff !important;
        border-bottom: 2px solid var(--primary-color);
        display: inline-block;
        margin-bottom: 15px;
    }
    .icm-footer-nav-list a {
        font-size: 15px !important;
        color: #ddd !important;
    }
    .icm-footer-tutorial-print { color: #ddd !important; }
}

/* HOME BRANDS LOGOS SLIDER */
@keyframes scrollBrands {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.icm-brands-slider-track:hover {
    animation-play-state: paused;
}
.icm-brands-section-logo-img {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
    max-height: 45px;
    max-width: 120px;
    object-fit: contain;
}
.icm-brands-section-logo-item:hover .icm-brands-section-logo-img {
    filter: grayscale(0%);
    opacity: 1;
}
.icm-brands-slider-container {
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* PREMIUM CATEGORIES GRID */
.icm-premium-cat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}
.icm-premium-cat-box {
    background: #fff;
    border-radius: 12px;
    padding: 25px 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.icm-premium-cat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.15);
}
.icm-premium-cat-box .icon-wrapper {
    width: 45px;
    height: 45px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icm-premium-cat-box .icon-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.icm-premium-cat-box:hover .icon-wrapper img {
    transform: scale(1.1);
}
.icm-premium-cat-box .title {
    font-size: 13.5px;
    font-weight: 700;
    color: #333;
    margin: 0;
    font-family: sans-serif;
    transition: color 0.3s;
}
.icm-premium-cat-box:hover .title {
    color: var(--primary-color);
}
@media (max-width: 1200px) {
    .icm-premium-cat-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 992px) {
    .icm-premium-cat-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}
@media (max-width: 768px) {
    .icm-premium-cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .icm-premium-cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* HOME PROJECTS GRID */
@media (max-width: 991px) {
    .icm-projects-grid { grid-template-columns: 1fr !important; }
    .icm-project-large { min-height: 300px !important; }
}
@media (max-width: 576px) {
    .icm-projects-small { grid-template-columns: 1fr !important; }
}

/* SINGLE POST CSS */
.icm-single-post-title {
    font-size: clamp(24px, 4vw, 32px) !important;
    font-weight: 800;
    color: #111;
    line-height: 1.4;
    margin: 0 0 15px;
}
.entry-content h2 { font-size: 24px; font-weight: 700; color: #111; margin-top: 40px; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.entry-content h3 { font-size: 20px; font-weight: 600; color: #333; margin-top: 30px; margin-bottom: 15px; }
.entry-content p { font-size: 16px; line-height: 1.8; color: #444; margin-bottom: 20px; text-align: justify; }
.entry-content img { border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin: 20px auto; display: block; max-width: 100%; height: auto; }
.icm-widget-title { font-size: 16px; font-weight: 700; text-transform: uppercase; border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; margin-bottom: 20px; color: #111; display: inline-block; }
.icm-cat-list li { margin-bottom: 12px; border-bottom: 1px dashed #eee; padding-bottom: 12px; }
.icm-cat-list li a { color: #555; font-size: 14px; font-weight: 500; display: flex; justify-content: space-between; transition: 0.3s; }
.icm-cat-list li a:hover { color: var(--primary-color); padding-left: 5px; }

@media (max-width: 768px) {
    .site-main {
        padding: 20px 0 !important;
    }
}

/* SINGLE PRINT PRODUCT CSS */
.product-specs li { display: flex; margin-bottom: 8px; font-size: 14px; border-bottom: 1px dashed #eee; padding-bottom: 8px; }
.product-specs li span:first-child { font-weight: 600; color: #444; width: 140px; flex-shrink: 0; }
.product-specs li span:last-child { color: #111; }
.btn-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; font-weight: bold; border-radius: 4px; text-transform: uppercase; font-size: 14px; cursor: pointer; transition: 0.3s; border:none; }
.btn-baogia { background: #f1c40f; color: #111; }
.btn-baogia:hover { background: #e0b60e; }
.btn-zalo { background: var(--primary-color); color: #fff; }
.btn-zalo:hover { background: #c0392b; }
.content-wrapper h2 { font-size: 22px; font-weight: 700; color: #111; margin-top: 30px; margin-bottom: 15px; }
.content-wrapper h3 { font-size: 18px; font-weight: 600; color: #222; margin-top: 25px; margin-bottom: 10px; }
.content-wrapper p { font-size: 16px; line-height: 1.8; color: #333; margin-bottom: 15px; text-align: justify; }
.content-wrapper img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px auto; display: block; }
.sidebar-box { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 20px; margin-bottom: 30px; }
.sidebar-title { font-size: 16px; font-weight: bold; text-transform: uppercase; border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; margin-bottom: 15px; color: #111; display: inline-block; }
.icm-thumb-swiper .swiper-slide-thumb-active { opacity: 1 !important; border-color: var(--primary-color) !important; }
.swiper-button-next:after, .swiper-button-prev:after { font-size: 20px; font-weight: bold; text-shadow: 0 0 5px rgba(0,0,0,0.5); color:#fff; }
.icm-single-product-title {
    font-size: clamp(20px, 4vw, 26px) !important;
    font-weight: 800;
    color: #111;
    margin-bottom: 15px;
    line-height: 1.4;
    text-transform: uppercase;
}

/* TESTIMONIAL SECTION CSS */
.testimonial-card {
    background: #fff; 
    padding: 40px 30px; 
    border-radius: 12px; 
    text-align: center; 
    position: relative; 
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    margin-top: 25px;
    margin-bottom: 25px;
    height: calc(100% - 50px);
}
.swiper-slide-active .testimonial-card {
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    transform: scale(1.05);
    z-index: 10;
}
.quote-mark {
    position: absolute; 
    top: 20px; 
    right: 25px; 
    color: #f6f6f6; 
    font-size: 60px; 
    font-family: sans-serif; 
    font-weight: bold;
    font-style: italic; 
    line-height: 1;
}
.client-logo {
    width: 75px; 
    height: 75px; 
    margin: 0 auto 20px; 
    border-radius: 50%; 
    border: 1px solid #e0e0e0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: #fff; 
    overflow: hidden;
}
.client-name {
    font-size: 15px; 
    font-weight: 700; 
    color: #333; 
    margin-bottom: 5px;
    font-family: sans-serif;
}
.client-company {
    font-size: 11px; 
    font-weight: 600; 
    color: #999; 
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.client-text {
    font-style: italic; 
    color: #666; 
    font-size: 13.5px; 
    line-height: 1.8; 
    margin: 0;
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 18px !important;
    font-weight: 900;
}
@media (max-width: 768px) {
    .swiper-slide-active .testimonial-card {
        transform: none;
    }
}

/* TESTIMONIAL BUTTONS */
.mySwiperTestimonial .swiper-button-next,
.mySwiperTestimonial .swiper-button-prev {
    color: var(--primary-color); 
    background: #fff; 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
    margin-top: -25px; 
    z-index: 100;
}
.mySwiperTestimonial .swiper-button-next { right: 0px; }
.mySwiperTestimonial .swiper-button-prev { left: 0px; }

/* INSTRUCTION SECTION CSS */
.icm-step-card {
    position: relative; 
    padding: 25px; 
    background: #fff; 
    border-radius: 16px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); 
    margin-bottom: 25px; 
    border: 1px solid #f0f0f0; 
    transition: all 0.3s ease; 
    display: flex; 
    align-items: flex-start; 
    z-index: 2;
    overflow: hidden;
}
.icm-step-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}
.icm-step-icon {
    flex-shrink: 0; 
    width: 70px; 
    height: 70px; 
    background: #fff; 
    border-radius: 50%; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-right: 25px; 
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}
.icm-step-card:hover .icm-step-icon {
    transform: scale(1.1) rotate(5deg);
}
.icm-step-num {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 60px;
    font-weight: 900;
    color: #f5f5f5;
    z-index: 0;
    transition: all 0.3s;
    font-family: sans-serif;
}
.icm-step-card:hover .icm-step-num {
    color: #ffeaea;
}
.icm-step-content {
    position: relative;
    z-index: 2;
}
.icm-mascot-img {
    animation: icm-float 6s ease-in-out infinite;
}
@keyframes icm-float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
@media (max-width: 576px) {
    .icm-step-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 15px;
    }
    .icm-step-icon {
        margin-right: 0 !important;
        margin-bottom: 15px;
    }
}

/* WORKFLOW FEATURES CSS */
@media (max-width: 767px) {
    .icm-workflow-steps {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .icm-workflow-steps > div:not(.icm-workflow-connector) {
        flex: 0 0 100% !important;
        margin-bottom: 10px;
    }
    .icm-workflow-connector,
    .icm-step-arrow {
        display: none !important;
    }
    .icm-features-banner {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 576px) {
    .icm-workflow-steps > div:not(.icm-workflow-connector) {
        flex: 0 0 100% !important;
    }
    .icm-features-banner {
        grid-template-columns: 1fr !important;
    }
}

/* FIX OVERFLOW ISSUE */
html, body {
    overflow-x: hidden !important;
    width: 100%;
}
* {
    box-sizing: border-box;
}

/* FIX LAYOUT BREAK ON 1024-1280px (LAPTOP) */
@media (min-width: 992px) {
    .icm-library-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    }
    .icm-header-search-bar {
        max-width: 400px;
    }
}
@media (max-width: 1280px) and (min-width: 992px) {
    .icm-header-action-phone { display: none; }
    .icm-header-search-bar { width: 300px; }
}

/* FIX RESPONSIVE TABLET & MOBILE HEADER (SEARCH BAR) */
@media (max-width: 991px) {
    .icm-header-main-menu--wrapper {
        flex-wrap: wrap !important;
        height: auto !important;
        padding: 10px 0;
    }
    .icm-header-search-bar {
        order: 10 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 15px !important;
        margin-bottom: 5px !important;
    }
    .icm-header-actions {
        order: 2 !important;
    }
}

/* FOOTER CUSTOM MENUS */
.icm-footer-custom-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.icm-footer-custom-menu li {
    margin-bottom: 6px;
    font-size: clamp(12px, 0.95vw, 14px);
    font-weight: 500;
}
.icm-footer-custom-menu li a {
    color: rgba(var(--primary-text-rgb), 0.7);
    transition: all 0.2s ease;
}
.icm-footer-custom-menu li a:hover {
    color: var(--primary-text-color);
    text-decoration: underline;
}


/* icm-library-grid-mobile-fix */
@media (max-width: 576px) { .icm-library-grid { grid-template-columns: repeat(2, 1fr) !important; } }
/* PRODUCT BUTTONS RESPONSIVE */
.icm-product-buttons .icm-btn-flex { flex: 1; min-width: 150px; text-align: center; justify-content: center; }
@media (max-width: 480px) {
    .icm-product-buttons { flex-direction: column; }
    .icm-product-buttons .icm-btn-flex { width: 100%; min-width: 100%; }
}
/* ==========================================================================
   Full Content CSS (Typography for posts, products, projects)
   ========================================================================== */
.entry-content, .content-wrapper, .icm-post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}
.entry-content p, .content-wrapper p, .icm-post-content p {
    margin-bottom: 1.5em;
    text-align: justify;
}
.entry-content h1, .content-wrapper h1, .icm-post-content h1,
.entry-content h2, .content-wrapper h2, .icm-post-content h2,
.entry-content h3, .content-wrapper h3, .icm-post-content h3,
.entry-content h4, .content-wrapper h4, .icm-post-content h4,
.entry-content h5, .content-wrapper h5, .icm-post-content h5,
.entry-content h6, .content-wrapper h6, .icm-post-content h6 {
    color: #111;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    line-height: 1.4;
}
.entry-content h2, .content-wrapper h2 {
    font-size: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.entry-content h3, .content-wrapper h3 { font-size: 20px; }
.entry-content h4, .content-wrapper h4 { font-size: 18px; }

/* Lists */
.entry-content ul, .content-wrapper ul, .icm-post-content ul {
    list-style-type: disc;
    margin: 0 0 1.5em 2em;
    padding: 0;
}
.entry-content ol, .content-wrapper ol, .icm-post-content ol {
    list-style-type: decimal;
    margin: 0 0 1.5em 2em;
    padding: 0;
}
.entry-content li, .content-wrapper li, .icm-post-content li {
    margin-bottom: 0.5em;
}
.entry-content li > ul, .content-wrapper li > ul, .icm-post-content li > ul,
.entry-content li > ol, .content-wrapper li > ol, .icm-post-content li > ol {
    margin-bottom: 0;
    margin-top: 0.5em;
}

/* Blockquote */
.entry-content blockquote, .content-wrapper blockquote, .icm-post-content blockquote {
    margin: 1.5em 0;
    padding: 15px 25px;
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    font-style: italic;
    color: #555;
    border-radius: 0 8px 8px 0;
}
.entry-content blockquote p, .content-wrapper blockquote p, .icm-post-content blockquote p {
    margin-bottom: 0;
}

/* Links */
.entry-content a, .content-wrapper a, .icm-post-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}
.entry-content a:hover, .content-wrapper a:hover, .icm-post-content a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Tables */
.entry-content table, .content-wrapper table, .icm-post-content table {
    width: 100%;
    margin-bottom: 1.5em;
    border-collapse: collapse;
}
.entry-content table th, .content-wrapper table th, .icm-post-content table th,
.entry-content table td, .content-wrapper table td, .icm-post-content table td {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
}
.entry-content table th, .content-wrapper table th, .icm-post-content table th {
    background: #f5f5f5;
    font-weight: 600;
}

/* Images & Media */
.entry-content img, .content-wrapper img, .icm-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em auto;
    display: block;
}
.entry-content figure, .content-wrapper figure, .icm-post-content figure {
    margin: 1.5em 0;
}
.entry-content figcaption, .content-wrapper figcaption, .icm-post-content figcaption {
    text-align: center;
    font-size: 14px;
    color: #777;
    margin-top: 10px;
    font-style: italic;
}

/* Other basics */
.entry-content hr, .content-wrapper hr, .icm-post-content hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 2em 0;
}
.entry-content b, .entry-content strong, 
.content-wrapper b, .content-wrapper strong,
.icm-post-content b, .icm-post-content strong {
    font-weight: 700;
    color: #111;
}








/* ====== FIX MOBILE HEADER OVERLAP & ADMIN BAR ====== */
@media screen and (max-width: 782px) {
    /* html { margin-top: 46px !important; } */
    #wpadminbar { position: fixed !important; top: 0 !important; }
    body.admin-bar .icm-header-main-menu { top: 46px !important; }
}
@media screen and (min-width: 783px) {
    /* html { margin-top: 32px !important; } */
    #wpadminbar { position: fixed !important; top: 0 !important; }
    body.admin-bar .icm-header-main-menu { top: 32px !important; }
}

@media (max-width: 991px) {
    /* Hide the red category bar on mobile, use drawer instead */
    .icm-header-main-category { display: none !important; }
    
    /* Adjust padding so the tall wrapping mobile header doesn't overlap content */
    .icm-header-site-header { padding-top: 130px !important; }
    
    /* Ensure the fixed header can expand to fit search bar */
    .icm-header-site-header .icm-header-main-menu {
        height: auto !important;
        min-height: 70px;
    }
}
