/* Tách từ templates/base.html — giữ nguyên thứ tự cascade qua <link> tại vị trí cũ. */
/* =========================================================
   SHOWROOM — slide ảnh thực tế
   PC + mobile: 1 ảnh/lượt, tự chuyển 2.5 giây.
   Scope riêng, không ảnh hưởng các section đã khóa.
========================================================= */
.showroom-section{
    width:100%;
    background:#fff;
    padding:0 0 72px;
}

.showroom-inner{
    width:100%;
    max-width:1240px;
    margin:0 auto;
}

.showroom-slider{
    position:relative;
    display:block;
    width:100% !important;
    max-width:none !important;
    flex:none !important;
    overflow:hidden;
    border-radius:12px;
    background:#f5f7fa;
}

.showroom-slide{
    display:none;
    width:100%;
    line-height:0;
}

.showroom-slide.is-active{
    display:block;
}

.showroom-slide img{
    display:block;
    width:100% !important;
    max-width:none !important;
    height:auto;
    aspect-ratio:16 / 7;
    object-fit:cover;
}

.showroom-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:3;
    width:42px;
    height:42px;
    border:1px solid rgba(255,255,255,.8);
    border-radius:50%;
    background:rgba(0,0,0,.22);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    line-height:1;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
}

.showroom-prev{left:18px;}
.showroom-next{right:18px;}

.showroom-dots{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    margin:14px 0 0;
}

.showroom-dot{
    width:7px;
    height:7px;
    padding:0;
    border:0;
    border-radius:50%;
    background:#cbd0d8;
    cursor:pointer;
}

.showroom-dot.is-active{
    width:24px;
    border-radius:999px;
    background:#00529c;
}

.showroom-info{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    column-gap:28px;
    row-gap:18px;
    width:100%;
    min-width:0;
    padding:28px 16px 0;
    box-sizing:border-box;
}

.showroom-copy{min-width:0;}

.showroom-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    width:auto;
    max-width:100%;
    min-width:0;
    flex:0 0 auto;
    box-sizing:border-box;
}

.showroom-actions .showroom-button{
    min-width:132px;
    box-sizing:border-box;
}

.showroom-copy .eyebrow{
    display:block;
    margin-bottom:8px;
    color:#00529c;
    font-size:13px;
    font-weight:800;
    letter-spacing:.10em;
}

.showroom-copy .showroom-more{
    display:inline-block;
    margin-bottom:8px;
    color:#00529c;
    font-size:12px;
    font-weight:700;
    line-height:1.3;
    text-decoration:underline;
}

.showroom-copy h2{
    margin:0;
    color:#111318;
    font-size:clamp(28px,3vw,40px);
    line-height:1.12;
    letter-spacing:-.03em;
}

.showroom-copy p{
    max-width:650px;
    margin:10px 0 0;
    color:#686e78;
    font-size:14px;
    line-height:1.55;
}

.showroom-address{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:10px;
    color:#252932;
    font-size:14px;
    font-weight:600;
}

.showroom-actions{
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:10px;
    flex:0 0 auto;
    width:max-content;
    max-width:100%;
}

.showroom-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:11px 18px;
    border-radius:4px;
    font-size:12px;
    font-weight:700;
    line-height:1;
    text-decoration:none;
    white-space:nowrap;
}

.showroom-button-primary{
    background:#00529c;
    border:1px solid #00529c;
    color:#fff !important;
}

.showroom-button-outline{
    background:#00529c;
    border:1px solid #00529c;
    color:#fff !important;
}

.showroom-section .showroom-button-primary,
.showroom-section .showroom-button-outline {
    color:#fff !important;
}

@media (min-width:768px) and (max-width:1000px){
    .showroom-info{column-gap:18px;padding-left:12px;padding-right:12px;}
    .showroom-copy h2{font-size:clamp(27px,3vw,34px);}
    .showroom-actions .showroom-button{min-width:112px;padding-left:12px;padding-right:12px;}
}

