/* ================================================================
   bilacucimy2 – style.css
   Combines: reset, header, nav, slider, promo, categories,
             news grid, SEO section, sidebar, article, footer
   Colours: yellow #fbd802 | red #ff6b6b | bg #fffee9 | text #333
   ================================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow:   #fbd802;
  --yellow-dk:#e6c400;
  --red:      #ff6b6b;
  --red-dk:   #ff5252;
  --black:    #111111;
  --text:     #333333;
  --text-mid: rgba(51,51,51,.85);
  --text-lt:  rgba(51,51,51,.65);
  --bg:       #fffee9;
  --white:    #ffffff;
  --border:   rgba(51,51,51,.08);
  --shadow-sm:0 8px 18px rgba(0,0,0,.06);
  --shadow-md:0 10px 24px rgba(0,0,0,.08);
  --shadow-lg:0 14px 32px rgba(0,0,0,.12);
  --radius:   12px;
  --radius-sm:8px;
  --max-w:    1200px;
  --transition: .2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft JhengHei", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

body.header-fixed { padding-top: 130px; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--black); }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
h1,h2,h3,h4,h5 { color: var(--black); line-height: 1.3; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 15px; }

/* ---- BUTTONS ---- */
.btn-register {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}
.btn-register:hover {
  background: var(--red-dk);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255,107,107,.35);
}
.btn-login {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--text);
  transition: all var(--transition);
  cursor: pointer;
}
.btn-login:hover {
  background: var(--text);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---- HEADER ---- */
.header {
  background-color: var(--yellow);
  padding: 10px 0 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 70px;
  padding: 5px 0;
  margin-bottom: 6px;
}

.logo {
  width: 280px;
  max-width: 280px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.logo a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
}
.logo img {
  width: 100%;
  height: auto;
  max-height: 70px;
  object-fit: contain;
  object-position: left center;
}

.auth-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.menu-toggle {
  display: none;
  grid-column: 1;
  justify-self: start;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  color: var(--text);
  z-index: 101;
  background: rgba(255,255,255,.36);
  border: 1px solid rgba(17,17,17,.22);
  border-radius: 8px;
  padding: 0;
  user-select: none;
}

/* Metal divider */
.metal-divider {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.15), transparent);
}

/* Desktop nav */
.nav-container {
  width: 100%;
  background-color: var(--yellow);
  border-top: 1px solid rgba(51,51,51,.1);
  padding: 10px 0;
}
.nav-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item { margin: 0 12px; }
.nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}
.nav-link:hover { color: var(--red); }
.nav-icon { font-size: 13px; }

/* Mobile auth row */
.mobile-auth-buttons {
  display: none;
  justify-content: center;
  gap: 12px;
  padding: 8px 15px;
  background-color: var(--yellow);
  border-top: 1px solid rgba(51,51,51,.1);
}
.mobile-auth-buttons .btn-register,
.mobile-auth-buttons .btn-login {
  padding: 7px 16px;
  font-size: 13px;
}

/* ---- SIDE NAV ---- */
.side-nav {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100%;
  background-color: var(--yellow);
  z-index: 10000;
  transition: left .3s ease;
  overflow-y: auto;
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 4px 0 16px rgba(0,0,0,.2);
}
.side-nav.open { left: 0; }

.side-nav-close {
  align-self: flex-end;
  font-size: 22px;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
  padding: 2px 6px;
  margin-bottom: 2px;
  background: none;
  border: none;
}

