/* ===== NowGoals PHP — style riêng của site (nạp sau CSS của nguồn) =====
   Bảng màu theo logo NOWGOAL: xanh dương chủ đạo #1a60b8, đậm #144e96,
   nền sâu #0c3059, xanh nhạt #4a86c8, điểm nhấn #8ec9ff.
   MỌI selector của header mang tiền tố ng- để không trùng với CSS của nguồn
   (#header nav, ul#mainmenu... của nguồn có độ ưu tiên cao, dùng trùng tên
   sẽ bị đè). */
:root{--ng-primary:#1a60b8;--ng-primary-dark:#144e96;--ng-deep:#0c3059;--ng-sky:#4a86c8;--ng-link:#155aab;--ng-accent:#8ec9ff}
body{font-family:Roboto,Arial,sans-serif;background:#eef3f8}
a{color:var(--ng-link)}
a:hover{color:#2f7fd0;text-decoration:none}

/* ---- Header ---- */
.ng-top-header{padding:8px 0;background:#fff;border-bottom:1px solid #d7e4f2}
.ng-header-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.ng-header-logo .logo-text{font-size:30px;font-weight:800;color:var(--ng-primary);letter-spacing:-.5px}
.ng-header-logo img{max-height:30px;width:auto;display:block}
.ng-header-banner{flex:1;display:flex;justify-content:flex-end;min-height:60px;align-items:center}
.ng-header-banner img{max-width:100%;height:auto}
#ng-nav{background:linear-gradient(90deg,var(--ng-primary-dark),var(--ng-primary));border-bottom:2px solid rgba(142,201,255,.65);box-shadow:0 2px 8px rgba(12,48,89,.35);position:relative;z-index:30}
#ng-mainmenu{list-style:none;margin:0;padding:0;display:flex;flex-wrap:nowrap}
#ng-mainmenu li a{display:block;color:#fff;padding:11px 11px;font-weight:600;font-size:13.5px;text-transform:uppercase;white-space:nowrap}
#ng-mainmenu li a:hover,#ng-mainmenu li.active a{background:rgba(255,255,255,.17);color:#fff}
#ngMenuBtn{display:none;background:none;border:0;color:#fff;font-size:22px;padding:8px 12px;cursor:pointer}
@media(max-width:1150px){
  #ngMenuBtn{display:block}
  #ng-mainmenu{display:none;flex-direction:column}
  #ng-mainmenu.open{display:flex}
  #ng-mainmenu li a{white-space:normal}
  .ng-header-row{flex-direction:column;text-align:center}
  .ng-header-banner{justify-content:center;width:100%}
  .ng-header-logo img{max-height:24px;margin:0 auto}
}

/* ---- Khung dữ liệu nguồn ----
   Giữ đúng cấu trúc nguồn (3 khối con trực tiếp của .container, bề rộng do
   CSS nguồn tính: trái 160 + giữa calc(100% - 480px) + phải 300). Container
   dùng flex để 3 cột cao bằng nhau, các khung sidebar giãn đều cho đáy các
   cột cân nhau (khung BXH / Các giải đấu khác dài ra bằng cột giữa). */
#main-content{padding-top:10px}
#main-content .container{display:flex;align-items:stretch}
#main-content #content{flex:none}
.ng-col-right{float:left;width:300px;margin-left:10px;flex:none;display:flex;flex-direction:column}
.ng-col-right #r-sidebar{float:none;display:flex;flex-direction:column;width:auto;margin:0;flex:1 1 auto}
#l-sidebar .box-sidebar,.ng-col-right #r-sidebar .box-sidebar{flex:0 0 auto;display:flex;flex-direction:column}
#l-sidebar .box-sidebar:last-child,.ng-col-right #r-sidebar .box-sidebar:last-child{flex:1 1 auto}
#l-sidebar .box-sidebar .content-sidebar,.ng-col-right #r-sidebar .box-sidebar .content-sidebar{flex:1 1 auto}
/* Nguồn khóa cứng chiều cao 2 khung này (BXH 390px, giải khác 450px) kèm
   thanh cuộn — bỏ khóa để BXH hiện đủ đội và danh sách giải lấp đầy khung
   đã giãn (hiện được nhiều giải hơn, đáy khung cân với cột giữa). */
.bxh-chitietgiai table{height:auto!important;overflow:visible!important}
/* Danh sách giải khác: neo tuyệt đối lấp đúng khung đã giãn để đáy khung
   luôn bằng chân cột giữa (dòng Xem thêm); phần thừa cuộn bên trong.
   Neo theo %/flex thường sẽ tự phình theo nội dung ~60 nước và đẩy cả
   hàng dài hơn cột giữa. Sidebar trái chỉ hiện ở >=1200px (visible-lg). */
@media(min-width:1200px){
  #l-sidebar .box-sidebar:last-child .content-sidebar{position:relative}
  .giaikhac #giaikhac-sidebar{position:absolute;inset:0;height:auto!important;overflow-y:auto}
}
@media(min-width:1200px){#main-content #l-sidebar{display:flex!important;flex-direction:column;flex:none}}
.clf{display:table;clear:both}
@media(max-width:991px){
  #main-content .container{flex-direction:column}
  .ng-col-right{float:none;width:auto;margin:10px 0 0}
}

/* ---- Đổi màu xanh lá của nguồn sang xanh dương của logo ---- */
.title-sidebar{background:var(--ng-primary)!important}
.bg_blue{background:var(--ng-primary)!important}
.bg_cyan{background:var(--ng-sky)!important}
.box-news-home .block-title{background:var(--ng-primary)!important}
#content #tabs_type1 ul li a.current{background:var(--ng-primary)!important}
#content #tabs_type2 ul li a.current{color:var(--ng-primary)!important}
.bxh table caption{background:var(--ng-primary)!important}
#bxh-big .title{background:var(--ng-primary)!important}
.ltd-ct h1,.dudoan h1,.dudoan h2,.lps h1{background:var(--ng-primary)!important}
.box-news-home .news-lastest .name a{color:var(--ng-link)!important}
#content #round-ct li a{color:var(--ng-link)!important}
.info-team .info .name{color:var(--ng-primary-dark)!important}
#tabs_title ul li a.current,#tab1-chitiet li a.current{color:var(--ng-primary)!important}
.note-home a{color:var(--ng-link)!important}
.bxh-giai ul li a.current{color:var(--ng-primary)!important}
.bxh-chitietgiai tbody tr:nth-child(1) td.stt,.bxh-chitietgiai tbody tr:nth-child(2) td.stt,.bxh-chitietgiai tbody tr:nth-child(3) td.stt{background:var(--ng-primary)}
.bxh-chitietgiai tbody tr:nth-child(4) td.stt,.bxh-chitietgiai tbody tr:nth-child(5) td.stt{background:var(--ng-sky)}
.bxh-chitiet table .top123{background:var(--ng-primary)}
.bxh-chitiet table .top4{background:var(--ng-sky)}
.bxh-chitiet table .top5{background:#9cc3ea}
#content #giaikhac li.title{background:#d7e8fa}
#giaikhac.bxh-daily .showmore{color:var(--ng-primary-dark)}
.keo .match .table_2 td a{color:var(--ng-link)}
#list-other ul li a:hover,#list-other ul li a.current{color:var(--ng-primary)}
#content #giaikhac li a:hover{color:var(--ng-primary)}
#s_giaidau #search form button{color:var(--ng-primary)}
.note-table strong{color:var(--ng-primary)}
.dudoan table.tips td.chon{color:var(--ng-primary)}

/* ---- Quảng cáo ---- */
.ng-ads{margin:10px auto;text-align:center}
.ng-ads img{max-width:100%;height:auto;border-radius:4px}
.ng-ads-header{margin:0}
.ng-catfish{position:fixed;left:0;right:0;bottom:0;z-index:999;background:rgba(12,48,89,.95);text-align:center;padding:6px 40px 6px 6px;box-shadow:0 -4px 18px rgba(0,0,0,.3)}
.ng-catfish img{max-height:90px;max-width:100%;height:auto}
.ng-catfish-close{position:absolute;top:4px;right:8px;background:#fff;border:0;border-radius:50%;width:26px;height:26px;font-size:17px;line-height:1;cursor:pointer;z-index:2}
.ng-popup-overlay{position:fixed;inset:0;background:rgba(0,0,0,.65);z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px}
.ng-popup-box{position:relative;background:#fff;border-radius:10px;max-width:560px;width:100%;padding:18px;box-shadow:0 24px 60px rgba(0,0,0,.45);text-align:center}
.ng-popup-box img{max-width:100%;height:auto}
.ng-popup-close{position:absolute;top:6px;right:10px;background:#f1f1f1;border:0;border-radius:50%;width:30px;height:30px;font-size:19px;cursor:pointer;z-index:2}

/* ---- Bài viết ---- */
.ng-plain{padding:22px 15px 34px}
.ng-h1{font-size:24px;font-weight:800;color:var(--ng-primary-dark);margin:6px 0 14px}
.ng-h2{font-size:20px;font-weight:800;color:var(--ng-primary-dark);margin:22px 0 12px}
.ng-cat-chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.ng-cat-chips a{background:#fff;border:1px solid #b9d2ec;border-radius:999px;padding:6px 14px;font-weight:600;font-size:13px;color:var(--ng-primary-dark)}
.ng-cat-chips a:hover{background:var(--ng-primary);color:#fff}
.ng-post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media(max-width:900px){.ng-post-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.ng-post-grid{grid-template-columns:1fr}}
.ng-post-card{background:#fff;border:1px solid #d3e1f0;border-radius:10px;overflow:hidden;display:flex;flex-direction:column}
.ng-post-thumb{display:block;aspect-ratio:16/9;background:#d9e8f7;overflow:hidden}
.ng-post-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.ng-post-thumb-empty{display:flex;align-items:center;justify-content:center;height:100%;font-size:44px}
.ng-post-body{padding:12px 14px}
.ng-post-cat{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:var(--ng-primary)}
.ng-post-body h3{font-size:16px;line-height:1.35;margin:5px 0 6px}
.ng-post-body h3 a{color:#12293f}
.ng-post-meta{font-size:12px;color:#7e97ad;margin-bottom:6px}
.ng-post-body p{font-size:13.5px;color:#43597a;margin:0}
.ng-pager{display:flex;gap:6px;justify-content:center;margin-top:20px}
.ng-pager a{background:#fff;border:1px solid #b9d2ec;padding:6px 12px;border-radius:6px;font-weight:600}
.ng-pager a.cur{background:var(--ng-primary);color:#fff}
.ng-empty{background:#fff;border:1px dashed #9dbfdd;border-radius:8px;padding:22px;text-align:center;color:#4d6a8a}
.ng-more{text-align:center;margin:14px 0 4px}
.ng-more a{font-weight:700}
.ng-home-news{padding:8px 15px 26px}
.ng-search{display:flex;gap:8px;max-width:520px;margin-bottom:18px}
.ng-search input{flex:1;padding:10px 12px;border:1px solid #b9d2ec;border-radius:8px}
.ng-search button{background:var(--ng-primary);color:#fff;border:0;border-radius:8px;padding:10px 20px;font-weight:700;cursor:pointer}
.ng-article-wrap{max-width:860px;padding:20px 15px 34px}
.ng-article{background:#fff;border:1px solid #d3e1f0;border-radius:10px;padding:24px}
.ng-article h1{font-size:26px;line-height:1.3;margin:4px 0 8px;color:#0e2a47}
.ng-crumb{font-size:13px;color:#6d87a0;margin-bottom:8px}
.ng-article-meta{font-size:13px;color:#7e97ad;border-bottom:1px solid #e6eef6;padding-bottom:10px;margin-bottom:14px}
.ng-article-img{width:100%;height:auto;border-radius:8px;margin-bottom:14px}
.ng-article-body{font-size:15.5px;line-height:1.75;color:#21374f}
.ng-article-body img{max-width:100%;height:auto}
.ng-article-body a{color:var(--ng-link);font-weight:600}
.ng-source-err h1{color:#b3261e}

/* ================= FOOTER — xanh sáng theo logo, kiểu nowgoals.org ================= */
.footer-custom{background:linear-gradient(180deg,#17579f 0%,#0c3059 100%);color:#e8f1fa;padding:30px 0 20px;font-family:Arial,sans-serif;text-align:center;clear:both;margin-top:26px}
.footer-custom a{color:#fff;text-decoration:none;transition:all .25s ease}
.footer-custom a:hover{color:#8ec9ff}
.footer-logo{font-size:24px;font-weight:700;color:#fff;line-height:1.1;margin-bottom:10px;letter-spacing:-.5px}
.footer-about{max-width:760px;margin:0 auto 14px;font-size:13.5px;color:#c9def5;line-height:1.6}
.footer-social{display:flex;justify-content:center;align-items:center;gap:20px;margin-bottom:18px;flex-wrap:wrap}
.footer-social a{display:inline-flex;align-items:center;gap:6px;font-size:14px;opacity:.92}
.footer-menu{max-width:1100px;margin:0 auto 15px;display:flex;justify-content:center;flex-wrap:wrap;gap:8px 22px;line-height:1.4}
.footer-menu a{font-size:14px;font-weight:500}
.footer-links{max-width:1100px;margin:0 auto 18px;line-height:1.6;font-size:13px;color:#c9def5}
.footer-links .label{font-weight:600;margin-right:8px;color:#fff}
.footer-links a{margin:0 4px;font-size:13px;color:#f5f9ff}
.footer-divider{width:100%;max-width:900px;height:1px;background:rgba(255,255,255,.16);margin:0 auto 15px}
.footer-copy{font-size:12px;color:#a9c6e6;line-height:1.5}
@media(max-width:768px){.footer-custom{padding:20px 15px}.footer-menu{gap:5px 15px}.footer-links{line-height:1.5}}

/* ---- Trang bài viết của nguồn: bỏ díu chữ ----
   Breadcrumb của nguồn cao cố định 35px, tiêu đề dài sẽ tràn xuống đè khối
   dưới; thân bài của nguồn chèn thêm 1 thẻ h1 trùng y hệt tiêu đề chính và
   cỡ chữ chỉ 13px với heading 14px — nới hết ra cho dễ đọc. */
#breadcrumb{height:auto;min-height:35px}
.news #breadcrumb a:last-child{line-height:1.5;padding:7px 0}
.news .block-title{padding:12px 14px}
.news .block-title h1{font-size:19px;line-height:1.45;text-transform:none}
.news .block-title .meta-post{margin-top:6px;font-size:12.5px}
.news .content-post{padding:14px 16px;font-size:15px!important;line-height:1.8}
.news .content-post>h1:first-child{display:none}
.news .content-post h1{font-size:19px;line-height:1.5;margin:14px 0 8px}
.news .content-post h2,.news .content-post h3,.news .content-post h4{font-size:16.5px;line-height:1.5;margin:14px 0 8px}
.news .content-post p{margin:0 0 10px}
.news .content-post a{color:var(--ng-link)}
