/* WordPress bridge for Agentrao V8. Adds no extra sections or changes to Page Builder layout. */
:root{--agentra-navy:#002254;--agentra-blue:#7cc3f7;--agentra-light:#f4f8fc;--agentra-border:#cfe4f6}
html{overflow-x:clip}body.agentra-site{min-height:100vh;overflow-x:clip}
.agentra-skip-link{position:absolute;top:-100px;left:15px;z-index:10000;background:#fff;color:#002254;padding:12px 15px;border:2px solid #002254;border-radius:8px}
.agentra-skip-link:focus{top:12px}
.agentra-logo-image{width:auto;height:auto;max-width:176px;max-height:48px;object-fit:contain}
.footer .brand{display:inline-flex}
.agentra-page-main{min-height:40vh}
.agentra-wp-heading{background:#f4f8fc;border-bottom:1px solid #cfe4f6;text-align:center;padding:74px 0 65px}
.agentra-wp-heading h1{font-size:clamp(35px,5vw,64px);line-height:1.1;font-weight:500;margin:0}
.agentra-wp-content{padding:64px 0 110px;min-height:45vh;line-height:1.75;color:var(--ink)}
.agentra-wp-content img{max-width:100%;height:auto;border-radius:14px}
.agentra-wp-content p,.agentra-entry-content p{line-height:1.7}
.agentra-wp-content a,.agentra-entry-content a{text-decoration:underline;text-underline-offset:3px}
.agentra-wp-content h2,.agentra-entry-content h2{margin-top:32px}
.agentra-wp-content :is(h1,h2,h3,h4,h5,h6){line-height:1.2}
.agentra-home-demo{min-height:70vh}
.agentra-home-demo .hero .agentra-visual-title{font-size:clamp(48px,5.8vw,82px);line-height:1.02;letter-spacing:-.043em;font-weight:500;margin:35px auto 20px;max-width:1000px}
/* Preserve original HTML H1 dimensions on V8 visual headings converted to H2 under WordPress's single-H1 policy. */
.agentra-seeded-page .inner-hero .agentra-visual-title{font-size:clamp(56px,7.1vw,100px);font-weight:500;line-height:1.01;letter-spacing:-.049em;max-width:1000px;margin:29px auto 28px}
.agentra-seeded-page .agentra-visual-title em:after,.agentra-home-demo .agentra-visual-title em:after{content:"";height:.075em;background:#7cc3f7;position:absolute;bottom:.06em;left:0;width:100%;z-index:0;border-radius:20px}
.agentra-seed-body{width:100%;max-width:none}
.agentra-blog-content{padding:95px 0 130px;min-height:54vh}
.agentra-archive-title{margin-bottom:48px;text-align:center}
.agentra-archive-title h1{font-size:clamp(38px,5vw,65px);line-height:1.1;letter-spacing:-.045em;margin-bottom:15px}
.agentra-archive-title p{color:#5a6a82}
.agentra-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.agentra-post-card{background:#fff;border:1px solid #cfe4f6;border-radius:16px;overflow:hidden;min-width:0;display:flex;flex-direction:column;box-shadow:0 5px 16px rgba(0,34,84,.04)}
.agentra-post-image{display:flex;height:235px;background:#d7effe;align-items:center;justify-content:center;overflow:hidden}
.agentra-post-image img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.agentra-post-image:hover img{transform:scale(1.03)}
.agentra-post-placeholder{font-size:84px;color:#7cc3f7}
.agentra-post-body{padding:25px;display:flex;flex-direction:column;flex:1}
.agentra-post-body small,.agentra-post-date{color:#5a6a82;font-size:13px}
.agentra-post-body h2{font-size:23px;line-height:1.25;margin:16px 0 13px}
.agentra-post-body p{color:#5a6a82;line-height:1.6;font-size:14px;flex:1;margin-bottom:20px}
.agentra-post-body .inline-arrow{align-self:start;font-weight:600}
.agentra-single-layout{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:65px;padding:90px 0 120px;align-items:start}
.agentra-single-layout:not(:has(.agentra-blog-sidebar)){grid-template-columns:minmax(0,850px);justify-content:center}
.agentra-single-title{text-align:center;margin-bottom:40px}
.agentra-single-title h1{font-size:clamp(38px,5vw,66px);line-height:1.1;letter-spacing:-.04em;margin:15px 0}
.agentra-post-cat{font-size:14px;color:#003b8a}
.agentra-single-cover{margin:0 0 37px}
.agentra-single-cover img{width:100%;height:auto;border-radius:18px}
.agentra-entry-content{font-size:17px;line-height:1.75}
.agentra-entry-content img{max-width:100%;height:auto}
.agentra-blog-sidebar{padding:24px;border:1px solid #cfe4f6;border-radius:16px;background:#fff}
.agentra-widget+.agentra-widget{border-top:1px solid #cfe4f6;margin-top:25px;padding-top:25px}
.agentra-widget-title{font-size:19px}
.agentra-post-nextprev{display:flex;gap:20px;justify-content:space-between;border-top:1px solid #cfe4f6;padding-top:22px;margin-top:35px}
.agentra-404{text-align:center;min-height:60vh;padding:110px 0 140px}
.agentra-404-number{font-size:clamp(110px,18vw,230px);line-height:.95;color:#7cc3f7;font-weight:600}
.agentra-404 h1{font-size:clamp(36px,5vw,65px);margin:20px 0}
.agentra-404 p{color:#5a6a82;margin-bottom:30px}
.agentra-wp-search{display:flex;gap:8px;max-width:550px;margin:30px auto}
.agentra-wp-search input{flex:1;min-width:0;border:1px solid #cfe4f6;background:#fff;border-radius:9px;padding:15px 16px}
.agentra-wp-search button{border:0;border-radius:9px;background:#7cc3f7;color:#002254;font-weight:600;padding:13px 20px}
.navigation.pagination{margin-top:50px}
.nav-links{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.nav-links .page-numbers{padding:8px 14px;background:#fff;border:1px solid #cfe4f6;border-radius:7px}
.nav-links .current{color:#fff;background:#002254}
.agentra-comments{border-top:1px solid #cfe4f6;padding-top:35px;margin-top:60px}
.agentra-comments input,.agentra-comments textarea{max-width:100%;padding:12px;border:1px solid #cfe4f6;border-radius:8px}
.agentra-comments .form-submit input{background:#002254;color:#fff}
/* Menu walker uses exact source submenu DOM, buttons are siblings of anchors, independent parent links. */
.desktop-links .menu--desktop .menu-item{display:list-item}
.desktop-links .menu--desktop>.menu-item{display:flex}
.desktop-links .menu--desktop .sub-menu{z-index:150}
.menu--desktop .sub-menu .menu-item-has-children>.menu-link-row{display:flex;align-items:center}
.menu--desktop .sub-menu .sub-menu{left:calc(100% - 2px)}
.menu--desktop .sub-menu .menu-item:last-child{margin-bottom:0}
/* Avoid duplicate Adminbar issues; sticky header retains normal hierarchy. */
.admin-bar .site-header{top:32px}
@media(max-width:782px){.admin-bar .site-header{top:46px}}
/* Zalo should never overlap mobile bottom navigation. */
@media(max-width:860px){.floating-zalo{bottom:calc(82px + env(safe-area-inset-bottom))!important}.agentra-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.agentra-single-layout{grid-template-columns:1fr;gap:28px}}
@media(max-width:640px){.agentra-wp-heading{padding:60px 0 50px}.agentra-blog-content{padding:70px 0}.agentra-post-grid{grid-template-columns:1fr}.agentra-post-image{height:220px}.agentra-single-layout{padding:60px 0 90px}.agentra-home-demo .hero .agentra-visual-title{font-size:clamp(43px,11vw,68px);line-height:1.06;letter-spacing:-.045em;margin:27px 0 22px}.agentra-seeded-page .inner-hero .agentra-visual-title{font-size:clamp(40px,10vw,62px)}}

.footer .brand{font-size:34px}.footer-links .agentra-footer-nav{padding:0;margin:0;list-style:none}.footer-links .agentra-footer-nav li{margin:0;padding:0;list-style:none}


/* V1.0.3 – Không tạo dải trắng phụ giữa Header, các Section và Footer.
   Chỉ reset lớp bao WordPress; khoảng đệm nằm BÊN TRONG Section do mẫu gốc quản lý. */
body.agentra-site .agentra-page-main--flush,
body.agentra-site .agentra-page-main--flush > article,
body.agentra-site .agentra-page-main--flush .agentra-builder-body,
body.agentra-site .agentra-page-main--flush .agentra-seed-body {
    margin:0!important;
    padding:0!important;
    border:0;
    min-height:0!important;
    max-width:none;
    width:100%;
}
body.agentra-site .agentra-page-main--flush > article,
body.agentra-site .agentra-page-main--flush .agentra-builder-body,
body.agentra-site .agentra-page-main--flush .agentra-seed-body {display:flow-root;}
body.agentra-site .agentra-builder-body > .red-builder-output,
body.agentra-site .agentra-seed-body > :is(section,.section) {
    margin-top:0!important;
    margin-bottom:0!important;
}
body.agentra-site .agentra-builder-body .rvb-frontend-canvas {
    padding-top:0!important;
    padding-bottom:0!important;
    min-height:0!important;
}
body.agentra-site .agentra-builder-body .rvb-frontend-canvas > :is(section,.red-section,.section),
body.agentra-site .agentra-seed-body > :is(section,.red-section,.section) {
    margin-block:0!important;
}
/* Tránh khoảng trắng từ phần tử rỗng, nhưng không chạm padding của section. */
body.agentra-site .agentra-page-main--flush :is(.agentra-builder-body,.agentra-seed-body) > p:empty {display:none;}
