/* ================================================================
   8mhd standalone DedeBIZ theme
   Combines: reset, header, nav, slider, network trust, promo,
             categories, games grid, VIP tiers, SEO content,
             articles grid, sidebar, article, footer
   Colours: derived from the 8mhd logo/promotional artwork —
            deep teal-green + gold, on a warm cream base.
   ================================================================ */

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

:root {
  --teal-dark:  #0a2e29;
  --teal:       #0f5c52;
  --teal-light: #17a898;
  --gold:       #c9992b;
  --gold-light: #e8c874;
  --header-dark: #0a2e29;
  --black:      #1a2422;
  --text:       #1a2422;
  --text-mid:   rgba(26,36,34,.82);
  --text-lt:    rgba(26,36,34,.62);
  --bg:         #f7f4ea;
  --white:      #ffffff;
  --border:     rgba(15,92,82,.14);
  --shadow-sm:  0 8px 18px rgba(10,46,41,.07);
  --shadow-md:  0 10px 24px rgba(10,46,41,.09);
  --shadow-lg:  0 14px 32px rgba(10,46,41,.14);
  --radius:     12px;
  --radius-sm:  8px;
  --max-w:      1200px;
  --transition: .2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: Arial, Helvetica, 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(--teal); }
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; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 20000; background: var(--black); color: var(--white); padding: 10px 14px; border-radius: 6px; }
.skip-link:focus { top: 12px; }

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

/* ---- HEADER ---- */
.header {
  background-color: var(--header-dark);
  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: 200px; max-width: 200px; height: 62px; 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: 62px; object-fit: contain; object-position: left center; }

.header-right { display: flex; align-items: center; gap: 14px; }
.lang-flag { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

.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,.85);
  border: 1px solid rgba(17,17,17,.22);
  border-radius: 8px;
  padding: 0;
  user-select: none;
}

.metal-divider { height: 2px; width: 100%; background: linear-gradient(90deg, transparent, rgba(232,200,116,.35), transparent); }

/* Desktop nav */
.nav-container { width: 100%; background-color: var(--header-dark); border-top: 1px solid rgba(255,255,255,.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(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.nav-link:hover { color: var(--gold-light); }
.nav-icon { font-size: 13px; }

/* Mobile auth row */
.mobile-auth-buttons {
  display: none;
  justify-content: center;
  gap: 12px;
  padding: 8px 15px;
  background-color: var(--header-dark);
  border-top: 1px solid rgba(255,255,255,.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(--header-dark);
  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(--white); line-height: 1; padding: 2px 6px; margin-bottom: 2px; background: none; border: none; }

.side-nav-logo { width: min(180px, 100%); height: 46px; 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: 46px; 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(255,255,255,.12); }
.side-nav .nav-link:hover { background: rgba(255,255,255,.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; position: relative; }
.banner-section .swiper-wrapper { width: 100%; height: 100%; position: relative; }
.banner-section .swiper-slide { display: none; align-items: stretch; width: 100%; height: 100%; }
.banner-section .swiper-slide.is-active { display: flex; }
.banner-section .swiper-slide img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.banner-section .swiper { aspect-ratio: 2.1 / 1; }

.banner-section .swiper-button-next,
.banner-section .swiper-button-prev {
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 0 8px rgba(0,0,0,.55);
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.16);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}
.banner-section .swiper-button-prev { left: 14px; }
.banner-section .swiper-button-next { right: 14px; }
.banner-section .swiper-pagination { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 5; display: flex; justify-content: center; gap: 8px; }
.banner-section .swiper-pagination button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.58); cursor: pointer; }
.banner-section .swiper-pagination button.is-active { background: var(--gold); }

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

/* ---- NETWORK TRUST SECTION ---- */
.network-trust-section { background: var(--teal-dark); padding: 22px 0; }
.network-trust-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.network-badge { width: 150px; height: auto; flex-shrink: 0; }
.trust-grid { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; min-width: 0; }
.trust-item { display: flex; gap: 10px; align-items: flex-start; }
.trust-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold);
  color: var(--teal-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; flex-shrink: 0;
}
.trust-item h3 { color: var(--white); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .2px; margin-bottom: 3px; }
.trust-item p { color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.5; }

@media (max-width: 900px) {
  .trust-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 480px) {
  .network-trust-inner { flex-direction: column; text-align: center; }
  .trust-item { flex-direction: column; align-items: center; text-align: center; }
}

/* ---- 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 h1 { font-size: 20px; margin-bottom: 10px; }
.intro-section p { font-size: 14px; color: var(--text-mid); }

/* ---- SECTION HEADINGS ---- */
.section-lead { font-size: 14px; color: var(--text-mid); margin-bottom: 16px; }
.cat-cta { margin-top: 10px; }
.cat-cta a { display: inline-block; font-weight: 800; color: var(--teal); font-size: 14px; }
.cat-cta a:hover { color: var(--gold); }

/* ---- GAME CATEGORIES ---- */
.game-categories-section { padding: 0 0 28px; }
.game-categories-section h2,
.top-games-section h2,
.promotions-section h2,
.vip-section h2,
.articles-section h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 8px;
  padding-left: 12px;
  border-left: 4px solid var(--gold);
}