.side-nav-logo {
  width: min(200px, 100%);
  height: 48px;
  margin: 0 auto 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.side-nav-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.side-nav-logo img {
  width: 100%;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.side-nav .nav-menu { flex-direction: column; gap: 3px; margin-top: 2px; }
.side-nav .nav-link {
  padding: 9px 12px;
  font-size: 15px;
  border-radius: 6px;
  border-bottom: 1px solid rgba(51,51,51,.1);
}
.side-nav .nav-link:hover { background: rgba(0,0,0,.08); }

.side-nav-auth { display: flex; gap: 8px; margin-top: 2px; }
.side-nav-auth .btn-register,
.side-nav-auth .btn-login {
  flex: 1;
  text-align: center;
  padding: 9px 10px;
  font-size: 13px;
  border-radius: 20px;
  display: block;
}

/* Overlay */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 9999;
  opacity: 0;
  transition: opacity .3s ease;
}
.overlay.open { display: block; opacity: 1; }

/* ---- SWIPER BANNER ---- */
.banner-section {
  background: var(--bg);
  padding: 0;
  margin: 0 0 24px;
}

.banner-section .swiper {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.banner-section .swiper-slide {
  display: flex;
  align-items: stretch;
}

.banner-section .swiper-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.banner-section .swiper { height: 420px; }

.banner-section .swiper-button-next,
.banner-section .swiper-button-prev {
  color: var(--text);
  text-shadow: 0 0 4px rgba(255,255,255,.8);
}

.banner-section .swiper-pagination-bullet {
  background: var(--text);
  opacity: .45;
}
.banner-section .swiper-pagination-bullet-active {
  background: var(--red);
  opacity: 1;
}

@media (max-width: 992px) {
  .banner-section .swiper { height: 320px; }
}
@media (max-width: 576px) {
  .banner-section .swiper { height: 200px; border-radius: 0; }
  .banner-section { margin-bottom: 14px; }
}

/* ---- STATS / PROMO FEATURES ---- */
.stats-bar {
  background: var(--bg);
  padding: 10px 0 24px;
}
.stats-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
.stat-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.stat-item:hover {
  transform: translateY(-2px);
  border-color: rgba(251,216,2,.6);
  box-shadow: 0 10px 22px rgba(0,0,0,.1);
}
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--text);
  font-size: 20px;
  flex-shrink: 0;
}
.stat-item h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: .3px;
}
.stat-item p {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--text-mid);
}

@media (max-width: 768px) {
  .stats-bar-inner { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 480px) {
  .stats-bar-inner { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .stat-item { min-width: 0; }
  .stat-item > div:last-child { min-width: 0; }
}

/* ---- PAGE CONTENT WRAPPER ---- */
.page-content { max-width: var(--max-w); margin: 0 auto; padding: 24px 15px 48px; }

/* ---- INTRO ---- */
.intro-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-md);
}
.intro-section h2 { font-size: 18px; margin-bottom: 10px; }
.intro-section h2 a { color: var(--black); }
.intro-section p { font-size: 14px; color: var(--text-mid); }

/* ---- WIDE BANNER ---- */
.wide-banner { margin-bottom: 22px; border-radius: var(--radius); overflow: hidden; }
.wide-banner img { width: 100%; height: auto; }

/* ---- BODY TEXT (SEO content) ---- */
.body-text-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-md);
}
.body-text-section h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  margin: 20px 0 8px;
}
.body-text-section h3:first-child { margin-top: 0; }
.body-text-section h3 a { color: var(--text); text-decoration: underline; }
.body-text-section p {
  margin-bottom: 10px;
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.75;
}

/* SEO section variant */
.seo-text-section {
  background: var(--bg);
  padding: 0 0 28px;
}
.seo-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.seo-title { margin: 0 0 14px; font-size: 24px; font-weight: 900; color: var(--text); }
.seo-description p { margin: 0 0 12px; color: var(--text-mid); line-height: 1.75; font-size: 14px; }
.seo-subtitle { margin: 18px 0 10px; font-size: 18px; font-weight: 900; color: var(--text); }
.seo-list { margin: 0 0 14px; padding-left: 18px; color: var(--text-mid); line-height: 1.75; }
.seo-cta {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(251,216,2,.12);
  border: 1px solid rgba(251,216,2,.3);
}
.seo-action-link {
  display: inline-block;
  margin-left: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--text) !important;
  font-weight: 900;
}
.seo-action-link:hover { background: var(--red); color: var(--white) !important; }

/* ---- ARTICLE SECTIONS (homepage grids) ---- */
.articles-section { margin-bottom: 26px; }
.articles-section h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--yellow);
}

