/* Connect English Center. Trang chủ, Kỷ niệm, Tin tức. Bản gọn v3. */
:root {
  --paper: #f7f9f9;
  --mist: #e6eef0;
  --ink: #13293d;
  --film: #0f1c27;
  --soft: #2f4556;
  --pine: #1e5a4b;
  --green: #1e7a2f;
  --green-d: #17621f;
  --orange: #f28a2e;
  --m: max(clamp(18px, 3vw, 40px), calc((100vw - 1440px) / 2));
  --gap: 20px;
  --small: 0.875rem;
  --body: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --lead: clamp(1.125rem, 1rem + .6vw, 1.5rem);
  --head: clamp(1.625rem, 1.2rem + 1.6vw, 2.5rem);
  --display: clamp(2.25rem, 1.3rem + 3.2vw, 4rem);
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --section: clamp(32px, 4vw, 56px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font: 400 var(--body)/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
h2 { font-size: var(--head); }
p { text-wrap: pretty; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 30; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 0; border-radius: 0; text-decoration: none; font: 600 .9375rem/1.2 var(--sans); transition: transform .18s ease, background-color .18s ease, color .18s ease; cursor: pointer; }
.btn-solid { background: var(--green); color: #fff; }
.btn-solid:hover { background: var(--green-d); transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #0b1b2a; transform: translateY(-2px); }
.btn-lg { min-height: 50px; padding: 12px 24px; font-size: 1rem; }
.textlink { font-weight: 500; text-underline-offset: 5px; text-decoration-thickness: 2px; transition: color .18s; }
.textlink:hover { color: var(--green); }

/* Thanh trên cùng */
.bar { display: flex; align-items: center; gap: 24px; min-height: 64px; padding: 6px var(--m); background: var(--paper); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(19, 41, 61, .08); }
.brand img { height: 38px; width: auto; }
.bar-nav { display: flex; gap: 24px; margin-left: auto; }
.bar-nav a { text-decoration: none; font-weight: 500; font-size: .9375rem; padding: 8px 0; }
.bar-nav a:hover, .bar-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Hiện dần khi cuộn */
.ml { display: block; overflow: hidden; padding: .12em 0 .2em; margin: -.12em 0 -.2em; }
.ml > span { display: inline-block; }
.js .ml > span { transform: translateY(112%); }
.js.loaded .ml > span { transform: none; transition: transform .9s cubic-bezier(.16, 1, .3, 1) 1.9s; }
.js.loaded .ml:nth-child(2) > span { transition-delay: 2.02s; }
.js [data-r] { opacity: 0; transform: translateY(16px); }
.js [data-r].in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0ms); }
.js .hero [data-r] { transition-delay: calc(var(--d, 0ms) + 2.2s); }

/* Hero gọn: logo, tiêu đề, một ảnh chào đón, bốn ảnh nhỏ */
.hero .lfx { box-shadow: 0 1px 0 rgba(19, 41, 61, .08), 0 14px 28px -18px rgba(60, 45, 25, .45); }
.hero { display: grid; grid-template-columns: 5fr 6fr; column-gap: clamp(24px, 3.5vw, 52px); align-items: center; padding: clamp(18px, 3vh, 36px) var(--m) clamp(22px, 3.5vh, 40px); overflow-x: clip; }
h1 { font-size: var(--display); line-height: 1; letter-spacing: -0.035em; }
.hero .hero-text h1 { margin-top: clamp(16px, 2.2vw, 26px); }
.hero-sub { margin-top: 12px; font-size: var(--lead); line-height: 1.4; max-width: 34ch; color: var(--soft); }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 18px; }
.welcome { position: relative; background: var(--mist); overflow: hidden; }
.welcome img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 50%; }
.trio { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1.1vw, 16px); grid-column: 1 / -1; margin-top: clamp(4px, 1vw, 12px); }
.trio figure { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.trio img { width: 100%; height: 100%; object-fit: cover; }
.trio figcaption { position: absolute; left: 0; bottom: 0; padding: 6px 14px; background: rgba(19, 41, 61, .82); color: #fff; font-size: clamp(.875rem, 1.1vw, 1.0625rem); font-weight: 600; }
.welcome figcaption { position: absolute; left: 0; bottom: 0; padding: 8px 14px; background: rgba(19, 41, 61, .78); color: #fff; font-size: var(--small); font-weight: 600; }
.mini { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.mini img { width: 56px; height: 56px; object-fit: cover; background: var(--mist); }
.mini a { margin-left: auto; font-size: var(--small); font-weight: 600; text-underline-offset: 4px; white-space: nowrap; }
.mini span { font-size: var(--small); color: var(--soft); margin-left: 6px; max-width: 18ch; line-height: 1.3; }

/* Bốn lối vào chính */
.gate { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 var(--m); border-top: 2px solid var(--ink); }
.gate a { display: block; padding: 16px 18px 18px 0; text-decoration: none; position: relative; transition: background-color .2s; }
.gate a + a { padding-left: 18px; border-left: 1px solid rgba(19, 41, 61, .18); }
.gate .no { font-size: var(--small); font-weight: 600; color: var(--green); }
.gate h2 { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.625rem); margin: 4px 0 6px; }
.gate p { font-size: .9375rem; color: var(--soft); line-height: 1.45; }
.gate .go { display: inline-block; margin-top: 8px; font-size: .9375rem; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--orange); }
.gate a:hover h2 { color: var(--green); }
.gate .main .no { color: var(--orange); }

/* Phần chung */
section { padding-inline: var(--m); }
.s-proof, .s-why, .s-how, .s-faq { padding-block: var(--section); }

/* Bảng điểm thật: dải film cuộn ngang */
.s-proof { padding-inline: 0; margin-top: var(--section); background: var(--paper); padding-bottom: 0; padding-top: 0; }
.proof-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; padding: 0 var(--m) 14px; }
.proof-head h2 { font-size: var(--head); }
.proof-head p { max-width: 52ch; color: var(--soft); font-size: .9375rem; }
.film { position: relative; background: var(--film); padding: 30px 0; overflow: hidden; -webkit-mask-image: none; }
.film::before, .film::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='12'%3E%3Crect x='4' y='1' width='14' height='10' rx='2.5' fill='%23f7f9f9' fill-opacity='.9'/%3E%3C/svg%3E") repeat-x; z-index: 2; }
.film::before { top: 7px; } .film::after { bottom: 7px; }
.film-edge { position: absolute; top: 0; bottom: 0; width: 70px; z-index: 3; pointer-events: none; }
.film-edge.l { left: 0; background: linear-gradient(90deg, var(--film), transparent); }
.film-edge.r { right: 0; background: linear-gradient(270deg, var(--film), transparent); }
.reel { list-style: none; margin: 0; padding: 0 5px; display: flex; gap: 10px; width: max-content; }
.js .reel { animation: roll var(--dur, 70s) linear infinite; will-change: transform; }
.film:hover .reel, .film:focus-within .reel { animation-play-state: paused; }
@keyframes roll { to { transform: translateX(-50%); } }
.frame { flex: none; width: clamp(176px, 15vw, 232px); background: #0a141c; padding: 6px 6px 8px; border: 1px solid rgba(255, 255, 255, .08); }
.card { display: block; text-decoration: none; color: #fff; }
.card img { width: 100%; aspect-ratio: 1 / 1.41; object-fit: cover; object-position: top; background: #fff; transition: filter .2s; }
.card:hover img { filter: brightness(1.06); }
.card .cap { display: block; padding-top: 7px; }
.card b { display: block; font-weight: 600; font-size: .9375rem; line-height: 1.3; }
.card i { display: block; font-family: var(--serif); font-style: normal; font-size: 1.375rem; line-height: 1.1; color: var(--orange); }
.card small { display: block; font-size: .8125rem; color: #b8c7d1; margin-top: 1px; }
.proof-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding: 12px var(--m) 0; font-size: .9375rem; color: var(--soft); }
dialog.zoom { border: 0; padding: 0; background: transparent; max-width: min(92vw, 760px); max-height: 94svh; }
dialog.zoom::backdrop { background: rgba(19, 41, 61, .88); }
dialog.zoom img { max-height: 90svh; width: auto; margin: 0 auto; background: #fff; }
dialog.zoom button { position: absolute; top: 8px; right: 8px; min-height: 44px; min-width: 44px; border: 0; background: var(--ink); color: #fff; font: 600 1rem var(--sans); cursor: pointer; }

/* Vì sao chọn Connect: một hàng bốn ý */
.s-why { margin-top: var(--section); background: var(--pine); color: #fff; }
.why-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-bottom: 18px; }
.why-top p { color: #d7e6e1; }
.why-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 28px; }
.why-list h3 { font-size: 1.1875rem; margin-bottom: 6px; line-height: 1.2; }
.why-list p { color: #e1ede9; font-size: .9375rem; line-height: 1.5; }

/* Lộ trình và video */
.s-how { display: grid; grid-template-columns: 1fr auto; column-gap: clamp(24px, 5vw, 72px); align-items: center; }
.how-head h2 { margin-bottom: 14px; }
.how-steps { list-style: none; padding: 0; counter-reset: s; }
.how-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; padding: 12px 0; border-top: 1px solid rgba(19, 41, 61, .18); }
.how-steps li::before { content: counter(s); font-family: var(--serif); font-size: 1.5rem; color: var(--green); line-height: 1.1; }
.how-steps b { display: block; font-weight: 600; }
.how-steps span { display: block; color: var(--soft); max-width: 52ch; font-size: .9375rem; }
.how-vid { display: flex; align-items: flex-end; gap: clamp(16px, 2vw, 28px); }
.loop { width: clamp(220px, 21vw, 300px); aspect-ratio: 9 / 16; object-fit: cover; background: #2a1b0b; box-shadow: 0 18px 36px -22px rgba(19, 41, 61, .55); }
.how-vid p { max-width: 14ch; border-left: 6px solid var(--orange); padding-left: 18px; font-family: var(--serif); font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }
.how-vid small { display: block; font-family: var(--sans); font-size: 1rem; letter-spacing: 0; color: var(--soft); margin-top: 12px; line-height: 1.5; }

/* Hỏi đáp: gập mở, hai cột */
.s-faq { background: var(--mist); }
.s-faq h2 { margin-bottom: 14px; }
.faq-text { columns: 2; column-gap: 40px; }
.faq-text details { break-inside: avoid; border-top: 1px solid rgba(19, 41, 61, .2); padding: 10px 0; }
.faq-text summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-text summary::-webkit-details-marker { display: none; }
.faq-text summary::after { content: "+"; font-size: 1.25rem; line-height: 1; color: var(--green); }
.faq-text details[open] summary::after { content: "\2212"; }
.faq-text details p { margin-top: 6px; color: var(--soft); font-size: .9375rem; }

/* Liên hệ: thông tin, Zalo, bản đồ */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); padding: clamp(36px, 5vw, 72px) var(--m); background: var(--paper); border-top: 2px solid var(--ink); }
.eyebrow { font: 600 var(--small)/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.contact h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); line-height: 1.02; letter-spacing: -.03em; }
.ct-lead { margin-top: 14px; font-size: var(--lead); line-height: 1.4; color: var(--soft); max-width: 30ch; }
.zalo-big { display: flex; align-items: center; gap: 16px; margin-top: 26px; padding: 16px 20px; max-width: 470px; background: #0068ff; color: #fff; text-decoration: none; transition: transform .18s ease, background-color .18s ease; }
.zalo-big:hover { background: #0054d1; transform: translateY(-2px); }
.zalo-big svg { flex: none; width: 46px; height: 46px; }
.zalo-big b { display: block; font-size: 1.25rem; line-height: 1.2; font-weight: 600; }
.zalo-big small { display: block; font-size: .9375rem; opacity: .92; margin-top: 2px; }
.zalo-big .arr { margin-left: auto; font-size: 1.75rem; line-height: 1; transition: transform .18s ease; }
.zalo-big:hover .arr { transform: translateX(4px); }
.ct-list { list-style: none; padding: 0; margin-top: 26px; border-top: 2px solid var(--ink); }
.ct-list li { display: grid; grid-template-columns: 108px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(19, 41, 61, .16); align-items: baseline; }
.ct-list span { font-size: var(--small); font-weight: 600; color: var(--soft); }
.ct-list a { text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--orange); font-weight: 500; }
.ct-list a:hover { color: var(--green); }
.ct-list em { font-style: normal; }
.ct-map { display: flex; flex-direction: column; align-self: stretch; }
.ct-map iframe { display: block; width: 100%; flex: 1; min-height: 400px; border: 1px solid rgba(19, 41, 61, .3); background: var(--mist); }
.map-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-top: 14px; }
.map-bar p { font-size: .9375rem; color: var(--soft); max-width: 36ch; line-height: 1.45; }

/* Nút Zalo nổi, luôn thấy khi cuộn */
.zalo-fab { position: fixed; right: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px); z-index: 40; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 20px 6px 8px; background: #0068ff; color: #fff; border-radius: 999px; text-decoration: none; font: 600 1rem/1 var(--sans); box-shadow: 0 10px 24px -10px rgba(0, 60, 160, .65), 0 2px 6px rgba(19, 41, 61, .25); transition: transform .18s ease, background-color .18s ease; }
.zalo-fab:hover { background: #0054d1; transform: translateY(-3px); }
.zalo-fab svg { width: 42px; height: 42px; flex: none; }
.zalo-fab::before { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid #0068ff; opacity: 0; animation: ping 3.2s ease-out 2s infinite; pointer-events: none; }
@keyframes ping { 0% { opacity: .55; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(1.14); } }
.zalo-fab:focus-visible { outline-color: var(--ink); }

/* Chân trang */
.foot { background: var(--ink); color: var(--paper); padding: clamp(32px, 4vw, 56px) var(--m) 20px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.4fr 1fr; gap: 28px clamp(20px, 3vw, 48px); }
.foot h3 { font: 600 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #9fb3c1; margin-bottom: 16px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 9px; font-size: .9375rem; line-height: 1.4; color: #dbe5eb; }
.foot a { text-decoration: none; text-underline-offset: 4px; }
.foot a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.foot-name { font-family: var(--serif); font-size: 1.625rem; line-height: 1.15; letter-spacing: -.01em; margin-bottom: 10px; }
.foot-about { color: #c4d2db; max-width: 34ch; font-size: .9375rem; line-height: 1.5; }
.foot-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; margin-top: clamp(24px, 3vw, 40px); padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: var(--small); color: #9fb3c1; }

/* Trang con */
.page-head { padding: clamp(20px, 3vw, 36px) var(--m) 16px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; }
.page-head h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); }
.page-head p { font-size: 1.0625rem; max-width: 46ch; color: var(--soft); }
.wall { columns: 5; column-gap: 10px; padding: 0 var(--m) var(--section); }
.wall figure { break-inside: avoid; margin: 0 0 10px; position: relative; background: var(--mist); }
.wall img { width: 100%; }
.wall figcaption { font-size: .8125rem; font-weight: 600; padding: 4px 2px 0; }
.wall-link { padding: 0 var(--m) var(--section); }
/* Phòng kỷ niệm: bưu thiếp kỷ niệm */
.wall figure.mc { background: none; }
.wall figure.mc img { background: var(--mist); }
.wall figure.mc.done img { cursor: zoom-in; background: none; }
.wall figure.mc.done figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; }
.wall .acts { display: flex; gap: 6px; margin-top: 8px; }
.wall .acts button { flex: 1; min-height: 40px; border: 0; color: #fff; font: 600 .8125rem var(--sans); cursor: pointer; transition: transform .18s ease, background-color .18s ease; }
.wall .acts .save { background: var(--ink); }
.wall .acts .share { background: var(--green); }
.wall .acts button:hover { transform: translateY(-2px); }
.wall .acts button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.wall figure.mc { margin-bottom: 22px; }
.news { display: grid; grid-template-columns: 2fr 1fr; gap: 28px 40px; padding: 8px var(--m) var(--section); align-items: start; }
.news article h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 10px; }
.news article h3 { font-size: 1.125rem; margin: 16px 0 4px; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.news article p { color: var(--soft); max-width: 66ch; }
.news .src { margin-top: 18px; font-size: var(--small); }
.news .src a { text-underline-offset: 3px; }
.news aside { border-top: 2px solid var(--ink); padding-top: 10px; }
.news aside h2 { font-size: 1.25rem; margin-bottom: 8px; }
.news aside li { padding: 8px 0; border-top: 1px solid rgba(19, 41, 61, .15); color: var(--soft); font-size: .9375rem; }
.news aside ul { list-style: none; padding: 0; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; background: var(--mist); color: var(--ink); margin-left: 6px; }

@media (max-width: 1100px) {
  .why-list { grid-template-columns: repeat(2, 1fr); }
  .wall { columns: 4; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; row-gap: 16px; }
  .trio { grid-template-columns: 1fr 1fr; }
  .gate { grid-template-columns: 1fr 1fr; }
  .gate a:nth-child(3) { padding-left: 0; border-left: 0; }
  .gate a:nth-child(n+3) { border-top: 1px solid rgba(19, 41, 61, .18); }
  .s-how { grid-template-columns: 1fr; row-gap: 20px; }
  .how-vid { justify-content: flex-start; }
  .faq-text { columns: 1; }
  .wall { columns: 3; }
  .news { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .bar { flex-wrap: wrap; gap: 2px 16px; padding-block: 8px; position: static; }
  .bar-nav { margin-left: 0; gap: 16px; order: 3; width: 100%; overflow-x: auto; }
  .bar .btn { margin-left: auto; }
  .gate { grid-template-columns: 1fr; margin-inline: var(--m); }
  .gate a, .gate a + a { padding: 12px 0; border-left: 0; }
  .gate a + a { border-top: 1px solid rgba(19, 41, 61, .18); }
  .why-list { grid-template-columns: 1fr; }
  .how-vid { flex-direction: column; align-items: flex-start; }
  .loop { width: min(64vw, 280px); }
  .how-vid p { max-width: none; font-size: 1.5rem; }
  .wall { columns: 2; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-meta { flex-direction: column; }
  .ct-list li { grid-template-columns: 92px 1fr; }
  .ct-map iframe { min-height: 320px; }
  .zalo-fab { padding-right: 16px; }
  .mini span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .ml > span, .js [data-r] { transform: none; opacity: 1; transition: none !important; }
  .js .reel { animation: none; }
  .film { overflow-x: auto; }
  .btn-solid:hover, .btn-ink:hover, .zalo-big:hover, .zalo-fab:hover, .wall .acts button:hover { transform: none; }
  .zalo-fab::before { animation: none; }
}