.game-categories-container { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; margin-top: 16px; }
.game-category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: block;
}
.game-category-card:hover { transform: translateY(-3px); border-color: rgba(201,153,43,.6); box-shadow: var(--shadow-lg); }
.category-icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--teal-dark);
  color: var(--gold-light);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 10px;
}
.category-title { font-size: 16px; font-weight: 900; margin-bottom: 6px; color: var(--text); }
.game-category-card p { font-size: 12px; color: var(--text-lt); line-height: 1.5; }

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

/* ---- TOP GAMES GRID ---- */
.top-games-section { padding: 0 0 28px; }
.game-tile-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; margin: 16px 0 12px; }
.game-tile { display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
.game-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.game-tile img { width: 100%; aspect-ratio: 313 / 432; object-fit: cover; }
.providers-note { font-size: 12px; color: var(--text-lt); }

@media (max-width: 900px) { .game-tile-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 480px) { .game-tile-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }

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

/* ---- PROMOTIONS GRID ---- */
.promotions-section { padding: 0 0 28px; }
.promo-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin: 16px 0 10px; }
.promo-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.promo-card h3 { font-size: 15px; font-weight: 900; margin-bottom: 8px; color: var(--teal); }
.promo-card p { font-size: 13px; color: var(--text-mid); line-height: 1.6; }
.promo-card ul { padding-left: 18px; list-style: disc; }
.promo-card li { font-size: 13px; color: var(--text-mid); margin-bottom: 4px; }

@media (max-width: 900px) { .promo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 576px) { .promo-grid { grid-template-columns: 1fr; } }

/* ---- VIP TIERS ---- */
.vip-section { padding: 0 0 28px; }
.vip-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; margin-top: 16px; }
.vip-tile { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 10px; text-align: center; box-shadow: var(--shadow-sm); }
.vip-tile img { width: 72px; height: 72px; margin: 0 auto 8px; object-fit: contain; }
.vip-tile span { display: block; font-size: 13px; font-weight: 900; color: var(--teal-dark); text-transform: uppercase; letter-spacing: .3px; }

@media (max-width: 700px) { .vip-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 420px) { .vip-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ---- 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 h2 { font-size: 19px; font-weight: 900; color: var(--text); margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--gold); }
.body-text-section h2:first-child { margin-top: 0; }
.body-text-section p { margin-bottom: 10px; color: var(--text-mid); font-size: 14px; line-height: 1.75; }
.numbered-list { margin: 8px 0 16px 24px; color: var(--text-mid); line-height: 1.75; }
.numbered-list li { margin-bottom: 6px; }
.advantage-list { margin: 8px 0 16px 18px; list-style: disc; }
.advantage-list li { margin-bottom: 7px; font-size: 14px; color: var(--text-mid); }

.payment-strip-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 10px 0 18px; }
.payment-strip-inline img { height: 30px; width: auto; max-width: 64px; object-fit: contain; }

.rg-footnote { font-size: 12px; color: var(--text-lt); margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }

.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; margin: 14px 0; }
.table-scroll table { width: 100%; border-collapse: collapse; background: var(--white); }
.table-scroll caption { text-align: left; font-weight: 800; padding: 10px 12px; background: var(--gold-light); }
.table-scroll th,.table-scroll td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.table-scroll thead th { background: rgba(201,153,43,.15); }

/* ---- ARTICLE SECTIONS (homepage grids) ---- */
.articles-section { margin-bottom: 26px; }
.article-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; margin-top: 16px; }
.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(201,153,43,.6); box-shadow: var(--shadow-lg); }
.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(--teal); }
.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; }

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

/* ---- ABOUT / FAQ 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; }
.join-now-box { background: rgba(201,153,43,.12); border: 1px solid rgba(201,153,43,.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(--gold); color: var(--teal-dark); font-weight: 800; padding: 8px 18px; border-radius: 8px; }
.btn-join-now:hover { background: var(--gold-light); color: var(--teal-dark); }
.faq-list { margin-top: 14px; border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); padding: 12px 0; }
.faq-list summary { cursor: pointer; font-weight: 800; color: var(--text); }
.faq-list details p { margin: 8px 0 0; }

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

/* ---- LIST PAGE ---- */
.page-wrap { padding: 20px 0 50px; }
.list-layout { display: grid; grid-template-columns: 1fr 290px; gap: 26px; align-items: start; }
.list-main { min-width: 0; }
.list-sidebar { display: flex; flex-direction: column; gap: 16px; }

.cat-description { margin-bottom: 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.cat-description h1 { font-size: 22px; color: var(--text); font-weight: 900; margin: 0 0 6px; }
.cat-description p { font-size: 13px; color: var(--text-lt); line-height: 1.65; }

.list-article-grid { display: flex; flex-direction: column; gap: 18px; margin-bottom: 16px; }
.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 h2 { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.list-article-body h2 a { color: var(--text); }
.list-article-body h2 a:hover { color: var(--teal); }
.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(--gold); color: var(--teal-dark); font-size: 13px; font-weight: 700; border-radius: 6px; align-self: flex-start; }
.read-more-btn:hover { background: var(--gold-light); }

.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(--gold); color: var(--teal-dark); border-color: var(--gold); }