/* 4-col article grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(251,216,2,.6);
  box-shadow: var(--shadow-lg);
}
.article-card > a img,
.article-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.card-body { padding: 12px 14px 14px; }
.article-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--red); }
.article-card p {
  font-size: 12px;
  color: var(--text-lt);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
  margin: 0;
}

/* News grid (alias) */
.news-grid-container { max-width: var(--max-w); margin: 0 auto; padding: 0 15px; }
.news-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(251,216,2,.6);
  box-shadow: var(--shadow-lg);
}
.news-image a { display: block; }
.news-image img { width: 100%; height: 170px; display: block; object-fit: cover; }
.news-content { padding: 14px; }
.news-title { margin: 0 0 8px; font-size: 15px; font-weight: 900; line-height: 1.35; }
.news-title a { color: var(--text); }
.news-title a:hover { color: var(--red); }
.news-description {
  margin: 0;
  color: var(--text-mid);
  font-size: 12px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 992px) {
  .article-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .news-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 576px) {
  .article-grid { grid-template-columns: 1fr; gap: 14px; }
  .news-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ---- GAME CATEGORIES ---- */
.game-categories-section { padding: 0 0 28px; }
.game-categories-section h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--yellow);
}

/* homepage cards (simple) */
.game-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}
.game-cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.game-cat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(251,216,2,.6);
  box-shadow: var(--shadow-lg);
}
.cat-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
}
.game-cat-card h3 { font-size: 17px; font-weight: 900; margin-bottom: 12px; }
.cat-stats { display: flex; gap: 10px; margin-bottom: 10px; }
.cat-stat-box {
  background: rgba(251,216,2,.12);
  border: 1px solid rgba(251,216,2,.28);
  border-radius: 10px;
  padding: 8px 10px;
  flex: 1;
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
  text-align: center;
}
.cat-stat-box small { display: block; font-size: 11px; font-weight: 400; color: var(--text-lt); margin-top: 2px; }
.cat-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text);
}

/* reference-style game category cards */
.game-categories-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}
.game-category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.game-category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(251,216,2,.6);
  box-shadow: var(--shadow-lg);
}
.game-category-card .category-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.game-category-card .category-icon i { font-size: 22px; }
.game-category-card .category-title { margin: 0 0 10px; font-size: 17px; font-weight: 900; }
.game-category-card .category-stats { display: flex; gap: 14px; margin-bottom: 10px; }
.game-category-card .stat-item {
  background: rgba(251,216,2,.12);
  border: 1px solid rgba(251,216,2,.25);
  border-radius: 10px;
  padding: 8px 10px;
  flex: 1;
  display: block;
  box-shadow: none;
}
.game-category-card .stat-item:hover { transform: none; box-shadow: none; }
.game-category-card .stat-value { display: block; font-size: 15px; font-weight: 900; color: var(--text); }
.game-category-card .stat-label { display: block; font-size: 11px; color: var(--text-mid); margin-top: 2px; }
.game-category-card .popular-games { display: flex; flex-wrap: wrap; gap: 7px; }
.game-category-card .popular-game {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text);
}

@media (max-width: 992px) {
  .game-cat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .game-categories-container { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 576px) {
  .game-cat-grid { grid-template-columns: 1fr; }
  .game-categories-container { grid-template-columns: 1fr; }
}

/* ---- ABOUT SECTION ---- */
.about-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}
.about-section h2 { font-size: 20px; margin-bottom: 14px; }
.about-section h3 { font-size: 17px; margin: 20px 0 8px; font-weight: 800; }
.about-section p { font-size: 14px; color: var(--text-mid); margin-bottom: 10px; line-height: 1.75; }
.advantage-list { margin: 8px 0 14px 18px; list-style: disc; }
.advantage-list li { margin-bottom: 7px; font-size: 14px; color: var(--text-mid); }
.join-now-box {
  background: rgba(251,216,2,.12);
  border: 1px solid rgba(251,216,2,.3);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-top: 14px;
}
.join-now-box p { margin: 0; font-size: 14px; }
.btn-join-now {
  display: inline-block;
  background: var(--yellow);
  color: var(--text);
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 8px;
}
.btn-join-now:hover { background: var(--yellow-dk); color: var(--text); }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-lt);
}
.breadcrumb a { color: var(--text-lt); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-inner { display: inline; }

.page-title { padding: 10px 0 8px; }
.page-title h1 { font-size: 15px; color: var(--text-lt); font-weight: 400; margin: 0; }

/* ---- LIST PAGE ---- */
.article-list-container { padding: 0 0 48px; }

.list-container {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 26px;
  align-items: start;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 22px;
}

.article-list .article-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-radius: var(--radius);
}

.article-image { overflow: hidden; flex-shrink: 0; }
.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 145px;
  display: block;
}

