/* ═══════════════════════════════════════════════════
   TelanganaSongs.in — Themeable (Light/Dark + Color Accents)
   ═══════════════════════════════════════════════════ */

/* ── Light Mode (default) ──────────────────────────── */
:root,
[data-theme="light"] {
  --primary:       #ff0a54;
  --primary-dark:  #be123c;
  --primary-light: #fff0f4;
  --text:          #1a1a2e;
  --text-muted:    #6b7280;
  --text-light:    #9ca3af;
  --bg:            #ffffff;
  --bg-soft:       #f9fafb;
  --bg-card:       #ffffff;
  --border:        #e5e7eb;
  --header-bg:     #ffffff;
  --header-border: #e5e7eb;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.07);
  --shadow:        0 2px 8px rgba(0,0,0,.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,.1);
  --radius:        12px;
  --radius-sm:     8px;
  --radius-full:   9999px;
  --font:          'Inter', 'Noto Sans Telugu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Gautami', sans-serif;
  --font-te:       'Noto Sans Telugu', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Gautami', sans-serif;
  --header-h:      60px;
  --max-w:         1200px;
}

/* ── Dark Mode ─────────────────────────────────────── */
[data-theme="dark"] {
  --text:          #ffffff;
  --text-muted:    #a1a1aa;
  --text-light:    #71717a;
  --bg:            #000000;
  --bg-soft:       #080808;
  --bg-card:       #0a0a0a;
  --border:        #222222;
  --header-bg:     #000000;
  --header-border: #1a1a1a;
  --primary-light: rgba(255, 255, 255, 0.08);
  --shadow-sm:     0 1px 3px rgba(0,0,0,.7);
  --shadow:        0 2px 8px rgba(0,0,0,.8);
  --shadow-md:     0 4px 16px rgba(0,0,0,.9);
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; scrollbar-gutter: stable; scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { display: none; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: clip; width: 100%; max-width: 100%; padding-top: var(--header-h, 62px) !important; scrollbar-width: none; -ms-overflow-style: none; }
body::-webkit-scrollbar { display: none; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── Utilities ─────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.sr-only   { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }
.text-primary { color: var(--primary); }
.section-label {
  font-size:.7rem; font-weight:700; letter-spacing:.1em;
  text-transform:uppercase; color:var(--primary-dark); margin-bottom:.5rem;
}
.section-title {
  font-size:1.5rem; font-weight:800; color:var(--text);
  padding-left:1rem; position:relative;
}
.section-title::before {
  content:''; position:absolute; left:0; top:10%; height:80%;
  width:4px; background:var(--primary); border-radius:2px;
}
.divider { border:none; border-top:1px solid var(--border); margin:0; }

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display:inline-flex; align-items:center; gap:.45rem;
  padding:.6rem 1.4rem; border-radius:var(--radius-full);
  font-size:.875rem; font-weight:600; cursor:pointer;
  border:2px solid transparent; transition:all .2s;
}
.btn-primary, .btn--primary  { background:var(--primary-dark); color:#fff; border-color:var(--primary-dark); }
.btn-primary:hover, .btn--primary:hover { background:var(--primary); border-color:var(--primary); transform:translateY(-1px); }
.btn-outline, .btn--outline  { background:transparent; color:var(--primary-dark); border-color:var(--primary-dark); }
.btn-outline:hover, .btn--outline:hover { background:var(--primary-dark); color:#fff; }
.btn-sm, .btn--sm { padding:.4rem 1rem; font-size:.8rem; }
.btn-danger, .btn--danger { background:#dc2626; color:#fff; border-color:#dc2626; }
.btn-danger:hover, .btn--danger:hover { background:#b91c1c; }

/* ── Permanent Fixed / Sticky Header (PC & Mobile) ─────── */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  background: var(--header-bg, #ffffff) !important;
  border-bottom: 1px solid var(--header-border, #e5e7eb) !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06) !important;
  height: var(--header-h, 62px) !important;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

/* ── Unified Brand Logo (Zero gaps: TelanganaSongs.in) ──── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1;
}
.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--primary, #ff0a54);
  flex-shrink: 0;
}
.logo-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text, #0f172a);
  letter-spacing: -0.025em;
  white-space: nowrap;
  line-height: 1;
}
.logo-title .logo-tld {
  color: var(--primary, #ff0a54);
  font-weight: 800;
}

/* ── Desktop Main Navigation ─────────────────────────────── */
.main-nav {
  display: flex;
  align-items: center;
  gap: .15rem;
  flex: 1;
}
.nav-link {
  padding: .4rem .7rem;
  border-radius: var(--radius-sm);
  font-size: .845rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color .15s, background .15s;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: .7rem;
  right: .7rem;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

/* ── Desktop Header Search ───────────────────────────────── */
.header-search {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  height: 36px;
}
.header-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 10, 84, 0.12);
}
.header-search input {
  border: none;
  outline: none;
  padding: 0 .95rem;
  font-size: .85rem;
  color: var(--text);
  background: transparent;
  font-family: inherit;
  width: 190px;
  min-width: 80px;
  flex-shrink: 1;
}
.header-search button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0 1rem;
  cursor: pointer;
  font-size: .85rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.header-search button:hover {
  background: var(--primary-dark);
}

/* ── Hamburger Menu Button (Positioned Far Right) ────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
  width: 42px;
  height: 42px;
  margin-left: auto !important;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.hamburger:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.hamburger span {
  width: 22px;
  height: 2.2px;
  background: #0f172a;
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7.2px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7.2px) rotate(-45deg);
}

/* ── Mobile Sidebar Drawer (Professional Modern Design) ─── */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
  z-index: 1050;
}
.sidebar-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 86vw;
  max-width: 360px;
  background: #ffffff;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.18);
  z-index: 1100;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1), visibility 0.3s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mobile-sidebar.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
body.sidebar-open {
  overflow: hidden !important;
}

.sidebar-header {
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  flex-shrink: 0;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sidebar-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sidebar-close:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fecaca;
}

.sidebar-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

/* Sidebar Search Form */
.sidebar-search-form {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s;
}
.sidebar-search-form:focus-within {
  border-color: var(--primary, #ff0a54);
  background: #ffffff;
}
.sidebar-search-form input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  color: #0f172a;
  background: transparent;
  font-family: inherit;
}
.sidebar-search-form button {
  flex-shrink: 0;
  white-space: nowrap;
  background: var(--primary, #ff0a54);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sidebar-section-title {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin: 1.15rem 0 0.5rem 0.25rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  gap: 0.75rem;
  padding: 0.68rem 0.85rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}
.sidebar-link i {
  font-size: 0.95rem;
  width: 20px;
  text-align: center;
  color: var(--primary, #ff0a54);
}
.sidebar-link:hover,
.sidebar-link.active {
  background: #fff1f2;
  color: var(--primary, #ff0a54);
}
.sidebar-badge {
  margin-left: auto;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

.sidebar-nav--sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}
.sidebar-sublink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.82rem;
  color: #475569;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}
.sidebar-sublink:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}
.sidebar-social {
  display: flex;
  gap: 0.5rem;
}
.sidebar-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.sidebar-social a:hover {
  background: var(--primary, #ff0a54);
  border-color: var(--primary, #ff0a54);
  color: #ffffff;
}
.sidebar-copy {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ── Mobile Header Adaptations (<= 900px) ─────────────────── */
@media (max-width: 900px) {
  .main-nav {
    display: none !important;
  }
  .header-search {
    display: none !important;
  }
  .hamburger {
    display: flex !important;
  }
}

/* ── Page Hero Banner ───────────────────────────────── */
.page-hero { background:linear-gradient(to right,rgba(255,10,84,.06),rgba(255,10,84,.02)); border-bottom:1px solid var(--border); padding:1.75rem 1.25rem; }
.page-hero__inner { max-width:var(--max-w); margin:0 auto; }
.page-hero h1 { font-size:clamp(1.4rem,3vw,2rem); font-weight:800; margin-top:.5rem; }
.page-hero p  { color:var(--text-muted); margin-top:.4rem; max-width:52ch; }
.breadcrumb { display:flex; align-items:center; gap:.4rem; font-size:.78rem; color:var(--text-muted); flex-wrap:wrap; }
.breadcrumb a:hover { color:var(--primary); }
.breadcrumb span:not(:last-child) { color:var(--text-light); }

/* ── Hero (Homepage) ───────────────────────────────── */
.hero-section {
  background:linear-gradient(to right,rgba(255,255,255,0.95) 45%,rgba(255,255,255,0.85) 75%,rgba(255,255,255,0.3) 100%),
             url('../images/banners/home_hero_bg.jpg') no-repeat right center/cover;
  padding:4rem 1.25rem 3rem;
}
@media(max-width:768px){
  .hero-section { background:linear-gradient(rgba(255,255,255,.94),rgba(255,255,255,.94)),url('../images/banners/home_hero_bg.jpg') center/cover; }
}
.hero-inner { max-width:var(--max-w); margin:0 auto; }
.hero-eyebrow { font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:var(--primary); margin-bottom:.75rem; }
.hero-title { font-size:clamp(2rem,5vw,3.5rem); font-weight:800; line-height:1.12; color:var(--text); }
.hero-title span { color:var(--primary); }
.hero-desc { margin-top:1rem; max-width:52ch; color:var(--text-muted); font-size:1.05rem; line-height:1.7; }
.hero-search { margin-top:1.75rem; display:flex; max-width:500px; border:1.5px solid var(--border); border-radius:var(--radius-full); overflow:hidden; background:#fff; box-shadow:var(--shadow); }
.hero-search input { flex:1; border:none; outline:none; padding:.75rem 1.25rem; font-size:.9rem; }
.hero-search button { background:var(--primary); color:#fff; border:none; padding:.75rem 1.5rem; font-size:.9rem; font-weight:600; cursor:pointer; }
.hero-tags { margin-top:1rem; display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; }
.hero-tags label { font-size:.8rem; font-weight:600; color:var(--text-muted); }
.hero-tag { padding:.3rem .9rem; border:1.5px solid var(--border); border-radius:var(--radius-full); font-size:.78rem; color:var(--text-muted); transition:all .15s; font-weight:500; }
.hero-tag:hover { border-color:var(--primary); color:var(--primary); }

/* ── Category Icon Grid ─────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.15rem;
  width: 100%;
}
@media (max-width: 1024px) {
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }
}
@media (max-width: 768px) {
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
}
@media (max-width: 420px) {
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
  }
}

/* ── Section Wrapper ────────────────────────────────── */
.section { padding:3rem 1.25rem; }
.section-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:1.5rem; padding-bottom:.75rem; border-bottom:1px solid var(--border); }
.section-head a { font-size:.82rem; font-weight:600; color:var(--primary); display:flex; align-items:center; gap:.3rem; }
.section-head a:hover { text-decoration:underline; }

/* ── Article Card Grid ──────────────────────────────── */
.article-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:1.5rem; }
.article-card { background:#fff; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; transition:box-shadow .2s; }
.article-card:hover { box-shadow:var(--shadow-md); }
.article-card__img { overflow:hidden; width:100%; aspect-ratio:16/9; height:auto; position:relative; }
.article-card__img img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s; }
.article-card:hover .article-card__img img { transform:scale(1.04); }
.article-card__body { padding:1rem 1.1rem 1.25rem; }
.article-card__cat { font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--primary-dark); margin-bottom:.4rem; }
.article-card__title { font-size:1rem; font-weight:700; color:var(--text); line-height:1.35; margin-bottom:.5rem; }
.article-card__title:hover { color:var(--primary); }
.article-card__excerpt { font-size:.82rem; color:var(--text-muted); line-height:1.6; display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.article-card__meta { display:flex; align-items:center; gap:.6rem; font-size:.75rem; color:var(--text-light); margin-top:.75rem; padding-top:.6rem; border-top:1px solid var(--border); }
.read-more { display:inline-flex; align-items:center; gap:.3rem; font-size:.78rem; font-weight:700; color:var(--primary); margin-top:.6rem; }
.read-more:hover { text-decoration:underline; }

/* ── Blog List (blog.php) ─────────────────────────── */
.blog-layout { display:grid; grid-template-columns:1fr 300px; gap:2rem; max-width:var(--max-w); margin:0 auto; padding:2rem 1.25rem; }
@media(max-width:900px){ .blog-layout { grid-template-columns:1fr; } }

.post-list-item { display:flex; gap:1rem; background:#fff; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; transition:box-shadow .2s; }
.post-list-item:hover { box-shadow:var(--shadow-md); }
.post-list-item__thumb { flex-shrink:0; width:160px; overflow:hidden; }
.post-list-item__thumb img { width:100%; height:100%; object-fit:cover; transition:transform .5s; }
.post-list-item:hover .post-list-item__thumb img { transform:scale(1.04); }
.post-list-item__body { padding:1rem 1rem 1rem 0; flex:1; display:flex; flex-direction:column; }
.post-list-item__cat  { font-size:.7rem; font-weight:700; color:var(--primary); text-transform:uppercase; letter-spacing:.06em; }
.post-list-item__title{ font-size:1.05rem; font-weight:700; margin:.35rem 0 .4rem; line-height:1.3; }
.post-list-item__title:hover { color:var(--primary); }
.post-list-item__excerpt { font-size:.83rem; color:var(--text-muted); display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.post-list-item__footer { margin-top:auto; padding-top:.6rem; display:flex; justify-content:space-between; align-items:center; }
.post-meta { font-size:.73rem; color:var(--text-light); }

@media(max-width:560px){
  .post-list-item { flex-direction:column; }
  .post-list-item__thumb { width:100%; height:180px; }
  .post-list-item__body  { padding:1rem; }
}

/* ── Sidebar ─────────────────────────────────────── */
.sidebar-widget { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:1.2rem 1.1rem; margin-bottom:1.25rem; }
.sidebar-widget h3 { font-size:.95rem; font-weight:700; margin-bottom:1rem; padding-left:.85rem; position:relative; }
.sidebar-widget h3::before { content:''; position:absolute; left:0; top:10%; height:80%; width:3px; background:var(--primary); border-radius:2px; }
.sidebar-search { display:flex; overflow:hidden; border:1.5px solid var(--border); border-radius:var(--radius-full); }
.sidebar-search input  { flex:1; border:none; outline:none; padding:.5rem .9rem; font-size:.82rem; }
.sidebar-search button { background:var(--primary); color:#fff; border:none; padding:.5rem .85rem; cursor:pointer; font-size:.82rem; }
.cat-list li a { display:flex; justify-content:space-between; align-items:center; padding:.55rem 0; font-size:.84rem; color:var(--text-muted); border-bottom:1px solid var(--border); }
.cat-list li:last-child a { border-bottom:none; }
.cat-list li a:hover, .cat-list li a.active { color:var(--primary); }
.cat-list .cat-count { font-size:.7rem; background:var(--bg-soft); border-radius:var(--radius-full); padding:.15rem .5rem; }
.recent-post { display:flex; align-items:center; gap:.75rem; padding:.6rem 0; border-bottom:1px solid var(--border); }
.recent-post:last-child { border-bottom:none; }
.recent-post img { width:52px; height:52px; object-fit:cover; border-radius:var(--radius-sm); flex-shrink:0; }
.recent-post span { font-size:.8rem; font-weight:500; color:var(--text); line-height:1.4; }
.recent-post:hover span { color:var(--primary); }

/* ── Pagination ───────────────────────────────────── */
.pagination { display:flex; justify-content:center; gap:.4rem; padding:2rem 0; }
.pagination a,.pagination span { width:36px; height:36px; display:flex; align-items:center; justify-content:center; border-radius:50%; font-size:.83rem; font-weight:600; border:1.5px solid var(--border); color:var(--text-muted); transition:all .15s; }
.pagination a:hover { border-color:var(--primary); color:var(--primary); }
.pagination .current { background:var(--primary); color:#fff; border-color:var(--primary); }

/* ── Article Page ─────────────────────────────────── */
.article-layout { display:grid; grid-template-columns:1fr 300px; gap:2rem; max-width:var(--max-w); margin:0 auto; padding:2rem 1.25rem; }
@media(max-width:900px){ .article-layout { grid-template-columns:1fr; } }

.article-body { background:#fff; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.article-cover img { width:100%; height:340px; object-fit:cover; }
@media(max-width:600px){ .article-cover img { height:220px; } }
.article-content-area { padding:1.75rem 2rem 2rem; }
@media(max-width:600px){ .article-content-area { padding:1.25rem 1.1rem; } }
.article-cat-badge { display:inline-block; background:var(--primary-light); color:var(--primary); font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.07em; padding:.28rem .75rem; border-radius:var(--radius-full); margin-bottom:.75rem; }
.article-title { font-size:clamp(1.35rem,2.5vw,1.9rem); font-weight:800; line-height:1.2; color:var(--text); }
.article-meta-row { display:flex; align-items:center; flex-wrap:wrap; gap:.6rem 1rem; font-size:.78rem; color:var(--text-muted); margin-top:.6rem; padding-bottom:.75rem; border-bottom:1px solid var(--border); }
.article-meta-row i { color:var(--primary); }
.prose p { line-height:1.85; color:var(--text-muted); margin-bottom:1.1rem; font-size:.97rem; }
.article-tags { display:flex; flex-wrap:wrap; gap:.4rem; margin-top:1.5rem; padding-top:1.25rem; border-top:1px solid var(--border); }
.article-tag { display:inline-block; padding:.25rem .7rem; background:var(--bg-soft); border-radius:var(--radius-full); font-size:.75rem; font-weight:500; color:var(--text-muted); transition:all .15s; }
.article-tag:hover { background:var(--primary-light); color:var(--primary); }

/* ── Related Articles ─────────────────────────────── */
.related-section { padding:1.5rem 2rem 2rem; border-top:1px solid var(--border); }
@media(max-width:600px){ .related-section { padding:1rem 1.1rem 1.5rem; } }
.related-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:1rem; margin-top:1rem; }
.related-card img { width:100%; height:120px; object-fit:cover; border-radius:var(--radius-sm); margin-bottom:.5rem; }
.related-card span { font-size:.82rem; font-weight:600; color:var(--text); line-height:1.35; display:block; }
.related-card:hover span { color:var(--primary); }

/* ── Homepage Layout ─────────────────────────────── */
.home-section { padding:2.5rem 1.25rem; }
.home-inner { max-width:var(--max-w); margin:0 auto; }

/* ── Footer CTA ───────────────────────────────────── */
.footer-cta {
  background:linear-gradient(to right,rgba(255,255,255,0.96) 0%,rgba(255,255,255,0.90) 55%,rgba(255,255,255,0.65) 100%),
             url('../images/banners/footer_cta_bg.jpg') no-repeat right center/cover;
  padding:3.5rem 1.25rem;
  margin-top:3rem;
  border-top:1px solid var(--border);
}
@media(max-width:768px){
  .footer-cta {
    background:linear-gradient(rgba(255,255,255,0.94),rgba(255,255,255,0.94)),
               url('../images/banners/footer_cta_bg.jpg') center/cover;
  }
}
.footer-cta .container { max-width:var(--max-w); margin:0 auto; }
.footer-cta h2 { font-size:1.75rem; font-weight:800; color:var(--primary); margin-bottom:.4rem; }
.footer-cta p  { color:var(--text-muted); margin-bottom:1.25rem; }

/* ── Modern Wave Shape Divider ── */
.footer-wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: transparent;
  margin-bottom: -1px;
  display: block;
  position: relative;
  z-index: 1;
}
.footer-wave-divider svg {
  display: block;
  width: 100%;
  height: clamp(38px, 5.5vw, 68px);
  fill: #000000;
}

/* ── Redesigned Site Footer (Pure Black & High-Contrast Typography) ── */
.site-footer,
footer.site-footer,
footer {
  background: #000000 !important;
  background-color: #000000 !important;
  color: #ffffff !important;
  padding: 2.5rem 1.5rem 0 !important;
  border-top: none !important;
  width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

.site-footer *,
footer.site-footer * {
  box-sizing: border-box !important;
}

.footer-inner {
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 1.8fr 1.1fr 1.1fr 1.6fr !important;
  gap: 2.5rem !important;
  padding-bottom: 2.75rem !important;
  width: 100% !important;
  align-items: start !important;
}

/* Col 1: Brand Badge & Description */
.footer-col-brand {
  min-width: 0 !important;
}

.footer-brand-badge {
  background: #ffffff !important;
  color: #0f172a !important;
  border-radius: 9999px !important;
  padding: 0.55rem 1.35rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.7rem !important;
  text-decoration: none !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4) !important;
  border: 2px solid rgba(255, 255, 255, 0.95) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.footer-brand-badge:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 22px rgba(255, 10, 84, 0.35) !important;
}

.footer-brand-badge .badge-icon {
  color: #ff0a54 !important;
  font-size: 1.2rem !important;
  display: flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

.footer-brand-badge .badge-text {
  font-weight: 800 !important;
  font-size: 1.18rem !important;
  letter-spacing: -0.01em !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
}

.footer-brand-badge .badge-tld {
  color: #ff0a54 !important;
}

.footer-brand-desc {
  font-size: 0.88rem !important;
  color: #cbd5e1 !important;
  line-height: 1.68 !important;
  margin-top: 1rem !important;
  max-width: 36ch !important;
  word-break: break-word !important;
}

.footer-brand-desc strong {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.footer-brand-heart {
  font-size: 1.15rem !important;
  margin-top: 0.75rem !important;
  display: inline-block !important;
}

/* Col 2 & 3: Navigation Columns */
.footer-col-nav {
  min-width: 0 !important;
}

.footer-col-title {
  color: #ffffff !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin-bottom: 1.15rem !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
}

.footer-chevron {
  font-size: 0.72rem !important;
  color: #ffffff !important;
  opacity: 0.85 !important;
  transition: transform 0.2s ease !important;
}

.footer-nav-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.2rem !important;
}

.footer-nav-list li {
  margin: 0 !important;
  padding: 0 !important;
}

.footer-nav-list a {
  color: #ffffff !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 42px !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  opacity: 0.92 !important;
  padding: 0.3rem 0 !important;
  transition: color 0.15s ease, transform 0.15s ease, opacity 0.15s ease !important;
  word-break: break-word !important;
}

.footer-nav-list a:hover {
  color: #ff0a54 !important;
  opacity: 1 !important;
  transform: translateX(4px) !important;
  text-decoration: underline !important;
}

/* Col 4: Follow Us Social Card */
.footer-col-social {
  min-width: 0 !important;
}

.footer-social-card {
  background: #09090b !important;
  border: 1px solid #27272a !important;
  border-radius: 14px !important;
  padding: 1.15rem 1.35rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1.1rem !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55) !important;
}

.social-card-head {
  display: flex !important;
  align-items: center !important;
  gap: 0.9rem !important;
}

.social-card-icon {
  color: #ffffff !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.social-card-text {
  display: flex !important;
  flex-direction: column !important;
}

.social-card-title {
  font-size: 0.96rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.25 !important;
}

.social-card-subtitle {
  font-size: 0.76rem !important;
  color: #a1a1aa !important;
  line-height: 1.35 !important;
  margin-top: 0.2rem !important;
}

.social-card-buttons {
  display: flex !important;
  gap: 0.65rem !important;
  flex-wrap: wrap !important;
}

.social-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  font-size: 1.05rem !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease !important;
  flex-shrink: 0 !important;
}

.social-btn:hover {
  transform: translateY(-3px) !important;
  filter: brightness(1.18) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
}

.social-btn.facebook {
  background: #1877f2 !important;
}

.social-btn.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
}

.social-btn.telegram {
  background: #229ed9 !important;
}

.social-btn.rss {
  background: #ee802f !important;
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid #1f1f23 !important;
  text-align: center !important;
  padding: 1.4rem 1rem !important;
  font-size: 0.86rem !important;
  color: #ffffff !important;
  opacity: 0.92 !important;
  line-height: 1.5 !important;
  font-weight: 500 !important;
}

/* ── Tablet Responsiveness (<= 992px) ── */
@media (max-width: 992px) {
  .site-footer {
    padding: 2.25rem 1.25rem 0 !important;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 2.25rem 1.75rem !important;
  }
}

/* ── Mobile Responsiveness (<= 640px) ── */
@media (max-width: 640px) {
  .site-footer {
    padding: 2rem 1rem 0 !important;
  }
  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 1.85rem !important;
    padding-bottom: 2rem !important;
  }
  .footer-brand-desc {
    max-width: 100% !important;
  }
  .footer-social-card {
    max-width: 100% !important;
  }
  .footer-bottom {
    padding: 1rem 0.5rem !important;
    font-size: 0.78rem !important;
  }
}

/* ── Admin Panel ─────────────────────────────────── */
.admin-wrap { min-height:100vh; background:#f1f5f9; }
.admin-top  { background:#fff; border-bottom:1px solid var(--border); padding:.8rem 1.5rem; display:flex; align-items:center; justify-content:space-between; position:sticky; top:0; z-index:10; }
.admin-top .brand { font-weight:800; font-size:1rem; color:var(--primary); }
.admin-top nav  a { font-size:.82rem; color:var(--text-muted); margin-left:1rem; }
.admin-top nav  a:hover { color:var(--primary); }
.admin-body { max-width:960px; margin:0 auto; padding:2rem 1.25rem; }
.admin-card { background:#fff; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.admin-card-head { padding:1rem 1.25rem; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
.admin-card-head h2 { font-size:1rem; font-weight:700; }
.admin-card-body { padding:1.25rem; }
.form-group { margin-bottom:1.15rem; }
.form-group label { display:block; font-size:.82rem; font-weight:600; color:var(--text); margin-bottom:.35rem; }
.form-control { width:100%; border:1.5px solid var(--border); border-radius:var(--radius-sm); padding:.6rem .85rem; font-size:.88rem; color:var(--text); font-family:var(--font); outline:none; background:#fff; transition:border .15s; }
.form-control:focus { border-color:var(--primary); }
textarea.form-control { resize:vertical; min-height:120px; }
.form-hint { font-size:.75rem; color:var(--text-muted); margin-top:.3rem; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
@media(max-width:600px){ .form-row { grid-template-columns:1fr; } }

/* Admin article table */
.articles-table { width:100%; border-collapse:collapse; }
.articles-table th { font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); padding:.65rem 1rem; text-align:left; border-bottom:1.5px solid var(--border); background:var(--bg-soft); }
.articles-table td { padding:.75rem 1rem; border-bottom:1px solid var(--border); font-size:.85rem; color:var(--text); vertical-align:middle; }
.articles-table tr:last-child td { border-bottom:none; }
.articles-table tr:hover td { background:#fafafa; }
.articles-table .actions { display:flex; gap:.5rem; align-items:center; }
.badge { display:inline-block; padding:.2rem .55rem; border-radius:var(--radius-full); font-size:.7rem; font-weight:600; background:var(--primary-light); color:var(--primary); }
.admin-login { min-height:100vh; display:flex; align-items:center; justify-content:center; background:#f1f5f9; }
.login-box { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:2rem; width:360px; max-width:100%; }
.login-box h1 { font-size:1.3rem; font-weight:800; color:var(--text); margin-bottom:1.5rem; }
.alert { padding:.7rem 1rem; border-radius:var(--radius-sm); margin-bottom:1rem; font-size:.85rem; }
.alert-error   { background:#fef2f2; color:#dc2626; border:1px solid #fecaca; }
.alert-success { background:#f0fdf4; color:#16a34a; border:1px solid #bbf7d0; }

/* ── Responsive tweaks ───────────────────────────── */
@media(max-width:480px){
  .hero-section { padding:2.5rem 1rem 2rem; }
  .hero-title   { font-size:1.8rem; }
  .section-title { font-size:1.2rem; }
  .cat-grid { grid-template-columns:repeat(auto-fill,minmax(110px,1fr)); }
}

/* ── Misc ────────────────────────────────────────── */
.empty-state { text-align:center; padding:3rem 1rem; color:var(--text-muted); }
.empty-state i { font-size:2.5rem; color:var(--border); display:block; margin-bottom:1rem; }
.img-preview { width:100%; max-height:200px; object-fit:cover; border-radius:var(--radius-sm); margin-top:.5rem; }
.hide-scrollbar::-webkit-scrollbar { display:none; }
.hide-scrollbar { -ms-overflow-style:none; scrollbar-width:none; }

/* ═══════════════════════════════════════════════════
   EXTRA STYLES — Homepage, Blog, Article, Admin, Static
   ═══════════════════════════════════════════════════ */

/* ── Section utility ──────────────────────────────── */
.section { padding:3.5rem 0; }
.section--alt { background:var(--bg-soft); }
.section-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:2rem; flex-wrap:wrap; gap:1rem; }

/* ── Home Hero ────────────────────────────────────── */
.home-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 240, 245, 0.90) 50%, rgba(255, 255, 255, 0.92) 100%),
              url('../images/banners/home_hero_bg.jpg') no-repeat center center / cover;
  padding:5rem 1.25rem 4.5rem;
  text-align:center;
  border-bottom:1px solid var(--border);
}
.home-hero__title {
  font-size:clamp(2rem,5vw,3.5rem);
  font-weight:900;
  line-height:1.15;
  color:var(--text);
  margin-bottom:1rem;
}
.home-hero__title span { color:var(--primary); }
.home-hero__sub { font-size:1.1rem; color:var(--text-muted); max-width:600px; margin:0 auto 2rem; }
.home-hero__search {
  display: flex;
  max-width: 560px;
  width: 100%;
  margin: 0 auto 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(255,10,84,.08);
  box-sizing: border-box;
}
.home-hero__search input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.85rem 1.15rem;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  background: transparent;
}
.home-hero__search button {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.85rem 1.4rem;
  background: var(--primary-dark);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: background 0.2s;
}
.home-hero__search button:hover { background: var(--primary-dark); }
@media (max-width: 480px) {
  .home-hero__search {
    margin: 0 auto 1.25rem;
    border-width: 1.5px;
  }
  .home-hero__search input {
    padding: 0.7rem 0.8rem;
    font-size: 0.85rem;
  }
  .home-hero__search button {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
}
.home-hero__tags { display:flex; flex-wrap:wrap; gap:.75rem; justify-content:center; }

/* ── Tag pills ────────────────────────────────────── */
.tag-pill {
  display:inline-flex; align-items:center; justify-content:center;
  min-height: 48px;
  padding:.55rem 1.15rem;
  border-radius:var(--radius-full); font-size:.85rem; font-weight:600;
  background:var(--primary-light); color:var(--primary-dark);
  border:1.5px solid var(--primary-dark);
  transition:all .2s;
  box-sizing:border-box;
}
.tag-pill:hover { background:var(--primary-dark); color:#fff; }

/* ── Category grid & Colorful Cards ──────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.15rem;
  width: 100%;
  margin-top: 1.25rem;
}
@media (max-width: 1024px) {
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }
}
@media (max-width: 768px) {
  .section-categories {
    padding: 1.5rem 0 !important;
  }
  .section-categories .section-head {
    margin-bottom: 0.85rem !important;
    padding-bottom: 0.5rem !important;
    gap: 0.5rem !important;
  }
  .section-categories .section-title {
    font-size: 1.15rem !important;
  }
  .cat-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
    margin-top: 0.75rem !important;
  }
}
@media (max-width: 420px) {
  .cat-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.35rem !important;
  }
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.35rem 0.85rem 1.15rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--cat-b, var(--border));
  background: var(--cat-bg, #ffffff);
  text-align: center;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--cat-bh, var(--primary));
  box-shadow: var(--cat-glow, var(--shadow-md));
}
.cat-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--cat-ibg, var(--primary-light));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.cat-card:hover .cat-card__icon {
  transform: scale(1.1) rotate(4deg);
}
.cat-card__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  transition: color 0.2s;
}
.cat-card:hover .cat-card__title {
  color: var(--cat-c, var(--primary));
}
.cat-card__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.18rem 0.6rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--cat-c, var(--text-muted));
  border: 1px solid var(--cat-b, var(--border));
}

@media (max-width: 768px) {
  .cat-card {
    padding: 0.65rem 0.35rem 0.55rem !important;
    min-height: 96px !important;
    gap: 0.3rem !important;
    border-radius: 10px !important;
  }
  .cat-card__icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.95rem !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    margin-bottom: 0.15rem !important;
  }
  .cat-card__title {
    font-size: 0.76rem !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }
  .cat-card__badge {
    font-size: 0.58rem !important;
    padding: 0.1rem 0.38rem !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }
}
@media (max-width: 400px) {
  .cat-card {
    padding: 0.5rem 0.2rem 0.45rem !important;
    min-height: 88px !important;
  }
  .cat-card__icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
  }
  .cat-card__title {
    font-size: 0.72rem !important;
  }
  .cat-card__badge {
    font-size: 0.52rem !important;
    padding: 0.08rem 0.3rem !important;
  }
}

/* ── Article card grid ────────────────────────────── */
.article-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:1.5rem; margin-top:1.5rem;
}
.article-card {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--radius); overflow:hidden;
  transition:transform .2s, box-shadow .2s;
}
.article-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-md); }
.article-card__img-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  position: relative;
  background: var(--bg-soft);
}
.article-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.article-card:hover .article-card__img-wrap img { transform:scale(1.04); }
.article-card__body { padding:1.25rem; }
.article-card__cat {
  display:inline-block; font-size:.72rem; font-weight:700; text-transform:uppercase;
  letter-spacing:.06em; color:var(--primary-dark); margin-bottom:.5rem;
}
.article-card__title { font-size:1.05rem; font-weight:700; margin-bottom:.6rem; line-height:1.35; }
.article-card__title a { color:var(--text); }
.article-card__title a:hover { color:var(--primary); }
.article-card__excerpt { font-size:.85rem; color:var(--text-muted); margin-bottom:.85rem; line-height:1.55; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.article-card__meta { display:flex; gap:1rem; font-size:.75rem; color:var(--text-muted); margin-bottom:.9rem; flex-wrap:wrap; }
.article-card__meta i { margin-right:.25rem; }

/* ── Popular categories ───────────────────────────── */
.home-bottom-grid { display:grid; grid-template-columns:1fr 320px; gap:2rem; align-items:start; }
@media(max-width:900px){ .home-bottom-grid { grid-template-columns:1fr; } }
.pop-cat-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-top:1.5rem; }
@media(max-width:500px){ .pop-cat-grid { grid-template-columns:1fr; } }
.pop-cat-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  background: var(--bg-soft);
}
.pop-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.pop-cat-card:hover img { transform:scale(1.05); }
.pop-cat-card__placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:2rem; color:var(--text-muted); background:var(--bg-soft); }
.pop-cat-card__overlay {
  position:absolute; inset:0; background:linear-gradient(transparent 30%, rgba(0,0,0,.7));
  display:flex; flex-direction:column; justify-content:flex-end; padding:1rem;
  color:#fff;
}
.pop-cat-card__overlay h3 { font-size:.95rem; font-weight:700; line-height:1.3; }
.pop-cat-card__cat { font-size:.72rem; font-weight:600; text-transform:uppercase; opacity:.85; margin-bottom:.2rem; }

/* ── Recent list sidebar ──────────────────────────── */
.recent-list { display:flex; flex-direction:column; gap:.85rem; margin-top:1.25rem; }
.recent-item { display:flex; gap:.85rem; align-items:center; }
.recent-item img { width:70px; height:55px; object-fit:cover; border-radius:var(--radius-sm); flex-shrink:0; }
.recent-item__placeholder { width:70px; height:55px; flex-shrink:0; background:var(--bg-soft); border-radius:var(--radius-sm); display:flex; align-items:center; justify-content:center; color:var(--text-muted); }
.recent-item a { font-size:.875rem; font-weight:600; color:var(--text); line-height:1.35; display:block; margin-bottom:.25rem; }
.recent-item a:hover { color:var(--primary); }
.recent-item time { font-size:.75rem; color:var(--text-muted); }

/* ── Blog layout ──────────────────────────────────── */
.blog-layout { display:grid; grid-template-columns:1fr 300px; gap:2rem; padding:2.5rem 0; align-items:start; }
@media(max-width:900px){
  .blog-layout { grid-template-columns:100% !important; gap:1.5rem !important; padding:1.25rem 0 !important; }
  .blog-main { order:1 !important; width:100% !important; min-width:0 !important; }
  .blog-sidebar { order:2 !important; position:static !important; top:auto !important; width:100% !important; min-width:0 !important; }
}
.blog-filter-bar { display:flex; gap:1rem; align-items:center; margin-bottom:1.25rem; flex-wrap:wrap; }
.blog-search-form { display:flex; border:1.5px solid var(--border); border-radius:var(--radius-full); overflow:hidden; flex:1; min-width:200px; background:#fff; }
.blog-search-form input { flex:1; padding:.55rem 1rem; border:none; outline:none; font-family:var(--font); font-size:.9rem; }
.blog-search-form button { padding:.55rem 1rem; background:var(--primary); color:#fff; border:none; cursor:pointer; }
.results-count { font-size:.85rem; color:var(--text-muted); margin-bottom:1.25rem; }
.results-count strong { color:var(--text); }

/* ── Blog list items ──────────────────────────────── */
.blog-list { display:flex; flex-direction:column; gap:1.5rem; }
.blog-item { display:grid; grid-template-columns:220px 1fr; gap:1.25rem; background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; transition:box-shadow .2s; }
.blog-item:hover { box-shadow:var(--shadow); }
@media(max-width:768px){
  .blog-item { grid-template-columns:1fr !important; width:100% !important; }
  .blog-item__img { width:100% !important; height:180px !important; max-height:180px !important; }
  .blog-item__body { padding:1rem !important; }
  .blog-filter-bar { flex-direction:column !important; align-items:stretch !important; gap:.65rem !important; }
  .blog-search-form { width:100% !important; min-width:0 !important; }
}
.blog-item__img { display:block; height:100%; min-height:160px; overflow:hidden; background:var(--bg-soft); }
.blog-item__img img { width:100%; height:100%; object-fit:cover; }
.blog-item__img--placeholder { display:flex; align-items:center; justify-content:center; color:var(--text-muted); }
.blog-item__body { padding:1.25rem; }
.blog-item__title { font-size:1.1rem; font-weight:700; margin:.5rem 0 .6rem; }
.blog-item__title a { color:var(--text); }
.blog-item__title a:hover { color:var(--primary); }
.blog-item__excerpt { font-size:.875rem; color:var(--text-muted); margin-bottom:.75rem; line-height:1.55; }
.blog-item__meta { display:flex; gap:1rem; font-size:.75rem; color:var(--text-muted); margin-bottom:.85rem; flex-wrap:wrap; }

/* ── Sidebar widgets ──────────────────────────────── */
.blog-sidebar { position:sticky; top:calc(var(--header-h) + 1rem); }
@media(max-width:900px){
  .blog-sidebar { position:static !important; top:auto !important; }
}
.widget { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); padding:1.25rem; margin-bottom:1.25rem; }
.widget__title { font-size:1rem; font-weight:700; margin-bottom:1rem; padding-bottom:.6rem; border-bottom:2px solid var(--primary); display:inline-block; }
.widget-search { display:flex; border:1.5px solid var(--border); border-radius:var(--radius-sm); overflow:hidden; }
.widget-search input { flex:1; padding:.5rem .75rem; border:none; outline:none; font-family:var(--font); font-size:.875rem; }
.widget-search button { padding:.5rem .85rem; background:var(--primary); color:#fff; border:none; cursor:pointer; }
.widget-cat-list li a { display:flex; justify-content:space-between; padding:.45rem 0; border-bottom:1px solid var(--border); font-size:.875rem; color:var(--text); }
.widget-cat-list li:last-child a { border-bottom:none; }
.widget-cat-list li a:hover, .widget-cat-list li a.active { color:var(--primary); }
.cat-count { background:var(--primary-light); color:var(--primary); font-size:.72rem; font-weight:700; padding:.1rem .45rem; border-radius:var(--radius-full); }
.widget-recent li { padding:.5rem 0; border-bottom:1px solid var(--border); }
.widget-recent li:last-child { border-bottom:none; }
.widget-recent a { font-size:.875rem; font-weight:600; color:var(--text); display:block; margin-bottom:.2rem; }
.widget-recent a:hover { color:var(--primary); }
.widget-recent time { font-size:.75rem; color:var(--text-muted); }

/* ── Pagination ───────────────────────────────────── */
.pagination { display:flex; gap:.5rem; flex-wrap:wrap; margin-top:2rem; }
.page-btn {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:38px; height:38px; padding:0 .75rem;
  border:1.5px solid var(--border); border-radius:var(--radius-sm);
  font-size:.875rem; font-weight:600; color:var(--text); transition:all .2s;
}
.page-btn:hover, .page-btn--active { background:var(--primary); color:#fff; border-color:var(--primary); }

/* ── Article single ───────────────────────────────── */
.article-single { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; margin-bottom:2rem; }
.article-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  position: relative;
  background: var(--bg-soft);
}
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-meta-header { padding:1.5rem 1.75rem 0; }
.article-single__title { font-size:clamp(1.4rem,3vw,2rem); font-weight:900; line-height:1.3; margin:.75rem 0; }
.article-meta-row { display:flex; gap:1.5rem; font-size:.85rem; color:var(--text-muted); margin-bottom:1.25rem; flex-wrap:wrap; }
.article-meta-row i { margin-right:.3rem; }
.article-content { padding:0 1.75rem 1.75rem; }
.article-content p { margin: 0 0 1.15rem; line-height: 1.85; color: var(--text); font-size: 1.02rem; }
.article-content h2 { font-size: 1.55rem; font-weight: 800; margin: 2.2rem 0 1rem; color: var(--text); line-height: 1.35; }
.article-content h3 { font-size: 1.25rem; font-weight: 700; margin: 1.75rem 0 0.75rem; color: var(--text); line-height: 1.35; }
.article-content ul, .article-content ol { margin: 1rem 0 1.5rem; padding-left: 1.75rem; line-height: 1.85; color: var(--text); }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 0.5rem; }
.article-content strong { font-weight: 700; color: var(--text); }
.article-content em { font-style: italic; }
.article-content figure.article-inbetween-img { margin: 2rem 0; text-align: center; }
.article-content figure.article-inbetween-img img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  display: block;
  margin: 0 auto;
}
.article-content figure.article-inbetween-img figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; font-style: italic; text-align: center; }
.article-content .table-responsive { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.article-content .article-table { width: 100%; border-collapse: collapse; background: var(--bg-card); font-size: 0.92rem; }
.article-content .article-table th { padding: 12px 14px; text-align: left; font-weight: 700; color: var(--text); background: var(--bg-soft); border-bottom: 2px solid var(--border); }
.article-content .article-table td { padding: 10px 14px; color: var(--text); border-bottom: 1px solid var(--border); }
.article-tags { padding:1rem 1.75rem; border-top:1px solid var(--border); display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; }
/* ── Modern Social Share Buttons ─────────────────────────────── */
.article-share {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.article-share strong,
.article-share .share-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.article-share strong i,
.article-share .share-label i {
  color: var(--primary);
  font-size: 1.05rem;
}
.share-buttons-group {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.social-share-btn,
.share-btn {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  text-decoration: none !important;
  border: none !important;
  outline: none !important;
  cursor: pointer !important;
  font-size: 1.2rem !important;
  line-height: 1 !important;
  padding: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, filter 0.2s ease !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}
.social-share-btn i,
.share-btn i {
  font-size: 1.2rem !important;
  line-height: 1 !important;
  margin: 0 !important;
  color: #ffffff !important;
  display: inline-block !important;
  vertical-align: middle !important;
}
.social-share-btn:hover,
.share-btn:hover {
  transform: translateY(-3px) scale(1.08) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22) !important;
  filter: brightness(1.08) !important;
  color: #ffffff !important;
}
.social-share-btn:active,
.share-btn:active {
  transform: translateY(0) scale(0.96) !important;
}
/* Brand Colors */
.social-share-btn--whatsapp,
.share-btn--wa {
  background: #25d366 !important;
}
.social-share-btn--facebook,
.share-btn--fb {
  background: #1877f2 !important;
}
.social-share-btn--x,
.share-btn--tw {
  background: #0f1419 !important;
}
.social-share-btn--telegram,
.share-btn--tg {
  background: #229ed9 !important;
}
.social-share-btn--copy,
.share-btn--copy {
  background: #475569 !important;
}
.social-share-btn--copy:hover,
.share-btn--copy:hover {
  background: #334155 !important;
}
.related-articles {
  margin-top: 2rem;
}
.related-articles .section-title {
  margin-bottom: 1.5rem;
}
.related-articles .article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 640px) {
  .related-articles .article-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ── Article Prev / Next Pagination ───────────────── */
.article-nav-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2.25rem 0;
  padding: 1.5rem 0;
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
}
.article-nav-item {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.25rem;
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.article-nav-item:hover {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.article-nav-item--next {
  text-align: right;
  align-items: flex-end;
}
.article-nav-dir {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.article-nav-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Mobile Full-Width Article Page (<= 768px) ────── */
@media (max-width: 768px) {
  .article-page-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .article-blog-layout {
    padding: 0 0 2rem 0 !important;
    gap: 1.25rem !important;
  }
  .article-single {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
    width: 100% !important;
    margin-bottom: 1.5rem !important;
  }
  .article-cover {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    max-height: 290px !important;
    border-radius: 0 !important;
  }
  .article-cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
  }
  .article-meta-header {
    padding: 1.25rem 1rem 0 !important;
  }
  .article-single__title {
    font-size: 1.4rem !important;
    line-height: 1.32 !important;
    margin: 0.5rem 0 !important;
  }
  .article-content {
    padding: 0 1rem 1.5rem !important;
  }
  .article-content p {
    font-size: 1rem !important;
    line-height: 1.85 !important;
  }
  .article-tags,
  .article-share {
    padding: 1rem 1rem !important;
  }
  .article-nav-pagination {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    padding: 1rem 1rem !important;
    border-left: none !important;
    border-right: none !important;
  }
  .article-nav-item--next {
    text-align: left !important;
    align-items: flex-start !important;
  }
  .related-articles {
    padding: 0 1rem 1.5rem !important;
  }
}

/* ── Static pages ─────────────────────────────────── */
.static-page { max-width:820px; margin:2.5rem auto; padding:0 0 3rem; }
.static-page h2 { font-size:1.6rem; font-weight:800; margin:1.5rem 0 .75rem; color:var(--text); }
.static-page h3 { font-size:1.15rem; font-weight:700; margin:1.5rem 0 .5rem; color:var(--text); }
.static-page h3 i { color:var(--primary); margin-right:.4rem; }
.static-page p { color:var(--text-muted); line-height:1.8; margin-bottom:.75rem; }
.static-page ul, .static-page ol { padding-left:1.5rem; color:var(--text-muted); line-height:1.8; margin-bottom:.75rem; }
.static-page ul { list-style:disc; }
.static-page ol { list-style:decimal; }
.static-page a { color:var(--primary); text-decoration:underline; }
.text-muted { color:var(--text-muted); font-size:.875rem; }

/* ── Contact page ─────────────────────────────────── */
.contact-layout { display:grid; grid-template-columns:1fr 1.5fr; gap:3rem; padding:2.5rem 0 3.5rem; align-items:start; }
@media(max-width:700px){ .contact-layout { grid-template-columns:1fr; } }
.contact-info h2 { font-size:1.5rem; font-weight:800; margin-bottom:.75rem; }
.contact-info p  { color:var(--text-muted); line-height:1.75; margin-bottom:.75rem; }
.contact-details { display:flex; flex-direction:column; gap:.75rem; margin-top:1rem; }
.contact-details li { display:flex; align-items:center; gap:.75rem; font-size:.9rem; color:var(--text-muted); }
.contact-details li i { color:var(--primary); width:20px; }
.contact-details a { color:var(--primary); }
.contact-form .form-group { margin-bottom:1.1rem; }
.contact-form label { display:block; font-size:.85rem; font-weight:600; margin-bottom:.35rem; }
.contact-form input,
.contact-form textarea {
  width:100%; padding:.6rem .9rem; border:1.5px solid var(--border);
  border-radius:var(--radius-sm); font-size:.9rem; font-family:var(--font);
  color:var(--text); outline:none; background:#fff; transition:border .15s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color:var(--primary); }
.contact-form textarea { min-height:140px; resize:vertical; }

/* ── Admin redesign ───────────────────────────────── */
.admin-login-page { background:#f1f5f9; min-height:100vh; display:flex; align-items:center; justify-content:center; }
.admin-login-wrap { width:100%; padding:1.5rem; display:flex; align-items:center; justify-content:center; }
.admin-login-box { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:2.5rem; width:400px; max-width:100%; box-shadow:var(--shadow-md); }
.admin-login-logo { text-align:center; margin-bottom:2rem; }
.admin-login-logo i { font-size:2.5rem; color:var(--primary); }
.admin-login-logo h1 { font-size:1.4rem; font-weight:800; margin:.5rem 0 .25rem; }
.admin-login-logo p { font-size:.875rem; color:var(--text-muted); }
.admin-login-box .form-group { margin-bottom:1rem; }
.admin-login-box .form-group label { display:block; font-size:.85rem; font-weight:600; margin-bottom:.35rem; }
.admin-login-box .form-group input { width:100%; padding:.65rem .9rem; border:1.5px solid var(--border); border-radius:var(--radius-sm); font-size:.9rem; font-family:var(--font); outline:none; transition:border .15s; }
.admin-login-box .form-group input:focus { border-color:var(--primary); }
.admin-alert { padding:.75rem 1rem; border-radius:var(--radius-sm); margin-bottom:1.25rem; font-size:.875rem; display:flex; align-items:center; gap:.5rem; }
.admin-alert--error   { background:#fef2f2; color:#dc2626; border:1px solid #fecaca; }
.admin-alert--success { background:#f0fdf4; color:#16a34a; border:1px solid #bbf7d0; }

.admin-wrap { min-height:100vh; background:var(--bg-soft); }
.admin-header { background:#fff; border-bottom:1px solid var(--border); padding:0 2rem; height:56px; display:flex; align-items:center; justify-content:space-between; position:sticky; top:0; z-index:100; }
.admin-header__brand { display:flex; align-items:center; gap:.5rem; font-size:1.05rem; font-weight:800; color:var(--text); }
.admin-header__brand i { color:var(--primary); }
.admin-nav { display:flex; gap:.25rem; }
.admin-nav a { display:inline-flex; align-items:center; gap:.35rem; padding:.45rem .9rem; border-radius:var(--radius-sm); font-size:.85rem; font-weight:600; color:var(--text-muted); transition:all .2s; }
.admin-nav a:hover, .admin-nav a.active { background:var(--primary-light); color:var(--primary); }
.admin-main { padding:2rem; max-width:1100px; margin:0 auto; }
.admin-page-title { display:flex; align-items:center; justify-content:space-between; margin-bottom:1.5rem; flex-wrap:wrap; gap:1rem; }
.admin-page-title h1 { font-size:1.4rem; font-weight:800; display:flex; align-items:center; gap:.5rem; }
.admin-page-title h1 i { color:var(--primary); }
.admin-empty { text-align:center; padding:3rem; color:var(--text-muted); }
.admin-table-wrap { background:#fff; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.admin-table { width:100%; border-collapse:collapse; }
.admin-table th { font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); padding:.75rem 1rem; text-align:left; border-bottom:1.5px solid var(--border); background:var(--bg-soft); }
.admin-table td { padding:.8rem 1rem; border-bottom:1px solid var(--border); font-size:.875rem; color:var(--text); vertical-align:middle; }
.admin-table tr:last-child td { border-bottom:none; }
.admin-table tr:hover td { background:#fafafa; }
.admin-actions { display:flex; gap:.5rem; align-items:center; }
.btn--danger { background:#ef4444; color:#fff; border-color:#ef4444; }
.btn--danger:hover { background:#dc2626; border-color:#dc2626; }
.admin-confirm-box { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:3rem 2rem; text-align:center; max-width:480px; margin:3rem auto; }
.admin-confirm-box h2 { font-size:1.4rem; font-weight:800; margin-bottom:.75rem; }
.admin-confirm-box p { color:var(--text-muted); }

.admin-form { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:2rem; }
.admin-form .form-row { display:grid; grid-template-columns:repeat(3,1fr); gap:1.25rem; margin-bottom:0; }
.admin-form .form-row .form-group--full { grid-column:1/-1; }
@media(max-width:700px){ .admin-form .form-row { grid-template-columns:1fr; } }
.admin-form .form-group { margin-bottom:1.25rem; }
.admin-form .form-group label { display:block; font-size:.85rem; font-weight:600; margin-bottom:.4rem; }
.admin-form .form-group label small { font-weight:400; color:var(--text-muted); }
.admin-form .form-group input,
.admin-form .form-group select,
.admin-form .form-group textarea {
  width:100%; padding:.65rem .9rem; border:1.5px solid var(--border);
  border-radius:var(--radius-sm); font-size:.9rem; font-family:var(--font);
  color:var(--text); outline:none; background:#fff; transition:border .15s;
}
.admin-form .form-group input:focus,
.admin-form .form-group select:focus,
.admin-form .form-group textarea:focus { border-color:var(--primary); }
.admin-form .form-group textarea { min-height:120px; resize:vertical; }
.admin-form .form-group input[type=file] { padding:.45rem .75rem; }
.image-preview { margin-top:.5rem; }
.image-preview img { max-width:200px; border-radius:var(--radius-sm); }
.form-actions { display:flex; gap:1rem; align-items:center; margin-top:.5rem; }

/* ═══════════════════════════════════════════════════
   Game Library & Category Filter System
   ═══════════════════════════════════════════════════ */
.game-library-section {
  background: #f8fafc;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 4rem;
}

.game-library-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.game-library-header__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.game-library-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  padding-left: 1rem;
}

.game-library-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12%;
  height: 76%;
  width: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.game-library-sub {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0.25rem 0 0 1rem;
  line-height: 1.5;
}

/* Category Filter Tabs - Colorful Design */
.game-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
  align-items: center;
}

.game-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  font-family: inherit;
  outline: none;
  border: 1.5px solid transparent;
  background: #ffffff;
  text-decoration: none;
}

.game-filter-btn:hover {
  transform: translateY(-2px);
}

.game-filter-btn .filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 1.35rem;
  line-height: 1.2;
  transition: all 0.2s ease;
}

/* 1. All Filter (Indigo / Slate) */
.game-filter-btn--all {
  color: #334155;
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.game-filter-btn--all .filter-count {
  background: #e2e8f0;
  color: #1e293b;
}
.game-filter-btn--all:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}
.game-filter-btn--all.active {
  background: linear-gradient(135deg, #1e293b, #0f172a) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35) !important;
}
.game-filter-btn--all.active .filter-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* 2. Classic Filter (Emerald Green) */
.game-filter-btn--classic {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.game-filter-btn--classic .filter-count {
  background: #d1fae5;
  color: #065f46;
}
.game-filter-btn--classic:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #065f46;
}
.game-filter-btn--classic.active {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4) !important;
}
.game-filter-btn--classic.active .filter-count {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

/* 3. Brain Filter (Royal Purple) */
.game-filter-btn--brain {
  color: #6d28d9;
  background: #faf5ff;
  border-color: #ddd6fe;
}
.game-filter-btn--brain .filter-count {
  background: #ede9fe;
  color: #5b21b6;
}
.game-filter-btn--brain:hover {
  background: #f3e8ff;
  border-color: #c4b5fd;
  color: #5b21b6;
}
.game-filter-btn--brain.active {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4) !important;
}
.game-filter-btn--brain.active .filter-count {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

/* 4. Action Filter (Sunset Orange) */
.game-filter-btn--action {
  color: #c2410c;
  background: #fff7ed;
  border-color: #fed7aa;
}
.game-filter-btn--action .filter-count {
  background: #ffedd5;
  color: #9a3412;
}
.game-filter-btn--action:hover {
  background: #ffedd5;
  border-color: #fdba74;
  color: #9a3412;
}
.game-filter-btn--action.active {
  background: linear-gradient(135deg, #ea580c, #f97316) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.4) !important;
}
.game-filter-btn--action.active .filter-count {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

/* 5. Puzzle Filter (Ocean Cyan) */
.game-filter-btn--puzzle {
  color: #0e7490;
  background: #ecfeff;
  border-color: #a5f3fc;
}
.game-filter-btn--puzzle .filter-count {
  background: #cffafe;
  color: #155e75;
}
.game-filter-btn--puzzle:hover {
  background: #cffafe;
  border-color: #67e8f9;
  color: #155e75;
}
.game-filter-btn--puzzle.active {
  background: linear-gradient(135deg, #0891b2, #06b6d4) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.4) !important;
}
.game-filter-btn--puzzle.active .filter-count {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

/* Responsive Grid Layout */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 1.35rem;
  margin-top: 1.75rem;
}

/* Modern Colorful Game Card */
.game-card {
  background: #ffffff;
  border: 1.5px solid var(--card-border, #e2e8f0);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease, opacity 0.2s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-grad, #3b82f6);
  z-index: 2;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-border-hover, #94a3b8);
  box-shadow: var(--card-glow, 0 14px 28px -4px rgba(0, 0, 0, 0.12));
}

.game-card.is-hidden {
  display: none !important;
}

/* Card Header Banner */
.game-card__top {
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-top-bg, #f8fafc);
  border-bottom: 1px solid var(--card-border, #f1f5f9);
}

.game-card__emoji-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  background: #ffffff;
  border: 1.5px solid var(--card-border, #e2e8f0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.game-card:hover .game-card__emoji-wrap {
  transform: scale(1.12) rotate(-3deg);
}

/* Badges */
.game-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--card-badge-bg, #f1f5f9);
  color: var(--card-badge-c, #475569);
  border: 1px solid var(--card-badge-b, #e2e8f0);
}

/* Card Body */
.game-card__body {
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.game-card__title {
  font-size: 1.12rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem 0;
  line-height: 1.35;
}

.game-card__desc {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 1.15rem 0;
  flex: 1;
  min-height: 2.6rem;
}

/* Play Now Button */
.game-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.62rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 800;
  background: var(--card-grad, #3b82f6);
  color: #ffffff !important;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.game-card__btn i {
  font-size: 0.74rem;
  transition: transform 0.15s ease;
}

.game-card:hover .game-card__btn {
  filter: brightness(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.game-card:hover .game-card__btn i {
  transform: translateX(3px);
}

/* Quick animation on filter */
@keyframes gameFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.game-card.is-visible {
  animation: gameFadeIn 0.25s ease forwards;
}

/* ==========================================================================
   Comprehensive Mobile UX & Layout Polish (<= 768px)
   - Zero horizontal overflow ("out of screen") guarantee.
   - Ultra-compact, clean 3-column launcher design for Homepage Categories.
   - Non-sticky, content-first layout for Blog and Article sidebars.
   - Full-width mobile container for immersive Article reading.
   ========================================================================== */
@media (max-width: 768px) {
  html, body {
    overflow-x: clip !important;
    max-width: 100vw !important;
    width: 100% !important;
  }

  .container {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    max-width: 100% !important;
  }

  /* ── Homepage Categories: Compact 3-Column Launcher ─────────── */
  .section-categories {
    padding: 1.25rem 0 !important;
  }
  .section-categories .section-head {
    margin-bottom: 0.75rem !important;
    padding-bottom: 0.45rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }
  .section-categories .section-title {
    font-size: 1.1rem !important;
    padding-left: 0.6rem !important;
  }
  .section-categories .section-label {
    font-size: 0.62rem !important;
    margin-bottom: 0.15rem !important;
  }
  .section-categories .section-head a {
    font-size: 0.75rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .cat-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
    margin-top: 0.65rem !important;
    width: 100% !important;
  }

  .cat-card {
    padding: 0.6rem 0.25rem 0.5rem !important;
    min-height: 92px !important;
    gap: 0.25rem !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04) !important;
  }

  .cat-card__icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.95rem !important;
    margin-bottom: 0.15rem !important;
  }

  .cat-card__title {
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }

  .cat-card__badge {
    font-size: 0.56rem !important;
    padding: 0.1rem 0.35rem !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  /* ── Blog & Article Layout: Articles First, Sidebar Static Below ── */
  .blog-layout {
    grid-template-columns: 100% !important;
    gap: 1.5rem !important;
    padding: 1rem 0 !important;
    width: 100% !important;
  }

  .blog-main {
    order: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .blog-sidebar {
    order: 2 !important;
    position: static !important;
    top: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .blog-item {
    grid-template-columns: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .blog-item__img {
    width: 100% !important;
    height: 175px !important;
    max-height: 175px !important;
  }

  .blog-item__body {
    padding: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .blog-filter-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
    width: 100% !important;
  }

  .blog-search-form {
    width: 100% !important;
    min-width: 0 !important;
  }

  .widget {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }

  .widget-search {
    width: 100% !important;
  }

  .widget-search input {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* ── Article Page Mobile Full-Width ──────────────────────── */
  .article-page-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .article-blog-layout {
    padding: 0 0 1.5rem 0 !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  .article-single {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
    width: 100% !important;
    margin-bottom: 1.25rem !important;
  }

  .article-cover {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    max-height: 290px !important;
    border-radius: 0 !important;
  }

  .article-cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
  }

  .article-meta-header {
    padding: 1.2rem 1rem 0 !important;
  }

  .article-single__title {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
    margin: 0.5rem 0 !important;
  }

  .article-content {
    padding: 0 1rem 1.25rem !important;
  }

  .article-content p {
    font-size: 0.98rem !important;
    line-height: 1.8 !important;
  }

  .article-tags,
  .article-share {
    padding: 0.85rem 1rem !important;
  }

  .article-nav-pagination {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    padding: 1rem !important;
    border-left: none !important;
    border-right: none !important;
  }

  .related-articles {
    padding: 0 1rem 1.25rem !important;
  }

  .article-page-container .blog-sidebar {
    padding: 0 1rem !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 400px) {
  .cat-grid {
    gap: 0.35rem !important;
  }
  .cat-card {
    padding: 0.45rem 0.15rem 0.4rem !important;
    min-height: 84px !important;
    border-radius: 8px !important;
  }
  .cat-card__icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.8rem !important;
  }
  .cat-card__title {
    font-size: 0.7rem !important;
  }
  .cat-card__badge {
    font-size: 0.5rem !important;
    padding: 0.08rem 0.25rem !important;
  }
}


/* ═══════════════════════════════════════════════════
   DARK MODE — element overrides
   ═══════════════════════════════════════════════════ */
[data-theme="dark"] body {
  background: var(--bg) !important;
  color: var(--text) !important;
}

/* ── Header & Navigation ─────────────────────────── */
[data-theme="dark"] .site-header {
  background: #000000 !important;
  border-bottom-color: #1f1f1f !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.5) !important;
}
[data-theme="dark"] .header-search {
  background: #0a0a0a !important;
  border-color: #262626 !important;
}
[data-theme="dark"] .header-search input {
  color: #ffffff !important;
  background: transparent !important;
}
[data-theme="dark"] .nav-link {
  color: #a1a1aa !important;
}
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #ffffff !important;
}
[data-theme="dark"] .logo-title {
  color: #ffffff !important;
}

/* ── Mobile Hamburger & Sidebar ──────────────────── */
[data-theme="dark"] .hamburger {
  background: #0a0a0a !important;
  border-color: #262626 !important;
}
[data-theme="dark"] .hamburger span {
  background: #ffffff !important;
}
[data-theme="dark"] .hamburger:hover {
  background: #141414 !important;
  border-color: #3f3f46 !important;
}
[data-theme="dark"] .mobile-sidebar {
  background: #080808 !important;
  border-right-color: #222222 !important;
  color: #ffffff !important;
}
[data-theme="dark"] .sidebar-backdrop {
  background: rgba(0,0,0,.75) !important;
}
[data-theme="dark"] .sidebar-header {
  background: #080808 !important;
  border-bottom-color: #222222 !important;
}
[data-theme="dark"] .sidebar-close {
  background: #141414 !important;
  border-color: #262626 !important;
  color: #ffffff !important;
}
[data-theme="dark"] .sidebar-close:hover {
  background: #222222 !important;
  color: #ff0a54 !important;
}
[data-theme="dark"] .sidebar-search-form {
  background: #111111 !important;
  border-color: #262626 !important;
}
[data-theme="dark"] .sidebar-search-form input {
  background: transparent !important;
  color: #ffffff !important;
}
[data-theme="dark"] .sidebar-link,
[data-theme="dark"] .sidebar-sublink {
  color: #a1a1aa !important;
}
[data-theme="dark"] .sidebar-link:hover,
[data-theme="dark"] .sidebar-link.active,
[data-theme="dark"] .sidebar-sublink:hover,
[data-theme="dark"] .sidebar-sublink.active {
  background: rgba(255,255,255,.08) !important;
  color: #ffffff !important;
}
[data-theme="dark"] .sidebar-section-title {
  color: #71717a !important;
}
[data-theme="dark"] .sidebar-footer {
  background: #080808 !important;
  border-top-color: #222222 !important;
  justify-content: center !important;
  text-align: center !important;
}
[data-theme="dark"] .sidebar-social a {
  background: #141414 !important;
  border-color: #262626 !important;
  color: #ffffff !important;
}
[data-theme="dark"] .sidebar-theme-row {
  background: #111111 !important;
  border-color: #222222 !important;
}
[data-theme="dark"] .sidebar-copy {
  color: #71717a !important;
}

/* ── Hero Section (Home & Pages) ─────────────────── */
[data-theme="dark"] .home-hero {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.94) 0%, rgba(10, 10, 10, 0.94) 100%),
              url('../images/banners/home_hero_bg.jpg') no-repeat center center / cover !important;
  border-bottom-color: #222222 !important;
}
[data-theme="dark"] .home-hero__title {
  color: #ffffff !important;
}
[data-theme="dark"] .home-hero__sub {
  color: #a1a1aa !important;
}
[data-theme="dark"] .home-hero__search {
  background: #0a0a0a !important;
  border-color: #262626 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}
[data-theme="dark"] .home-hero__search input {
  color: #ffffff !important;
  background: transparent !important;
}
[data-theme="dark"] .hero-search {
  background: #0a0a0a !important;
  border-color: #262626 !important;
}
[data-theme="dark"] .hero-search input {
  color: #ffffff !important;
  background: transparent !important;
}
[data-theme="dark"] .tag-pill {
  background: #111111 !important;
  color: #ffffff !important;
  border: 1px solid #262626 !important;
}
[data-theme="dark"] .tag-pill:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
}
[data-theme="dark"] .page-hero {
  background: linear-gradient(135deg, #050505 0%, #000000 100%) !important;
  border-bottom-color: #222222 !important;
}
[data-theme="dark"] .page-hero h1 {
  color: #ffffff !important;
}
[data-theme="dark"] .page-hero p {
  color: #a1a1aa !important;
}

/* ── Category Cards & Badges ─────────────────────── */
[data-theme="dark"] .cat-card,
[data-theme="dark"] .cat-card--custom {
  background: #0a0a0a !important;
  border-color: #222222 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}
[data-theme="dark"] .cat-card:hover {
  background: #121212 !important;
  border-color: #3f3f46 !important;
}
[data-theme="dark"] .cat-card__title {
  color: #ffffff !important;
}
[data-theme="dark"] .cat-card__badge {
  background: #18181b !important;
  color: #e4e4e7 !important;
  border: 1px solid #27272a !important;
}

/* ── Content Cards (Song, Article, Blog, Popular) ── */
[data-theme="dark"] .song-card,
[data-theme="dark"] .article-card,
[data-theme="dark"] .card,
[data-theme="dark"] .post-list-item,
[data-theme="dark"] .blog-item {
  background: #0a0a0a !important;
  border-color: #222222 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}
[data-theme="dark"] .song-card:hover,
[data-theme="dark"] .article-card:hover,
[data-theme="dark"] .blog-item:hover {
  border-color: #3f3f46 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6) !important;
}
[data-theme="dark"] .article-card__title a,
[data-theme="dark"] .blog-item__title a,
[data-theme="dark"] .post-list-item a,
[data-theme="dark"] .song-card__title a {
  color: #ffffff !important;
}
[data-theme="dark"] .article-card__excerpt,
[data-theme="dark"] .blog-item__excerpt,
[data-theme="dark"] .article-card__meta,
[data-theme="dark"] .blog-item__meta {
  color: #a1a1aa !important;
}
[data-theme="dark"] .blog-item__img--placeholder,
[data-theme="dark"] .pop-cat-card__placeholder {
  background: #111111 !important;
  color: #71717a !important;
}
[data-theme="dark"] .pop-cat-card {
  background: #0a0a0a !important;
}

/* ── Game Library Section (Homepage & Games Page) ── */
[data-theme="dark"] .game-library-section {
  background: #000000 !important;
  border-top-color: #222222 !important;
  border-bottom-color: #222222 !important;
}
[data-theme="dark"] .game-library-title {
  color: #ffffff !important;
}
[data-theme="dark"] .game-library-sub {
  color: #a1a1aa !important;
}
[data-theme="dark"] .game-filter-btn {
  background: #0d0d0d !important;
  border-color: #262626 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
[data-theme="dark"] .game-filter-btn .filter-count {
  background: #1a1a1a !important;
  color: #ffffff !important;
}
[data-theme="dark"] .game-filter-btn:hover {
  background: #18181b !important;
  border-color: #3f3f46 !important;
  color: #ffffff !important;
}
[data-theme="dark"] .game-filter-btn.active {
  color: #ffffff !important;
  border-color: transparent !important;
}
[data-theme="dark"] .game-filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}
[data-theme="dark"] .game-card {
  background: #0a0a0a !important;
  border-color: #222222 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}
[data-theme="dark"] .game-card:hover {
  border-color: #3f3f46 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
}
[data-theme="dark"] .game-card__top {
  background: #111111 !important;
  border-bottom-color: #222222 !important;
}
[data-theme="dark"] .game-card__emoji-wrap {
  background: #000000 !important;
  border-color: #262626 !important;
  box-shadow: none !important;
}
[data-theme="dark"] .game-card .game-badge {
  background: #18181b !important;
  color: #e4e4e7 !important;
  border-color: #27272a !important;
}
[data-theme="dark"] .game-card__title {
  color: #ffffff !important;
}
[data-theme="dark"] .game-card__desc {
  color: #a1a1aa !important;
}

/* ── Blog & Search Forms ─────────────────────────── */
[data-theme="dark"] .blog-search-form {
  background: #0a0a0a !important;
  border-color: #262626 !important;
}
[data-theme="dark"] .blog-search-form input {
  color: #ffffff !important;
  background: transparent !important;
}
[data-theme="dark"] .results-count {
  color: #a1a1aa !important;
}
[data-theme="dark"] .results-count strong {
  color: #ffffff !important;
}

/* ── Sidebar Widgets ─────────────────────────────── */
[data-theme="dark"] .widget,
[data-theme="dark"] .sidebar-widget {
  background: #0a0a0a !important;
  border-color: #222222 !important;
  color: #ffffff !important;
}
[data-theme="dark"] .widget__title {
  color: #ffffff !important;
}
[data-theme="dark"] .widget-search {
  background: #111111 !important;
  border-color: #262626 !important;
}
[data-theme="dark"] .widget-search input {
  background: #111111 !important;
  color: #ffffff !important;
}
[data-theme="dark"] .widget-cat-list li a {
  color: #e4e4e7 !important;
  border-bottom-color: #1a1a1a !important;
}
[data-theme="dark"] .widget-cat-list li a:hover,
[data-theme="dark"] .widget-cat-list li a.active {
  color: var(--primary) !important;
}
[data-theme="dark"] .cat-count {
  background: #18181b !important;
  color: #ffffff !important;
  border: 1px solid #27272a !important;
}
[data-theme="dark"] .widget-recent li {
  border-bottom-color: #1a1a1a !important;
}
[data-theme="dark"] .widget-recent a {
  color: #ffffff !important;
}
[data-theme="dark"] .widget-recent time {
  color: #a1a1aa !important;
}
[data-theme="dark"] .recent-item a {
  color: #ffffff !important;
}
[data-theme="dark"] .recent-item time {
  color: #a1a1aa !important;
}
[data-theme="dark"] .recent-item__placeholder {
  background: #141414 !important;
  color: #71717a !important;
}

/* ── Article Single Page ─────────────────────────── */
[data-theme="dark"] .article-single,
[data-theme="dark"] .article-body {
  background: #0a0a0a !important;
  border-color: #222222 !important;
  color: #ffffff !important;
}
[data-theme="dark"] .article-single__title {
  color: #ffffff !important;
}
[data-theme="dark"] .article-meta-row {
  color: #a1a1aa !important;
}
[data-theme="dark"] .article-content,
[data-theme="dark"] .article-content p,
[data-theme="dark"] .article-content ul,
[data-theme="dark"] .article-content ol,
[data-theme="dark"] .article-content li,
[data-theme="dark"] .article-content strong {
  color: #e4e4e7 !important;
}
[data-theme="dark"] .article-content h1,
[data-theme="dark"] .article-content h2,
[data-theme="dark"] .article-content h3,
[data-theme="dark"] .article-content h4,
[data-theme="dark"] .article-content h5,
[data-theme="dark"] .article-content h6 {
  color: #ffffff !important;
}
[data-theme="dark"] .article-content .table-responsive {
  border-color: #27272a !important;
}
[data-theme="dark"] .article-content .article-table {
  background: #09090b !important;
}
[data-theme="dark"] .article-content .article-table th {
  background: #18181b !important;
  color: #ffffff !important;
  border-bottom-color: #27272a !important;
}
[data-theme="dark"] .article-content .article-table td {
  color: #e4e4e7 !important;
  border-bottom-color: #27272a !important;
}
[data-theme="dark"] .article-content figure.article-inbetween-img figcaption {
  color: #a1a1aa !important;
}
[data-theme="dark"] .article-tags {
  border-top-color: #222222 !important;
}
[data-theme="dark"] .article-share {
  border-top-color: #222222 !important;
}
[data-theme="dark"] .article-share strong,
[data-theme="dark"] .article-share .share-label {
  color: #ffffff !important;
}
[data-theme="dark"] .article-nav-pagination {
  border-top-color: #222222 !important;
  border-bottom-color: #222222 !important;
}
[data-theme="dark"] .article-nav-item {
  background: #0a0a0a !important;
  border-color: #222222 !important;
}
[data-theme="dark"] .article-nav-item:hover {
  background: #141414 !important;
  border-color: var(--primary) !important;
}
[data-theme="dark"] .article-nav-title {
  color: #ffffff !important;
}

/* ── Pagination ───────────────────────────────────── */
[data-theme="dark"] .page-btn {
  background: #0a0a0a !important;
  border-color: #222222 !important;
  color: #ffffff !important;
}
[data-theme="dark"] .page-btn:hover,
[data-theme="dark"] .page-btn--active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
}

/* ── Static Pages & Contact Form ─────────────────── */
[data-theme="dark"] .static-page h2,
[data-theme="dark"] .static-page h3 {
  color: #ffffff !important;
}
[data-theme="dark"] .static-page p,
[data-theme="dark"] .static-page ul,
[data-theme="dark"] .static-page ol,
[data-theme="dark"] .static-page li {
  color: #e4e4e7 !important;
}
[data-theme="dark"] .contact-info h2 {
  color: #ffffff !important;
}
[data-theme="dark"] .contact-info p,
[data-theme="dark"] .contact-details li {
  color: #e4e4e7 !important;
}
[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
  background: #111111 !important;
  border-color: #262626 !important;
  color: #ffffff !important;
}

/* ── Classic Arcade Switch Banner ────────────────── */
[data-theme="dark"] .switch-ui-banner {
  background: #0a0a0a !important;
  border-color: #222222 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}
[data-theme="dark"] .switch-ui-banner h4 {
  color: #ffffff !important;
}
[data-theme="dark"] .switch-ui-banner p {
  color: #a1a1aa !important;
}

/* ── Footer Call to Action Banner ────────────────── */
[data-theme="dark"] .footer-cta {
  background: linear-gradient(to right, rgba(0,0,0,0.96) 0%, rgba(10,10,10,0.92) 55%, rgba(15,15,15,0.85) 100%),
              url('../images/banners/footer_cta_bg.jpg') no-repeat right center/cover !important;
  border-top-color: #222222 !important;
}
[data-theme="dark"] .footer-cta h2 {
  color: #ffffff !important;
}
[data-theme="dark"] .footer-cta p {
  color: #a1a1aa !important;
}

/* ── General Elements & Inputs ───────────────────── */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: var(--bg-soft) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
[data-theme="dark"] .section-title {
  color: var(--text) !important;
}
[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .section-sub {
  color: var(--text-muted) !important;
}
[data-theme="dark"] .divider {
  border-top-color: var(--border) !important;
}
[data-theme="dark"] .footer {
  background: #000000 !important;
  border-top-color: #1f1f1f !important;
}

/* ── Smooth theme transitions ────────────────────────── */
body,
.site-header,
.mobile-sidebar,
.song-card,
.article-card,
.cat-card,
.game-card,
.footer {
  transition: background 0.25s ease, color 0.2s ease, border-color 0.25s ease;
}

/* Suppress all transitions during initial page load to eliminate flashing */
html.preload,
html.preload *,
html.preload *::before,
html.preload *::after {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -ms-transition: none !important;
  -o-transition: none !important;
  transition: none !important;
}

/* ═══════════════════════════════════════════════════
   THEME TOGGLE BUTTON (in header)
   ═══════════════════════════════════════════════════ */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  font-size: .9rem;
  transition: background .2s, color .2s, border-color .2s;
}
.theme-toggle-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}
[data-theme="dark"] .theme-toggle-btn:hover {
  background: rgba(255,255,255,.08);
  color: var(--primary);
}

/* ═══════════════════════════════════════════════════
   THEME PICKER PANEL
   ═══════════════════════════════════════════════════ */
.theme-panel-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.theme-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 1rem 1.1rem;
  width: 230px;
  z-index: 2000;
  display: none;
  flex-direction: column;
  gap: .85rem;
}
.theme-panel.open { display: flex; }
[data-theme="dark"] .theme-panel {
  background: var(--bg-soft);
}
.theme-panel__title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: .1rem;
}
/* Mode row */
.theme-mode-row {
  display: flex;
  gap: .4rem;
}
.theme-mode-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .5rem .3rem .45rem;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: .75rem;
  font-weight: 600;
  transition: all .15s;
}
.theme-mode-btn i { font-size: .95rem; }
.theme-mode-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.theme-mode-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
[data-theme="dark"] .theme-mode-btn:hover,
[data-theme="dark"] .theme-mode-btn.active {
  background: rgba(255,255,255,.07);
  color: var(--primary);
  border-color: var(--primary);
}
/* Color swatches */
.theme-colors-row {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
}
.theme-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  outline: none;
  transition: transform .15s, border-color .15s;
}
.theme-color-swatch:hover { transform: scale(1.15); }
.theme-color-swatch.active {
  border-color: var(--text);
  transform: scale(1.12);
}
.theme-color-swatch[data-color="red"]    { background: #ff0a54; }
.theme-color-swatch[data-color="blue"]   { background: #2563eb; }
.theme-color-swatch[data-color="green"]  { background: #059669; }
.theme-color-swatch[data-color="purple"] { background: #7c3aed; }
.theme-color-swatch[data-color="orange"] { background: #ea580c; }
.theme-color-swatch[data-color="teal"]   { background: #0891b2; }

/* ── Mobile sidebar theme row ─────────────────────── */
.sidebar-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .75rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  margin-top: .4rem;
  gap: .5rem;
}
.sidebar-theme-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
}
.sidebar-theme-colors {
  display: flex;
  gap: .3rem;
}
.sidebar-theme-colors .theme-color-swatch {
  width: 22px;
  height: 22px;
}
