/* Final responsive rules, loaded after every earlier template override. */
#header-carousel .carousel-caption, .production-focused .erp-workflow-card,
#lienhe .consultation-card, #faq .production-faq-row { min-width:0; }
.production-focused .erp-workflow-card h3, .production-focused .erp-workflow-card p,
#faq summary>span, #lienhe .consultation-card h2 { overflow-wrap:break-word; }
#tong-quan .about-cta-btn { height:auto!important; white-space:normal!important; line-height:1.5!important; text-align:center; }
#lienhe .consultation-form .row>div { min-width:0; }
#lienhe input.form-control, #lienhe select.form-control { width:100%!important; min-width:0; max-width:100%; }
.goclick-success-overlay { padding:20px!important; }
.goclick-success-modal { width:min(560px,100%)!important; max-height:calc(100vh - 40px); max-height:calc(100dvh - 40px); overflow-y:auto!important; overscroll-behavior:contain; }
@media(min-width:992px) and (max-width:1199.98px) {
  #bai-toan .col-lg-3, #ket-qua .col-lg-3 { width:50%; }
  #lienhe .consultation-grid { gap:28px!important; }
  #lienhe .consultation-card { padding:24px!important; }
  #lienhe .consultation-card h2 { font-size:25px!important; }
  #phan-quyen .production-permissions-layout, #faq .production-faq-layout { gap:32px; }
}
@media(max-width:991.98px) {
  .navbar { background:rgba(10,34,53,.94)!important; min-height:68px; }
  .navbar .production-mobile-brand { display:flex; align-items:center; margin-left:16px; padding:10px 0; }
  .navbar .production-mobile-brand img { width:145px; height:auto; max-height:38px; object-fit:contain; }
  .navbar .production-main-nav .goclick-menu-logo { display:none!important; }
  .navbar .production-main-nav { max-height:min(520px,65vh)!important; max-height:min(520px,65dvh)!important; padding-top:8px!important; }
  .navbar .production-main-nav .nav-link { min-height:44px; }
  #header-carousel .carousel-caption .title h1 { line-height:1.25!important; }
  #lienhe input.form-control, #lienhe select.form-control { font-size:16px!important; }
}
@media(max-width:767.98px) {
  /* Preserve the whole photograph and allow copy to determine the hero height. */
  #header-carousel .carousel-item { height:auto!important; min-height:0!important; padding-top:68px; }
  #header-carousel .carousel-item>img { position:relative!important; inset:auto!important; width:100%!important; height:auto!important; min-height:0!important; max-height:none!important; object-fit:contain!important; filter:none!important; }
  #header-carousel .carousel-caption { position:relative!important; inset:auto!important; min-height:0!important; height:auto!important; padding:36px 20px 40px!important; overflow:visible!important; }
  #header-carousel .carousel-caption .title h1 { font-size:clamp(28px,5.5vw,38px)!important; line-height:1.25!important; word-break:normal!important; }
  #header-carousel .carousel-caption p { font-size:15px!important; line-height:1.8!important; margin:20px auto 24px!important; }
  #header-carousel .production-hero-actions { width:100%; flex-direction:column; align-items:stretch; gap:12px; }
  #header-carousel .production-hero-actions .btn { width:100%; min-height:48px; }
  #tong-quan .about-cta-row { --bs-gutter-x:12px; --bs-gutter-y:12px; }
  #luong-van-hanh .production-workflow-result article { display:flex!important; }
  #luong-van-hanh .production-workflow-photo { grid-template-columns:1fr!important; }
  #phan-quyen .production-role-grid { grid-template-columns:1fr; }
  #faq .production-faq-row summary { min-height:64px; }
}
@media(max-width:575.98px) {
  #header-carousel .carousel-caption { padding:30px 16px 34px!important; }
  #header-carousel .carousel-caption .title h5 { font-size:11px!important; letter-spacing:.10em!important; }
  #header-carousel .carousel-caption .title h1 { font-size:clamp(27px,7vw,34px)!important; }
  #tong-quan .about-cta-row>.col-6 { width:100%; }
  #lienhe .consultation-form>.row { --bs-gutter-x:16px; --bs-gutter-y:18px; }
  #lienhe .consultation-form .col-md-6 { flex:0 0 auto; width:100%; }
  #lienhe .consultation-card { padding:24px 18px!important; }
  #chi-tiet-san-xuat .production-case-demo .btn { white-space:normal; text-align:center; }
  .goclick-success-overlay { padding:12px!important; }
  .goclick-success-modal { max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px); }
  .footer p { overflow-wrap:anywhere; }
}
@media(max-width:359.98px) {
  #lienhe .consultation-card { padding:22px 16px!important; }
  #lienhe .consultation-card h2 { font-size:22px!important; }
  #chi-tiet-san-xuat .production-case-order, #chi-tiet-san-xuat .production-case-process { padding:20px 16px; }
  #phan-quyen .production-access-panel { padding:20px 16px; }
}