.article-list .article-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.article-list .article-title { font-size: 15px; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.article-list .article-title a { color: var(--text); }
.article-list .article-title a:hover { color: var(--red); }
.article-description {
  font-size: 13px;
  color: var(--text-lt);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-link {
  display: inline-block;
  padding: 6px 14px;
  background: var(--yellow);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  align-self: flex-start;
}
.article-link:hover { background: var(--yellow-dk); color: var(--text); }

/* Pagination */
.pagination { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 12px; }
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  background: var(--white);
  color: var(--text);
  border-radius: 6px;
  font-size: 13px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
}
.pagination a:hover,
.pagination .thisclass { background: var(--yellow); color: var(--text); border-color: var(--yellow); }

/* ---- SIDEBAR (list page) ---- */
.sidebar { display: flex; flex-direction: column; gap: 0; }

.recent-posts {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--yellow);
}

.recent-posts-list { display: flex; flex-direction: column; gap: 12px; }

.recent-post-item { display: grid; grid-template-columns: 82px 1fr; gap: 9px; align-items: start; }

.recent-post-image { overflow: hidden; border-radius: 6px; }
.recent-post-image img { width: 82px; height: 62px; object-fit: cover; border-radius: 6px; display: block; }

.recent-post-title { font-size: 12px; margin: 0 0 3px; line-height: 1.4; }
.recent-post-title a { color: var(--text); }
.recent-post-title a:hover { color: var(--red); }
.recent-post-date { font-size: 11px; color: var(--text-lt); }

/* ---- ARTICLE PAGE ---- */
.article-container {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 26px;
  align-items: start;
  padding-bottom: 48px;
}

.article-header { margin-bottom: 16px; }
.article-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-lt);
}
.meta-item { display: flex; align-items: center; gap: 5px; }
.meta-icon { color: var(--yellow-dk); }

.article-content-box {}

/* TOC */
.toc-container {
  background: rgba(251,216,2,.1);
  border-left: 3px solid var(--yellow);
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: 0 8px 8px 0;
}
.toc-title { font-size: 14px; font-weight: 800; color: var(--text); margin: 0 0 10px; }
.toc-container ul { padding-left: 16px; list-style: decimal; margin: 0; }
.toc-container ul li { margin-bottom: 5px; }
.toc-container ul li a { color: var(--text); font-size: 13px; }
.toc-container ul li a:hover { color: var(--red); }
.toc-container ul .toc-h3 { padding-left: 14px; }