/* ---- 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 h2 { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); }
.sidebar-info p { font-size: 13px; color: var(--text-lt); margin-bottom: 6px; line-height: 1.6; }
.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 rgba(0,0,0,.05); }
.sidebar-links li a:hover { color: var(--teal); }

.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(--teal); }

/* ---- ARTICLE PAGE ---- */
.article-layout { display: grid; grid-template-columns: 1fr 290px; gap: 26px; align-items: start; padding-bottom: 48px; }
.article-main { min-width: 0; }
.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; }
.article-deck { color: var(--text-lt); font-size: 14px; line-height: 1.7; }
.article-feature { margin: 16px 0 20px; overflow: hidden; border-radius: 8px; background: #eef0e6; }
.article-feature img { display: block; width: 100%; height: 330px; object-fit: cover; }
.article-body .article-content { box-shadow: none; border-radius: 0; padding: 0; }
.article-content { min-width: 0; overflow-wrap: anywhere; 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 var(--border); }
.article-content h3 { font-size: 17px; margin: 18px 0 8px; }
.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: var(--teal); text-decoration: underline; }
.article-content strong { color: var(--black); }
.article-content .table-scroll table { font-size: 13px; }

.toc-box { background: rgba(201,153,43,.1); border-left: 4px solid var(--gold); 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(--teal); }

.article-sidebar { display: flex; flex-direction: column; gap: 0; }

/* ---- FOOTER ---- */
.site-footer { background: var(--teal-dark); margin-top: 32px; color: rgba(255,255,255,.85); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 24px 15px 0; }

.footer-trust-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 18px; }
.trust-badge img { width: 130px; height: auto; }
.trust-list { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.trust-list li { font-size: 12px; color: rgba(255,255,255,.8); font-weight: 700; }

.footer-payment-strip { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 18px; }
.footer-payment-strip img { height: 28px; width: auto; max-width: 60px; object-fit: contain; border-radius: 4px; background: rgba(255,255,255,.9); padding: 2px 4px; }

.footer-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 0; }
.footer-col { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-sm); padding: 16px; }
.footer-col h3, .footer-col h4 { font-size: 14px; font-weight: 800; margin-bottom: 12px; color: var(--gold-light); }
.footer-info-block p { font-size: 12px; color: rgba(255,255,255,.72); margin-bottom: 6px; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 5px; }
.footer-links li a { font-size: 13px; color: rgba(255,255,255,.85); padding: 2px 0; display: block; }
.footer-links li a:hover { color: var(--gold-light); }
.footer-telegram { margin-top: 12px; }
.footer-telegram a { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.85); }
.footer-telegram img { border-radius: 50%; }
.footer-telegram a:hover { color: var(--gold-light); }

.footer-bottom { padding: 16px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 18px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.7); }
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---- 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: 150px; max-width: 150px; height: 42px; margin: 0 auto; grid-column: 2; justify-content: center; }
  .logo a { justify-content: center; }
  .logo img { max-height: 42px; object-position: center; }
  .header-right { grid-column: 3; justify-content: flex-end; }
  .header-right .auth-buttons { display: none; }
  .menu-toggle { position: static; transform: none; grid-column: 1; justify-self: start; }

  .list-layout { grid-template-columns: 1fr; }
  .list-sidebar { display: none; }
  .list-article-card { grid-template-columns: 1fr; }
  .list-article-card > a img { height: 240px; min-height: 0; object-fit: cover; }

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

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

@media (max-width: 480px) {
  .side-nav { width: 260px; }
}

@media (max-width: 576px) {
  .banner-section .swiper-button-next,.banner-section .swiper-button-prev { width: 28px; height: 28px; font-size: 20px; }
  .banner-section .swiper-button-prev { left: 4px; }
  .banner-section .swiper-button-next { right: 4px; }
}

/* Author box */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 22px 0 16px;
  padding: 16px;
  background: rgba(201,153,43,.08);
  border: 1px solid rgba(201,153,43,.35);
  border-radius: var(--radius);
}
.author-box-avatar {
  width: 96px;
  height: 96px !important;
  min-width: 96px;
  flex: 0 0 96px;
  aspect-ratio: 1 / 1;
  border: 2px solid var(--gold);
  border-radius: 50%;
  object-fit: cover;
}
.author-box-info { flex: 1; min-width: 0; }
.author-box-label {
  margin-bottom: 3px;
  color: var(--text-lt);
  font-size: 11px;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.author-box-name { margin-bottom: 6px; color: var(--black); font-size: 15px; font-weight: 700; }
.author-box-bio { margin: 0; color: var(--text-mid); font-size: 13px; line-height: 1.65; }
@media (max-width: 768px) {
  .author-box {
    flex-direction: column;
    align-items: center;
    padding: 14px;
    text-align: center;
  }
}