@media (max-width:767px){
    .showroom-section{
        padding:0 0 48px;
    }

    .showroom-slider{
        width:100vw;
        max-width:none;
        margin-left:calc(50% - 50vw);
        aspect-ratio:16 / 9;
        border-radius:0;
    }

    .showroom-arrow{
        width:36px;
        height:36px;
        font-size:21px;
    }

    .showroom-prev{left:10px;}
    .showroom-next{right:10px;}

    .showroom-dots{
        margin-top:11px;
    }

    .showroom-info{
        display:flex;
        flex-direction:column;
        align-items:stretch;
        gap:20px;
        width:100%;
        min-width:0;
        padding:24px 16px 0;
        box-sizing:border-box;
    }

    .showroom-copy h2{
        font-size:30px;
    }

    .showroom-copy p{
        margin-top:9px;
        font-size:14px;
    }

    .showroom-address{
        font-size:13px;
        line-height:1.4;
    }

    .showroom-actions{
        display:grid;
        grid-template-columns:minmax(0,1fr) minmax(0,1fr);
        align-items:stretch;
        width:100%;
        max-width:100%;
        min-width:0;
        gap:8px;
        padding:0;
        margin:0;
        box-sizing:border-box;
        overflow:visible;
    }

    .showroom-actions .showroom-button{
        display:inline-flex;
        align-items:center;
        justify-content:center;
        gap:7px;
        width:100%;
        min-width:0;
        max-width:100%;
        min-height:46px;
        padding:11px 8px;
        margin:0;
        border-radius:7px;
        box-sizing:border-box;
        overflow:visible;
        white-space:nowrap;
    }
}



/* =========================================================
   SHOWROOM — tinh chỉnh bố cục theo mẫu đã duyệt
   Chỉ tác động trong .showroom-section; giữ nguyên ảnh/HTML/JS.
========================================================= */
@media (min-width: 768px) {
    .showroom-section .showroom-inner {
        display: grid;
        grid-template-columns: minmax(0, 1.12fr) minmax(260px, .88fr);
        align-items: center;
        column-gap: 28px;
        row-gap: 0;
        padding: 0 24px;
        box-sizing: border-box;
    }

    .showroom-section .showroom-slider {
        grid-column: 1;
        grid-row: 1;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        border-radius: 12px;
    }

    .showroom-section .showroom-slide img {
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 16 / 7;
        object-fit: cover;
    }

    .showroom-section .showroom-dots {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        justify-self: center;
        margin: 0;
        padding: 12px;
    }

    .showroom-section .showroom-info {
        grid-column: 1 / -1;
        grid-row: 2;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 28px;
        row-gap: 0;
        width: 100%;
        padding: 24px 0 0;
        box-sizing: border-box;
    }

    .showroom-section .showroom-copy h2 {
        font-size: clamp(28px, 2.6vw, 38px);
        line-height: 1.15;
        overflow-wrap: normal;
    }

    .showroom-section .showroom-copy p {
        max-width: 680px;
    }

    .showroom-section .showroom-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        width: auto;
        min-width: 0;
        max-width: 100%;
    }

    .showroom-section .showroom-actions .showroom-button {
        width: 164px;
        min-width: 0;
        min-height: 48px;
        padding: 12px 16px;
        border-radius: 8px;
        box-sizing: border-box;
    }
}

@media (max-width: 767px) {
    .showroom-section .showroom-inner {
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    .showroom-section .showroom-slider {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw);
        aspect-ratio: 4 / 3;
        border-radius: 0;
    }

    .showroom-section .showroom-slide img {
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .showroom-section .showroom-info {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        width: 100%;
        min-width: 0;
        padding: 24px 16px 0;
        box-sizing: border-box;
    }

    .showroom-section .showroom-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        overflow: visible;
    }

    .showroom-section .showroom-actions .showroom-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-height: 44px;
        margin: 0;
        padding: 10px 6px;
        border-radius: 7px;
        box-sizing: border-box;
        overflow: visible;
        white-space: nowrap;
        font-size: 12px;
    }
}

