/* ==========================================================
   wp-adapter.css — phần bổ sung khi chạy trên WordPress
   (slide, menu điện thoại, logo chạy, form, phân trang, nội dung soạn thảo)
   ========================================================== */

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); }
:focus-visible { outline: 2px solid var(--color-navy); outline-offset: 2px; }
.ico { flex: none; }
a.btn, a.chip { text-decoration: none; }

/* Topbar link */
.topbar a { color: inherit; font-weight: 700; }
.topbar a:hover { text-decoration: underline; }

/* Header */
.brand img { height: 52px; width: auto; }
.pill-phone { display: inline-flex; align-items: center; gap: 8px; }
.nav .menu { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.nav .menu > li { position: relative; }
.nav .menu a { display: block; padding: 2px 0; }
.nav .current-menu-item > a, .nav .current_page_item > a, .nav .current-menu-ancestor > a { color: var(--color-brand); font-weight: 700; }
.nav .sub-menu { display: none; position: absolute; left: -14px; top: 100%; z-index: 40; min-width: 230px; background: #fff; border: 1px solid var(--color-border); border-radius: 10px; box-shadow: var(--shadow); padding: 8px 0; }
.nav .sub-menu a { padding: 8px 16px; font-weight: 500; }
.nav .menu > li:hover > .sub-menu, .nav .menu > li:focus-within > .sub-menu { display: block; }
.nav-toggle { display: none; background: none; border: 0; color: var(--color-navy); padding: 6px; cursor: pointer; border-radius: 8px; }
.nav-toggle__close { display: none; }
body.nav-open .nav-toggle__open { display: none; }
body.nav-open .nav-toggle__close { display: inline; }

/* Hero slider: chữ và ảnh xếp chồng, đổi bằng opacity */
.hero__stack { display: grid; }
.hero__stack > .hero-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; margin: 0; }
.hero__stack > .hero-slide.is-active { opacity: 1; visibility: visible; }
.hero__title { font-size: 46px; font-weight: 800; color: var(--color-brand); line-height: 1.18; letter-spacing: -0.02em; margin: 0; }
.hero__media .hero-slide { position: relative; }
.hero__media img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius); }
.hero__media .hero-slide.is-active img { animation: nlv-kb 7s ease-out both; }
@keyframes nlv-kb { from { transform: scale(1.04); } to { transform: scale(1); } }
.hero__tag { position: absolute; left: -18px; bottom: 28px; background: #fff; color: var(--color-navy); font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); border-left: 4px solid var(--color-cta); }
.hero__trust .ico { color: var(--color-brand); border: 1.5px solid var(--color-border); border-radius: 50%; background: #fff; }
.hero__dots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.hero__dot { border: 1.5px solid var(--color-border); background: #fff; color: var(--color-muted); font: 600 12px/1 var(--font); padding: 8px 12px; border-radius: 999px; cursor: pointer; text-transform: uppercase; letter-spacing: .03em; }
.hero__dot.is-active { background: var(--color-brand); border-color: var(--color-brand); color: var(--color-navy); }

/* Thẻ đối tượng */
.entry__pair { display: block; }
.entry__title { font-size: 22px; margin: 16px 0 12px; }
.entry__title a:hover { text-decoration: underline; }
.check-list--sm { gap: 8px; font-size: 15px; }
.check-list { list-style: none; padding: 0; }

/* Số liệu */
.stat__suffix { color: inherit; }

/* Dịch vụ trang chủ */
.svc__media { display: block; }
.svc h3 a:hover { color: var(--color-navy); }
.svc__desc { font-size: 14px; color: var(--color-muted); line-height: 1.5; }
.svc .card__body { flex: 1; }
.services .card { display: flex; flex-direction: column; }
.services .card .btn { margin-top: auto; }

/* Logo đối tác chạy + phóng to kiểu bong bóng */
.logo-marquee { overflow: hidden; margin: 28px 0 26px; padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-marquee__track { display: flex; gap: 22px; width: max-content; animation: nlv-marquee var(--marquee-dur, 45s) linear infinite; }
.logo-marquee:hover .logo-marquee__track, .logo-marquee.is-paused .logo-marquee__track { animation-play-state: paused; }
@keyframes nlv-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-bubble { width: 170px; height: 90px; flex: none; background: #fff; border: 1px solid var(--color-border); border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 14px 22px; transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s; }
.logo-bubble img { max-height: 60px; width: auto; object-fit: contain; filter: grayscale(.2); transition: filter .3s; }
.logo-bubble span { font-weight: 700; color: var(--color-navy); font-size: 14px; text-align: center; }
.logo-bubble:hover, .logo-bubble:focus-visible { transform: scale(1.22); box-shadow: 0 12px 28px rgba(6,183,244,.28); border-color: var(--color-brand); z-index: 2; }
.logo-bubble:hover img { filter: none; }

/* Chip quốc gia + danh sách trường */
.partner-toggle__hint { text-align: center; color: var(--color-muted); font-size: 14px; margin-bottom: 12px; }
.partner-toggle .uni-grid { padding-top: 4px; }
.partner-toggle .school-grid.is-active { display: grid; }

/* Giới thiệu */
.about__media { display: block; overflow: hidden; border-radius: var(--radius); }
.about__media img { transition: transform .5s; }
.about__media:hover img { transform: scale(1.03); }
.about__lead { margin-bottom: 24px; }
.about__btn { margin-top: 26px; }

/* Thẻ tin */
.card.post { display: flex; flex-direction: column; }
.card.post .card__body { flex: 1; }
.post__meta { margin-top: auto; }
.svc-card__title { font-size: 20px; }
.svc-card { display: flex; flex-direction: column; }
.svc-card__body { flex: 1; }
.svc-card__body .btn { margin-top: auto; }

/* Phân trang của WP */
.pagination-wrap .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.pagination-wrap .page-numbers { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--color-border); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; color: var(--color-navy); background: #fff; }
.pagination-wrap .page-numbers.current { background: var(--color-blue); border-color: var(--color-blue); }
.pagination-wrap .page-numbers:hover { border-color: var(--color-blue); }
.empty { padding: 24px; background: var(--color-bg-soft); border-radius: var(--radius); }
.empty a { color: var(--color-brand); text-decoration: underline; }

/* Form */
.form-status { margin-top: 12px; font-size: 14px; min-height: 1px; }
.form-status.is-success { color: #0f7a35; background: #e7f8ee; padding: 10px 12px; border-radius: 10px; }
.form-status.is-error { color: #b42318; background: #fdecea; padding: 10px 12px; border-radius: 10px; }
.field [aria-invalid] { border-color: #d92d20; }
.form-intro { margin: 8px 0 28px; }
.nlv-form button[disabled] { opacity: .7; cursor: wait; }
.widget.nlv-form .field { margin-bottom: 0; }
.widget.nlv-form input { font: 15px var(--font); padding: 10px 12px; border: 1.5px solid var(--color-border); border-radius: 10px; width: 100%; }

/* Trang liên hệ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; gap: 14px; margin-top: 24px; }
.contact-cards li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 16px; }
.contact-cards small { display: block; color: var(--color-muted); font-size: 13px; }
.contact-cards a { color: var(--color-navy); font-weight: 700; }
.cc-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--color-blue); color: var(--color-navy); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.contact-forms { display: grid; gap: 24px; }

/* Footer */
.footer .footer-menu a, .footer > .container a { display: block; }
.contact-list { display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.contact-list .ico { color: var(--color-brand); margin-top: 2px; }
.footer .contact-list a { display: inline; margin: 0; }
.socials { display: flex; gap: 12px; margin-top: 12px; }
.footer .socials a { display: inline-block; font-weight: 600; color: var(--color-brand); }

/* Nội dung soạn thảo */
.narrow { max-width: 860px; margin-left: auto; margin-right: auto; }
.post-content img { height: auto; border-radius: 10px; }
.post-content figure { margin: 24px 0; }
.post-content figcaption, .wp-caption-text { font-size: 14px; color: var(--color-muted); text-align: center; margin-top: 8px; }
.alignleft { float: left; margin: 6px 22px 12px 0; }
.alignright { float: right; margin: 6px 0 12px 22px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.post-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 10px; }
.post-content pre { background: #0A2E4A; color: #fff; padding: 14px; border-radius: 10px; overflow-x: auto; font-size: 14px; }
.post-content .wp-block-button__link { background: var(--color-cta); color: var(--color-navy); border-radius: 999px; padding: 12px 22px; text-decoration: none; font-weight: 600; }
.svc-content { margin-top: 36px; max-width: 860px; }
.post-cover { margin-bottom: 8px; }
.tag--static { color: var(--color-navy); }

/* Bình luận (nếu bật) */
.comments-area { margin-top: 32px; }
.comment-form input:not([type=submit]), .comment-form textarea { width: 100%; font: 15px var(--font); padding: 10px 12px; border: 1.5px solid var(--color-border); border-radius: 10px; }
.comment-form .submit { background: var(--color-cta); color: var(--color-navy); border: 0; border-radius: 999px; padding: 12px 22px; font: 600 15px var(--font); cursor: pointer; }

/* Responsive bổ sung */
@media (max-width: 1100px) {
  .nav .menu { gap: 6px 18px; }
}
@media (max-width: 1024px) {
  .hero__title { font-size: 38px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .header__row { padding-top: 10px; padding-bottom: 10px; }
  .brand img { height: 42px; }
  .pill-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; }
  body.nav-open .nav { display: block; }
  .nav .menu { flex-direction: column; gap: 0; }
  .nav .menu a { padding: 12px 0; border-bottom: 1px solid var(--color-border); }
  .nav .sub-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; }
  .hero { padding: 28px 0 32px; }
  .hero__grid { gap: 24px; }
  .hero__media { order: -1; }
  .hero__title { font-size: 30px; }
  .hero__media img { height: 240px; }
  .hero__tag { left: 10px; bottom: 10px; font-size: 13px; }
  .hero__dots { margin-top: 18px; }
  .entry { padding-top: 8px; }
  .logo-bubble { width: 140px; height: 76px; }
  .alignleft, .alignright { float: none; margin: 16px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media .hero-slide.is-active img { animation: none; }
  .hero__stack > .hero-slide { transition: none; }
}

/* Sửa sau khi test */
.footer__grid { grid-template-columns: minmax(0,1.4fr) repeat(3, minmax(0,1fr)); }
.footer__grid > * { min-width: 0; }
.contact-list li > * { min-width: 0; overflow-wrap: anywhere; }
.stats .stat strong span, .about__stats .stat strong span { font-size: inherit; color: inherit; }
.hero__grid { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); }
.hero__title { font-size: 42px; }
@media (max-width: 1024px) { .footer__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .hero__title { font-size: 36px; } }
@media (max-width: 768px) { .footer__grid { grid-template-columns: minmax(0,1fr); } .hero__grid { grid-template-columns: minmax(0,1fr); } .hero__title { font-size: 30px; } }
.hero { padding-bottom: 76px; } @media (max-width:768px){ .hero { padding-bottom: 32px; } }
.partner-toggle .school-grid:not(.is-active) { display: none; }
@media (max-width: 768px) { .nav .container { display: block; padding-top: 4px; padding-bottom: 8px; } .nav .menu { width: 100%; } }


/* ---- 1.0.4: quy trình mới, thẻ trường trên điện thoại, nút thu gọn ---- */
.process { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 28px; position: relative; }
.process::before { content: ""; position: absolute; top: 44px; left: calc(100% / var(--n, 4) / 2); right: calc(100% / var(--n, 4) / 2); border-top: 2px dashed var(--color-blue); opacity: .55; }
.process__item { text-align: center; position: relative; }
.process__ico { position: relative; width: 88px; height: 88px; margin: 0 auto; border-radius: 50%; background: var(--color-blue); color: var(--color-navy); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 8px #fff, 0 10px 24px rgba(6,183,244,.28); }
.process__ico .ico { width: 34px; height: 34px; stroke-width: 1.8; }
.process__num { position: absolute; top: -4px; right: -4px; width: 28px; height: 28px; border-radius: 50%; background: var(--color-cta); color: var(--color-navy); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.process__text h3 { margin-top: 18px; font-size: 19px; color: var(--color-navy); }
.process__text p { margin-top: 8px; font-size: 15px; color: var(--color-muted); line-height: 1.55; }
@media (max-width: 768px) {
  .process { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 24px; }
  .process::before { top: 30px; bottom: 30px; left: 30px; right: auto; border-top: 0; border-left: 2px dashed var(--color-blue); }
  .process__item { display: flex; gap: 18px; text-align: left; padding: 0 0 24px; }
  .process__item:last-child { padding-bottom: 0; }
  .process__ico { width: 60px; height: 60px; flex: none; margin: 0; box-shadow: 0 0 0 6px #fff; }
  .process__ico .ico { width: 26px; height: 26px; }
  .process__num { width: 22px; height: 22px; font-size: 12px; top: -6px; right: -6px; }
  .process__text h3 { margin-top: 4px; font-size: 18px; }
  .process__text p { margin-top: 4px; }
}

/* Thẻ trường: điện thoại cho chữ trạng thái xuống dòng dưới tên để không che tên trường */
.uni__body strong { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .uni { flex-wrap: wrap; row-gap: 6px; padding: 14px; }
  .uni__logo { width: 48px; height: 48px; flex-basis: 48px; font-size: 20px; }
  .uni__body { flex: 1 1 calc(100% - 62px); min-width: 0; }
  .uni__more { flex-basis: 100%; padding-left: 62px; white-space: normal; }
}
.school-close { display: none; margin: 16px auto 0; background: #fff; border: 1.5px solid var(--color-border); color: var(--color-navy); border-radius: 999px; padding: 9px 18px; font: 600 14px var(--font); cursor: pointer; }
.partner-toggle.is-open .school-close { display: block; }


/* ---- 1.0.5: danh sách trường dạng xổ xuống + khối giới thiệu mới ---- */
.partner-acc { max-width: 900px; margin: 8px auto 0; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.acc + .acc { border-top: 1px solid var(--color-border); }
.acc__head { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; font-weight: 700; font-size: 17px; color: var(--color-navy); transition: background .2s; }
.acc__head::-webkit-details-marker { display: none; }
.acc__head:hover { background: var(--color-bg-soft); }
.acc__title { flex: 1; }
.acc__count { min-width: 28px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--color-blue); color: var(--color-navy); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.acc__arrow { width: 10px; height: 10px; border-right: 2px solid var(--color-navy); border-bottom: 2px solid var(--color-navy); transform: rotate(45deg); margin: -4px 4px 0; transition: transform .25s; }
.acc[open] .acc__arrow { transform: rotate(-135deg); margin-top: 4px; }
.acc[open] .acc__head { background: var(--color-bg-soft); color: var(--color-brand); }
.acc__list { margin: 0; padding: 6px 20px 14px 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; counter-reset: none; }
.acc__list li { padding: 0; color: var(--color-muted); }
.acc__list li::marker { color: var(--color-brand); font-weight: 700; }
.acc__item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 8px 0; border-bottom: 1px dashed var(--color-border); color: var(--color-navy); }
.acc__name { font-weight: 600; }
.acc__type { font-size: 13px; color: var(--color-muted); }
.acc__more { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--color-brand); white-space: nowrap; }
a.acc__item:hover .acc__name { color: var(--color-brand); text-decoration: underline; }
@media (max-width: 768px) {
  .acc__head { padding: 14px 16px; font-size: 16px; }
  .acc__list { grid-template-columns: minmax(0, 1fr); padding: 4px 16px 12px 36px; }
}

.about__points { display: grid; gap: 14px; margin-top: 4px; }
.about__point { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 14px 16px; }
.about__ico { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--color-blue); color: var(--color-navy); display: flex; align-items: center; justify-content: center; }
.about__point strong { display: block; color: var(--color-navy); font-size: 16px; }
.about__point p { font-size: 14.5px; color: var(--color-muted); margin-top: 2px; line-height: 1.5; }
.about__motto { margin-top: 18px; padding: 12px 16px; border-left: 4px solid var(--color-cta); background: #FFFCE0; border-radius: 0 10px 10px 0; color: var(--color-navy); font-weight: 600; }
.about__motto span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 2px; }
.about { align-items: stretch; } .about__media img { height: 100%; min-height: 320px; } @media (max-width:768px){ .about__media img { min-height: 0; height: 240px; } }


/* ---- 1.0.6: máy tính/tablet dùng chip + thẻ, điện thoại dùng danh sách xổ xuống ---- */
.partner-acc { display: none; }
@media (max-width: 767.98px) {
  .partner-toggle { display: none; }
  .partner-acc { display: block; }
}
