/* Agribank Lạng Sơn 2026 — responsive layout, clean single-source stylesheet */
:root {
  --brand-green: #087849;
  --brand-red: #b10d2a;
  --text: #263746;
  --muted: #62707b;
  --surface: #ffffff;
  --page: #f6f8f6;
  --border: #e5e9e6;
  --shadow: 0 8px 24px rgba(22, 40, 31, .07);
}
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  width: 100%;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font-family: "Times New Roman", Times, serif;
  font-size: 17px;
  line-height: 1.6;
}
a { color: inherit; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 10px clamp(20px, 4vw, 64px);
  background: #fff;
  border-bottom: 1px solid rgba(205, 176, 88, .42);
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #006b43 0 45%, #e6c72b 45% 54%, #b80e2d 54%);
  border: 1px solid #e8e8e8;
  font: 700 23px Arial, sans-serif;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { color: var(--brand-red); font: 700 26px "Times New Roman", Times, serif; letter-spacing: .5px; }
.brand-copy small { margin-top: 4px; color: var(--brand-green); font-size: 13px; font-weight: 700; letter-spacing: .35px; }
.header-event { color: #5c6c65; font-size: 14px; font-weight: 700; letter-spacing: .8px; }
main { width: 100%; max-width: 1800px; margin: 0 auto; }
.hero { width: 100%; margin: 0; padding: 0; background: #eaf4f7; overflow: hidden; line-height: 0; }
.hero-banner { display: block; width: 100%; height: auto; max-width: 100%; object-fit: contain; }
.countdown-section { padding: 42px 20px 34px; background: linear-gradient(180deg, #eef6f0 0%, var(--page) 100%); }
.countdown-wrap {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 28px clamp(16px, 3vw, 34px) 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}
.section-kicker { display: inline-flex; align-items: center; justify-content: center; gap: 9px; margin: 0 0 10px; padding: 9px 17px; border: 1px solid #f0d29b; border-radius: 999px; background: linear-gradient(135deg, #fff7df, #fff 72%); color: #9a1424; font-size: clamp(16px, 1.5vw, 20px); font-weight: 800; letter-spacing: 1.3px; box-shadow: 0 5px 15px rgba(120, 74, 20, .11); }
.kicker-icon { display: inline-grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: linear-gradient(135deg, #c20e2e, #ef9f22); color: #fff; font-size: 18px; box-shadow: 0 3px 8px rgba(177,13,42,.2); }
.countdown-wrap h1 { margin: 0 0 22px; color: var(--text); font-size: clamp(29px, 3vw, 40px); line-height: 1.2; font-weight: 700; letter-spacing: .2px; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.time-box {
  display: flex; min-width: 0; min-height: 92px;
  flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 6px; border: 1px solid #f3dfdf; border-radius: 15px;
  background: linear-gradient(145deg, #fff0ee, #fff8f6);
}
.time-box strong { color: var(--brand-red); font-size: clamp(34px, 3.4vw, 48px); font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 #fff; }
.time-box span { margin-top: 8px; color: #465660; font-size: 17px; font-weight: 700; }
.opening { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 7px; margin: 20px 0 0; font-size: clamp(17px, 1.6vw, 20px); }
.opening strong { color: var(--brand-red); }
.opening-icon { color: var(--brand-green); font-size: 20px; }
.content-section { padding: 12px clamp(20px, 4vw, 64px) 48px; background: var(--page); }
.section-heading { margin: 0 auto 22px; text-align: center; }
.section-heading .section-kicker { margin-bottom: 10px; }
.section-heading h2 { margin: 0; color: var(--text); font-size: clamp(30px, 2.8vw, 40px); line-height: 1.2; letter-spacing: .2px; }
.section-heading > p:last-child { margin: 9px 0 0; color: #4d5c65; font-size: 18px; }
.quick-links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; gap: 18px; width: 100%; }
.info-card {
  display: flex; position: relative; min-width: 0; min-height: 196px;
  flex-direction: column; align-items: flex-start; justify-content: flex-start;
  padding: 24px 21px 48px; border: 1px solid var(--border); border-radius: 20px;
  background: linear-gradient(155deg, #fff 0%, #fbfdfb 100%); box-shadow: 0 8px 22px rgba(20, 38, 30, .08), inset 0 3px 0 rgba(255,255,255,.9);
  text-decoration: none; transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; isolation: isolate; overflow: hidden;
}
.info-card::before { content: ""; position: absolute; z-index: -1; inset: auto -24px -44px auto; width: 112px; height: 112px; border-radius: 50%; background: currentColor; opacity: .045; transition: transform .28s ease, opacity .28s ease; }
.info-card:hover { transform: translateY(-7px); box-shadow: 0 18px 34px rgba(20, 38, 30, .16); border-color: currentColor; }
.info-card:hover::before { transform: scale(1.7); opacity: .09; }
.info-card:active { transform: translateY(-2px) scale(.99); }
.info-card:focus-visible { outline: 3px solid #61a987; outline-offset: 3px; }
.card-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 16px; border: 1px solid rgba(255,255,255,.82); border-radius: 18px; background: linear-gradient(145deg, #fff, #edf5f0); font-size: 32px; line-height: 1; box-shadow: 0 7px 16px rgba(22,40,31,.13), inset 0 1px 0 #fff; transition: transform .24s ease, box-shadow .24s ease; }
.info-card:hover .card-icon { transform: translateY(-2px) rotate(-4deg) scale(1.06); box-shadow: 0 7px 15px rgba(22,40,31,.12); }
.card-copy { display: flex; flex-direction: column; width: 100%; gap: 7px; }
.card-copy strong { font-size: clamp(19px, 1.35vw, 23px); line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; }
.card-copy small { color: #4e5d66; font-size: 16px; line-height: 1.5; }
.card-arrow { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 27px; line-height: 1; transition: transform .22s ease; }
.info-card:hover .card-arrow { transform: translateX(4px); }
.info-card.red { border-color: #f0d7db; } .info-card.red .card-icon, .info-card.red .card-copy strong { color: #b10d2a; } .info-card.red .card-arrow { color: #b10d2a; background: #ffebed; }
.info-card.green { border-color: #d5eade; } .info-card.green .card-icon, .info-card.green .card-copy strong { color: #087849; } .info-card.green .card-arrow { color: #087849; background: #e6f5eb; }
.info-card.orange { border-color: #f2e1ca; } .info-card.orange .card-icon, .info-card.orange .card-copy strong { color: #b96b0a; } .info-card.orange .card-arrow { color: #b96b0a; background: #fff2df; }
.info-card.blue { border-color: #d7e7f5; } .info-card.blue .card-icon, .info-card.blue .card-copy strong { color: #096bb8; } .info-card.blue .card-arrow { color: #096bb8; background: #e7f3ff; }
.info-card.purple { border-color: #e8d9f1; } .info-card.purple .card-icon, .info-card.purple .card-copy strong { color: #6b2795; } .info-card.purple .card-arrow { color: #6b2795; background: #f4e9fb; }
.site-footer { display: block; padding: 26px clamp(14px, 4vw, 64px) 0; background: linear-gradient(135deg, #fff8e8 0%, #fff 48%, #f9e8d0 100%); color: var(--text); text-align: center; border-top: 4px solid #c99a3d; }
.footer-message { display: grid; grid-template-columns: minmax(0, 1fr) 190px; align-items: center; gap: 28px; width: min(1180px, 100%); margin: 0 auto; padding: 16px 0 28px; }
.footer-copy { text-align: center; }
.footer-kicker { display: inline-block; margin: 0 0 10px; padding: 7px 18px; border-radius: 999px; background: linear-gradient(90deg, #9d0b22, #d92230); color: #fff; font-size: 17px; font-weight: 800; letter-spacing: 1.6px; box-shadow: 0 5px 14px rgba(157,11,34,.2); }
.footer-copy h2 { margin: 0; color: #17476d; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.2; }
.footer-region { margin: 5px 0 7px; color: #17476d; font-size: clamp(18px, 1.8vw, 23px); font-weight: 700; }
.footer-branch { display: block; color: #b10d2a; font-size: clamp(20px, 2vw, 26px); }
.footer-wish { margin: 14px 0 0; color: #9d1730; font-size: clamp(17px, 1.6vw, 21px); font-style: italic; font-weight: 700; line-height: 1.55; }
.footer-qr { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px; border: 2px solid #d8b45d; border-radius: 18px; background: #fff; color: #9d0b22; text-decoration: none; box-shadow: 0 9px 24px rgba(90,54,17,.14); transition: transform .2s ease, box-shadow .2s ease; }
.footer-qr:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(90,54,17,.2); }
.footer-qr img { display: block; width: 150px; height: 150px; max-width: 100%; object-fit: contain; }
.footer-qr strong { font-size: 16px; letter-spacing: .7px; }
.footer-qr span { color: #52616b; font-size: 13px; line-height: 1.3; }
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 calc(-1 * clamp(14px, 4vw, 64px)); padding: 17px 18px; background: #12613e; color: #fff; }
.footer-bottom strong { font-size: 15px; letter-spacing: .5px; }
.footer-bottom span { font-size: 13px; opacity: .92; }
@media (min-width: 1400px) {
  .quick-links { gap: 20px; }
  .info-card { min-height: 190px; padding: 24px 22px 48px; }
}
@media (max-width: 1100px) {
  .quick-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .content-section { padding-right: 24px; padding-left: 24px; }
  .info-card { min-height: 165px; }
  .card-copy strong { font-size: 18px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 68px; }
  body { font-size: 16px; }
  .site-header { min-height: 62px; justify-content: center; padding: 8px 12px; }
  .brand-lockup { gap: 8px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 8px; font-size: 19px; }
  .brand-copy strong { font-size: 21px; }
  .brand-copy small { font-size: 10px; }
  .header-event { display: none; }
  .hero-banner { width: 100%; height: auto; }
  .countdown-section { padding: 30px 12px 24px; }
  .countdown-wrap { padding: 20px 10px 15px; border-radius: 17px; }
  .countdown-wrap h1 { margin-bottom: 16px; font-size: 27px; }
  .section-kicker { gap: 6px; margin-bottom: 8px; padding: 7px 12px; font-size: 15px; letter-spacing: .7px; }
  .kicker-icon { width: 23px; height: 23px; font-size: 15px; }
  .countdown { gap: 6px; }
  .time-box { min-height: 68px; padding: 8px 2px; border-radius: 11px; }
  .time-box strong { font-size: clamp(27px, 7.5vw, 35px); }
  .time-box span { margin-top: 5px; font-size: 14px; font-weight: 700; }
  .opening { margin-top: 14px; font-size: 15px; line-height: 1.5; }
  .content-section { padding: 10px 12px 24px; }
  .section-heading { margin-bottom: 14px; }
  .section-heading h2 { font-size: 29px; }
  .section-heading > p:last-child { font-size: 16px; }
  .quick-links { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .info-card {
    display: grid; grid-template-columns: 42px minmax(0, 1fr) 28px;
    grid-template-rows: auto auto; column-gap: 10px; align-items: center;
    min-height: 94px; padding: 14px 13px; border-radius: 16px;
  }
  .card-icon { grid-column: 1; grid-row: 1 / span 2; width: 44px; height: 44px; margin: 0; border-radius: 14px; font-size: 25px; }
  .card-copy { grid-column: 2; grid-row: 1 / span 2; gap: 4px; }
  .card-copy strong { font-size: 18px; line-height: 1.3; }
  .card-copy small { font-size: 14px; line-height: 1.4; }
  .card-arrow { position: static; grid-column: 3; grid-row: 1 / span 2; justify-self: center; width: 27px; height: 27px; font-size: 23px; }
  .site-footer { padding: 18px 12px 0; }
  .footer-message { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 8px 0 20px; }
  .footer-copy h2 { font-size: 24px; }
  .footer-region { font-size: 17px; line-height: 1.4; }
  .footer-branch { font-size: 20px; }
  .footer-wish { margin-top: 10px; font-size: 16px; }
  .footer-kicker { font-size: 14px; letter-spacing: 1px; }
  .footer-qr { width: min(190px, 100%); justify-self: center; padding: 10px; }
  .footer-qr img { width: 142px; height: 142px; }
  .footer-bottom { margin: 0 -12px; padding: 15px 10px calc(15px + env(safe-area-inset-bottom)); }
  .footer-bottom strong { font-size: 12px; }
  .footer-bottom span { font-size: 11px; line-height: 1.4; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}


/* Homepage gallery category */
.info-card.gallery .card-icon { background: linear-gradient(145deg, #fff4d8, #ffe2ad); color: #9a5b00; }
.info-card.gallery { border-color: #ead7a8; }
.info-card.gallery:hover { border-color: #c98a24; }

/* Bảng trận đang diễn ra thay bộ đếm ngược sau giờ khai mạc */
.live-match-panel{margin:18px auto 0;max-width:980px;text-align:left}
.live-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.live-kicker{font-size:12px;font-weight:800;letter-spacing:1px;color:#ffe6a5}
.live-status{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#fff0d5;color:#784600;font-size:12px;font-weight:900}
.live-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.live-card{min-width:0;padding:14px;border:1px solid #ffffff45;border-radius:13px;background:#fffffffa;color:#183247;box-shadow:0 5px 14px #003a2418}
.live-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.live-sport{color:#087849;font-size:12px;font-weight:800}.live-time{color:#536574;font-size:12px;font-weight:700}
.live-teams{display:block;color:#183247;font-size:17px;line-height:1.35}.live-detail{margin-top:7px;color:#617381;font-size:12px;line-height:1.45}
.live-more{display:inline-block;margin-top:14px;padding:10px 15px;border-radius:10px;background:#fff;color:#075c3b;font-weight:800;text-decoration:none}.live-more:hover{background:#e8f4ec}
.live-refresh,.live-empty{margin:10px 0 0;color:#e1f2e8;font-size:12px;line-height:1.4}
@media(max-width:700px){.live-match-panel{margin-top:14px}.live-list{grid-template-columns:1fr}.live-card{padding:12px}.live-teams{font-size:16px}.live-head{align-items:flex-start}}