/* PC SHOWROOM ONLY — controls under dots, paired buttons wider */
@media (min-width: 768px) {
    .showroom-section .showroom-inner {
        display: grid;
        grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr);
        column-gap: 28px;
        row-gap: 0;
        align-items: start;
        padding: 0 24px;
        box-sizing: border-box;
    }

    .showroom-section .showroom-slider {
        grid-column: 1;
        grid-row: 1;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
    }

    .showroom-section .showroom-dots {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        justify-self: center;
        margin: 0;
        padding: 12px;
    }

    /* Promote the existing copy/actions into the same grid without
       changing HTML, image assets, or slider JavaScript. */
    .showroom-section .showroom-info {
        display: contents;
    }

    .showroom-section .showroom-copy {
        grid-column: 1;
        grid-row: 2;
        min-width: 0;
        padding-top: 24px;
    }

    .showroom-section .showroom-copy h2 {
        font-size: clamp(28px, 2.6vw, 38px);
        line-height: 1.15;
    }

    .showroom-section .showroom-actions {
        grid-column: 2;
        grid-row: 2;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-self: start;
        gap: 12px;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 6px 0 0;
        padding: 0;
        box-sizing: border-box;
    }

    .showroom-section .showroom-actions .showroom-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        min-width: 0;
        min-height: 52px;
        padding: 14px 12px;
        border-radius: 8px;
        box-sizing: border-box;
        white-space: nowrap;
    }
}



    
/* FOOTER MOBILE — contact nằm ngay dưới dòng tư vấn, không để khoảng trống */
.footer-contact-mobile { display: none !important; }
@media (max-width: 768px) {
  .site-footer .footer-brand {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }
  .site-footer .footer-brand .footer-consulting {
    width: 100% !important;
    max-width: none !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 0 0 10px !important;
    text-align: justify !important;
    text-align-last: justify !important;
  }
  .site-footer .footer-contact-mobile {
    display: block !important;
    width: 100% !important;
    margin: 0 0 16px !important;
  }
  .site-footer .footer-contact-mobile p {
    width: 100% !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 0 0 6px !important;
    text-align: left !important;
  }
  .site-footer .footer-contact-desktop-only {
    display: none !important;
  }
}

