/* =========================================================
   Landing page — Cuộc thi "75 năm Học viện Chính trị"
   Theme: xanh da trời chủ đạo.
   - Thanh menu nằm TRÊN ảnh (không đè lên ảnh nền)
   - Ảnh nền hero hiển thị trọn vẹn
   - Bảng đồng hồ đếm ngược (tổng + từng tuần thi)
   ========================================================= */
:root {
    --l-nav-h: 66px;

    --l-sky-50:  #f0f9ff;
    --l-sky-100: #e0f2fe;
    --l-sky-200: #bae6fd;
    --l-sky-300: #7dd3fc;
    --l-sky-400: #38bdf8;

    --l-primary:       #0ea5e9;  /* xanh da trời chủ đạo */
    --l-primary-600:   #0284c7;
    --l-primary-dark:  #0369a1;
    --l-navy:          #0c4a6e;
    --l-navy-deep:     #082f49;

    --l-ink:   #0f2a43;
    --l-paper: #eef7fd;

    --l-font-title: 'Playfair Display', 'Times New Roman', serif;
    --l-font-body:  'Be Vietnam Pro', system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--l-font-body); color: var(--l-ink); background: #fff; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

.l-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* =========================================================
   NAV — thanh trên đầu, NẰM NGOÀI ảnh (không chèn/che ảnh)
   ========================================================= */
