
*{box-sizing:border-box}
:root{
  --royal:#0b57d0;--cobalt:#0b4eb3;--navy:#103d78;--sky:#dcefff;--sky2:#edf8ff;
  --ivory:#f7fbff;--cream:#fff9ed;--mint:#f2faf8;--pale:#eaf4ff;--paper:#fff;
  --gold:#e6c46e;--ink:#164985;--muted:#5d7da7;--line:#cfe3f7;
  --shadow:0 18px 45px rgba(27,83,151,.10);
}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Times New Roman",Georgia,serif;background:#eef8ff;color:var(--ink);font-size:19px;line-height:1.68}
a{text-decoration:none;color:inherit}img{display:block;max-width:100%}button,input,textarea,select{font:inherit}
.site-header{position:sticky;top:0;z-index:100;display:flex;align-items:center;justify-content:space-between;padding:10px clamp(16px,3vw,48px);background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-bottom:1px solid #d6e7f8;box-shadow:0 7px 22px rgba(24,76,139,.06)}
.brand{display:flex;align-items:center;gap:12px;color:var(--navy)}.brand img{width:58px;height:58px;object-fit:contain}.brand strong{display:block;font-size:18px;line-height:1.15}.brand span{display:block;font-size:12px;letter-spacing:.08em;color:#6a88ad;margin-top:4px}
.main-nav{display:flex;align-items:center;gap:17px}.nav-link,.school-link{position:relative;font-size:16px;font-weight:700;color:#365f95;padding:25px 0 20px}.nav-link:hover,.nav-link.active{color:var(--royal)}.nav-link:hover:after,.nav-link.active:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;border-radius:4px;background:var(--royal)}.school-link{color:#7c8da4;font-size:14px}
.menu-btn{display:none;border:0;background:transparent;color:var(--royal);font-size:32px}
.container{width:min(1180px,92%);margin:auto}
.drum-bg{position:relative;overflow:hidden}
.drum-bg>*{position:relative;z-index:2}
.drum-bg:before{
  content:"";position:absolute;z-index:1;pointer-events:none;
  width:min(560px,46vw);aspect-ratio:1;right:-90px;top:50%;
  transform:translateY(-50%);
  background:url("../images/65nam.webp") center/contain no-repeat;
  opacity:.032;filter:grayscale(.08) saturate(.7);
}
.drum-bg:after{display:none}
.door{padding:74px 0;position:relative}.door-hero{background:linear-gradient(135deg,#dcefff 0%,#c7e6ff 44%,#f4fbff 100%);min-height:720px;display:flex;align-items:center}.door-countdown{background:#eaf6ff}.door-return{background:#fff9ed}.door-history{background:#f5f9fd}.door-event{background:#fff9ed}.door-memory{background:#f2faf8}.door-closing{background:linear-gradient(135deg,#f7fbff,#e7f4ff)}.door-history-page{background:#f5f9fd}.door-achievement{background:#fff9ed}.door-program{background:#fff9ed}.door-program-cta{background:#eaf6ff}.door-register{background:#eff8ff}.door-memory-page{background:#f2faf8}.door-approved{background:#fff9ed}.door-contact{background:#eaf4ff}.door-address{background:#f7fbff}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:44px;align-items:center}.eyebrow,.kicker{font-size:14px;font-weight:800;letter-spacing:.15em;color:#4c72a3;text-transform:uppercase;margin:0 0 12px}.hero-copy h1{margin:0;line-height:.89;letter-spacing:-.03em}.hero-copy h1 span{display:block;font-size:clamp(76px,10vw,138px);color:var(--royal)}.hero-copy h1 small{display:block;font-size:clamp(44px,5.5vw,72px);color:var(--navy);margin-top:12px}.hero-years{display:inline-block;margin-top:24px;border:1px solid #a9d0f4;background:rgba(255,255,255,.62);padding:7px 14px;border-radius:999px;font-size:23px;font-weight:800;letter-spacing:.12em}.hero-copy h2{font-size:34px;color:var(--cobalt);margin:18px 0 10px}.hero-lead{font-size:21px;color:#4e719c;max-width:720px}.hero-emblem{position:relative;min-height:520px;display:flex;align-items:center;justify-content:center}.hero-emblem img{width:min(540px,95%);position:relative;z-index:2;filter:drop-shadow(0 26px 34px rgba(33,93,159,.22))}.emblem-halo{position:absolute;width:440px;height:440px;border-radius:50%;background:radial-gradient(circle,#fff 0%,rgba(232,246,255,.82) 52%,transparent 73%);box-shadow:0 0 0 38px rgba(255,255,255,.28)}
.hero-actions,.event-buttons{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}.btn{min-height:52px;padding:0 22px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;font-size:16px;font-weight:800;letter-spacing:.02em;border:1px solid transparent;cursor:pointer}.btn-primary{background:var(--royal);color:#fff;box-shadow:0 11px 24px rgba(11,87,208,.16)}.btn-secondary{background:#fff;color:var(--royal);border-color:#b6d7f5}.btn-outline{background:transparent;color:var(--royal);border-color:#82b8eb}
.section-heading{max-width:900px;border-radius:22px;padding:20px 24px;margin-bottom:30px}.heading-blue{background:#dcefff;border:1px solid #bad9f4}.heading-cream{background:#fff0d3;border:1px solid #ecdca8}.heading-ivory{background:#fff;border:1px solid #d7e8f7}.heading-champagne{background:#fff1d8;border:1px solid #eadba9}.heading-mint{background:#e4f6ed;border:1px solid #c5e5d3}.section-heading>p:first-of-type{font-size:14px;font-weight:800;letter-spacing:.13em;color:#4c73a5;margin:0 0 7px}.section-heading h2{font-size:clamp(38px,5vw,54px);line-height:1.07;color:var(--navy);margin:0}.heading-lead{font-size:20px;color:var(--muted);margin:8px 0 0}.chapter-no{display:inline-flex;width:40px;height:40px;border-radius:50%;align-items:center;justify-content:center;background:#fff;color:var(--royal);border:1px solid #c4ddf4;font-weight:800;margin-bottom:12px}
.gold-line{width:82px;height:3px;background:linear-gradient(90deg,var(--gold),#f8e9b9);border-radius:3px;margin:14px 0}.gold-line.center{margin-left:auto;margin-right:auto}
.countdown{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.countdown>div{background:#fff;border:1px solid #cfe3f7;border-radius:20px;padding:22px;text-align:center;box-shadow:var(--shadow)}.countdown strong{display:block;font-size:54px;line-height:1;color:var(--royal)}.countdown span{font-size:16px;font-weight:800;letter-spacing:.1em;color:#6080a9}
.split-story{display:grid;grid-template-columns:.95fr 1.05fr;gap:40px;align-items:center}.story-copy>p{font-size:22px;color:#536f95}.text-link{font-weight:800;color:var(--royal)}.premium-photo{margin:0;background:#fff;border:1px solid #e7ddb8;border-radius:24px;padding:12px;box-shadow:var(--shadow)}.premium-photo img{width:100%;border-radius:16px}.premium-photo figcaption{font-size:16px;color:#667f9e;padding:10px 5px 1px}
.timeline-preview{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.timeline-preview a{background:#fff;border:1px solid #d3e5f6;border-radius:18px;padding:18px;box-shadow:0 10px 25px rgba(34,91,158,.06);transition:.22s}.timeline-preview a:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.timeline-preview strong{display:block;font-size:23px;color:var(--royal)}.timeline-preview span{display:block;font-size:17px;color:#5d7ca4;margin-top:5px}.center-action{text-align:center;margin-top:26px}
.event-teaser{display:flex;align-items:center;justify-content:space-between;gap:35px}.event-teaser>div:first-child{max-width:820px}.event-teaser>div>p:last-child{font-size:21px;color:#5d789c}.event-teaser h2{font-size:48px;color:var(--navy);margin:0}
.memory-doors{display:grid;grid-template-columns:1fr 1fr;gap:20px}.memory-door{background:#fff;border:1px solid #cfe7da;border-radius:24px;padding:28px;box-shadow:var(--shadow);transition:.22s}.memory-door:hover{transform:translateY(-4px)}.memory-door>span{display:inline-flex;width:45px;height:45px;border-radius:50%;align-items:center;justify-content:center;background:#e1f5ea;color:#39755c;font-weight:800}.memory-door h3{font-size:34px;color:var(--navy);margin:12px 0 8px}.memory-door p{font-size:20px;color:#5b799d}.memory-door strong{color:var(--royal);font-size:15px;letter-spacing:.05em}
.closing-card{text-align:center;background:rgba(255,255,255,.76);border:1px solid #cfe3f7;border-radius:30px;padding:48px;box-shadow:var(--shadow)}.closing-card>p:first-child{font-size:15px;letter-spacing:.16em;font-weight:800;color:#4c72a3}.closing-card h2,.closing-card h1{font-size:clamp(40px,5vw,58px);color:var(--navy);line-height:1.13;margin:9px auto 13px;max-width:1100px}.closing-card blockquote{font-size:24px;color:#5a76a0;margin:25px auto 0;max-width:1100px;font-style:normal}
.page-hero{padding:64px 0;background:linear-gradient(135deg,#dcefff,#f4fbff);border-bottom:1px solid #cee3f5}.page-hero h1{font-size:clamp(50px,7vw,78px);line-height:1.02;color:var(--navy);margin:0}.page-hero>div>p:last-child{font-size:22px;color:#5879a2;max-width:970px}
.history-timeline{position:relative;padding-left:54px}.history-timeline:before{content:"";position:absolute;left:16px;top:8px;bottom:18px;width:4px;border-radius:5px;background:linear-gradient(#9bd0f3,var(--royal),#b8ddf6)}.history-node{position:relative;margin-bottom:31px}.history-dot{position:absolute;left:-45px;top:20px;width:22px;height:22px;border-radius:50%;background:var(--royal);border:5px solid #cae7f8;box-shadow:0 0 0 4px #f5f9fd}.history-year{display:inline-block;padding:7px 15px;border-radius:999px;background:#dcefff;border:1px solid #bad9f5;color:var(--royal);font-size:22px;font-weight:800;margin-bottom:9px}.history-card{background:#fff;border:1px solid #d4e6f6;border-radius:24px;padding:27px;box-shadow:var(--shadow)}.history-index{font-size:13px;letter-spacing:.12em;color:#7c9cbc}.history-card h2{font-size:36px;color:var(--navy);line-height:1.15;margin:5px 0 12px}.history-card>p{font-size:21px;color:#55769e;margin:0 0 18px}.history-gallery{display:grid;gap:15px}.history-gallery.cols-1{grid-template-columns:1fr}.history-gallery.cols-2{grid-template-columns:1fr 1fr}.history-gallery figure{margin:0;background:#f8fcff;border:1px solid #d9e9f8;border-radius:16px;padding:9px}.history-gallery img{width:100%;max-height:560px;object-fit:contain;border-radius:11px;background:#fff}.history-gallery figcaption{font-size:16px;color:#6984a4;padding:7px 3px 1px}
.achievement-layout{display:grid;grid-template-columns:.85fr 1.15fr;gap:35px}.achievement-list{display:grid;gap:12px}.achievement-list div{background:#fff;border:1px solid #eadfb9;border-radius:16px;padding:16px 18px;display:grid;grid-template-columns:140px 1fr;gap:15px}.achievement-list strong{font-size:23px;color:#b07b00}.achievement-list span{font-size:19px;color:#5a728e}
.location-card{background:#fff;border-left:5px solid var(--royal);border-radius:0 16px 16px 0;padding:17px 19px;color:#55749b;font-size:20px;box-shadow:0 8px 20px rgba(35,90,154,.05);margin-bottom:24px}.program-stack{display:grid;gap:24px}.program-card{display:grid;grid-template-columns:155px 1fr;gap:28px;background:#fff;border:1px solid #eadfb9;border-radius:24px;padding:25px;box-shadow:var(--shadow)}.date-medallion{height:150px;border-radius:19px;background:linear-gradient(145deg,#e3f3ff,#c7e7ff);border:1px solid #aed2ef;text-align:center;padding:20px;color:var(--navy)}.date-medallion strong{display:block;font-size:68px;line-height:.85}.date-medallion span{font-size:14px;font-weight:800;letter-spacing:.1em}.program-content h2{font-size:39px;color:var(--navy);margin:0 0 8px}.program-content>p{font-size:20px;color:#5878a1}.table-scroll{overflow:auto;border-radius:15px}.program-table,.registration-table{width:100%;border-collapse:collapse;background:#fff}.program-table th,.program-table td,.registration-table th,.registration-table td{padding:12px 11px;border-bottom:1px solid #e0ebf5;text-align:left;vertical-align:top}.program-table th,.registration-table th{background:#edf7ff;color:var(--navy);font-size:18px}.program-table td,.registration-table td{font-size:18px;color:#4f7199}.program-table td:first-child{width:165px;font-weight:700;color:#3d6aa1}.program-note{margin-top:14px;background:#f1fbf6;border:1px solid #cfe9da;border-radius:12px;padding:13px 15px;color:#527363}
.register-layout{display:grid;grid-template-columns:1.25fr .75fr;gap:24px;align-items:start}.registration-table td:nth-child(1){width:55px;text-align:center}.registration-table td:nth-child(3){min-width:145px}.premium-form,.memory-form{background:#fff;border:1px solid #d4e7f7;border-radius:24px;padding:26px;box-shadow:var(--shadow);margin-top:24px}.form-title p{font-size:13px;letter-spacing:.12em;font-weight:800;color:#6586ae;margin:0}.form-title h2,.memory-form h2{font-size:35px;color:var(--navy);margin:5px 0 18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.premium-form label,.memory-form label{display:flex;flex-direction:column;gap:6px;color:#365f93;font-size:18px;font-weight:700;margin-bottom:13px}.premium-form input,.premium-form textarea,.premium-form select,.memory-form input,.memory-form textarea,.memory-form select{width:100%;border:1px solid #bdd6ef;border-radius:10px;padding:12px 13px;background:#fbfdff;color:#2e557e;outline:0}.premium-form input:focus,.premium-form textarea:focus,.premium-form select:focus,.memory-form input:focus,.memory-form textarea:focus,.memory-form select:focus{border-color:var(--royal);box-shadow:0 0 0 3px rgba(11,87,208,.08)}.wide-label{margin-top:4px}.submit-btn{width:100%;margin-top:16px}.register-side{display:grid;gap:18px}.product-panel,.payment-panel{background:#fff;border:1px solid #d5e6f6;border-radius:22px;padding:18px;box-shadow:var(--shadow)}.panel-index{display:inline-flex;width:42px;height:42px;border-radius:50%;align-items:center;justify-content:center;background:#dcefff;color:var(--royal);font-weight:800}.product-panel>p,.payment-panel>p{font-size:12px;letter-spacing:.12em;font-weight:800;color:#6c8aaf;margin:11px 0 0}.product-panel h3,.payment-panel h3{font-size:29px;color:var(--navy);margin:3px 0 12px}.product-panel img{width:100%;border:1px solid #dce8f4;border-radius:13px}.product-panel>strong{display:block;text-align:center;font-size:21px;color:var(--royal);margin-top:11px}.payment-panel{background:linear-gradient(145deg,#e3f3ff,#fff)}.account-number{font-size:37px;font-weight:800;color:var(--royal);line-height:1}.account-name{font-size:16px;color:#53739b;margin:8px 0 14px;word-break:break-word}.qr{width:min(270px,100%);margin:auto;background:#fff;border-radius:15px;padding:8px;border:1px solid #d4e3f2}
.memory-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.memory-form{margin-top:0;position:relative}.memory-number{position:absolute;right:22px;top:22px;width:46px;height:46px;border-radius:50%;background:#e2f5ea;color:#3f755e;display:flex;align-items:center;justify-content:center;font-weight:800}.memory-form>p:nth-of-type(2){font-size:19px;color:#58779f}.upload-note{font-size:14px!important;color:#738ba7!important;background:#f4f9fd;padding:10px 12px;border-radius:9px}.approved-placeholder{display:grid;grid-template-columns:1fr 1fr;gap:20px}.postcard{background:#fff;border:1px solid #ecdca8;border-radius:20px;padding:28px;box-shadow:var(--shadow)}.postcard span{font-size:13px;letter-spacing:.12em;color:#9c7d27;font-weight:800}.postcard p{font-size:22px;color:#506e94}.postcard small{color:#7890aa}.postcard.muted{background:#fbfdff;border-color:#d4e5f5}
.support-grid{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:20px}.support-card{background:#fff;border:1px solid #d3e5f6;border-radius:22px;padding:25px;box-shadow:var(--shadow);position:relative}.support-card>span{position:absolute;right:20px;top:20px;width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#dcefff;color:var(--royal);font-weight:800}.support-card>p{font-size:13px;letter-spacing:.12em;font-weight:800;color:#6686ad;margin:0 0 8px}.support-card h2{font-size:31px;color:var(--navy);margin:0 0 7px}.support-card>a{font-size:27px;font-weight:800;color:var(--royal)}.transfer-info{display:grid;grid-template-columns:125px 1fr;gap:15px;align-items:center;margin-top:18px;background:#eef8ff;border-radius:15px;padding:12px}.transfer-info img{width:125px;background:#fff;border-radius:10px;padding:5px}.transfer-info strong,.transfer-info b,.transfer-info small{display:block}.transfer-info strong{color:var(--navy)}.transfer-info b{font-size:23px;color:var(--royal)}.transfer-info small{color:#617da0;word-break:break-word}
.address-grid{display:grid;grid-template-columns:1fr .8fr;gap:35px;align-items:center}.address-grid h2{font-size:40px;color:var(--navy);margin:4px 0}.address-grid p{font-size:20px;color:#5878a1}.school-return{background:#fff;border:1px solid #d5e5f5;border-radius:20px;padding:24px;box-shadow:var(--shadow)}
.site-footer{background:#d9efff;border-top:1px solid #c7e1f5;padding:27px 0;color:var(--navy)}.footer-inner{width:min(1180px,92%);margin:auto;display:flex;align-items:center;justify-content:space-between;gap:26px}.footer-brand{display:flex;align-items:center;gap:12px}.footer-brand img{width:58px;height:58px;object-fit:contain}.footer-brand strong{font-size:19px}.footer-brand p{font-size:14px;color:#6784a7;margin:2px 0 0}.footer-links{display:flex;gap:18px;flex-wrap:wrap}.footer-links a{font-size:16px;font-weight:700;color:#365e93}
.reveal{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .7s ease}.reveal.is-visible{opacity:1;transform:none}
@media(max-width:1100px){.main-nav{gap:12px}.nav-link{font-size:15px}.school-link{display:none}.support-grid{grid-template-columns:1fr 1fr}.transfer-card{grid-column:1/-1}.timeline-preview{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.menu-btn{display:block}.main-nav{display:none;position:absolute;top:79px;left:0;right:0;background:#fff;flex-direction:column;align-items:flex-start;padding:16px 22px;border-bottom:1px solid #d6e7f8;box-shadow:0 12px 22px rgba(26,80,145,.09)}.main-nav.open{display:flex}.nav-link{padding:7px 0;font-size:18px}.nav-link.active:after,.nav-link:hover:after{bottom:0}.door{padding:58px 0}.door-hero{min-height:auto}.hero-grid,.split-story,.register-layout,.address-grid{grid-template-columns:1fr}.hero-copy{text-align:center}.hero-actions{justify-content:center}.hero-emblem{order:-1;min-height:340px}.hero-emblem img{width:min(350px,86vw)}.emblem-halo{width:290px;height:290px}.countdown{grid-template-columns:repeat(2,1fr)}.event-teaser{flex-direction:column;align-items:flex-start}.memory-doors,.memory-form-grid,.approved-placeholder{grid-template-columns:1fr}.history-gallery.cols-2{grid-template-columns:1fr}.program-card{grid-template-columns:1fr}.date-medallion{width:155px}.form-grid{grid-template-columns:1fr}.support-grid{grid-template-columns:1fr}.transfer-card{grid-column:auto}.footer-inner{flex-direction:column;align-items:flex-start}}
@media(max-width:520px){body{font-size:18px}.site-header{padding:9px 14px}.brand img{width:50px;height:50px}.brand strong{font-size:14px}.brand span{font-size:10px}.hero-copy h1 span{font-size:66px}.hero-copy h1 small{font-size:38px}.hero-copy h2{font-size:28px}.hero-lead{font-size:19px}.section-heading{padding:17px}.section-heading h2{font-size:34px}.countdown strong{font-size:43px}.timeline-preview{grid-template-columns:1fr}.page-hero{padding:48px 0}.history-timeline{padding-left:30px}.history-timeline:before{left:8px}.history-dot{left:-30px;width:18px;height:18px}.history-card{padding:20px}.history-card h2{font-size:29px}.history-card>p{font-size:19px}.program-table th,.program-table td,.registration-table th,.registration-table td{font-size:16px;padding:10px 8px}.program-table td:first-child{width:125px}.event-buttons{width:100%}.event-buttons .btn{width:100%}.closing-card{padding:28px 20px}.closing-card blockquote{font-size:20px}.transfer-info{grid-template-columns:1fr}.transfer-info img{width:160px}.footer-links{flex-direction:column;gap:7px}}

/* ===== V2 PREMIUM REFINEMENT ===== */
.one-line-title{
  white-space:nowrap;
  font-size:clamp(46px,5vw,76px)!important;
  letter-spacing:-.018em;
}
.page-hero .container{max-width:1280px}
.page-hero{padding-top:58px;padding-bottom:58px}

.file-field{margin-bottom:14px}
.field-caption{display:block;color:#365f93;font-size:18px;font-weight:700;margin-bottom:7px}
.file-picker{
  display:flex!important;flex-direction:row!important;align-items:center!important;
  gap:12px!important;width:100%;padding:10px!important;
  border:1px solid #bdd6ef;border-radius:12px;background:#fbfdff;
  cursor:pointer;margin-bottom:0!important;
}
.file-picker input[type="file"]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.file-button{
  flex:0 0 auto;background:#0b57d0;color:#fff;padding:10px 16px;border-radius:9px;
  font-size:16px;font-weight:800;letter-spacing:.02em
}
.file-name{font-size:17px;color:#55769e;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.registration-support-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:42px}
.transfer-heading{max-width:900px;margin-bottom:20px}
.transfer-heading h2{font-size:38px;color:var(--navy);margin:2px 0 0}
.transfer-duo{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.bank-support-card{
  background:#fff;border:1px solid #d3e5f6;border-radius:24px;padding:26px;
  box-shadow:var(--shadow);min-height:310px
}
.bank-duo-content{display:grid;grid-template-columns:190px 1fr;gap:22px;align-items:center;margin-top:10px}
.bank-duo-content img{width:190px;background:#fff;border:1px solid #d7e5f3;border-radius:16px;padding:8px}
.bank-duo-content h3,.person-help h3{font-size:34px;color:var(--navy);margin:0 0 6px}
.bank-big-number{font-size:40px;font-weight:800;color:var(--royal);line-height:1.1}
.bank-duo-content p,.person-help>p:last-child{font-size:19px;color:#5878a1}
.phone-big{display:inline-block;font-size:38px;color:var(--royal);font-weight:800;margin:8px 0 18px}
.person-help{display:flex;flex-direction:column;justify-content:center}

.history-gallery img{min-height:220px}
.history-card .drum-bg:before{opacity:.018}

@media (min-width:1100px){
  .page-hero .one-line-title{max-width:none}
}
@media (max-width:1099px){
  .one-line-title{white-space:normal!important}
}
@media (max-width:820px){
  .registration-support-grid,.transfer-duo{grid-template-columns:1fr}
  .bank-duo-content{grid-template-columns:150px 1fr}
  .bank-duo-content img{width:150px}
}
@media (max-width:520px){
  .bank-duo-content{grid-template-columns:1fr}
  .bank-duo-content img{width:180px}
  .phone-big{font-size:30px}
  .file-picker{align-items:flex-start!important;flex-direction:column!important}
  .file-name{white-space:normal}
}

/* ===== V3 HERO LUXURY UPGRADE ===== */
.hero-premium{
  position:relative;
  min-height:760px;
  display:flex;
  align-items:center;
  padding:72px 0;
  overflow:hidden;
  background:#0b3f8f;
}
.hero-premium:before,
.hero-premium:after{display:none!important}

.hero-photo-layer{
  position:absolute;inset:0;z-index:0;
  background:
    linear-gradient(90deg,rgba(5,45,108,.94) 0%,rgba(8,67,150,.87) 35%,rgba(20,107,192,.56) 62%,rgba(226,244,255,.84) 100%),
    linear-gradient(0deg,rgba(6,45,105,.28),rgba(6,45,105,.08)),
    url("../images/history/hoc-sinh-cam-co.webp") center 45%/cover no-repeat;
}
.hero-photo-layer:after{
  content:"";position:absolute;inset:0;
  background:
    radial-gradient(circle at 72% 42%,rgba(255,255,255,.42),transparent 26%),
    linear-gradient(180deg,rgba(255,255,255,.03),rgba(0,0,0,.08));
}
.hero-grid-premium{
  position:relative;z-index:3;
  display:grid;grid-template-columns:1.12fr .88fr;
  gap:46px;align-items:center;
}
.hero-copy-premium{color:#fff;max-width:760px}
.hero-school-pill{
  display:inline-block;
  padding:8px 14px;border-radius:999px;
  border:1px solid rgba(255,255,255,.34);
  background:rgba(255,255,255,.11);
  backdrop-filter:blur(8px);
  font-size:14px;font-weight:800;letter-spacing:.12em;color:#f5fbff;
}
.hero-kicker{
  margin:22px 0 8px;
  color:#f4ddb0;
  font-size:18px;font-weight:800;letter-spacing:.12em;
  text-transform:uppercase;
}
.hero-copy-premium h1{
  margin:0;
  white-space:nowrap;
  font-size:clamp(70px,7vw,104px);
  line-height:.96;
  letter-spacing:-.035em;
  color:#fff;
  text-shadow:0 5px 22px rgba(0,37,92,.24);
}
.hero-copy-premium h1 span{
  color:#f3d887;
  font-weight:400;
  padding:0 .09em;
}
.hero-copy-premium h2{
  margin:15px 0 6px;
  font-size:clamp(32px,3.3vw,47px);
  line-height:1.08;
  font-weight:700;
  color:#fff;
}
.hero-gold-rule{
  width:110px;height:3px;border-radius:4px;
  margin:22px 0;
  background:linear-gradient(90deg,#f0cf72,#fff0bd);
  box-shadow:0 0 22px rgba(242,211,123,.32);
}
.hero-lead-premium{
  max-width:700px;
  margin:0;
  font-size:20px;
  line-height:1.65;
  color:rgba(247,252,255,.94);
  text-shadow:0 2px 14px rgba(0,35,90,.22);
}
.hero-date-line{
  display:flex;align-items:center;gap:13px;
  margin-top:20px;
  font-size:17px;color:#eef8ff;
}
.hero-date-line strong{
  color:#f6dda0;letter-spacing:.06em;font-size:19px
}
.hero-date-line span{
  padding-left:13px;border-left:1px solid rgba(255,255,255,.38)
}
.btn-light-premium{
  background:rgba(255,255,255,.95);color:#0b4eb3;
  border-color:rgba(255,255,255,.86);
  box-shadow:0 12px 28px rgba(0,39,98,.18)
}
.btn-light-premium:hover{background:#fff;transform:translateY(-2px)}
.btn-gold-premium{
  background:linear-gradient(135deg,#f4d77c,#ffe9ab);
  color:#694a00;border-color:#f6dd92;
  box-shadow:0 12px 28px rgba(105,74,0,.15)
}
.btn-gold-premium:hover{transform:translateY(-2px)}

.hero-logo-stage{
  position:relative;
  min-height:560px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
}
.hero-logo-glass{
  position:relative;
  width:min(510px,42vw);aspect-ratio:1;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:
    radial-gradient(circle at 35% 28%,rgba(255,255,255,.98),rgba(232,247,255,.88) 48%,rgba(201,231,250,.72) 100%);
  border:1px solid rgba(255,255,255,.84);
  box-shadow:
    0 28px 70px rgba(2,48,110,.24),
    inset 0 0 0 12px rgba(255,255,255,.23),
    inset 0 0 55px rgba(58,146,220,.12);
  backdrop-filter:blur(12px);
}
.hero-logo-glass img{
  position:relative;z-index:4;
  width:76%;
  filter:drop-shadow(0 22px 26px rgba(17,70,136,.18));
}
.logo-ring{
  position:absolute;border-radius:50%;pointer-events:none
}
.ring-1{
  width:88%;height:88%;
  border:1px solid rgba(47,126,194,.18);
  box-shadow:0 0 45px rgba(255,255,255,.66)
}
.ring-2{
  width:106%;height:106%;
  border:1px solid rgba(255,255,255,.48)
}
.hero-caption{
  margin-top:22px;
  display:flex;align-items:center;gap:13px;
  padding:10px 16px;border-radius:999px;
  background:rgba(255,255,255,.76);
  border:1px solid rgba(255,255,255,.88);
  backdrop-filter:blur(8px);
  box-shadow:0 12px 28px rgba(22,83,146,.10)
}
.hero-caption span{
  font-weight:800;color:#0b57d0;font-size:17px
}
.hero-caption strong{
  color:#315d91;font-size:13px;letter-spacing:.07em
}

@media(max-width:1000px){
  .hero-premium{min-height:auto;padding:52px 0}
  .hero-grid-premium{grid-template-columns:1fr;text-align:center}
  .hero-logo-stage{order:-1;min-height:370px}
  .hero-logo-glass{width:min(350px,72vw)}
  .hero-copy-premium{margin:auto}
  .hero-school-pill{font-size:12px}
  .hero-copy-premium h1{font-size:clamp(58px,12vw,86px)}
  .hero-copy-premium h2{font-size:clamp(30px,6vw,42px)}
  .hero-lead-premium{margin:auto}
  .hero-gold-rule{margin-left:auto;margin-right:auto}
  .hero-date-line,.hero-actions{justify-content:center}
}
@media(max-width:560px){
  .hero-premium{padding:38px 0 46px}
  .hero-photo-layer{
    background:
      linear-gradient(180deg,rgba(7,53,120,.74),rgba(7,67,148,.92) 48%,rgba(8,65,145,.96) 100%),
      url("../images/history/hoc-sinh-cam-co.webp") center/cover no-repeat;
  }
  .hero-logo-stage{min-height:300px}
  .hero-logo-glass{width:min(285px,76vw)}
  .hero-caption{display:none}
  .hero-copy-premium h1{font-size:54px;white-space:normal}
  .hero-kicker{font-size:15px}
  .hero-lead-premium{font-size:18px}
  .hero-date-line{flex-direction:column;gap:4px}
  .hero-date-line span{border-left:0;padding-left:0}
  .hero-actions{flex-direction:column}
  .hero-actions .btn{width:100%}
}


/* ===== V4 GLOBAL BEAUTY UPGRADE ===== */

/* All top page banners: brighter, layered, soft sparkling, distinct from lower sections */
.page-hero{
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(135deg, rgba(238,248,255,.98) 0%, rgba(217,236,252,.98) 42%, rgba(248,252,255,.98) 100%) !important;
}
.page-hero > .container{
  position:relative;
  z-index:3;
  text-align:center;
  max-width:1180px;
}
.page-hero .gold-line{
  margin-left:auto;
  margin-right:auto;
}
.page-hero p:last-child{
  margin-left:auto;
  margin-right:auto;
}
.page-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.95) 0 4%, transparent 18%),
    radial-gradient(circle at 24% 10%, rgba(255,255,255,.55) 0 1.6%, transparent 12%),
    radial-gradient(circle at 85% 18%, rgba(255,255,255,.85) 0 3%, transparent 16%),
    radial-gradient(circle at 74% 34%, rgba(255,255,255,.34) 0 1.2%, transparent 9%),
    radial-gradient(circle at 52% 20%, rgba(255,255,255,.6) 0 1.4%, transparent 9%),
    linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.08));
  opacity:.85;
  z-index:1;
  animation: subtleSparkle 14s ease-in-out infinite alternate;
}
.page-hero::after{
  content:"";
  position:absolute;
  right:2%;
  top:50%;
  transform:translateY(-50%);
  width:min(440px,36vw);
  aspect-ratio:1;
  background:url("../images/65nam.webp") center/contain no-repeat;
  opacity:.045;
  filter:drop-shadow(0 0 16px rgba(255,255,255,.38));
  z-index:2;
}

/* Different elegant hero color identities per page */
.page-history{
  background:
    linear-gradient(135deg, #eef8ff 0%, #dbeefe 44%, #f7fbff 100%) !important;
}
.page-program{
  background:
    linear-gradient(135deg, #eef7ff 0%, #ddeeff 36%, #fff8ea 100%) !important;
}
.page-register{
  background:
    linear-gradient(135deg, #eef8ff 0%, #dbeefe 38%, #f5fbff 100%) !important;
}
.page-memory{
  background:
    linear-gradient(135deg, #f0fbf8 0%, #e5f6ee 34%, #eef9ff 100%) !important;
}
.page-contact{
  background:
    linear-gradient(135deg, #eef8ff 0%, #ddeeff 40%, #f7fbff 100%) !important;
}

/* Lower content sections: still elegant but calmer than top banners */
.door{
  position:relative;
}
.door::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 18% 10%, rgba(255,255,255,.35), transparent 16%),
    radial-gradient(circle at 88% 16%, rgba(255,255,255,.25), transparent 12%);
  opacity:.65;
}

/* Replace repetitive feel with softer logo watermark on section backgrounds */
.drum-bg::before{
  opacity:.026 !important;
}

/* Homepage hero text centered for a more ceremonial feel */
.hero-copy-premium{
  text-align:center;
  margin-inline:auto;
}
.hero-copy-premium .hero-gold-rule{
  margin-left:auto;
  margin-right:auto;
}
.hero-copy-premium .hero-actions,
.hero-copy-premium .hero-date-line{
  justify-content:center;
}
.hero-copy-premium .hero-lead-premium{
  margin-left:auto;
  margin-right:auto;
}

/* Figure captions and image notes centered across the site */
figcaption,
.history-gallery figcaption,
.premium-photo figcaption{
  text-align:center !important;
}
.history-gallery figure{
  text-align:center;
}
.history-gallery figure img{
  margin-left:auto;
  margin-right:auto;
}

/* Small decorative glass sheen on cards */
.history-card,
.program-card,
.support-card,
.bank-support-card,
.product-panel,
.payment-panel,
.premium-form,
.memory-form,
.closing-card{
  position:relative;
  overflow:hidden;
}
.history-card::before,
.program-card::before,
.support-card::before,
.bank-support-card::before,
.product-panel::before,
.payment-panel::before,
.premium-form::before,
.memory-form::before,
.closing-card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(120deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.03) 28%, transparent 52%);
  opacity:.7;
}

/* Keep giant hero titles on one line only when enough space */
@media (min-width: 1200px){
  .page-hero .one-line-title{
    white-space:nowrap;
  }
}
@media (max-width: 1199px){
  .page-hero .one-line-title{
    white-space:normal;
  }
}

/* Mobile stays readable */
@media (max-width: 820px){
  .page-hero::after{
    width:min(270px,52vw);
    opacity:.05;
  }
}

@keyframes subtleSparkle{
  0%{
    opacity:.72;
    transform:translateY(0);
  }
  100%{
    opacity:.95;
    transform:translateY(-6px);
  }
}


/* ===== V5 HERO: BRIGHTER, MORE VIBRANT, MORE FESTIVE ===== */
.hero-premium{
  background:
    linear-gradient(135deg,#0f5fd3 0%, #1a74e8 34%, #77bfff 72%, #f2f9ff 100%) !important;
}

.hero-photo-layer{
  background:
    linear-gradient(100deg,
      rgba(5,59,145,.78) 0%,
      rgba(9,89,196,.72) 26%,
      rgba(28,125,233,.58) 48%,
      rgba(111,197,255,.32) 72%,
      rgba(242,249,255,.82) 100%),
    radial-gradient(circle at 22% 26%, rgba(255,255,255,.20) 0 8%, transparent 28%),
    radial-gradient(circle at 70% 28%, rgba(255,244,200,.18) 0 8%, transparent 26%),
    url("../images/history/hoc-sinh-cam-co.webp") center 48%/cover no-repeat !important;
}

.hero-photo-layer::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 17% 16%, rgba(255,255,255,.85) 0 1.1%, transparent 5%),
    radial-gradient(circle at 29% 22%, rgba(255,255,255,.75) 0 .7%, transparent 4%),
    radial-gradient(circle at 38% 14%, rgba(255,242,199,.80) 0 .9%, transparent 4.5%),
    radial-gradient(circle at 64% 18%, rgba(255,255,255,.72) 0 .9%, transparent 4%),
    radial-gradient(circle at 76% 30%, rgba(255,247,215,.78) 0 1.1%, transparent 5%),
    radial-gradient(circle at 86% 16%, rgba(255,255,255,.68) 0 .8%, transparent 4%);
  opacity:.75;
  filter:blur(.2px);
  animation: heroSparkle 9s ease-in-out infinite alternate;
}

.hero-photo-layer:after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 70% 50%, rgba(255,255,255,.36), transparent 24%),
    radial-gradient(circle at 80% 50%, rgba(255,236,186,.34), transparent 19%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 26%, rgba(255,255,255,.10) 100%);
}

.hero-school-pill{
  background:rgba(255,255,255,.17) !important;
  border-color:rgba(255,255,255,.44) !important;
  box-shadow:0 8px 20px rgba(0,53,124,.12);
}

.hero-kicker{
  color:#ffe6a3 !important;
  text-shadow:0 2px 10px rgba(0,43,102,.20);
}

.hero-copy-premium h1,
.hero-copy-premium h2,
.hero-lead-premium{
  text-shadow:
    0 3px 12px rgba(0,46,109,.18),
    0 1px 0 rgba(255,255,255,.04);
}

.hero-copy-premium h1{
  color:#ffffff !important;
}
.hero-copy-premium h1 span{
  color:#ffe08a !important;
}

.hero-copy-premium h2{
  color:#ffffff !important;
}

.hero-lead-premium{
  color:rgba(255,255,255,.97) !important;
}

.hero-gold-rule{
  background:linear-gradient(90deg,#ffe091,#fff2c7) !important;
  box-shadow:0 0 24px rgba(255,223,142,.38) !important;
}

.hero-date-line strong{
  color:#ffe39a !important;
}
.hero-date-line{
  color:#ffffff !important;
}

.hero-logo-stage{
  min-height:600px;
}

.hero-logo-glass{
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,.98), rgba(244,251,255,.93) 45%, rgba(219,240,255,.84) 100%) !important;
  border:1px solid rgba(255,255,255,.96) !important;
  box-shadow:
    0 34px 85px rgba(7,73,155,.25),
    0 0 0 10px rgba(255,255,255,.12),
    0 0 80px rgba(132,207,255,.30),
    inset 0 0 0 12px rgba(255,255,255,.26),
    inset 0 0 65px rgba(101,180,239,.16) !important;
}

.hero-logo-glass img{
  width:80% !important;
  filter:
    drop-shadow(0 20px 26px rgba(17,70,136,.20))
    drop-shadow(0 0 18px rgba(255,255,255,.35)) !important;
}

.ring-1{
  border-color:rgba(255,255,255,.45) !important;
  box-shadow:
    0 0 55px rgba(255,255,255,.75),
    0 0 26px rgba(118,191,255,.38) !important;
}
.ring-2{
  border-color:rgba(255,255,255,.58) !important;
}

.hero-caption{
  background:rgba(255,255,255,.88) !important;
  border-color:rgba(255,255,255,.96) !important;
  box-shadow:0 15px 34px rgba(22,83,146,.12) !important;
}

.btn-light-premium{
  background:#ffffff !important;
  color:#0b57d0 !important;
  border-color:rgba(255,255,255,.95) !important;
  box-shadow:0 14px 32px rgba(8,79,168,.18) !important;
}
.btn-gold-premium{
  background:linear-gradient(135deg,#ffd76f,#fff0b6) !important;
  color:#7b5300 !important;
  border-color:#ffe29c !important;
  box-shadow:0 14px 32px rgba(137,103,14,.18) !important;
}

@keyframes heroSparkle{
  0%{opacity:.52; transform:translateY(0)}
  100%{opacity:.9; transform:translateY(-8px)}
}

@media(max-width:1000px){
  .hero-premium{
    background:linear-gradient(180deg,#0f63d8 0%, #2f8bf0 52%, #dff2ff 100%) !important;
  }
  .hero-photo-layer{
    background:
      linear-gradient(180deg,
        rgba(7,70,156,.54),
        rgba(13,99,202,.72) 38%,
        rgba(49,152,241,.72) 64%,
        rgba(225,244,255,.92) 100%),
      url("../images/history/hoc-sinh-cam-co.webp") center/cover no-repeat !important;
  }
  .hero-logo-stage{min-height:360px}
}

@media(max-width:560px){
  .hero-photo-layer{
    background:
      linear-gradient(180deg,
        rgba(8,69,157,.42),
        rgba(13,94,194,.74) 34%,
        rgba(43,145,241,.86) 68%,
        rgba(231,246,255,.97) 100%),
      url("../images/history/hoc-sinh-cam-co.webp") center/cover no-repeat !important;
  }
  .hero-school-pill{
    background:rgba(255,255,255,.20) !important;
  }
}


/* ==========================================================
   V8 BRIGHT PREMIUM — NO HOMEPAGE BACKGROUND IMAGE
   ========================================================== */
:root{
  --v8-blue:#0d67d8;
  --v8-blue2:#4ebcf7;
  --v8-sky:#eaf7ff;
  --v8-navy:#123f78;
  --v8-gold:#e6c768;
  --v8-gold2:#fff0b4;
  --v8-paper:#ffffff;
}

/* Safe Vietnamese font */
html,body,button,input,textarea,select,
h1,h2,h3,h4,h5,h6,
.site-header,.main-nav,.nav-link,.school-link,.music-menu-link,
.hero-copy-premium,.section-heading,.history-card,.program-content,
.open-letter-paper{
  font-family:"Segoe UI",Arial,sans-serif !important;
}

/* Header: clean, large enough, no tiny labels */
.site-header{
  min-height:82px;
  background:rgba(255,255,255,.95)!important;
  border-bottom:1px solid rgba(21,102,190,.12)!important;
  box-shadow:0 10px 28px rgba(23,75,135,.07)!important;
  backdrop-filter:blur(14px);
}
.brand strong{font-size:17px!important;color:#123f78}
.brand span{font-size:11px!important;font-weight:700;color:#6f86a3}
.main-nav{gap:13px!important;white-space:nowrap}
.nav-link{
  font-size:16px!important;
  font-weight:800!important;
  letter-spacing:0!important;
  color:#345a88!important;
}
.nav-link.active,.nav-link:hover{color:var(--v8-blue)!important}
.nav-link:after{
  height:3px!important;
  background:linear-gradient(90deg,var(--v8-blue),var(--v8-blue2),var(--v8-gold))!important;
}
.school-link{font-size:12px!important;white-space:nowrap}
.music-menu-link{
  font-size:13px;
  font-weight:900;
  color:#0c5fc8;
  white-space:nowrap;
  padding:8px 10px;
  border:1px solid rgba(13,103,216,.17);
  border-radius:999px;
  background:linear-gradient(135deg,#eef8ff,#fff);
}
.music-menu-link:hover{background:linear-gradient(135deg,#0d67d8,#4ebcf7);color:#fff}

/* HOMEPAGE HERO: graphics only, absolutely no photo background */
.hero-premium{
  min-height:760px!important;
  background:
    radial-gradient(circle at 18% 20%,rgba(255,255,255,.98) 0 4%,transparent 22%),
    radial-gradient(circle at 78% 28%,rgba(255,236,171,.34) 0 4%,transparent 23%),
    radial-gradient(circle at 68% 76%,rgba(77,189,248,.26) 0 8%,transparent 27%),
    linear-gradient(135deg,#0d67d8 0%,#389ce9 38%,#9edfff 67%,#f6fbff 100%)!important;
  isolation:isolate;
}
.hero-graphic-layer{
  position:absolute;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(circle at 14% 20%,rgba(255,255,255,.88) 0 1px,transparent 2px),
    radial-gradient(circle at 28% 14%,rgba(255,231,158,.74) 0 1.2px,transparent 2.4px),
    radial-gradient(circle at 44% 25%,rgba(255,255,255,.70) 0 1px,transparent 2px),
    radial-gradient(circle at 72% 16%,rgba(255,243,204,.80) 0 1.1px,transparent 2.2px),
    radial-gradient(circle at 88% 34%,rgba(255,255,255,.82) 0 1.2px,transparent 2.5px),
    linear-gradient(115deg,transparent 0 46%,rgba(255,255,255,.10) 50%,transparent 54%);
  opacity:.82;
}
.hero-premium:before{
  content:"";
  position:absolute;z-index:0;pointer-events:none;
  width:720px;height:720px;border-radius:50%;
  right:-260px;top:-220px;
  border:1px solid rgba(255,255,255,.24);
  box-shadow:0 0 0 52px rgba(255,255,255,.035),0 0 0 105px rgba(255,255,255,.026);
}
.hero-premium:after{
  content:"";
  position:absolute;z-index:0;pointer-events:none;
  width:650px;height:300px;left:-130px;bottom:-120px;
  border-radius:50%;
  background:radial-gradient(ellipse,rgba(255,219,114,.24),transparent 67%);
}
.hero-grid-premium{position:relative;z-index:2}
.hero-copy-premium{text-align:center!important}
.hero-copy-premium .hero-school-pill{
  color:#fff!important;
  background:rgba(255,255,255,.13)!important;
  border-color:rgba(255,255,255,.30)!important;
}
.hero-kicker{color:#fff0bb!important}
.hero-copy-premium h1{
  font-size:clamp(58px,6.3vw,82px)!important;
  color:#fff!important;
  font-weight:700!important;
  letter-spacing:-.025em!important;
}
.hero-copy-premium h1 span{color:#ffe08d!important}
.hero-copy-premium h2{
  font-size:clamp(30px,3vw,42px)!important;
  color:#fff!important;
  font-weight:700!important;
  white-space:nowrap;
}
.hero-lead-premium{
  max-width:760px!important;
  margin-left:auto!important;margin-right:auto!important;
  color:rgba(255,255,255,.96)!important;
  font-size:18px!important;
}
.hero-gold-rule{margin-left:auto!important;margin-right:auto!important}
.hero-date-line,.hero-actions{justify-content:center!important}
.hero-logo-stage{min-height:500px!important}
.hero-logo-glass{
  width:min(470px,38vw)!important;
  background:
    radial-gradient(circle at 35% 25%,#fff 0%,rgba(247,252,255,.97) 48%,rgba(224,242,255,.84) 100%)!important;
  border-color:rgba(255,255,255,.96)!important;
  box-shadow:
    0 30px 72px rgba(11,70,150,.18),
    0 0 0 14px rgba(255,255,255,.12),
    0 0 80px rgba(255,255,255,.26)!important;
}
.hero-logo-glass img{
  width:82%!important;
  object-fit:contain!important;
  filter:drop-shadow(0 22px 28px rgba(32,82,145,.18))!important;
}

/* All page heroes: bright, distinct, with 65-year watermark */
.page-hero{position:relative;isolation:isolate;overflow:hidden}
.page-hero:before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(circle at 13% 18%,rgba(255,255,255,.92),transparent 19%),
    radial-gradient(circle at 77% 24%,rgba(255,229,154,.20),transparent 20%);
}
.page-hero:after{
  content:"";position:absolute;z-index:0;pointer-events:none;
  width:min(470px,36vw);aspect-ratio:1;right:2%;top:50%;transform:translateY(-50%);
  background:url("../images/logo-65-nam-new.png") center/contain no-repeat;
  opacity:.055!important;
}
.page-hero>.container{position:relative;z-index:2}
.page-history .page-hero{background:linear-gradient(135deg,#edf8ff,#dff2ff 55%,#fffaf0)!important}
.page-program .page-hero{background:linear-gradient(135deg,#e9f7ff,#dbefff 54%,#fff5de)!important}
.page-open-letter .page-hero{background:linear-gradient(135deg,#fff9ed,#f5fbff 54%,#e7f5ff)!important}
.page-register .page-hero{background:linear-gradient(135deg,#eef9ff,#e1f2ff 54%,#f9fcff)!important}
.page-memory .page-hero{background:linear-gradient(135deg,#f1fbf7,#e7f7ef 50%,#edf9ff)!important}
.page-contact .page-hero{background:linear-gradient(135deg,#eaf6ff,#ddefff 54%,#f8fcff)!important}

/* Moderate, balanced titles; one line where reasonable */
.page-hero h1,.page-hero .one-line-title{
  font-size:clamp(42px,4.2vw,62px)!important;
  font-weight:800!important;
  color:#0e427d!important;
  letter-spacing:-.018em!important;
}
.section-heading h2{
  font-size:clamp(31px,3vw,44px)!important;
  line-height:1.12!important;
  font-weight:800!important;
}
.program-content h2,.support-card h2,.transfer-heading h2,.address-grid h2{
  font-size:clamp(27px,2.5vw,36px)!important;
  font-weight:800!important;
}
@media(min-width:1200px){
  .page-hero h1,.page-hero .one-line-title,
  .section-heading h2,.program-content h2,
  .support-card h2,.transfer-heading h2,.address-grid h2{
    white-space:nowrap!important;
  }
}
p,td,li,label,figcaption,blockquote{white-space:normal}

/* Image frame system */
.premium-photo,.history-gallery figure,.product-panel,
.bank-support-card .qr,.bank-duo-content img{
  border:1px solid rgba(21,108,196,.20)!important;
  outline:4px solid rgba(255,255,255,.75);
  outline-offset:-8px;
  box-shadow:
    0 18px 42px rgba(30,82,143,.09),
    0 0 0 1px rgba(231,196,102,.20)!important;
}
.premium-photo img,.history-gallery figure img,.product-panel img{
  border:1px solid rgba(230,198,104,.24);
  transition:transform .34s ease;
}
.premium-photo:hover img,.history-gallery figure:hover img,.product-panel:hover img{
  transform:scale(1.012);
}
figcaption{font-size:15px!important;text-align:center!important;color:#6f86a3!important}

/* THƯ NGỎ */
.open-letter-section{
  background:
    radial-gradient(circle at 84% 16%,rgba(229,199,104,.10),transparent 18%),
    linear-gradient(135deg,#fffaf0,#f8fcff 58%,#edf8ff)!important;
}
.open-letter-wrap{max-width:1040px}
.letter-logo{width:160px;margin:0 auto 28px;filter:drop-shadow(0 16px 26px rgba(32,82,145,.13))}
.open-letter-paper{
  position:relative;background:#fff;border:1px solid rgba(20,104,190,.17);
  border-radius:20px;padding:clamp(28px,5vw,58px);
  box-shadow:0 22px 55px rgba(24,75,137,.09)
}
.open-letter-paper:after{
  content:"";position:absolute;width:320px;aspect-ratio:1;right:-90px;bottom:-90px;
  background:url("../images/logo-65-nam-new.png") center/contain no-repeat;opacity:.018;pointer-events:none
}
.open-letter-paper p{font-size:18px;line-height:1.78;color:#4f6e94;text-align:justify}
.letter-greeting{text-align:center!important;color:#123f78!important;font-size:20px!important;margin-bottom:30px}
.open-letter-paper h2{
  margin:38px 0 15px;text-align:center;color:#0c5dbf;
  font-size:clamp(24px,2.1vw,30px)!important;
  font-weight:900!important;
}
.letter-event-info{margin:34px 0;border-top:1px solid rgba(13,103,216,.14);border-bottom:1px solid rgba(13,103,216,.14)}
.letter-event-info>div{display:grid;grid-template-columns:155px 1fr;gap:20px;padding:14px 0;border-bottom:1px solid rgba(13,103,216,.10)}
.letter-event-info>div:last-child{border-bottom:0}
.letter-event-info span{font-weight:900;color:#0d67d8}
.letter-event-info strong{color:#385e88}
.open-letter-paper blockquote{
  margin:32px 0;padding:23px 28px;text-align:center;color:#345a82;
  background:linear-gradient(135deg,#fff9e9,#f4fbff);border-left:4px solid #e6c768
}
.letter-closing{text-align:center!important;color:#0c5dbf!important;font-size:21px!important}

/* Music control homepage */
.home-music-control{
  position:fixed;right:16px;bottom:16px;z-index:260;padding:7px;
  border-radius:999px;background:rgba(255,255,255,.95);
  border:1px solid rgba(13,103,216,.16);box-shadow:0 14px 34px rgba(22,70,127,.16)
}
.home-music-control button{border:0;background:transparent;display:flex;align-items:center;gap:9px;min-height:42px;color:#174b7b}
.music-icon{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#0d67d8,#52c4f7);color:#fff}
.music-text{font-size:13px;font-weight:800}
.music-wave{height:18px;display:flex;align-items:flex-end;gap:2px}
.music-wave i{width:2px;height:5px;background:#0d67d8;border-radius:2px}
.home-music-control.playing .music-wave i{animation:v8bars .75s ease-in-out infinite alternate}
.home-music-control.playing .music-wave i:nth-child(2){height:11px;animation-delay:.12s}
.home-music-control.playing .music-wave i:nth-child(3){height:8px;animation-delay:.24s}
.home-music-control.playing .music-wave i:nth-child(4){height:13px;animation-delay:.36s}
@keyframes v8bars{from{transform:scaleY(.45)}to{transform:scaleY(1.15)}}

/* Responsive */
@media(max-width:1199px){
  .main-nav{white-space:normal}
  .page-hero h1,.page-hero .one-line-title,.section-heading h2,
  .program-content h2,.support-card h2,.transfer-heading h2,.address-grid h2{
    white-space:normal!important;
  }
  .hero-copy-premium h2{white-space:normal}
}
@media(max-width:1000px){
  .hero-grid-premium{grid-template-columns:1fr!important;text-align:center}
  .hero-logo-stage{order:-1;min-height:330px!important}
  .hero-logo-glass{width:min(320px,70vw)!important}
}
@media(max-width:560px){
  .hero-premium{min-height:auto!important;padding:38px 0 48px!important}
  .hero-copy-premium h1{font-size:52px!important}
  .hero-copy-premium h2{font-size:29px!important}
  .hero-lead-premium{font-size:17px!important}
  .page-hero h1,.page-hero .one-line-title{font-size:39px!important}
  .letter-event-info>div{grid-template-columns:1fr;gap:4px}
  .open-letter-paper p{font-size:17px;text-align:left}
  .music-text{display:none}
}
@media(prefers-reduced-motion:reduce){
  *{animation-duration:.001ms!important;transition-duration:.001ms!important}
  .home-music-control .music-wave i{animation:none!important}
  .premium-photo:hover img,.history-gallery figure:hover img,.product-panel:hover img{transform:none!important}
}


/* ============================================================
   V9 — FINAL USER FIXES
   Red compact header, clearer brand, smaller nav, stylized intro
   ============================================================ */

/* Compact ruby-red header */
.site-header{
  min-height:68px !important;
  padding:7px clamp(14px,2.2vw,34px) !important;
  background:linear-gradient(90deg,#e31b2f 0%,#c90e25 48%,#a9001d 100%) !important;
  border-bottom:1px solid rgba(255,228,169,.42) !important;
  box-shadow:0 8px 24px rgba(113,0,18,.18) !important;
  backdrop-filter:blur(12px);
}

/* Brand: smaller but much clearer */
.brand{
  gap:9px !important;
  flex:0 0 auto;
  min-width:0 !important;
}
.brand img{
  width:45px !important;
  height:45px !important;
  object-fit:contain;
}
.brand strong{
  display:block;
  color:#ffffff !important;
  font-size:14.5px !important;
  line-height:1.08 !important;
  font-weight:900 !important;
  letter-spacing:.005em !important;
  white-space:nowrap;
  text-shadow:0 1px 1px rgba(91,0,11,.22);
}
.brand span{
  display:block;
  margin-top:3px !important;
  color:#ffe8ac !important;
  font-size:9.8px !important;
  line-height:1.1 !important;
  font-weight:800 !important;
  letter-spacing:.055em !important;
  white-space:nowrap;
}

/* Seven menu items only: slim and elegant */
.main-nav{
  gap:clamp(9px,1.05vw,16px) !important;
  white-space:nowrap !important;
  align-items:center !important;
}
.nav-link{
  padding:17px 0 15px !important;
  color:rgba(255,255,255,.94) !important;
  font-size:13.6px !important;
  line-height:1 !important;
  font-weight:800 !important;
  letter-spacing:.004em !important;
  text-shadow:0 1px 1px rgba(90,0,10,.16);
}
.nav-link:hover,
.nav-link.active{
  color:#fff3bf !important;
}
.nav-link:after{
  bottom:7px !important;
  height:2px !important;
  background:linear-gradient(90deg,#ffe69b,#ffffff,#ffe69b) !important;
}
.menu-btn{
  color:#fff !important;
}

/* Prevent former removed controls from taking space even if cached markup appears */
.music-menu-link,
.school-link,
.school-return{
  display:none !important;
}

/* History hero lead: clearer, bolder, lightly stylized */
.page-history .history-hero-lead{
  max-width:980px !important;
  margin:16px auto 0 !important;
  color:#0b4f97 !important;
  font-size:19px !important;
  line-height:1.68 !important;
  font-weight:750 !important;
  font-style:italic !important;
  letter-spacing:.004em !important;
  text-align:center !important;
  text-shadow:0 1px 0 rgba(255,255,255,.72);
}
.page-history .history-hero-lead::first-letter{
  font-size:1.12em;
  font-weight:900;
}

/* Contact heading after removing unwanted subheading */
.page-contact .door-contact > .container > .section-heading{
  text-align:center;
  max-width:760px;
  margin-left:auto;
  margin-right:auto;
  margin-bottom:28px;
}
.page-contact .door-contact > .container > .section-heading > p{
  font-size:18px !important;
  font-weight:900 !important;
  color:#0c5ab8 !important;
  letter-spacing:.12em;
}
.page-contact .door-contact > .container > .section-heading .gold-line{
  margin-left:auto;
  margin-right:auto;
}

/* Keep the support cards balanced after removing the extra line */
.registration-support-grid{
  margin-top:8px !important;
}

/* Compact header on medium screens */
@media(max-width:1320px){
  .site-header{
    padding-left:12px !important;
    padding-right:12px !important;
  }
  .brand strong{font-size:13px !important}
  .brand span{font-size:9px !important}
  .brand img{width:42px !important;height:42px !important}
  .main-nav{gap:9px !important}
  .nav-link{font-size:12.5px !important}
}

/* Switch to hamburger before the navigation becomes crowded */
@media(max-width:1120px){
  .menu-btn{
    display:block !important;
    background:rgba(255,255,255,.12) !important;
    border:1px solid rgba(255,255,255,.30) !important;
    color:#fff !important;
  }
  .main-nav{
    display:none !important;
    position:absolute;
    top:68px;
    left:0;
    right:0;
    flex-direction:column;
    align-items:stretch !important;
    gap:0 !important;
    padding:12px 18px 18px;
    background:linear-gradient(180deg,#c90e25,#a9001d) !important;
    box-shadow:0 18px 30px rgba(82,0,12,.18);
    white-space:normal !important;
  }
  .main-nav.open{display:flex !important}
  .nav-link{
    font-size:16px !important;
    padding:13px 4px !important;
    border-bottom:1px solid rgba(255,255,255,.12);
  }
  .nav-link:after{display:none}
}

/* Mobile brand */
@media(max-width:560px){
  .site-header{min-height:62px !important}
  .brand img{width:39px !important;height:39px !important}
  .brand strong{
    font-size:11.5px !important;
    max-width:245px;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .brand span{font-size:8.4px !important}
  .main-nav{top:62px}
  .page-history .history-hero-lead{
    font-size:17px !important;
    line-height:1.62 !important;
    font-style:normal !important;
  }
}


/* ============================================================
   V10 — FORM + GOOGLE SHEETS + SAVED VISUAL FIXES
   ============================================================ */

/* Long homepage headings must stay inside their section boxes */
.fit-box-title{
  max-width:100%;
  width:100%;
  margin-left:auto!important;
  margin-right:auto!important;
  overflow-wrap:normal;
  word-break:normal;
  text-wrap:balance;
}
.history-preview-title,
.memory-preview-title{
  font-size:clamp(30px,3.1vw,44px)!important;
  line-height:1.12!important;
}
.door-history .section-heading,
.door-memory .section-heading{
  overflow:hidden;
  padding-left:clamp(16px,3vw,34px);
  padding-right:clamp(16px,3vw,34px);
}
@media(min-width:1240px){
  .history-preview-title,
  .memory-preview-title{
    white-space:nowrap!important;
    font-size:clamp(29px,2.7vw,40px)!important;
  }
}

/* Open-letter greeting: one line on desktop, graceful wrap on smaller screens */
.open-letter-wrap{max-width:1280px!important}
.letter-greeting{
  font-size:clamp(14px,1.25vw,18px)!important;
  font-weight:900!important;
}
@media(min-width:1120px){
  .letter-greeting{
    white-space:nowrap!important;
  }
}
@media(max-width:1119px){
  .letter-greeting{white-space:normal!important}
}

/* Reduce glare around registration heading and make text clearer */
.page-register .section-heading,
.page-register .form-title{
  text-shadow:none!important;
}
.page-register .section-heading > p,
.page-register .form-title > p{
  color:#0b4e96!important;
  background:rgba(255,255,255,.86)!important;
  border:1px solid rgba(13,103,216,.16)!important;
  box-shadow:0 6px 16px rgba(22,79,140,.06)!important;
  filter:none!important;
}
.page-register .section-heading::before,
.page-register .section-heading::after,
.page-register .form-title::before,
.page-register .form-title::after{
  opacity:.16!important;
  filter:blur(18px)!important;
}

/* Registration form */
.premium-form{
  scroll-margin-top:90px;
}
.premium-form .form-title h2{
  color:#0e4d94!important;
  font-weight:900!important;
  letter-spacing:.01em;
}
.form-grid .full-span{
  grid-column:1 / -1;
}
.attendance-grid{
  margin-top:18px;
}
.attendance-grid .full-span{
  font-size:15px;
  line-height:1.45;
}
.attendance-grid .full-span input{
  margin-top:4px;
}

.shirt-size-fieldset{
  margin:20px 0 18px;
  padding:18px;
  border:1px solid rgba(13,103,216,.18);
  border-radius:16px;
  background:linear-gradient(135deg,#f6fbff,#fff);
}
.shirt-size-fieldset legend{
  padding:0 8px;
  color:#0c58b1;
  font-weight:900;
  font-size:17px;
}
.field-help{
  margin:0 0 13px;
  color:#657f9f;
  font-size:14px;
}
.shirt-size-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
}
.shirt-size-grid label{
  text-align:center;
  font-size:14px;
  font-weight:800;
  color:#315d8e;
}
.shirt-size-grid input{
  text-align:center;
}
.shirt-total{
  margin-top:13px;
  padding-top:12px;
  border-top:1px solid rgba(13,103,216,.12);
  color:#446b98;
  text-align:right;
}
.shirt-total strong{
  color:#0d67d8;
  font-size:19px;
}

.form-status{
  min-height:22px;
  margin:12px 0 4px;
  padding:0;
  font-size:14px;
  font-weight:700;
  line-height:1.5;
}
.form-status.sending{
  color:#0c58b1;
}
.form-status.success{
  color:#167846;
  background:#eefaf3;
  border:1px solid #cbead8;
  padding:10px 12px;
  border-radius:10px;
}
.form-status.error{
  color:#a51b2e;
  background:#fff4f4;
  border:1px solid #f0c8ce;
  padding:10px 12px;
  border-radius:10px;
}
.submit-btn:disabled{
  opacity:.62;
  cursor:not-allowed;
  transform:none!important;
}

/* Size chart and registration QR block */
.size-chart-block,
.registration-qr-block{
  margin-top:17px;
  padding-top:16px;
  border-top:1px solid rgba(13,103,216,.14);
}
.size-chart-block h4,
.registration-qr-block h4{
  margin:0 0 10px;
  color:#0d57ad;
  font-size:15px;
  font-weight:900;
  letter-spacing:.04em;
}
.size-chart-image{
  width:100%;
  border:1px solid rgba(13,103,216,.16)!important;
  border-radius:12px!important;
  background:#fff;
  padding:5px;
}
.size-chart-block p,
.registration-qr-block p{
  margin:9px 0 0;
  color:#6b839f;
  font-size:13px;
  line-height:1.5;
}
.qr-registration-placeholder{
  width:150px;
  height:150px;
  margin:0 auto;
  border:1px dashed rgba(13,103,216,.28);
  border-radius:12px;
  background:
    linear-gradient(45deg,#f2f7fb 25%,transparent 25%,transparent 75%,#f2f7fb 75%),
    linear-gradient(45deg,#f2f7fb 25%,#fff 25%,#fff 75%,#f2f7fb 75%);
  background-size:18px 18px;
  background-position:0 0,9px 9px;
  display:grid;
  place-items:center;
}
.qr-registration-placeholder span{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#fff;
  color:#0d67d8;
  font-weight:900;
  font-size:22px;
  box-shadow:0 8px 18px rgba(20,74,136,.10);
}
.copy-registration-link{
  margin-top:11px;
  min-height:38px;
  padding:0 12px;
  border:1px solid rgba(13,103,216,.22);
  border-radius:9px;
  background:#fff;
  color:#0d5dbd;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}

/* Avoid label overflow and preserve mobile readability */
.premium-form label{
  min-width:0;
}
.premium-form input,
.premium-form select,
.premium-form textarea{
  max-width:100%;
}
@media(max-width:780px){
  .shirt-size-grid{
    grid-template-columns:repeat(2,1fr);
  }
  .shirt-size-grid label:last-child{
    grid-column:1 / -1;
    max-width:50%;
    width:100%;
    margin:auto;
  }
}
@media(max-width:520px){
  .shirt-size-grid{
    grid-template-columns:1fr 1fr;
  }
  .attendance-grid .full-span{
    font-size:14px;
  }
}


/* ============================================================
   V12 — RESTORE V10 + ONLY THREE USER-REQUESTED FIXES
   ============================================================ */

/* FIX 1: QR đăng ký đã bị bỏ khỏi HTML. Không thay đổi QR BIDV. */

/* FIX 2: Phần "KÝ ỨC ĐƯỢC GỬI VỀ" — giữ nguyên toàn bộ chữ V10,
   chỉ thu chữ và đệm khung để mọi chữ nằm gọn trong ô vàng. */
.door-approved .section-heading.heading-cream{
  box-sizing:border-box !important;
  width:min(100%, 980px) !important;
  max-width:980px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding:24px clamp(20px, 3.5vw, 42px) 26px !important;
  overflow:visible !important;
}
.door-approved .section-heading.heading-cream > p:first-of-type{
  margin-left:auto !important;
  margin-right:auto !important;
  max-width:100% !important;
  white-space:normal !important;
}
.door-approved .section-heading.heading-cream h2{
  width:100% !important;
  max-width:100% !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding:0 !important;
  font-size:clamp(30px, 3.3vw, 46px) !important;
  line-height:1.12 !important;
  white-space:normal !important;
  overflow-wrap:break-word !important;
  text-align:left !important;
}
.door-approved .section-heading.heading-cream .heading-lead{
  width:100% !important;
  max-width:100% !important;
  margin-left:auto !important;
  margin-right:auto !important;
  white-space:normal !important;
  overflow-wrap:break-word !important;
}
@media(max-width:700px){
  .door-approved .section-heading.heading-cream{
    padding:21px 18px 23px !important;
  }
  .door-approved .section-heading.heading-cream h2{
    font-size:clamp(27px, 7vw, 36px) !important;
  }
}

/* FIX 3: Trang chủ — bỏ vùng sáng gây lóa phía sau dòng
   "KỶ NIỆM 65 NĂM THÀNH LẬP TRƯỜNG", giữ nguyên toàn bộ nội dung V10. */
.page-home .hero-premium{
  background:
    radial-gradient(circle at 78% 28%,rgba(255,236,171,.22) 0 3%,transparent 22%),
    radial-gradient(circle at 68% 76%,rgba(77,189,248,.20) 0 7%,transparent 27%),
    linear-gradient(135deg,#0d67d8 0%,#389ce9 38%,#9edfff 67%,#f6fbff 100%) !important;
}
.page-home .hero-graphic-layer{
  background:
    radial-gradient(circle at 72% 16%,rgba(255,243,204,.52) 0 1px,transparent 2px),
    radial-gradient(circle at 88% 34%,rgba(255,255,255,.55) 0 1.1px,transparent 2.3px),
    linear-gradient(115deg,transparent 0 56%,rgba(255,255,255,.055) 63%,transparent 70%) !important;
  opacity:.60 !important;
}
.page-home .hero-kicker{
  color:#fff2bf !important;
  font-weight:900 !important;
  text-shadow:0 2px 7px rgba(0,48,112,.34) !important;
  position:relative;
  z-index:3;
}


/* ============================================================
   V13 — SAVED TYPOGRAPHY FIXES ONLY
   ============================================================ */

/* Lỗi 1: Khối số 02 – chữ phải nằm gọn hoàn toàn trong ô vàng,
   không thò ra ngoài, không mất chữ. */
.door-return .section-heading.heading-cream{
  box-sizing:border-box !important;
  width:100% !important;
  max-width:100% !important;
  overflow:hidden !important;
  padding-left:clamp(18px,3vw,34px) !important;
  padding-right:clamp(18px,3vw,34px) !important;
}
.door-return .section-heading.heading-cream h2{
  width:100% !important;
  max-width:100% !important;
  margin-left:auto !important;
  margin-right:auto !important;
  font-size:clamp(25px,2.35vw,34px) !important;
  line-height:1.15 !important;
  letter-spacing:-.012em !important;
  white-space:normal !important;
  overflow-wrap:break-word !important;
  word-break:normal !important;
  text-wrap:balance;
}

/* Lỗi 2: Khối số 03 / DÒNG CHẢY 65 NĂM –
   tiêu đề nhỏ hơn để vừa ô và tuyệt đối không bị cắt chữ. */
.door-history .section-heading.heading-ivory{
  box-sizing:border-box !important;
  overflow:hidden !important;
  padding-left:clamp(18px,3vw,36px) !important;
  padding-right:clamp(18px,3vw,36px) !important;
}
.door-history .section-heading.heading-ivory .history-preview-title{
  width:100% !important;
  max-width:100% !important;
  margin-left:auto !important;
  margin-right:auto !important;
  font-size:clamp(26px,2.45vw,36px) !important;
  line-height:1.14 !important;
  letter-spacing:-.012em !important;
  white-space:normal !important;
  overflow-wrap:break-word !important;
  word-break:normal !important;
  text-wrap:balance;
}

/* Lỗi 3: Tiêu đề mốc 1961–1962 phải nằm trên một dòng trên desktop. */
@media(min-width:1180px){
  .page-history #1961 .history-card h2{
    width:100% !important;
    max-width:100% !important;
    font-size:clamp(22px,1.72vw,27px) !important;
    line-height:1.18 !important;
    letter-spacing:-.012em !important;
    white-space:nowrap !important;
    overflow:visible !important;
  }
}

/* Tablet/mobile: không ép 1 dòng nếu gây tràn; ưu tiên không mất chữ. */
@media(max-width:1179px){
  .page-history #1961 .history-card h2{
    white-space:normal !important;
    font-size:clamp(23px,4.7vw,31px) !important;
    overflow-wrap:break-word !important;
    word-break:normal !important;
  }
}

/* Mobile: thu thêm chữ trong hai ô đầu để không bị cắt. */
@media(max-width:650px){
  .door-return .section-heading.heading-cream h2,
  .door-history .section-heading.heading-ivory .history-preview-title{
    font-size:clamp(24px,6.6vw,31px) !important;
    line-height:1.17 !important;
  }
}


/* ============================================================
   V14 — THU NHỎ TOÀN BỘ TIÊU ĐỀ MỐC 1961–1962
   Mục tiêu: 1 dòng trên desktop, tuyệt đối không cắt/mất chữ
   ============================================================ */
@media(min-width:1180px){
  .page-history #1961 .history-card{
    overflow:visible !important;
  }

  .page-history #1961 .history-card h2{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    margin:6px 0 13px !important;
    padding:0 4px 0 0 !important;

    /* Thu nhỏ cả câu, không chỉ một phần */
    font-size:clamp(16px,1.32vw,20px) !important;
    line-height:1.22 !important;
    font-weight:900 !important;
    letter-spacing:-.018em !important;

    /* Giữ đúng 1 dòng và không cắt chữ */
    white-space:nowrap !important;
    overflow:visible !important;
    text-overflow:clip !important;
    word-break:normal !important;
  }
}

/* Ở màn hình nhỏ hơn: ưu tiên không mất chữ hơn việc ép 1 dòng */
@media(max-width:1179px){
  .page-history #1961 .history-card h2{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    font-size:clamp(20px,4.1vw,28px) !important;
    line-height:1.18 !important;
    letter-spacing:-.012em !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
    overflow-wrap:break-word !important;
    word-break:normal !important;
  }
}


/* ============================================================
   V15 — MOBILE FIRST / SMARTPHONE OPTIMIZATION
   Giữ nguyên nội dung, màu sắc, logo, chức năng V14.
   ============================================================ */

/* Safe global bounds */
html,body{max-width:100%;overflow-x:hidden}
img,svg,video,canvas,iframe{max-width:100%;height:auto}
input,select,textarea,button{max-width:100%;box-sizing:border-box}

@media(max-width:820px){
  :root{--mobile-gutter:16px}
  html{scroll-padding-top:70px}
  body{font-size:16px;line-height:1.58;-webkit-text-size-adjust:100%;text-size-adjust:100%}
  .container{width:calc(100% - (var(--mobile-gutter) * 2))!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important}

  /* HEADER + MENU */
  .site-header{
    min-height:64px!important;
    padding:8px 12px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
    position:sticky!important;
    top:0!important;
    z-index:1000!important;
  }
  .brand{min-width:0!important;max-width:calc(100% - 54px)!important;gap:8px!important;display:flex!important;align-items:center!important}
  .brand img{width:38px!important;height:38px!important;flex:0 0 38px!important}
  .brand>div{min-width:0!important;overflow:hidden!important}
  .brand strong{
    display:block!important;
    font-size:11px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    max-width:100%!important;
  }
  .brand span{font-size:8.5px!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;display:block!important}
  .menu-btn{
    display:grid!important;
    place-items:center!important;
    width:44px!important;height:44px!important;min-width:44px!important;
    border-radius:10px!important;
    font-size:26px!important;
    line-height:1!important;
    flex:0 0 44px!important;
  }
  .main-nav{
    display:none!important;
    position:fixed!important;
    left:0!important;right:0!important;top:64px!important;
    max-height:calc(100dvh - 64px)!important;
    overflow-y:auto!important;
    padding:10px 16px 18px!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:0!important;
    white-space:normal!important;
    overscroll-behavior:contain;
  }
  .main-nav.open{display:flex!important}
  .nav-link{
    display:flex!important;
    align-items:center!important;
    min-height:48px!important;
    padding:12px 6px!important;
    font-size:16px!important;
    line-height:1.25!important;
    white-space:normal!important;
    border-bottom:1px solid rgba(255,255,255,.13)!important;
  }
  .nav-link:after{display:none!important}
  body.mobile-nav-open{overflow:hidden!important}

  /* SECTION RHYTHM */
  .door{padding:44px 0!important}
  .page-hero{padding:38px 0 34px!important;min-height:auto!important}
  .page-hero:after{width:210px!important;right:-42px!important;opacity:.035!important}
  .section-heading{padding:16px!important;border-radius:18px!important;max-width:100%!important;overflow:visible!important}
  .section-heading h1,.section-heading h2,.page-hero h1,.page-hero .one-line-title,
  .program-content h2,.support-card h2,.form-title h2,.transfer-heading h2,.address-grid h2,
  .history-card h2,.memory-door h3,.closing-card h1,.closing-card h2{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    max-width:100%!important;
  }
  .page-hero h1,.page-hero .one-line-title{font-size:clamp(30px,8vw,40px)!important;line-height:1.1!important}
  .section-heading h2{font-size:clamp(27px,7vw,35px)!important;line-height:1.14!important}
  .section-heading>p,.heading-lead,.page-hero p{font-size:16px!important;line-height:1.6!important}

  /* HOME HERO */
  .hero-premium{min-height:auto!important;padding:28px 0 44px!important}
  .hero-grid-premium,.hero-grid{grid-template-columns:1fr!important;gap:18px!important;text-align:center!important}
  .hero-logo-stage,.hero-emblem{order:-1!important;min-height:255px!important}
  .hero-logo-glass{width:min(245px,72vw)!important;margin:auto!important}
  .hero-logo-glass img{width:82%!important}
  .hero-copy-premium h1,.hero-copy h1{font-size:clamp(46px,14vw,62px)!important;line-height:.98!important;white-space:normal!important}
  .hero-copy-premium h2,.hero-copy h2{font-size:clamp(24px,7vw,31px)!important;line-height:1.15!important;white-space:normal!important}
  .hero-lead-premium,.hero-lead{font-size:16px!important;line-height:1.62!important;max-width:100%!important}
  .hero-date-line{flex-wrap:wrap!important;justify-content:center!important;gap:6px 12px!important}
  .hero-actions{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;width:100%!important}
  .hero-actions .btn,.event-buttons .btn,.btn{min-height:48px!important;max-width:100%!important;padding:12px 16px!important;font-size:15px!important}

  /* COUNTDOWN */
  .countdown{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .countdown>div{padding:16px 8px!important;border-radius:15px!important;min-width:0!important}
  .countdown strong{font-size:38px!important}
  .countdown span{font-size:12px!important;letter-spacing:.07em!important}

  /* HOME PREVIEW / CARDS */
  .split-story,.register-layout,.address-grid,.program-card,.memory-doors,.memory-form-grid,.approved-placeholder,
  .support-grid,.registration-support-grid,.transfer-duo,.bank-duo-content,.footer-inner,.story-grid{
    grid-template-columns:1fr!important;
  }
  .timeline-preview{grid-template-columns:1fr!important}
  .event-teaser{flex-direction:column!important;align-items:stretch!important;gap:16px!important}
  .memory-door,.postcard,.support-card,.program-card,.history-card,.premium-form,.memory-form,.product-panel,.payment-panel,.bank-support-card{
    border-radius:18px!important;
  }
  .memory-door{padding:20px!important}
  .memory-door h3{font-size:27px!important}
  .memory-door p{font-size:17px!important}

  /* HISTORY */
  .history-timeline{padding-left:24px!important}
  .history-timeline:before{left:6px!important;width:3px!important}
  .history-dot{left:-25px!important;top:18px!important;width:16px!important;height:16px!important;border-width:4px!important}
  .history-node{margin-bottom:24px!important}
  .history-year{font-size:18px!important;padding:6px 11px!important}
  .history-card{padding:18px!important}
  .history-card h2{font-size:clamp(23px,6.2vw,30px)!important;line-height:1.18!important;margin:7px 0 10px!important}
  .history-card>p{font-size:16px!important;line-height:1.62!important}
  .history-gallery.cols-2,.history-gallery.cols-1{grid-template-columns:1fr!important}
  .history-gallery figure{padding:6px!important;border-radius:13px!important}
  .history-gallery img{max-height:none!important;width:100%!important;height:auto!important;object-fit:contain!important}
  .history-gallery figcaption{font-size:13px!important;line-height:1.45!important}
  .page-history #1961 .history-card h2{white-space:normal!important;font-size:clamp(20px,5.2vw,26px)!important}

  /* PROGRAM: transform tables into readable mobile cards */
  .program-card{padding:18px!important;gap:16px!important}
  .date-medallion{width:128px!important;height:auto!important;min-height:120px!important;padding:16px!important;margin:0 auto!important}
  .date-medallion strong{font-size:56px!important}
  .program-content h2{font-size:clamp(25px,6.6vw,32px)!important;text-align:center!important}
  .program-content>p{font-size:16px!important}
  .table-scroll{overflow:visible!important;border-radius:0!important}
  .program-table,.registration-table,.program-table tbody,.registration-table tbody{display:block!important;width:100%!important}
  .program-table thead,.registration-table thead{display:none!important}
  .program-table tr,.registration-table tr{
    display:block!important;width:100%!important;
    margin:0 0 10px!important;padding:12px!important;
    border:1px solid #dbe9f5!important;border-radius:13px!important;background:#fff!important;
  }
  .program-table td,.registration-table td{
    display:block!important;width:100%!important;min-width:0!important;
    padding:3px 0!important;border:0!important;font-size:15px!important;line-height:1.5!important;
  }
  .program-table td:first-child{
    width:auto!important;display:inline-block!important;
    padding:4px 9px!important;margin-bottom:5px!important;
    border-radius:999px!important;background:#edf7ff!important;color:#0d67d8!important;font-weight:900!important;
  }
  .registration-table td:nth-child(1){text-align:left!important;color:#7d90a8!important;font-size:12px!important}
  .registration-table td:nth-child(3){min-width:0!important;font-weight:800!important;color:#0d67d8!important}

  /* REGISTRATION FORM */
  .register-layout{gap:18px!important}
  .premium-form,.memory-form{padding:18px!important;margin-top:18px!important}
  .form-grid{grid-template-columns:1fr!important;gap:0!important}
  .premium-form label,.memory-form label{font-size:15px!important;line-height:1.45!important;margin-bottom:14px!important}
  .premium-form input,.premium-form select,.premium-form textarea,.memory-form input,.memory-form select,.memory-form textarea{
    min-height:48px!important;font-size:16px!important;padding:12px!important;border-radius:10px!important;
  }
  .premium-form textarea,.memory-form textarea{min-height:110px!important}
  .shirt-size-fieldset{padding:15px!important;margin:16px 0!important}
  .shirt-size-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .shirt-size-grid label:last-child{grid-column:1/-1!important;max-width:none!important}
  .shirt-total{text-align:left!important}
  .size-chart-image{width:100%!important;height:auto!important}
  .register-side{gap:14px!important}
  .product-panel,.payment-panel{padding:15px!important}
  .account-number{font-size:30px!important;overflow-wrap:anywhere!important}
  .account-name{font-size:14px!important;overflow-wrap:anywhere!important}
  .qr{width:min(230px,80vw)!important;margin:auto!important}

  /* MEMORY */
  .memory-form-grid{gap:16px!important}
  .memory-number{right:14px!important;top:14px!important;width:38px!important;height:38px!important}
  .postcard{padding:19px!important}
  .postcard p{font-size:18px!important}
  .door-approved .section-heading.heading-cream{width:100%!important;max-width:100%!important;padding:20px 16px!important}
  .door-approved .section-heading.heading-cream h2{font-size:clamp(25px,6.5vw,32px)!important;text-align:center!important}

  /* CONTACT / BANK */
  .support-card{padding:20px!important}
  .support-card>span{right:14px!important;top:14px!important;width:36px!important;height:36px!important}
  .support-card h2{font-size:25px!important;padding-right:42px!important}
  .support-card>a{font-size:23px!important;overflow-wrap:anywhere!important}
  .transfer-info{grid-template-columns:1fr!important;text-align:center!important;padding:14px!important}
  .transfer-info img,.bank-duo-content img{width:min(210px,70vw)!important;margin:auto!important}
  .bank-duo-content h3,.person-help h3{font-size:26px!important}
  .bank-duo-content p,.person-help>p:last-child{font-size:16px!important}

  /* OPEN LETTER */
  .open-letter-paper{padding:22px 17px!important;border-radius:17px!important}
  .open-letter-paper p{font-size:16px!important;line-height:1.72!important;text-align:left!important}
  .open-letter-paper h2{font-size:clamp(22px,6vw,28px)!important;line-height:1.18!important;white-space:normal!important}
  .letter-greeting{font-size:16px!important;white-space:normal!important;line-height:1.55!important}
  .letter-event-info>div{grid-template-columns:1fr!important;gap:3px!important;padding:12px 0!important}
  .open-letter-paper blockquote{font-size:17px!important;padding:18px 15px!important;margin:24px 0!important}

  /* CLOSING / FOOTER */
  .closing-card{padding:24px 17px!important;border-radius:20px!important}
  .closing-card h1,.closing-card h2{font-size:clamp(28px,7.4vw,38px)!important}
  .closing-card blockquote{font-size:18px!important;line-height:1.58!important}
  .footer-inner{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:15px!important}
  .footer-links{display:flex!important;flex-direction:column!important;gap:8px!important;width:100%!important}
  .footer-links a{min-height:40px!important;display:flex!important;align-items:center!important}

  /* AUDIO CONTROL */
  .home-music-control{right:10px!important;bottom:10px!important;max-width:calc(100vw - 20px)!important}
  .home-music-control button{min-width:44px!important;min-height:44px!important}
}

@media(max-width:390px){
  :root{--mobile-gutter:13px}
  .brand strong{font-size:10.4px!important}
  .brand span{font-size:8px!important}
  .hero-logo-stage,.hero-emblem{min-height:225px!important}
  .hero-logo-glass{width:min(225px,72vw)!important}
  .hero-copy-premium h1,.hero-copy h1{font-size:44px!important}
  .hero-copy-premium h2,.hero-copy h2{font-size:24px!important}
  .countdown strong{font-size:34px!important}
  .history-card{padding:16px!important}
  .program-card,.premium-form,.memory-form,.product-panel,.payment-panel,.support-card{padding:16px!important}
}

@media(prefers-reduced-motion:reduce){
  .main-nav{scroll-behavior:auto!important}
}


/* ============================================================
   V18 — MOBILE COMPACT
   Ưu tiên điện thoại: chữ nhỏ hơn, gọn hơn, không tràn/mất chữ
   ============================================================ */

@media(max-width:820px){
  :root{--mobile-gutter:14px}

  body{
    font-size:14.5px!important;
    line-height:1.54!important;
  }

  .container{
    width:calc(100% - (var(--mobile-gutter) * 2))!important;
  }

  /* HEADER */
  .site-header{
    min-height:58px!important;
    padding:6px 10px!important;
  }
  .brand{
    max-width:calc(100% - 48px)!important;
    gap:7px!important;
  }
  .brand img{
    width:34px!important;
    height:34px!important;
    flex:0 0 34px!important;
  }
  .brand strong{
    font-size:10.2px!important;
    line-height:1.12!important;
    letter-spacing:0!important;
  }
  .brand span{
    font-size:7.5px!important;
    line-height:1.1!important;
  }
  .menu-btn{
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    flex-basis:40px!important;
    font-size:22px!important;
  }
  .main-nav{
    top:58px!important;
    max-height:calc(100dvh - 58px)!important;
    padding:8px 14px 14px!important;
  }
  .nav-link{
    min-height:44px!important;
    padding:10px 5px!important;
    font-size:14px!important;
    line-height:1.2!important;
  }

  /* RHYTHM */
  .door{padding:32px 0!important}
  .page-hero{padding:29px 0 27px!important}
  .section-heading{
    padding:13px!important;
    border-radius:15px!important;
  }
  .chapter-no{
    font-size:11px!important;
    line-height:1!important;
  }
  .section-heading>p:not(.heading-lead),
  .page-hero .eyebrow{
    font-size:11.5px!important;
    line-height:1.35!important;
    letter-spacing:.08em!important;
  }
  .page-hero h1,
  .page-hero .one-line-title{
    font-size:clamp(27px,7.2vw,33px)!important;
    line-height:1.08!important;
  }
  .section-heading h2{
    font-size:clamp(22px,5.9vw,28px)!important;
    line-height:1.13!important;
  }
  .section-heading>p,
  .heading-lead,
  .page-hero p{
    font-size:14px!important;
    line-height:1.55!important;
  }

  /* HOME HERO */
  .hero-premium{padding:22px 0 32px!important}
  .hero-grid-premium,.hero-grid{gap:14px!important}
  .hero-logo-stage,.hero-emblem{min-height:210px!important}
  .hero-logo-glass{width:min(205px,62vw)!important}
  .hero-caption span{font-size:12px!important}
  .hero-caption strong{font-size:10.5px!important}
  .hero-school-pill{
    font-size:10.5px!important;
    padding:7px 10px!important;
  }
  .hero-kicker{
    font-size:11.5px!important;
    line-height:1.3!important;
  }
  .hero-copy-premium h1,.hero-copy h1{
    font-size:clamp(38px,11vw,50px)!important;
    line-height:.98!important;
  }
  .hero-copy-premium h2,.hero-copy h2{
    font-size:clamp(20px,5.5vw,25px)!important;
    line-height:1.12!important;
  }
  .hero-lead-premium,.hero-lead{
    font-size:14px!important;
    line-height:1.56!important;
  }
  .hero-date-line strong{font-size:14px!important}
  .hero-date-line span{font-size:12px!important}
  .hero-actions .btn,.event-buttons .btn,.btn{
    min-height:44px!important;
    padding:10px 13px!important;
    font-size:13px!important;
    line-height:1.2!important;
  }

  /* COUNTDOWN */
  .countdown{gap:8px!important}
  .countdown>div{
    padding:12px 6px!important;
    border-radius:13px!important;
  }
  .countdown strong{font-size:30px!important}
  .countdown span{font-size:10.5px!important}

  /* HOME SECTIONS */
  .story-copy>p,
  .event-teaser>div>p{
    font-size:14px!important;
    line-height:1.55!important;
  }
  .timeline-preview a strong{font-size:16px!important}
  .timeline-preview a span{font-size:12.5px!important}
  .memory-door{padding:16px!important}
  .memory-door>span{font-size:11px!important}
  .memory-door h3{font-size:21px!important}
  .memory-door p{font-size:14px!important;line-height:1.5!important}
  .memory-door strong{font-size:11.5px!important}

  /* CÂU KÝ ỨC: 1 DÒNG TRÊN ĐIỆN THOẠI */
  .memory-preview-title{
    white-space:nowrap!important;
    font-size:clamp(10.5px,3.05vw,12.5px)!important;
    line-height:1.1!important;
    letter-spacing:-.035em!important;
    overflow:visible!important;
    text-overflow:clip!important;
    max-width:100%!important;
  }

  /* HISTORY */
  .history-timeline{padding-left:20px!important}
  .history-timeline:before{left:5px!important}
  .history-dot{left:-21px!important;width:14px!important;height:14px!important}
  .history-node{margin-bottom:19px!important}
  .history-year{
    font-size:14px!important;
    padding:5px 9px!important;
  }
  .history-card{padding:15px!important}
  .history-card h2{
    font-size:clamp(18px,4.8vw,23px)!important;
    line-height:1.16!important;
  }
  .history-card>p{
    font-size:14px!important;
    line-height:1.56!important;
  }
  .history-gallery figcaption{
    font-size:11.5px!important;
    line-height:1.38!important;
  }
  .page-history #1961 .history-card h2{
    font-size:clamp(17px,4.35vw,21px)!important;
    white-space:normal!important;
  }

  /* PROGRAM */
  .program-card{padding:15px!important;gap:12px!important}
  .date-medallion{
    width:105px!important;
    min-height:98px!important;
    padding:12px!important;
  }
  .date-medallion strong{font-size:44px!important}
  .date-medallion span{font-size:11px!important}
  .program-content h2{
    font-size:clamp(20px,5.3vw,25px)!important;
  }
  .program-content>p{
    font-size:14px!important;
    line-height:1.5!important;
  }
  .program-table tr,.registration-table tr{
    margin-bottom:8px!important;
    padding:10px!important;
  }
  .program-table td,.registration-table td{
    font-size:13.5px!important;
    line-height:1.45!important;
  }
  .program-table td:first-child{
    font-size:12px!important;
    padding:3px 8px!important;
  }

  /* FORM: label nhỏ hơn, input vẫn 16px để tránh iOS auto-zoom */
  .premium-form,.memory-form{
    padding:15px!important;
    margin-top:14px!important;
  }
  .form-title>p{font-size:11px!important}
  .form-title h2{font-size:23px!important}
  .premium-form label,.memory-form label{
    font-size:13.5px!important;
    line-height:1.4!important;
    margin-bottom:12px!important;
  }
  .premium-form input,.premium-form select,.premium-form textarea,
  .memory-form input,.memory-form select,.memory-form textarea{
    min-height:44px!important;
    font-size:16px!important;
    padding:10px 11px!important;
  }
  .shirt-size-fieldset{
    padding:13px!important;
    margin:14px 0!important;
  }
  .shirt-size-fieldset legend{font-size:14px!important}
  .field-help{font-size:12px!important}
  .shirt-size-grid label{font-size:12.5px!important}
  .shirt-total{font-size:13px!important}
  .shirt-total strong{font-size:17px!important}
  .product-panel,.payment-panel{padding:13px!important}
  .product-panel h3,.payment-panel h3{font-size:20px!important}
  .product-panel>p,.payment-panel>p{font-size:12px!important}
  .size-chart-block h4{font-size:13px!important}
  .size-chart-block p{font-size:11.5px!important}
  .account-number{font-size:25px!important}
  .account-name{font-size:12.5px!important}
  .qr{width:min(195px,66vw)!important}

  /* MEMORY */
  .memory-form h2{font-size:22px!important}
  .memory-form>p{font-size:14px!important}
  .postcard{padding:16px!important}
  .postcard p{font-size:15px!important}
  .door-approved .section-heading.heading-cream{
    padding:16px 13px!important;
  }
  .door-approved .section-heading.heading-cream h2{
    font-size:clamp(21px,5.5vw,26px)!important;
  }
  .door-approved .section-heading.heading-cream .heading-lead{
    font-size:13.5px!important;
  }

  /* CONTACT */
  .support-card{padding:16px!important}
  .support-card>span{
    width:32px!important;
    height:32px!important;
  }
  .support-card h2{
    font-size:21px!important;
    padding-right:36px!important;
  }
  .support-card>a{
    font-size:19px!important;
  }
  .support-card p{font-size:13.5px!important}
  .transfer-heading h2{font-size:22px!important}
  .transfer-heading p{font-size:13.5px!important}
  .bank-duo-content h3,.person-help h3{font-size:21px!important}
  .bank-duo-content p,.person-help>p:last-child{font-size:13.5px!important}
  .transfer-info img,.bank-duo-content img{
    width:min(185px,62vw)!important;
  }

  /* THƯ NGỎ */
  .open-letter-paper{
    padding:18px 14px!important;
  }
  .open-letter-paper p{
    font-size:14px!important;
    line-height:1.62!important;
  }
  .open-letter-paper h2{
    font-size:clamp(19px,5vw,23px)!important;
  }
  .letter-greeting{
    font-size:13px!important;
    line-height:1.45!important;
  }
  .letter-event-info span{font-size:12px!important}
  .letter-event-info strong{font-size:13.5px!important}
  .open-letter-paper blockquote{
    font-size:15px!important;
    padding:15px 13px!important;
  }
  .letter-closing{font-size:16px!important}

  /* FOOTER */
  .closing-card{padding:19px 14px!important}
  .closing-card>p{font-size:11.5px!important}
  .closing-card h1,.closing-card h2{
    font-size:clamp(22px,5.8vw,28px)!important;
  }
  .closing-card blockquote{
    font-size:15px!important;
    line-height:1.5!important;
  }
  .footer-brand strong{font-size:12px!important}
  .footer-brand p{font-size:11px!important}
  .footer-links a{
    min-height:36px!important;
    font-size:12px!important;
  }

  /* AUDIO */
  .home-music-control button{
    min-width:40px!important;
    min-height:40px!important;
  }
  .music-icon{
    width:27px!important;
    height:27px!important;
  }
}

/* Màn hình điện thoại hẹp */
@media(max-width:390px){
  :root{--mobile-gutter:12px}
  .brand strong{font-size:9.6px!important}
  .brand span{font-size:7.2px!important}
  .page-hero h1,.page-hero .one-line-title{font-size:27px!important}
  .section-heading h2{font-size:22px!important}
  .hero-logo-stage,.hero-emblem{min-height:195px!important}
  .hero-logo-glass{width:min(190px,60vw)!important}
  .hero-copy-premium h1,.hero-copy h1{font-size:38px!important}
  .hero-copy-premium h2,.hero-copy h2{font-size:20px!important}
  .countdown strong{font-size:28px!important}
  .memory-preview-title{
    font-size:10.5px!important;
    letter-spacing:-.04em!important;
  }
}

/* Điện thoại rất hẹp: vẫn ưu tiên không mất chữ */
@media(max-width:350px){
  .memory-preview-title{
    font-size:9.6px!important;
    letter-spacing:-.045em!important;
  }
  .nav-link{font-size:13px!important}
}


/* ============================================================
   V19 — MOBILE REFINED
   - Tiêu đề mobile ưu tiên 1 dòng
   - Thời hạn đăng ký nổi bật
   - Bảng vàng truyền thống trang trọng, đầy đủ trên mobile
   ============================================================ */

/* THỜI HẠN ĐĂNG KÝ */
.registration-deadline{
  margin:22px 0 24px;
  padding:20px;
  border:1px solid rgba(186,25,43,.22);
  border-radius:20px;
  background:
    radial-gradient(circle at 88% 12%,rgba(255,232,168,.38),transparent 22%),
    linear-gradient(135deg,#fff8e5 0%,#fffdf6 54%,#fff0cf 100%);
  box-shadow:0 16px 35px rgba(116,72,11,.09);
}
.deadline-heading{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}
.deadline-icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  flex:0 0 38px;
  border-radius:50%;
  background:linear-gradient(135deg,#d91e36,#a5001c);
  color:#ffe9a8;
  font-size:14px;
  box-shadow:0 7px 18px rgba(156,0,24,.18);
}
.deadline-heading p{
  margin:0 0 3px;
  color:#aa1830;
  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
}
.deadline-heading h2{
  margin:0;
  color:#123f78;
  font-size:28px;
  line-height:1.05;
  font-weight:900;
  letter-spacing:-.015em;
}
.deadline-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.deadline-item{
  min-width:0;
  padding:13px 14px;
  border:1px solid rgba(203,166,71,.28);
  border-radius:14px;
  background:rgba(255,255,255,.80);
}
.deadline-item span{
  display:block;
  margin-bottom:4px;
  color:#6d7790;
  font-size:11px;
  line-height:1.3;
  font-weight:900;
  letter-spacing:.05em;
}
.deadline-item strong{
  display:block;
  color:#0c56a8;
  font-size:18px;
  line-height:1.25;
  font-weight:900;
}
.deadline-item-primary{
  border-color:rgba(184,20,42,.24);
  background:linear-gradient(135deg,#fff2ef,#fff9e9);
}
.deadline-item-primary strong{
  color:#b3112d;
}

/* BẢNG VÀNG TRUYỀN THỐNG — desktop giữ nguyên bố cục */
.door-achievement .achievement-list div{
  min-width:0;
}
.door-achievement .achievement-list span{
  overflow-wrap:break-word;
  word-break:normal;
}

/* MOBILE */
@media(max-width:820px){

  /* Tiêu đề ngắn/trung bình ưu tiên một dòng trên điện thoại.
     Thu cỡ chữ thay vì cắt chữ hoặc dùng dấu ... */
  .section-heading h2,
  .page-hero h1,
  .page-hero .one-line-title,
  .form-title h2,
  .transfer-heading h2{
    max-width:100%!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
    word-break:normal!important;
    letter-spacing:-.02em!important;
  }

  .section-heading h2{
    font-size:clamp(12px,3.85vw,17px)!important;
    line-height:1.12!important;
  }
  .page-hero h1,
  .page-hero .one-line-title{
    font-size:clamp(19px,5.8vw,27px)!important;
  }
  .form-title h2{
    font-size:clamp(17px,5vw,22px)!important;
  }
  .transfer-heading h2{
    font-size:clamp(11px,3.35vw,16px)!important;
  }

  /* Những tiêu đề nội dung rất dài vẫn ưu tiên không mất chữ.
     Nếu màn hình quá hẹp, cho phép xuống dòng có chủ đích. */
  .history-card h2,
  .program-content h2,
  .support-card h2,
  .open-letter-paper h2{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }

  /* Riêng tiêu đề ký ức đã chốt: giữ một dòng */
  .memory-preview-title{
    white-space:nowrap!important;
    font-size:clamp(10.2px,2.95vw,12px)!important;
    line-height:1.08!important;
    letter-spacing:-.04em!important;
  }

  /* THỜI HẠN ĐĂNG KÝ trên điện thoại */
  .registration-deadline{
    margin:16px 0 18px;
    padding:15px 13px;
    border-radius:16px;
  }
  .deadline-heading{
    gap:9px;
    margin-bottom:11px;
  }
  .deadline-icon{
    width:32px;
    height:32px;
    flex-basis:32px;
    font-size:11px;
  }
  .deadline-heading p{
    font-size:9.5px!important;
    letter-spacing:.08em!important;
  }
  .deadline-heading h2{
    font-size:clamp(17px,5vw,22px)!important;
    white-space:nowrap!important;
  }
  .deadline-grid{
    grid-template-columns:1fr;
    gap:7px;
  }
  .deadline-item{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:10px;
    padding:10px 11px;
    border-radius:11px;
  }
  .deadline-item span{
    margin:0;
    font-size:9.8px!important;
    line-height:1.25;
  }
  .deadline-item strong{
    font-size:13.5px!important;
    line-height:1.2;
    text-align:right;
    white-space:nowrap;
  }

  /* BẢNG VÀNG TRUYỀN THỐNG — một cột, đầy đủ, trang trọng */
  .door-achievement .achievement-layout{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
  }
  .door-achievement .section-heading{
    width:100%!important;
    margin:0!important;
    padding:16px 14px!important;
    text-align:center!important;
    background:linear-gradient(135deg,#fff0cf,#fff8e8)!important;
    border:1px solid rgba(210,169,68,.35)!important;
  }
  .door-achievement .section-heading>p:first-of-type{
    font-size:10px!important;
    letter-spacing:.09em!important;
  }
  .door-achievement .section-heading h2{
    font-size:clamp(17px,5vw,22px)!important;
    white-space:nowrap!important;
    text-align:center!important;
  }
  .door-achievement .section-heading .gold-line{
    margin-left:auto!important;
    margin-right:auto!important;
  }
  .door-achievement .achievement-list{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
  .door-achievement .achievement-list div{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:4px!important;
    width:100%!important;
    padding:12px 13px!important;
    border-radius:12px!important;
    background:linear-gradient(135deg,#fffdf7,#fff8e9)!important;
    border:1px solid rgba(218,181,83,.28)!important;
    box-shadow:0 6px 14px rgba(115,83,20,.05)!important;
  }
  .door-achievement .achievement-list strong{
    display:block!important;
    font-size:16px!important;
    line-height:1.2!important;
    color:#a86e00!important;
  }
  .door-achievement .achievement-list span{
    display:block!important;
    width:100%!important;
    font-size:13.5px!important;
    line-height:1.48!important;
    color:#506985!important;
    white-space:normal!important;
    overflow:visible!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
  }
}

@media(max-width:390px){
  .section-heading h2{
    font-size:clamp(11px,3.65vw,15px)!important;
  }
  .deadline-item strong{
    font-size:12.5px!important;
  }
}

@media(max-width:350px){
  .section-heading h2{
    font-size:10.5px!important;
    letter-spacing:-.025em!important;
  }
  .page-hero h1,
  .page-hero .one-line-title{
    font-size:18px!important;
  }
  .deadline-item{
    grid-template-columns:1fr!important;
    gap:3px!important;
  }
  .deadline-item strong{
    text-align:left!important;
  }
}