/* Article body */
.article-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
  color: var(--text);
  line-height: 1.85;
}
.article-content h1,
.article-content h2 { font-size: 20px; margin: 24px 0 10px; padding-bottom: 6px; border-bottom: 1px solid #e0e0e0; }
.article-content h3 { font-size: 17px; margin: 18px 0 8px; }
.article-content h4 { font-size: 15px; margin: 14px 0 6px; }
.article-content p { margin-bottom: 14px; }
.article-content ul,
.article-content ol { margin: 8px 0 14px 20px; }
.article-content li { margin-bottom: 6px; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content img { margin: 16px auto; border-radius: 6px; }
.article-content a { color: #1a73e8; text-decoration: underline; }
.article-content strong { color: var(--black); }

/* Tags */
.article-tags { margin: 24px 0 16px; }
.article-tags h4 { font-size: 13px; font-weight: 700; color: var(--text-lt); margin-bottom: 9px; }
.tags-container { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-link {
  background: #f0f4ff;
  border: 1px solid #c5d0f5;
  border-radius: 4px;
  color: #1a73e8;
  font-size: 12px;
  padding: 4px 10px;
}
.tag-link:hover { background: #1a73e8; color: var(--white); }

/* Social share */
.social-share { display: flex; gap: 9px; margin: 18px 0; }
.social-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--white);
  font-size: 15px;
  transition: opacity var(--transition);
}
.social-share a:hover { opacity: .8; color: var(--white); }
.social-share .facebook { background: #1877f2; }
.social-share .twitter  { background: #1da1f2; }
.social-share .whatsapp { background: #25d366; }

/* Prev/Next nav */
.article-navigation { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.article-navigation a {
  font-size: 13px;
  color: var(--text);
  background: var(--white);
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0,0,0,.08);
  display: block;
  max-width: 48%;
}
.article-navigation a:hover { color: var(--red); }

/* Article sidebar */
.article-sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.sidebar-section .sidebar-title { margin-bottom: 12px; }
.recommended-posts { display: flex; flex-direction: column; gap: 7px; }
.recommended-posts a {
  font-size: 13px;
  color: var(--text);
  background: #f5f7fa;
  border-radius: 6px;
  padding: 7px 10px;
  display: block;
  line-height: 1.4;
}
.recommended-posts a:hover { background: var(--yellow); color: var(--text); }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--yellow);
  margin-top: 32px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 18px 15px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 0; }
.footer-col {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.footer-col h3,
.footer-col h4 { font-size: 14px; font-weight: 800; margin-bottom: 12px; color: var(--text); }
.footer-info-block p { font-size: 13px; color: var(--text-lt); margin-bottom: 6px; }
.footer-info-block a { color: #1a73e8; }
.footer-info-block a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-direction: column; gap: 5px; }
.footer-links li a { font-size: 13px; color: var(--text); padding: 2px 0; display: block; }
.footer-links li a:hover { color: var(--red); }
.footer-bottom {
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 12px; color: var(--text); }
.footer-bottom a { color: var(--text); }
.footer-bottom a:hover { text-decoration: underline; }

/* Modern footer accordion (reference structure) */
.modern-footer {
  background: #000 !important;
  color: #f0f0f0;
  padding: 0;
  margin-top: 40px;
  overflow: hidden;
}
.footer-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 22px;
  margin: 30px 0;
}
.footer-card {
  background: #0f0f0f;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(212,175,55,.1);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transition: transform var(--transition);
}
.footer-card:hover { transform: translateY(-4px); }

.card-header {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  background: #1a1a1a;
  cursor: pointer;
  border-bottom: 1px solid rgba(212,175,55,.1);
  transition: background var(--transition);
}
.card-header:hover { background: #222; }
.card-header i { font-size: 18px; margin-right: 12px; color: #d4af37; }
.card-header h3 { flex: 1; margin: 0; font-size: 17px; font-weight: 700; color: var(--white); }
.toggle-icon { font-size: 14px !important; color: var(--white) !important; margin-right: 0 !important; transition: transform .3s ease; }
.card-header.active .toggle-icon { transform: rotate(180deg); }

.card-content { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 18px; }
.card-content.active { background: #0a0a0a; }

.footer-bottom-bar {
  background: rgba(0,0,0,.5);
  padding: 18px 0;
  border-top: 1px solid rgba(212,175,55,.1);
}
.copyright-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.copyright-text { font-size: 13px; color: #b0b0b0; }

/* ---- RESPONSIVE: mobile ---- */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-container { display: none; }
  .auth-buttons { display: none; }
  .mobile-auth-buttons { display: flex; }

  .header-top {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    min-height: 54px;
    padding: 6px 0;
    position: relative;
    margin-bottom: 0;
  }
  .logo {
    width: 158px;
    max-width: 158px;
    height: 44px;
    margin: 0 auto;
    grid-column: 2;
    justify-content: center;
  }
  .logo a { justify-content: center; }
  .logo img {
    max-height: 44px;
    object-position: center;
  }
  .menu-toggle {
    position: static;
    transform: none;
    grid-column: 1;
    justify-self: start;
  }

  .list-container { grid-template-columns: 1fr; }
  .article-list .article-card { grid-template-columns: 1fr; }
  .article-image img { min-height: 180px; }
  .article-container { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-cards { grid-template-columns: 1fr; }
  .copyright-wrapper { flex-direction: column; text-align: center; }

  .game-cat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .game-categories-container { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 480px) {
  .side-nav { width: 260px; }
  .stats-bar-inner { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .game-cat-grid { grid-template-columns: 1fr; }
  .game-categories-container { grid-template-columns: 1fr; }
}

/* ================================================================
   REFERENCE CLASS ALIASES
   Classes used by list_article.htm and article_article.htm
   ================================================================ */

/* Nav — match reference: 16px weight 500, uppercase */
.nav-link {
  font-size: 16px !important;
  font-weight: 500 !important;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* page-wrap spacing */
.page-wrap { padding: 20px 0 50px; }

/* LIST PAGE layout aliases */
.list-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 26px;
  align-items: start;
}
.list-main {}
.list-sidebar { display: flex; flex-direction: column; gap: 16px; }

/* cat-description */
.cat-description { margin-bottom: 16px; }
.cat-description h1 { font-size: 15px; color: var(--text-lt); font-weight: 400; margin: 0; }

/* list-article-grid */
.list-article-grid { display: flex; flex-direction: column; gap: 18px; margin-bottom: 22px; }

/* list-article-card */
.list-article-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.list-article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.list-article-card > a { display: block; overflow: hidden; flex-shrink: 0; }
.list-article-card > a img { width: 100%; height: 100%; min-height: 145px; object-fit: cover; display: block; }

.list-article-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.list-article-body h3 { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.list-article-body h3 a { color: var(--text); }
.list-article-body h3 a:hover { color: var(--red); }
.list-article-excerpt {
  font-size: 13px;
  color: var(--text-lt);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.65;
}
.read-more-btn {
  display: inline-block;
  padding: 6px 16px;
  background: var(--yellow);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  align-self: flex-start;
}
.read-more-btn:hover { background: var(--yellow-dk); color: var(--text); }

/* Sidebar widgets */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.sidebar-widget h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--yellow);
}
.sidebar-info p { font-size: 13px; color: var(--text-lt); margin-bottom: 6px; line-height: 1.6; }
.sidebar-info a { color: #1a73e8; }
.sidebar-info a:hover { text-decoration: underline; }
.sidebar-links { display: flex; flex-direction: column; gap: 5px; }
.sidebar-links li a { font-size: 13px; color: var(--text); display: block; padding: 4px 0; border-bottom: 1px solid #f0f0f0; }
.sidebar-links li a:hover { color: var(--red); }
.sidebar-date { display: block; font-size: 11px; color: var(--text-lt); margin-top: 2px; }

/* Sidebar thumbnail list */
.sidebar-article-list { display: flex; flex-direction: column; gap: 12px; list-style: none; padding: 0; margin: 0; }
.sidebar-article-list li { display: grid; grid-template-columns: 70px 1fr; gap: 9px; align-items: start; }
.sidebar-article-list li a:first-child { display: block; overflow: hidden; border-radius: 6px; }
.sidebar-article-list li a:first-child img { width: 70px; height: 52px; object-fit: cover; border-radius: 6px; display: block; }
.sidebar-article-list li > div { display: flex; flex-direction: column; }
.sidebar-article-list li > div a { font-size: 12px; color: var(--text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-article-list li > div a:hover { color: var(--red); }

/* ARTICLE PAGE layout aliases */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 26px;
  align-items: start;
  padding-bottom: 48px;
}
.article-main {}
.article-body {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.article-title { font-size: 24px; font-weight: 900; color: var(--black); margin-bottom: 14px; line-height: 1.35; }

/* TOC box (id=tocBox, list id=tocList) */
.toc-box {
  background: rgba(251,216,2,.1);
  border-left: 4px solid var(--yellow);
  padding: 14px 18px;
  margin: 16px 0 20px;
  border-radius: 0 8px 8px 0;
}
.toc-box strong { font-size: 14px; font-weight: 800; color: var(--text); display: block; margin-bottom: 10px; }
#tocList { padding-left: 16px; list-style: decimal; margin: 0; }
#tocList li { margin-bottom: 5px; }
#tocList li a { color: var(--text); font-size: 13px; }
#tocList li a:hover { color: var(--red); }

/* Share buttons */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 16px;
  padding: 14px;
  background: #f5f7fa;
  border-radius: 8px;
}
.share-buttons strong { font-size: 13px; color: var(--text-lt); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: opacity var(--transition);
}
.share-btn:hover { opacity: .85; color: var(--white); }
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-wa { background: #25d366; }

/* Article prev/next nav */
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.article-nav-item {
  flex: 1;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.article-nav-item span { font-size: 11px; color: var(--text-lt); display: block; margin-bottom: 4px; }
.article-nav-item a { font-size: 13px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-nav-item a:hover { color: var(--red); }
.article-nav-item.next { text-align: right; }

/* Article sidebar alias */
.article-sidebar { display: flex; flex-direction: column; gap: 0; }

/* Responsive: list + article layouts */
@media (max-width: 768px) {
  .list-layout { grid-template-columns: 1fr; }
  .list-sidebar { display: none; }
  .list-article-card { grid-template-columns: 1fr; }
  .list-article-card > a img { min-height: 180px; }

  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .article-title { font-size: 20px; }
}