.l-nav {
    position: sticky; top: 0; z-index: 100;
    height: var(--l-nav-h);
    background: linear-gradient(90deg, #ffffff 0%, #e5f4fd 55%, #cdeafc 100%);
    border-bottom: 2px solid var(--l-primary);
    box-shadow: 0 2px 10px rgba(2, 132, 199, .10);
    transition: box-shadow .25s ease;
}
.l-nav.scrolled { box-shadow: 0 4px 16px rgba(2, 132, 199, .22); }
.l-nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.l-logo { display: flex; align-items: center; gap: 10px; }
.l-logo img { height: 42px; width: 42px; border-radius: 8px; object-fit: cover; border: 1px solid var(--l-primary); }
.l-logo-text { color: var(--l-navy); font-weight: 800; letter-spacing: 1px; font-size: .92rem; }
.l-nav-links { display: flex; align-items: center; gap: 20px; }
.l-nav-links a { color: var(--l-navy); font-weight: 600; font-size: .95rem; transition: color .2s; }
.l-nav-links a:hover, .l-nav-links a.active { color: var(--l-primary-dark); }
.l-btn-nav-cta {
    background: linear-gradient(135deg, var(--l-sky-400), var(--l-primary));
    color: #fff !important; padding: 8px 18px; border-radius: 8px; font-weight: 700;
    box-shadow: 0 3px 10px rgba(14,165,233,.35);
}
.l-btn-nav-cta:hover { filter: brightness(1.08); color: #fff !important; }
.l-btn-nav-ghost { border: 1.5px solid var(--l-navy); padding: 7px 16px; border-radius: 8px; color: var(--l-navy) !important; }
.l-btn-nav-ghost:hover { border-color: var(--l-primary); color: var(--l-primary-dark) !important; }
.l-hamburger { display: none; background: none; border: none; color: var(--l-navy); font-size: 1.6rem; cursor: pointer; }
.l-mobile-menu { display: none; flex-direction: column; background: #fff; border-bottom: 2px solid var(--l-primary); }
.l-mobile-menu.open { display: flex; }
.l-mobile-menu a { color: var(--l-navy); font-weight: 600; padding: 12px 20px; border-top: 1px solid var(--l-sky-100); }

/* =========================================================
   HERO — ảnh nền hiển thị TRỌN VẸN bên dưới thanh menu
   Neo mép TRÊN của ảnh sát mép dưới bar (không bị che phần đầu).
   ========================================================= */
.l-hero {
    height: calc(100vh - var(--l-nav-h));
    min-height: 460px;
    background: url('../bg.png') no-repeat top center;
    background-size: cover;
    background-position-y: top; /* cắt phần thừa xuống đáy, giữ nguyên mép trên ảnh */
    position: relative; overflow: hidden;
}
/* Lớp đốm sáng neon — chỉ cộng thêm ánh sáng, không làm tối ảnh */
.l-hero-lights { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; }
.l-light { position: absolute; border-radius: 50%; opacity: 0; will-change: opacity, transform; }
.l-light-1 { width: 560px; height: 560px; left: 3%; top: 6%; filter: blur(70px);
    background: radial-gradient(circle, rgba(0,229,255,.9) 0%, rgba(0,229,255,0) 60%);
    animation: lNeonPulse 7s ease-in-out infinite; animation-delay: 0s; }
.l-light-2 { width: 430px; height: 430px; right: 5%; top: 14%; filter: blur(60px);
    background: radial-gradient(circle, rgba(125,211,252,.95) 0%, rgba(125,211,252,0) 60%);
    animation: lNeonPulse 9s ease-in-out infinite; animation-delay: -2s; }
.l-light-3 { width: 620px; height: 620px; left: 22%; bottom: -6%; filter: blur(80px);
    background: radial-gradient(circle, rgba(56,189,248,.85) 0%, rgba(56,189,248,0) 62%);
    animation: lNeonPulse 8s ease-in-out infinite; animation-delay: -4s; }
.l-light-4 { width: 290px; height: 290px; left: 11%; top: 45%; filter: blur(44px);
    background: radial-gradient(circle, rgba(224,242,254,.95) 0%, rgba(224,242,254,0) 60%);
    animation: lNeonPulse 5.5s ease-in-out infinite; animation-delay: -1s; }
.l-light-5 { width: 350px; height: 350px; right: 14%; top: 46%; filter: blur(50px);
    background: radial-gradient(circle, rgba(14,165,233,.9) 0%, rgba(14,165,233,0) 60%);
    animation: lNeonPulse 6.5s ease-in-out infinite; animation-delay: -3s; }
.l-light-6 { width: 500px; height: 500px; right: -3%; bottom: 0; filter: blur(70px);
    background: radial-gradient(circle, rgba(103,232,249,.85) 0%, rgba(103,232,249,0) 60%);
    animation: lNeonPulse 10s ease-in-out infinite; animation-delay: -5s; }
.l-light-7 { width: 230px; height: 230px; left: 33%; top: 5%; filter: blur(36px);
    background: radial-gradient(circle, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 55%);
    animation: lNeonPulse 4.5s ease-in-out infinite; animation-delay: -2.5s; }
.l-light-8 { width: 270px; height: 270px; left: 57%; bottom: 16%; filter: blur(42px);
    background: radial-gradient(circle, rgba(186,230,253,.9) 0%, rgba(186,230,253,0) 55%);
    animation: lNeonPulse 7.5s ease-in-out infinite; animation-delay: -1.5s; }
@keyframes lNeonPulse {
    0%, 100% { opacity: 0; transform: scale(.8) translate3d(0, 10px, 0); }
    50%      { opacity: .65; transform: scale(1.18) translate3d(8px, -12px, 0); }
}

/* =========================================================
   BẢNG ĐỒNG HỒ ĐẾM NGƯỢC
   ========================================================= */
.l-cd-section {
    background: linear-gradient(150deg, var(--l-navy-deep) 0%, var(--l-navy) 45%, var(--l-primary-600) 130%);
    color: #fff; padding: 54px 0 64px; text-align: center;
}
.l-cd-kicker {
    display: inline-block; letter-spacing: 3px; text-transform: uppercase;
    font-size: .82rem; font-weight: 700; color: var(--l-sky-300);
    border: 1px solid rgba(125,211,252,.45); border-radius: 30px;
    padding: 6px 18px; margin-bottom: 14px;
}
.l-cd-title { font-family: var(--l-font-title); font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin-bottom: 6px; color: #fff; }
.l-cd-sub { font-size: .95rem; opacity: .85; margin-bottom: 26px; }
/* Xuống dòng chủ động: mỗi cụm (.l-title-line) giữ nguyên trên 1 dòng,
   không để trình duyệt bẻ chữ/ngoặc giữa chừng một cụm. */
.l-title-block { max-width: 860px; margin-left: auto; margin-right: auto; line-height: 1.5; }
.l-title-line { display: inline-block; }

/* Đồng hồ lớn (tổng) */
.l-clock { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.l-cd-main { margin-bottom: 34px; }
.l-cd-main .l-cd-unit {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(125,211,252,.4);
    border-radius: 14px; min-width: 104px; padding: 18px 12px;
    box-shadow: inset 0 0 22px rgba(56,189,248,.12), 0 8px 22px rgba(0,0,0,.18);
}
.l-cd-main .l-cd-num { font-size: 2.7rem; }
.l-cd-main .l-cd-sep { font-size: 2.5rem; color: var(--l-sky-300); }
.l-cd-num { font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.l-cd-label { font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; opacity: .85; margin-top: 6px; }
.l-cd-empty { font-size: 1.05rem; font-weight: 600; background: rgba(255,255,255,.1); border-radius: 12px; padding: 18px 22px; display: inline-block; }

/* Đồng hồ từng tuần */
.l-cd-weeks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 8px; }
.l-cd-week {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px; padding: 16px 12px;
}
.l-cd-week.is-ended { opacity: .55; }
.l-cd-week-name { font-weight: 700; font-size: .95rem; color: var(--l-sky-200); margin-bottom: 4px; }
.l-cd-week-status { font-size: .78rem; opacity: .85; margin-bottom: 10px; }
.l-cd-week .l-clock { gap: 6px; }
.l-cd-week .l-cd-unit { min-width: 52px; padding: 8px 4px; background: rgba(255,255,255,.07); border-radius: 9px; border: 1px solid rgba(255,255,255,.12); }
.l-cd-week .l-cd-num { font-size: 1.25rem; }
.l-cd-week .l-cd-label { font-size: .6rem; margin-top: 3px; }
.l-cd-week .l-cd-sep { font-size: 1.1rem; color: var(--l-sky-300); }

/* =========================================================
   SECTIONS
   ========================================================= */
.l-section { padding: 64px 0; scroll-margin-top: calc(var(--l-nav-h) + 10px); }
.l-section-light { background: var(--l-paper); }
.l-section-dark {
    background: linear-gradient(150deg, var(--l-navy-deep), var(--l-navy) 60%, var(--l-primary-dark));
    color: #fff;
}
.l-section-title {
    font-family: var(--l-font-title); text-align: center;
    font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin-bottom: 10px;
    color: var(--l-navy);
}
.l-section-dark .l-section-title { color: #fff; }
.l-section-sub { text-align: center; margin-bottom: 36px; opacity: .8; }

/* ---------- THỂ LỆ ---------- */
.l-le-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.l-le-card {
    background: #fff; border-radius: 12px; padding: 22px; display: flex; gap: 16px;
    box-shadow: 0 6px 20px rgba(2,132,199,.08); border-top: 4px solid var(--l-primary);
}
.l-le-num {
    font-family: var(--l-font-title); font-size: 2.4rem; font-weight: 800;
    color: var(--l-sky-400); line-height: 1;
}
.l-le-body h3 { margin-bottom: 8px; font-size: 1.05rem; color: var(--l-primary-dark); }
.l-le-body p { line-height: 1.7; font-size: .95rem; }

/* ---------- GIẢI THƯỞNG ---------- */
.l-prize-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.l-prize-card {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
    border-radius: 14px; padding: 26px; text-align: center;
    box-shadow: inset 0 0 26px rgba(56,189,248,.08);
}
.l-prize-icon { font-size: 2.6rem; margin-bottom: 10px; }
.l-prize-card h3 { color: var(--l-sky-200); margin-bottom: 10px; font-size: 1.2rem; }
.l-prize-card p { line-height: 1.7; font-size: .95rem; opacity: .95; }

/* ---------- CTA & FOOTER ---------- */
.l-section-cta { background: #fff; text-align: center; }
.l-section-cta .l-section-title { margin-bottom: 8px; }
.l-section-cta p { margin-bottom: 26px; opacity: .8; }
.l-hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.l-btn { display: inline-block; padding: 13px 30px; border-radius: 10px; font-weight: 700; font-size: 1rem; transition: transform .15s, box-shadow .2s; }
.l-btn-primary { background: linear-gradient(135deg, var(--l-sky-400), var(--l-primary-600)); color: #fff; box-shadow: 0 6px 18px rgba(14,165,233,.35); }
.l-btn-primary:hover { filter: brightness(1.07); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(14,165,233,.45); }
.l-btn-outline { border: 2px solid var(--l-navy); color: var(--l-navy); }
.l-btn-outline:hover { background: var(--l-sky-100); transform: translateY(-2px); }
.l-footer { background: var(--l-navy-deep); color: #fff; text-align: center; padding: 30px 0; }
.l-footer .l-foot-title { max-width: 820px; margin: 0 auto; line-height: 1.6; }
.l-footer a { color: var(--l-sky-300); font-weight: 600; }
.l-footer a:hover { text-decoration: underline; }

/* =========================================================
   RESPONSIVE & GIẢM CHUYỂN ĐỘNG
   ========================================================= */
@media (max-width: 768px) {
    :root { --l-nav-h: 58px; }
    .l-nav-links { display: none; }
    .l-hamburger { display: block; }
    .l-mobile-menu.open { display: flex; }
    .l-hero { min-height: 380px; }
    .l-countdown { padding: 30px 0; }
    .l-section { padding: 48px 0; }
    .l-cd-main .l-cd-unit { min-width: 76px; padding: 12px 8px; }
    .l-cd-main .l-cd-num { font-size: 1.9rem; }
    .l-cd-main .l-cd-sep { font-size: 1.7rem; }
    .l-cd-week .l-cd-unit { min-width: 46px; }
    .l-cd-week .l-cd-num { font-size: 1.05rem; }
    .l-light-1, .l-light-3, .l-light-6 { width: 340px; height: 340px; }
    .l-light-2, .l-light-5 { width: 260px; height: 260px; }
    .l-light-4, .l-light-7, .l-light-8 { width: 170px; height: 170px; }
}

@media (prefers-reduced-motion: reduce) {
    .l-light { animation: none; opacity: .28; }
    .l-clock { animation: none; }
}

/* ============================================================
   BẢNG VÀNG (bảng kết quả giải từng tuần) — landing
   ============================================================ */
.l-gold-kicker { letter-spacing:1px; }
.l-gold-empty {
    max-width:640px; margin:0 auto; text-align:center;
    background:#fffbe8; border:1.5px dashed #d9b73a; border-radius:12px;
    padding:20px 18px; color:#6b591a; line-height:1.7; font-size:.98rem;
}
.l-gold-tabs {
    display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin:6px 0 22px;
}
.l-gold-tab {
    padding:9px 18px; border-radius:999px; border:1.5px solid var(--l-sky-300,#9fd8f5);
    background:#fff; color:#075985; font-weight:700; font-size:.95rem; cursor:pointer;
    transition:all .18s ease;
}
.l-gold-tab:hover { border-color:var(--l-sky-400); }
.l-gold-tab.on { background:linear-gradient(160deg,#f7d75c,#e6b312); border-color:#d9a312; color:#6b4e00; box-shadow:0 4px 14px rgba(230,179,18,.35); }
.l-gold-panel { display:none; }
.l-gold-panel.on { display:block; animation:lFade .3s ease; }
@keyframes lFade { from{opacity:0; transform:translateY(-4px);} to{opacity:1;} }
.l-gold-head {
    display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; justify-content:space-between;
    background:linear-gradient(160deg,#fffbe0,#fff3b8); border:1px solid #ecd780;
    border-radius:12px; padding:12px 16px; margin-bottom:16px;
}
.l-gold-head-name { font-size:1.15rem; font-weight:800; color:#7a5b00; }
.l-gold-head-meta { font-size:.85rem; color:#7a5b00; opacity:.9; }
.l-gold-none { text-align:center; color:#8a8a8a; padding:10px 0; }
.l-gold-list { display:flex; flex-direction:column; gap:10px; max-width:820px; margin:0 auto; }
.l-gold-row {
    display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px;
    background:#fff; border:1px solid #ecdfb4; border-radius:11px; padding:11px 16px;
    box-shadow:0 3px 10px rgba(120,90,0,.06);
}
.l-gold-badge { font-weight:800; min-width:128px; font-size:.96rem; }
.l-gold-badge.gold-nhat{color:#b8860b;}
.l-gold-badge.gold-nhi{color:#7a8b8f;}
.l-gold-badge.gold-ba{color:#a97142;}
.l-gold-badge.gold-kk{color:#1e7e34;}
.l-gold-name { font-weight:700; color:#22313f; }
.l-gold-dv { font-size:.85rem; color:#6b7c8a; }
.l-gold-extra { margin-left:auto; font-size:.83rem; color:#7a7a7a; }
@media (max-width:600px){
    .l-gold-row .l-gold-extra { margin-left:0; }
}

/* ============ Thu gọn cho Mobile (thêm sau) ============ */
/* Nút giây: gom ":" + ô Giây vào 1 nhóm để mobile ẩn gọn cả hai */
.l-clock-sec { display: inline-flex; align-items: center; }

/* Chân trang mobile: tối giản tối đa — chỉ ghi dòng cuộc thi ngắn */
.l-foot-mini { display: none; }

@media (max-width: 768px) {
    /* 1) Trang chủ mobile dùng ảnh nền riêng */
    .l-hero {
        background-image: url('../bg_mobile.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    /* 2) Đồng hồ đếm ngược: chỉ Ngày – Giờ – Phút (ẨN phần Giây để không rớt dòng) */
    .l-clock-sec { display: none; }

    /* 3) Chân trang tối đa tối giản */
    .l-footer { padding: 16px 0 14px; }
    .l-foot-mini { display: block; font-weight: 700; font-size: .9rem; line-height: 1.6; letter-spacing: .3px; }
    .l-footer .l-foot-title,
    .l-footer .l-foot-fine,
    .l-footer .l-foot-admin { display: none; }
}