/* FOOTER SHOWROOM — clean, premium, compact */
.site-footer{
    background:#f5f6f8 !important;
    color:#1b1f24 !important;
    border-top:1px solid #e7eaee !important;
}
.site-footer .footer-main{
    background:#f5f6f8 !important;
    padding:30px 24px 24px !important;
}
.site-footer .footer-main .footer-container{
    width:100% !important;
    max-width:1180px !important;
    margin:0 auto !important;
    display:grid !important;
    grid-template-columns:minmax(0,1.55fr) minmax(150px,.8fr) minmax(150px,.8fr) !important;
    gap:34px !important;
    align-items:start !important;
}
.site-footer .footer-brand{
    grid-column:auto !important;
    min-width:0 !important;
}
.site-footer .footer-brand-title{
    margin:0 0 9px !important;
    color:#00529c !important;
    font-size:16px !important;
    line-height:1.35 !important;
    font-weight:600 !important;
}
.site-footer .footer-brand .footer-consulting{
    margin:0 0 10px !important;
    padding:0 !important;
    color:#1b1f24 !important;
    font-size:14px !important;
    line-height:1.55 !important;
    text-align:left !important;
}
.site-footer .footer-contact-mobile{
    display:block !important;
    width:100% !important;
    margin:0 !important;
}
.site-footer .footer-contact-mobile p{
    margin:0 0 5px !important;
    padding:0 !important;
    color:#30353b !important;
    font-size:13px !important;
    line-height:1.5 !important;
    text-align:left !important;
}
.site-footer .footer-column{
    min-width:0 !important;
}
.site-footer .footer-column h3{
    margin:0 0 11px !important;
    color:#00529c !important;
    font-size:14px !important;
    line-height:1.4 !important;
    font-weight:600 !important;
}
.site-footer .footer-column a{
    display:block !important;
    margin:0 0 9px !important;
    color:#30353b !important;
    font-size:13px !important;
    line-height:1.45 !important;
    text-decoration:none !important;
}
.site-footer .footer-column a:last-child{margin-bottom:0 !important;}
.site-footer .footer-bottom{
    background:#eef0f3 !important;
    border-top:1px solid #e2e5e9 !important;
}
.site-footer .footer-bottom .footer-container{
    width:100% !important;
    max-width:1180px !important;
    margin:0 auto !important;
    padding:11px 24px !important;
    box-sizing:border-box !important;
}
.site-footer .footer-bottom p{
    margin:0 0 3px !important;
    color:#6b7077 !important;
    font-size:11px !important;
    line-height:1.45 !important;
}
.site-footer .footer-bottom p:last-child{margin-bottom:0 !important;}
.site-footer img,.site-footer .footer-logo{display:none !important;}
@media (max-width:768px){
    .site-footer .footer-main{padding:22px 16px 18px !important;}
    .site-footer .footer-main .footer-container{
        grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
        gap:22px 28px !important;
    }
    .site-footer .footer-brand{grid-column:1 / -1 !important;}
    .site-footer .footer-brand-title{font-size:15px !important;margin-bottom:7px !important;}
    .site-footer .footer-brand .footer-consulting{font-size:14px !important;line-height:1.5 !important;margin-bottom:9px !important;}
    .site-footer .footer-contact-mobile p{font-size:13px !important;line-height:1.45 !important;margin-bottom:4px !important;}
    .site-footer .footer-column h3{font-size:13px !important;margin-bottom:9px !important;}
    .site-footer .footer-column a{font-size:12.5px !important;line-height:1.45 !important;margin-bottom:8px !important;}
    .site-footer .footer-bottom .footer-container{padding:10px 16px !important;}
}
/* FOOTER FINAL TYPOGRAPHY — tự nhiên, không giãn chữ */
.site-footer .footer-brand .footer-consulting,
.site-footer .footer-contact-mobile p,
.site-footer .footer-column h3,
.site-footer .footer-column a {
    text-align:left !important;
    text-align-last:auto !important;
    letter-spacing:normal !important;
    word-spacing:normal !important;
}
@media (max-width:768px){
    .site-footer .footer-main{
        padding:20px 16px 16px !important;
    }
    .site-footer .footer-main .footer-container{
        gap:20px 28px !important;
    }
    .site-footer .footer-brand-title{
        margin-bottom:6px !important;
    }
    .site-footer .footer-brand .footer-consulting{
        margin-bottom:8px !important;
        line-height:1.45 !important;
    }
    .site-footer .footer-contact-mobile p{
        margin-bottom:4px !important;
        line-height:1.4 !important;
    }
    .site-footer .footer-column h3{
        margin-bottom:8px !important;
    }
    .site-footer .footer-column a{
        margin-bottom:7px !important;
        line-height:1.4 !important;
    }
    .site-footer .footer-bottom .footer-container{
        padding:9px 16px !important;
    }
}

/* FOOTER — contact trước, tư vấn sau; khoảng cách thoáng, chữ tự nhiên */
@media (max-width:768px){
    .site-footer .footer-brand-title{
        font-size:16px !important;
        line-height:1.35 !important;
        margin-bottom:10px !important;
    }
    .site-footer .footer-contact-mobile{
        margin:0 !important;
        padding:0 !important;
    }
    .site-footer .footer-contact-mobile p{
        margin:0 0 8px !important;
        font-size:14px !important;
        line-height:1.5 !important;
        color:#30353b !important;
        text-align:left !important;
        letter-spacing:normal !important;
        word-spacing:normal !important;
    }
    .site-footer .footer-contact-mobile p:last-child{
        margin-bottom:0 !important;
    }
    .site-footer .footer-brand .footer-consulting{
        margin:14px 0 0 !important;
        padding-top:12px !important;
        border-top:1px solid #e1e5ea !important;
        font-size:15px !important;
        line-height:1.5 !important;
        color:#1b1f24 !important;
        text-align:left !important;
        text-align-last:auto !important;
        letter-spacing:normal !important;
        word-spacing:normal !important;
    }
}
