:root {
  --blue: #0769e8;
  --blue-dark: #0051bd;
  --blue-deep: #0347a8;
  --yellow: #ffca28;
  --ink: #112a4e;
  --muted: #687a94;
  --line: #dce7f4;
  --pale: #f3f7fc;
  --white: #fff;
  --shadow: 0 5px 14px rgba(20, 71, 130, .08);
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--pale); font-family: "Be Vietnam Pro", Arial, sans-serif; font-size: 15px; }
body.has-fixed-header { padding-top: var(--contest-header-height, 80px); }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.page-container { width: calc(100% - 70px); max-width: 1280px; margin-inline: auto; }

@media (min-width: 1600px) {
  .page-container { max-width: 1350px; }
}

.site-header {background: linear-gradient(90deg, var(--blue) 0%, var(--blue-dark) 100%);color: #fff;position: relative;z-index: 1020;transition: box-shadow .25s ease;}
.site-header.is-fixed { position: fixed; inset: 0 0 auto; animation: header-slide-down .25s ease-out; box-shadow: 0 8px 24px rgba(0, 24, 70, .24); }
@keyframes header-slide-down { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.navbar {padding: 0;}
.brand { color: #fff !important; display: flex; align-items: center; gap: 9px; font: 800 18px/1.4 "Be Vietnam Pro", sans-serif; letter-spacing: -.5px; }
.brand-mark {display: grid;place-items: center;}
.brand-mark img {height: 80px;object-fit: contain;}
.brand-title { max-width: 245px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navbar-nav { gap: 4px; }
.navbar .nav-link {color: rgba(255,255,255,.94);padding: 20px 3px 22px !important;margin: 0 15px;position: relative;font-size: 15px;font-weight: 600;white-space: nowrap;}
.navbar .nav-link:hover, .navbar .nav-link.active { color: #fff; }
.navbar .nav-link.active::after {content: "";position: absolute;bottom: 4px;left: 4px;right: 4px;height: 2px;border-radius: 2px;background: #fff;}
.auth-actions { display: flex; flex-shrink: 0; gap: 8px; }
.auth-actions .btn { height: 38px; padding: 9px 15px; border-radius: 11px; color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
.btn-login { border: 1px solid rgba(255,255,255,.36); }
.btn-login:hover { background: rgba(255,255,255,.1); color: #fff; }
.auth-actions .btn-register { background: #fff; color: var(--blue-dark); border: 0; box-shadow: 0 4px 11px rgba(0,54,142,.2); }
.navbar-toggler { border-color: rgba(255,255,255,.55); }
.navbar-toggler-icon { filter: invert(1); }
.user-dropdown-container { display: none; flex: 0 0 auto; }
.user-menu-toggle { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 13px; font-weight: 700; }
.user-menu-toggle:hover { color: #fff; }
.user-avatar { width: 34px; height: 34px; border: 2px solid rgba(255,255,255,.7); border-radius: 50%; object-fit: cover; }
.user-dropdown-container .dropdown-header { display: grid; gap: 2px; }

.hero { position: relative; color: #fff; background: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue) 56%, var(--blue-dark) 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: repeating-linear-gradient(165deg, transparent 0 20px, rgba(50,174,255,.1) 21px, transparent 22px 31px); opacity: .7; }
.hero-glow { position: absolute; width: 470px; height: 4px; background: rgba(53,189,255,.32); box-shadow: 0 0 13px #2cc1ff; transform-origin: left; }
.hero-glow-one { left: 45%; top: 110px; transform: rotate(42deg); }
.hero-glow-two { left: 44%; top: 280px; transform: rotate(-24deg); }
.hero-inner img { width: 100%; height: auto; object-fit: cover; }
.hero-copy { padding-left: 32px; margin-top: -1px; }
.hero-kicker { font: 800 34px/1 "Be Vietnam Pro", sans-serif; margin: 0 0 12px 50px; letter-spacing: -.8px; }
.hero h1 { margin: 0; font: 800 52px/.98 "Be Vietnam Pro", sans-serif; letter-spacing: -2.2px; text-transform: uppercase; text-shadow: 0 4px 3px rgba(0,50,135,.22); }
.hero h1 span { display: block; color: var(--yellow); white-space: nowrap; }
.hero-edition { display: flex; align-items: center; gap: 14px; margin: 11px 0 13px; font: 800 31px/1 "Be Vietnam Pro", sans-serif; white-space: nowrap; }
.hero-edition i { display: block; width: 39px; height: 2px; background: rgba(255,255,255,.8); }
.hero-slogan { display: inline-block; margin: 0; padding: 8px 15px; border: 1px solid rgba(120,204,255,.8); border-radius: 13px; color: #fff; background: rgba(0,91,206,.25); font-size: 12px; font-weight: 600; white-space: nowrap; }
.hero-visual { height: 100%; display: grid; place-items: center; position: relative; }
.hero-visual::before { content: ""; width: 330px; height: 330px; border-radius: 50%; position: absolute; background: radial-gradient(circle, rgba(55,190,255,.46), rgba(0,104,218,.04) 66%, transparent 70%); }
.hero-visual img { position: relative; z-index: 2; width: 445px; height: 350px; object-fit: contain; filter: drop-shadow(0 10px 8px rgba(0,50,108,.18)); transform: translateY(8px); }
.law-symbol { position: absolute; z-index: 1; color: rgba(34,165,242,.2); font-size: 73px; }
.law-symbol-left { left: 0; bottom: 28px; transform: rotate(-18deg); }
.law-symbol-right { right: -10px; bottom: 30px; }

.countdown-panel { margin-top: 18px; position: relative; z-index: 5; overflow: hidden; border: 1px solid #dfe6f2; border-top: 4px solid var(--blue); border-radius: 16px; background: #fff; box-shadow: 0 7px 20px rgba(23,78,138,.11); }
.countdown-header { min-height: 65px; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e5eaf2; }
.countdown-heading { min-width: 0; display: flex; align-items: center; gap: 13px; color: var(--blue); }
.countdown-heading i { flex: 0 0 auto; font-size: 25px; }
.countdown-heading h2 { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 700; }
.countdown-status { flex: 0 0 auto; padding: 7px 13px; border-radius: 999px; color: var(--blue-dark); background: color-mix(in srgb, var(--blue) 10%, white); font-size: 13px; font-weight: 700; }
.countdown-body { padding: 18px 28px 27px; text-align: center; }
.countdown-description { max-width: 740px; margin: 0 auto; color: #29313f; font-size: 16px; line-height: 1.65; font-weight: 500; }
.countdown-description time { font-weight: 700; white-space: nowrap; }
.countdown-caption { margin: 15px 0 12px; color: #5c6676; font-size: 14px; font-weight: 600; }
.countdown-grid { width: 100%; max-width: 430px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.countdown-unit { min-height: 92px; padding: 13px 8px 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid color-mix(in srgb, var(--blue) 30%, white); border-radius: 12px; background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--blue) 3%, white) 100%); box-shadow: 0 5px 11px rgba(42,64,154,.09); }
.countdown-unit strong { color: var(--blue); font-size: 34px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.countdown-unit span { margin-top: 9px; color: #717987; font-size: 12px; line-height: 1; font-weight: 700; }

.join-contest-action { margin-top: 20px; }
.join-contest-action[hidden], .exam-ended-msg[hidden] { display: none !important; }
.join-contest-action p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.btn-start-exam { min-width: 210px; min-height: 48px; padding: 10px 24px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(90deg, var(--blue), var(--blue-dark)); box-shadow: 0 7px 16px rgba(0,86,199,.24); font-weight: 700; }
.btn-start-exam:hover { color: #fff; transform: translateY(-1px); }
.btn-start-exam:disabled { cursor: wait; opacity: .7; }
.exam-ended-msg { width: fit-content; margin: 18px auto 0; padding: 10px 18px; border-radius: 9px; color: #68717e; background: #edf0f4; font-weight: 700; }

.content-area { padding: 13px 0 16px; background: linear-gradient(90deg, #f5f9fd, #eef5fc 52%, #f6f9fd); }
.section-row { margin-bottom: 0; }
.section-row + .section-row { margin-top: 0; }
.content-card { margin-top: 0; padding: 21px 25px 16px; border: 1px solid #e4edf6; border-radius: 12px; background: rgba(255,255,255,.95); box-shadow: var(--shadow); }
.section-row > * { margin-top: 16px; }
.content-card h2 { margin: 0 0 16px; color: var(--blue); font: 700 21px/1.2 "Be Vietnam Pro", sans-serif; }
.video-frame { height: 250px; overflow: hidden; border-radius: 9px; position: relative; display: grid; place-items: center; background: radial-gradient(circle at center, var(--blue) 0, var(--blue-dark) 62%, var(--blue-deep) 100%); box-shadow: 0 3px 6px rgba(2,42,92,.2); }
.video-rays { position: absolute; inset: 0; opacity: .35; background: repeating-conic-gradient(from 15deg at 50% 42%, rgba(56,175,255,.28) 0 2deg, transparent 2deg 12deg); }
.video-frame img { width: 205px; height: 170px; object-fit: contain; transform: translateY(-20px); }
.video-title { position: absolute; bottom: 55px; left: 0; right: 0; color: #fff; text-align: center; font: 800 25px/1.15 "Be Vietnam Pro", sans-serif; text-shadow: 0 2px 3px rgba(0,0,0,.3); }
.video-title small { display: block; margin-top: 5px; font-size: 19px; }
.play-button { width: 66px; height: 66px; padding: 0; border: 2px solid rgba(255,255,255,.82); border-radius: 50%; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); z-index: 3; display: grid; place-items: center; color: #fff; background: rgba(15,24,38,.76); box-shadow: 0 8px 24px rgba(0,0,0,.28); font-size: 25px; line-height: 1; transition: transform .2s ease, background .2s ease; pointer-events: none; }
.play-button i { transform: translateX(2px); }
.guide-video-trigger:hover .play-button, .guide-video-trigger:focus-visible .play-button { transform: translate(-50%,-50%) scale(1.08); background: var(--blue); }
.guide-video-trigger:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 45%, white); outline-offset: 3px; }
.video-controls { height: 34px; padding: 0 14px; position: absolute; inset: auto 0 0; display: flex; align-items: center; gap: 11px; color: #fff; background: linear-gradient(transparent,rgba(0,0,0,.8)); font-size: 11px; }
.video-controls b { flex: 1; }
.detail-btn { margin-top: 12px; height: 39px; padding: 10px 17px; border-color: var(--blue); border-radius: 8px; color: var(--blue); font-weight: 600; font-size: 14px; }
.detail-btn:hover { border-color: var(--blue); color: #fff; background: var(--blue); }
.detail-btn i { margin-right: 9px; }

.rule-list { list-style: none; padding: 1px 0 0; margin: 0; }
.rule-list li { display: flex; align-items: center; gap: 16px; margin-bottom: 15px; }
.list-icon { width: 47px; height: 47px; flex: 0 0 47px; display: grid; place-items: center; border-radius: 7px; color: var(--blue); background: color-mix(in srgb, var(--blue) 7%, white); font-size: 20px; }
.rule-list h3 { margin: 0 0 6px; color: var(--blue); font-size: 15px; font-weight: 700; }
.rule-list p { margin: 0; color: #5e6d82; font-size: 13px; line-height: 1.45; }
.primary-detail { min-width: 222px; height: 41px; margin-top: 8px; padding: 10px 10px; border: 0; border-radius: 7px; background: linear-gradient(90deg, var(--blue), var(--blue-dark)); font-size: 14px; font-weight: 600; box-shadow: 0 3px 8px rgba(0,98,219,.16); }
.primary-detail i { margin-left: 14px; }

.card-heading { display: flex; align-items: center; justify-content: space-between; }
.card-heading h2 { margin-bottom: 14px; }
.card-heading a { color: var(--blue); font-size: 13px; font-weight: 500; }
.ranking-card, .news-card { min-height: 320px; }
.news-card .card-heading { gap: 10px; }
.news-card .card-heading h2 { min-width: 0; font-size: 17px; white-space: nowrap; }
.news-card .card-heading a { flex-shrink: 0; }
.ranking-table { color: var(--ink); font-size: 14px; }
.ranking-table th { padding: 10px 10px; border: 0; color: var(--blue-dark); background: color-mix(in srgb, var(--blue) 10%, white); font-size: 14px; font-weight: 700; }
.ranking-table th:first-child { border-radius: 6px 0 0 0; text-align: center; }
.ranking-table th:last-child { border-radius: 0 6px 0 0; text-align: center; }
.ranking-table td { padding: 10px; border-color: #e8eef6; white-space: nowrap; }
.ranking-table td:first-child, .ranking-table td:last-child { text-align: center; }
.medal { width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 50% 50% 44% 44%; color: #8c5a00; font-size: 9px; font-weight: 700; }
.medal::before { content: ""; width: 8px; height: 6px; position: absolute; margin-top: -21px; clip-path: polygon(0 0,100% 0,78% 100%,50% 62%,22% 100%); background: inherit; }
.gold { background: linear-gradient(135deg,#ffdb30,#ecaa08); }
.silver { color: #647282; background: linear-gradient(135deg,#eef1f4,#a9b3be); }
.bronze { color: #8a3f18; background: linear-gradient(135deg,#f1aa6b,#c66a35); }
.ranking-pagination { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.ranking-page-control { width: 34px; height: 34px; padding: 0; border: 1px solid color-mix(in srgb, var(--blue) 24%, white); border-radius: 8px; display: grid; place-items: center; color: var(--blue); background: #fff; transition: color .2s ease, background .2s ease; }
.ranking-page-control:hover:not(:disabled) { color: #fff; background: var(--blue); }
.ranking-page-control:disabled { cursor: not-allowed; opacity: .45; }
.ranking-page-info { min-width: 94px; color: var(--muted); text-align: center; font-size: 13px; font-weight: 700; }

.notice-list { min-width: 0; display: grid; gap: 9px; }
.notice-list article { width: 100%; min-width: 0; min-height: 56px; padding: 10px 13px; overflow: hidden; display: flex; align-items: center; gap: 14px; border-radius: 6px; background: linear-gradient(90deg, #f2f7fd, #f7faff); }
.notice-list > article > i { color: var(--blue); font-size: 16px; }
.notice-list article div { min-width: 0; flex: 1; }
.notice-list h3 { margin: 0 0 9px; color: #29364b; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-list p { margin: 0; color: var(--blue-deep); font-size: 12px; }
.notice-list time { float: right; }
.empty-state { padding: 32px 12px !important; color: var(--muted) !important; text-align: center !important; }

.reference-card { min-height: 262px; margin-top: 16px; padding: 16px 25px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.reference-content { min-width: 0; position: relative; z-index: 2; }
.reference-card .card-heading { gap: 16px; }
.reference-card .card-heading h2 { margin-bottom: 14px; }
.reference-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
.reference-item { min-width: 0; padding: 13px 14px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 32px; align-items: center; gap: 12px; border: 1px solid #e2ebf5; border-radius: 9px; background: linear-gradient(90deg, #f6f9fd, #fff); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.reference-item:hover { border-color: color-mix(in srgb, var(--blue) 38%, #e2ebf5); box-shadow: 0 8px 20px rgba(18, 83, 157, .09); transform: translateY(-1px); }
.reference-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--blue); font-size: 18px; }
.reference-item > div { min-width: 0; }
.reference-item h3 { margin: 0 0 7px; font-size: 14px; font-weight: 600; }
.reference-item h3 a { display: block; overflow: hidden; color: #29364b; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.reference-item h3 a:hover { color: var(--blue); }
.reference-item p { margin: 0; color: var(--muted); font-size: 12px; }
.reference-item p i { margin-right: 5px; color: var(--blue); }
.reference-open { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: color-mix(in srgb, var(--blue) 9%, #fff); text-decoration: none; transition: color .2s ease, background .2s ease; }
.reference-open:hover { color: #fff; background: var(--blue); }
.reference-empty { grid-column: 1 / -1; min-height: 118px; display: grid; place-items: center; align-content: center; gap: 8px; border: 1px dashed #cbd9e9; border-radius: 9px; color: var(--muted); text-align: center; }
.reference-empty i { color: var(--blue); font-size: 25px; }
.reference-empty p { margin: 0; }
.reference-illustration { min-width: 0; min-height: 222px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.reference-illustration img { width: 100%; height: 290px; object-fit: contain; mix-blend-mode: multiply; }

.site-footer { min-height: 270px; overflow: hidden; isolation: isolate; position: relative; color: #fff; background: var(--blue-dark); }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: 0; background: url("assets/images/ctu-campus-footer.jpg") center 61% / cover no-repeat; filter: grayscale(1) saturate(.45) contrast(1.08); opacity: .34; }
.site-footer::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, color-mix(in srgb, var(--blue-deep) 92%, transparent) 0%, color-mix(in srgb, var(--blue) 78%, transparent) 52%, color-mix(in srgb, var(--blue-dark) 84%, transparent) 100%); }
.footer-main { min-height: 212px; padding: 26px 0 8px; display: grid; grid-template-columns: 27% 73%; position: relative; z-index: 2; }
.footer-emblem { display: grid; place-items: center; overflow: hidden; }
.footer-emblem img { height: 206px; object-fit: contain; filter: drop-shadow(0 5px 5px rgba(0,37,94,.18)); }
.footer-info { padding-left: 5px; }
.footer-info h2 { margin: 0 0 11px; text-align: center; font: 700 21px/1.15 "Be Vietnam Pro", sans-serif; }
.footer-info h3 { margin: 0; text-align: center; font: 800 25px/1.2 "Be Vietnam Pro", sans-serif; white-space: nowrap; }
.footer-divider { height: 30px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.footer-divider::before, .footer-divider::after { content: ""; width: 160px; height: 1px; background: rgba(255,255,255,.7); }
.footer-info > p {margin: 0 0 14px;font-size: 14px;font-weight: 500;line-height: 1.55;}
.footer-contact {list-style: none;margin: 0;padding: 0;display: flex;align-items: center;justify-content: space-between;gap: 10px;font-size: 13px;}
.footer-contact li { display: flex; align-items: center; gap: 9px; }
.footer-contact i { font-size: 20px; }
.footer-bottom { height: 52px; padding: 0; border-top: 1px solid rgba(255,255,255,.65); position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p {margin: 0;font-size: 12px;}
.social-links { display: flex; gap: 13px; }
.social-links a { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #fff; border-radius: 50%; font-size: 13px; transition: .2s; }
.social-links a:hover { color: #0866d9; background: #fff; }

.contest-popup-overlay { display: none; position: fixed; inset: 0; z-index: 2000; align-items: center; justify-content: center; padding: 20px; background: rgba(8,31,66,.7); }
.contest-popup-card { width: min(100%, 560px); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(0,28,73,.32); }
.contest-popup-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 22px; color: #fff; background: linear-gradient(90deg, var(--blue), var(--blue-dark)); }
.contest-popup-header h2 { margin: 0; font-size: 20px; font-weight: 700; }
.btn-close-popup { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(255,255,255,.16); font-size: 25px; line-height: 1; }
#contest-info-form { padding: 22px; }
.form-group-floating { margin-bottom: 16px; }
.form-group-floating label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 13px; font-weight: 700; }
.form-group-floating input, .form-group-floating select { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #cdd9e8; border-radius: 9px; color: var(--ink); background: #fff; outline: 0; }
.form-group-floating input:focus, .form-group-floating select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7,105,232,.12); }
.form-error-text { min-height: 17px; margin-top: 4px; color: #dc3545; font-size: 12px; }
.has-error input, .has-error select { border-color: #dc3545; }
.form-agreement { display: grid; grid-template-columns: 18px 1fr; gap: 8px; margin: 5px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-agreement .form-error-text { grid-column: 2; }
.form-agreement a { color: var(--blue); text-decoration: underline; }
.form-actions { text-align: right; }
.btn-submit-info { min-height: 44px; padding: 9px 20px; border: 0; border-radius: 9px; color: #fff; background: var(--blue); font-weight: 700; }
.btn-submit-info:disabled { cursor: wait; opacity: .7; }

@media (max-width: 1100px) {
  .page-container { width: calc(100% - 40px); }
  .navbar .nav-link { padding-inline: 3px !important; }
  .auth-actions { gap: 6px; }
  .auth-actions .btn { padding-inline: 8px; }
  .hero h1 { font-size: 49px; }
  .hero-visual img { width: 390px; }
}

@media (max-width: 767.98px) {
  .site-header, .navbar { height: 66px; }
  .navbar-collapse { margin: 0 -20px; padding: 10px 20px 18px; background: var(--blue-dark); box-shadow: 0 9px 15px rgba(0,48,120,.22); }
  .navbar .nav-link { padding: 11px 7px !important; }
  .navbar .nav-link.active::after { bottom: 3px; left: 7px; right: auto; width: 42px; }
  .auth-actions { margin-top: 8px; }
  .user-dropdown-container { margin-top: 8px; }
  .hero-inner { grid-template-columns: 1fr 1fr; }
  .hero-copy { padding-left: 0; }
  .hero-kicker { margin-left: 0; }
  .hero h1 { font-size: 44px; }
  .hero-edition { font-size: 24px; }
  .hero-slogan { white-space: normal; }
  .hero-visual img { width: 380px; max-width: 100%; }
  .countdown-heading h2 { font-size: 21px; }
  .reference-card { grid-template-columns: 1fr; }
  .reference-illustration { min-height: 250px; margin-top: 14px; }
  .news-card .card-heading h2 { font-size: 18px; white-space: normal; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-emblem { display: none; }
  .footer-info { padding: 0; }
  .footer-info h3 { white-space: normal; }
}

@media (max-width: 767.98px) {
  .page-container { width: calc(100% - 28px); }
  .brand { font-size: 16px; }
  .brand-mark img { height: 58px; }
  .brand-title { max-width: 190px; }
  .hero-inner { grid-template-columns: 1fr; grid-template-rows: 300px 370px; text-align: center; }
  .hero-copy { align-self: end; }
  .hero-kicker { margin: 0 0 10px; font-size: 27px; }
  .hero h1 { font-size: clamp(42px, 12vw, 55px); }
  .hero-edition { justify-content: center; font-size: 24px; }
  .hero-slogan { font-size: 12px; }
  .hero-visual img { height: 350px; transform: translateY(-5px); }
  .countdown-header { min-height: 58px; padding: 12px 15px; gap: 10px; }
  .countdown-heading { gap: 9px; }
  .countdown-heading i { font-size: 21px; }
  .countdown-heading h2 { font-size: 18px; }
  .countdown-status { padding: 6px 10px; font-size: 11px; }
  .countdown-body { padding: 16px 14px 21px; }
  .countdown-description { font-size: 14px; line-height: 1.65; }
  .countdown-caption { margin: 13px 0 10px; font-size: 13px; }
  .countdown-grid { max-width: 100%; gap: 6px; }
  .countdown-unit { min-height: 80px; padding: 10px 3px 9px; border-radius: 10px; }
  .countdown-unit strong { font-size: 27px; }
  .countdown-unit span { margin-top: 7px; font-size: 10px; }
  .content-card { padding: 20px 17px; }
  .video-frame { height: 235px; }
  .video-title { font-size: 20px; }
  .ranking-table { min-width: 480px; }
  .reference-card { padding: 20px 17px; }
  .reference-illustration { min-height: 210px; }
  .reference-illustration img { height: 240px; }
  .site-footer { min-height: 330px; }
  .footer-main { padding-top: 28px; }
  .footer-info h2 { font-size: 17px; }
  .footer-info h3 { font-size: 22px; }
  .footer-info > p br { display: none; }
  .footer-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
}

@media (max-width: 480px) {
  .hero-inner { grid-template-rows: 300px 340px; }
  .hero h1 { font-size: 42px; }
  .hero-edition { gap: 8px; font-size: 21px; }
  .hero-edition i { width: 23px; }
  .hero-visual img { width: 340px; height: 320px; }
  .content-card h2 { font-size: 17px; }
  .video-frame { height: 215px; }
  .video-frame img { width: 160px; }
  .video-title { bottom: 46px; font-size: 17px; }
  .video-title small { font-size: 14px; }
  .reference-item { grid-template-columns: 38px minmax(0, 1fr) 30px; gap: 10px; padding: 11px; }
  .reference-icon { width: 38px; height: 38px; }
  .reference-illustration { min-height: 180px; margin-inline: -12px; }
  .reference-illustration img { height: 210px; }
  .footer-contact { grid-template-columns: 1fr; }
  .footer-bottom { height: auto; padding: 13px 0; gap: 12px; flex-direction: column; }
}
