/* In Ấn Q7 – Footer V1.0.0 */
.inq7-footer{
  --p:#23356e;--a:#faa21b;
  background:var(--p);color:rgba(255,255,255,.82);
  font-family:"Roboto",-apple-system,Segoe UI,Arial,sans-serif;
  font-size:14px;line-height:1.65;margin-top:0;
}
.inq7-footer *{box-sizing:border-box}
.inq7-footer a{color:rgba(255,255,255,.82);text-decoration:none;transition:.15s}
.inq7-footer a:hover{color:var(--a)}
.inq7-footer svg{width:18px;height:18px;flex:none}
.inq7-ft-wrap{width:min(1540px,calc(100% - 32px));margin:auto}

.inq7-ft-main{
  display:grid;grid-template-columns:1.6fr 1fr 1.1fr 1fr 0.9fr;
  gap:36px;padding:52px 0 44px;
}
.inq7-ft-col h3{
  margin:0 0 18px;color:#fff;font-size:15px;font-weight:800;
  text-transform:uppercase;letter-spacing:.04em;position:relative;padding-bottom:10px;
}
.inq7-ft-col h3::after{content:"";position:absolute;left:0;bottom:0;width:34px;height:3px;background:var(--a);border-radius:2px}

/* --- cột thương hiệu --- */
.inq7-ft-logo{height:56px;width:auto;margin-bottom:16px}
.inq7-ft-logo-text{margin:0 0 14px;color:#fff;font-size:19px;font-weight:800}
.inq7-ft-tagline{margin:0 0 20px;font-size:13.5px;color:rgba(255,255,255,.68);max-width:46ch}
.inq7-ft-contact{list-style:none;margin:0 0 20px;padding:0;display:grid;gap:11px}
.inq7-ft-contact li{display:flex;gap:11px;align-items:flex-start;font-size:13.5px}
.inq7-ft-contact svg{color:var(--a);margin-top:3px}
.inq7-ft-contact a{font-weight:700;color:#fff}
.inq7-ft-social{display:flex;gap:10px}
.inq7-ft-social a{
  width:36px;height:36px;border-radius:50%;display:grid;place-items:center;
  background:rgba(255,255,255,.1);color:#fff;
}
.inq7-ft-social a:hover{background:var(--a);color:var(--p)}

/* --- danh sách liên kết --- */
.inq7-ft-links{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.inq7-ft-links a{font-size:13.5px;display:inline-block}
.inq7-ft-links a:hover{transform:translateX(3px)}

/* --- cột QR --- */
.inq7-ft-qr-grid{display:flex;gap:14px;flex-wrap:wrap}
.inq7-ft-qr-grid figure{margin:0;text-align:center;width:96px}
.inq7-ft-qr-grid img{width:96px;height:96px;object-fit:contain;background:#fff;border-radius:10px;padding:6px;display:block}
.inq7-ft-qr-grid figcaption{margin-top:7px;font-size:11.5px;color:rgba(255,255,255,.62);line-height:1.35}
.inq7-ft-qr-fallback{
  display:inline-flex;align-items:center;padding:10px 16px;border-radius:999px;
  border:1px solid rgba(255,255,255,.35);font-size:13px;font-weight:700;color:#fff;
}
.inq7-ft-qr-fallback:hover{background:var(--a);border-color:var(--a);color:var(--p)}
.inq7-ft-bct{
  display:inline-block;margin-top:16px;padding:9px 14px;border-radius:8px;
  background:rgba(255,255,255,.08);font-size:12.5px;font-weight:700;color:#fff;
}
.inq7-ft-bct:hover{background:var(--a);color:var(--p)}

/* --- thanh cuối --- */
.inq7-ft-bottom{background:color-mix(in srgb,var(--p) 80%,#000);padding:18px 0}
.inq7-ft-bottom-inner{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 28px;align-items:center}
.inq7-ft-bottom p{margin:0;font-size:12.5px;color:rgba(255,255,255,.7)}
.inq7-ft-bottom strong{color:#fff;font-weight:700}
.inq7-ft-note{max-width:70ch;color:rgba(255,255,255,.5)!important}

/* --- responsive --- */
@media(max-width:1200px){
  .inq7-ft-main{grid-template-columns:1.4fr 1fr 1fr;gap:32px}
  .inq7-ft-qr{grid-column:span 3}
  .inq7-ft-qr-grid{gap:18px}
}
@media(max-width:820px){
  .inq7-ft-main{grid-template-columns:1fr 1fr;gap:28px;padding:40px 0 32px}
  .inq7-ft-brand{grid-column:span 2}
  .inq7-ft-qr{grid-column:span 2}
}
@media(max-width:560px){
  .inq7-ft-main{grid-template-columns:1fr;gap:26px}
  .inq7-ft-brand,.inq7-ft-qr{grid-column:span 1}
  .inq7-ft-col h3{margin-bottom:14px}
  .inq7-ft-bottom-inner{flex-direction:column;align-items:flex-start}
}

/* ============ V1.0.1 – logo footer lớn hơn, sát mép trái ============ */
.inq7-ft-logo{
  height:88px!important;width:auto!important;max-width:100%!important;
  display:block!important;margin:0 0 18px -6px!important;object-fit:contain;object-position:left center;
}
.inq7-ft-logo-text{margin-left:0!important}
.inq7-ft-brand{padding-left:0!important}

@media(max-width:820px){
  .inq7-ft-logo{height:74px!important}
}
@media(max-width:560px){
  .inq7-ft-logo{height:64px!important}
}

/* ============ V1.0.2 – xoá khoảng trắng giữa nội dung và footer ============ */
body.inq7-hide-theme-footer .footer-wrapper,
body.inq7-hide-theme-footer #footer,
body.inq7-hide-theme-footer .footer-widgets,
body.inq7-hide-theme-footer .absolute-footer,
body.inq7-hide-theme-footer .footer-secondary{display:none!important}

body.inq7-hide-theme-footer #main,
body.inq7-hide-theme-footer #content,
body.inq7-hide-theme-footer .page-wrapper,
body.inq7-hide-theme-footer #wrapper > .page-wrapper,
body.inq7-hide-theme-footer .page-inner,
body.inq7-hide-theme-footer .entry-content{
  padding-bottom:0!important;margin-bottom:0!important;
}
body.inq7-hide-theme-footer #wrapper{padding-bottom:0!important;margin-bottom:0!important}

/* đoạn văn rỗng do trình soạn thảo sinh ra ở cuối nội dung */
body.inq7-hide-theme-footer .entry-content > p:last-child:empty,
body.inq7-hide-theme-footer .entry-content > p:empty{display:none!important}

/* footer luôn dính sát nội dung phía trên */
.inq7-footer{margin-top:0!important;border-top:0!important}

/* ============ V1.0.3 – chặn nền trắng lộ ra sát footer ============ */
body.inq7-hide-theme-footer{background:var(--inq7-footer-bg,#23356e)}
body.inq7-hide-theme-footer #wrapper,
body.inq7-hide-theme-footer #main,
body.inq7-hide-theme-footer #content{padding-bottom:0!important;margin-bottom:0!important}
body.inq7-hide-theme-footer #wrapper > *:last-child{margin-bottom:0!important}

/* ============ V1.0.4 – ẩn footer theme không phụ thuộc class trên body ============ */
footer#footer.footer-wrapper,
footer#footer,
.footer-wrapper:not(.inq7-footer),
.absolute-footer,
.footer-widgets{display:none!important}
.inq7-footer{display:block!important}
