/* ==========================================================
   VSTEP ONE — phần bổ sung cho WordPress
   (ảnh thật thay ô gợi ý, form, menu điện thoại, nội dung bài viết, thanh quản trị)
   ========================================================== */

body{margin:0;background:#FFFFFF}
a{color:#2F6E23}
a:hover{color:#0D5B27}
[hidden]{display:none !important}

.vs a:focus-visible,.vs button:focus-visible,.vs input:focus-visible,.vs select:focus-visible{outline:3px solid #9BCB3C;outline-offset:2px}
.skip{position:absolute;left:-9999px;top:8px;z-index:100;padding:10px 16px;border-radius:10px;background:#0D5B27;color:#FFFFFF !important;font-weight:700}
.skip:focus{left:12px}

/* Thanh quản trị WordPress khi đã đăng nhập */
.admin-bar .hdr{top:32px}
.admin-bar .progress{top:108px}
@media (max-width:782px){.admin-bar .hdr{top:46px}.admin-bar .progress{top:122px}}
@media (max-width:600px){.admin-bar .hdr{top:0}}

/* Logo ảnh */
.ftr .logo-img img{max-height:52px}

/* Menu điện thoại */
.mob a.mob-h{display:block;padding:0;margin:6px 0;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#4A5B45}
.mob a[aria-current]{color:#2F6E23}
@media (min-width:1101px){.hdr:not(.compact) .mob{display:none !important}}

/* Mạng xã hội ở chân trang */
.ftr-social{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.ftr .ftr-social a{display:inline-flex;padding:6px 12px;border-radius:999px;border:1.5px solid #BFD69A;background:#FFFFFF;font-size:13px;font-weight:700;color:#0D5B27}

/* Form */
.hp{position:absolute !important;left:-9999px !important;width:1px;height:1px;overflow:hidden}
.form-msg{margin:0 0 14px;padding:12px 14px;border-radius:12px;font-size:14px;font-weight:600}
.form-msg.ok{background:#EAF6DE;color:#1F5A16;border:1px solid #BFDDA0}
.form-msg.bad{background:#FDECEC;color:#8A1F1F;border:1px solid #F3C2C2}
.lt-cta .form-msg{margin:12px 0 0}
select.inp{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230D5B27' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;padding-right:42px}
.cta-pt a{color:inherit}

/* Ảnh thật thay cho ô gợi ý */
.tm-photo.has-img{overflow:hidden}
.tm-photo.has-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tm-photo .tm-cert{z-index:1}
.shot-img:has(img){padding:0}
.shot-img a{display:block;width:100%;height:100%}
.shot-img img{display:block}
.post-img.has-img,.feat-img.has-img{position:relative;overflow:hidden}
.post-img.has-img img,.feat-img.has-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.post-img.has-img::after,.feat-img.has-img::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(10,74,32,.75))}
.post-img span,.feat-img span{position:relative;z-index:1}
.acover-in.has-img{padding:0;overflow:hidden;background:none;height:auto;max-height:520px}
.acover-in.has-img img{display:block;width:100%;height:100%;max-height:520px;object-fit:cover}
.sv-a.has-img{overflow:hidden;padding:0}
.sv-a.has-img img{width:100%;height:100%;object-fit:cover}
.q-ava.has-img{overflow:hidden;padding:0}
.q-ava.has-img img{width:100%;height:100%;object-fit:cover}

/* Trang chủ: khi chưa có khoá "lựa chọn riêng" */
.courses.no-stack{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:680px){.courses.no-stack{grid-template-columns:1fr}}

.center-link{text-align:center;margin-top:34px}
.jump-light{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}

/* Milestone: số cột theo số cột mốc */
@media (min-width:1101px){.ml-track{grid-template-columns:repeat(var(--n,5),minmax(0,1fr))}.ml-line{left:calc(50% / var(--n,5));right:calc(50% / var(--n,5))}}

/* Lịch thi */
.ss-nolink{font-size:12px;font-weight:700;color:#7A8A74}
.dir .dir-a{display:flex;align-items:center;gap:10px;padding:10px;border-radius:12px;color:#1C3324}
.lt-head .btn{white-space:nowrap}

/* Nội dung bài viết từ trình soạn thảo */
.prose img{max-width:100%;height:auto;border-radius:18px}
.prose figure{margin:28px 0}
.prose figcaption{font-size:14px;color:#4A5B45;text-align:center;margin-top:8px}
.prose a{text-decoration:underline;text-underline-offset:3px}
.prose ol{margin:0 0 20px;padding-left:22px}
.prose .wp-block-table{margin:10px 0 24px;overflow-x:auto}
.prose .wp-block-table table,.prose table{width:100%;border-collapse:separate;border-spacing:0;border-radius:16px;overflow:hidden;border:1px solid #DCE8C8;font-size:16px}
.prose .wp-block-table th,.prose table th{background:#0D5B27;color:#FFFFFF;text-align:left;padding:12px 16px}
.prose .wp-block-table td,.prose table td{padding:12px 16px;border-top:1px solid #E7EEDC}
.prose table tr:nth-child(even) td{background:#F6FAEF}
.prose .wp-block-group.tip{display:block;position:relative;padding:22px 22px 22px 80px}
.prose .wp-block-group.tip::before{content:"";position:absolute;left:22px;top:22px;width:44px;height:44px;border-radius:12px;background:linear-gradient(180deg,#5AA344,#2F6E23) center/100% no-repeat;-webkit-mask:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.45)}
.prose .wp-block-group.tip::after{content:"";position:absolute;left:32px;top:32px;width:24px;height:24px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 22h4M12 2a7 7 0 0 0-4 12.7V17h8v-2.3A7 7 0 0 0 12 2z'/%3E%3C/svg%3E") center/contain no-repeat}
.prose .wp-block-group.tip p{margin:0 0 6px;font-size:16px}
.prose .wp-block-group.tip .tip-t{color:#0D5B27}
.prose .wp-block-quote{margin:28px 0}
.prose .wp-block-quote p{margin:0}
.post-tags{display:flex;flex-wrap:wrap;gap:8px;font-size:14px}
.post-tags a{text-decoration:none;padding:4px 10px;border-radius:999px;background:#F1F7E6;color:#2F6E23;font-weight:600}
.page-prose{max-width:820px;margin:0 auto}
.alayout.no-cover{padding-top:72px}
.alignwide{margin-left:-60px;margin-right:-60px;max-width:none}
.share button{cursor:pointer}
.syl-side .meta{display:grid;gap:8px;font-size:14px;color:rgba(255,255,255,.88);padding:0;margin:14px 0 0;list-style:none}
.syl-side .meta li{display:flex;gap:10px;align-items:center}
.syl-side .meta svg{flex:none;color:#C6E05A}

/* Điện thoại: tránh tràn ngang */
.phero-split>*,.f3>div,.ss-b,.xc-b{min-width:0}
.f3>div{flex:1}
.mob .mob-btns .btn{display:inline-flex;align-items:center;justify-content:center;padding:0 18px}
@media (max-width:680px){
.bento{grid-template-columns:1fr}
.bento .tile,.bento .tile-big{grid-column:auto !important;grid-row:auto}
.lt-kpis{justify-items:stretch}
}
@media (min-width:681px){.stats-in[style*="--cols"]{grid-template-columns:repeat(var(--cols),minmax(0,1fr))}}

/* ---------- Đầu trang: một hàng, không xuống dòng, tự thu gọn khi không đủ chỗ ---------- */
.hdr-in{gap:20px}
.hdr .logo{flex:none}
.hdr .logo-img img{display:block;height:40px;width:auto;max-width:210px;object-fit:contain;object-position:left center}
.nav{flex:1 1 auto;min-width:0;justify-content:flex-end;flex-wrap:nowrap}
.nav-a{white-space:nowrap}
.hdr-cta{flex:none}
.hdr-cta .btn,.hdr-mcta{white-space:nowrap}
.hdr-mcta{display:none}
/* Menu dài / logo rộng: JS gắn lớp .compact → chuyển sang nút menu như trên điện thoại */
.hdr.compact .nav,.hdr.compact .hdr-cta{display:none}
.hdr.compact .burger{display:flex}

/* ---------- Đầu trang trên điện thoại & máy tính bảng ---------- */
@media (max-width:1100px){
.hdr-in{height:64px;gap:10px}
.hdr .logo{font-size:20px}
.hdr .logo-img img{height:32px;max-width:160px}
.hdr-mcta{display:inline-flex;margin-left:auto;min-height:40px;padding:0 14px;font-size:13px}
.hdr-mcta+.burger{margin-left:0}
.burger{width:42px;height:42px;flex:none}
.admin-bar .progress{top:110px}
.progress{top:64px}
}
.hdr.compact .hdr-mcta{display:inline-flex;margin-left:auto;min-height:40px;padding:0 14px;font-size:13px}
.hdr.compact .hdr-mcta+.burger{margin-left:0}
@media (max-width:359px){.hdr-mcta,.hdr.compact .hdr-mcta{display:none}.hdr-mcta+.burger{margin-left:auto}}
.mob{max-height:calc(100vh - 64px);max-height:calc(100dvh - 64px);overflow-y:auto;overscroll-behavior:contain;padding-bottom:28px}
.admin-bar .mob{max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px)}
.mob a{padding:11px 0;font-size:16px}
.mob .mob-g:last-of-type{border-bottom:0}
.mob-btns{position:sticky;bottom:-28px;padding:14px 0 6px;background:#FFFFFF}
.mob-btns .btn{min-height:48px}
html.vs-lock,html.vs-lock body{overflow:hidden}
/* Trang chủ trên điện thoại: các thẻ minh hoạ ở hero chồng lên nhau ít hơn */
@media (max-width:680px){
.hero-vis{height:560px;margin-top:10px}
.card-ai{top:318px;width:205px;padding:14px}
.card-dict{bottom:0}
.hero-act .btn{flex:1 1 auto;justify-content:center}
}
