/*
Theme Name: iModGame
Theme URI: https://imodgame.com
Author: imodgame
Description: Dark neon theme for Mod APK download site. Custom post types: Games, Apps. Requires ACF Pro for theme options & custom fields.
Version: 1.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: imodgame
*/

:root {
  --bg-dark: #0f1115;
  --bg-card: #181b21;
  --bg-card-hover: #1f232b;
  --primary-neon: #00ff66;
  --primary-neon-dim: rgba(0, 255, 102, 0.2);
  --text-main: #ffffff;
  --text-muted: #8b92a5;
  --border-color: #2a2f3a;
  --glass-bg: rgba(15, 17, 21, 0.8);
  --glass-border: rgba(255, 255, 255, 0.05);
  --shadow-neon: 0 0 15px rgba(0, 255, 102, 0.3);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 15px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-accent {
  color: var(--primary-neon);
}

.search-bar {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 20px 12px 45px;
  border-radius: 50px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 15px;
  transition: var(--transition-smooth);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-neon);
  box-shadow: var(--shadow-neon);
  background-color: var(--bg-card-hover);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-btn {
  background: var(--primary-neon-dim);
  color: var(--primary-neon);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  border: 1px solid rgba(0, 255, 102, 0.3);
}

.nav-btn:hover {
  background: var(--primary-neon);
  color: #000;
  box-shadow: var(--shadow-neon);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 24px;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  margin-top: 30px;
  margin-bottom: 40px;
}

.hero-banner {
  position: relative;
  height: 350px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-card);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15,17,21,1) 0%, rgba(15,17,21,0.4) 50%, rgba(15,17,21,0) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 40px;
  width: 100%;
}

.hero-badge {
  background: var(--primary-neon);
  color: #000;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

.hero-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-desc {
  color: #ccc;
  font-size: 16px;
  max-width: 600px;
}

/* --- Smart Pills --- */
.smart-pills {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.smart-pills::-webkit-scrollbar {
  display: none;
}

.pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill:hover, .pill.active {
  background: var(--bg-card-hover);
  border-color: var(--primary-neon);
  color: var(--primary-neon);
}

/* --- Game Grid --- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  color: var(--primary-neon);
}

.view-all {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.view-all:hover {
  color: var(--primary-neon);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 16px;
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-neon-dim);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  background: var(--bg-card-hover);
}

.game-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.game-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.game-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main);
  line-height: 1.3;
}

.game-developer {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.mod-feature {
  font-size: 12px;
  color: var(--primary-neon);
  font-weight: 600;
  background: var(--primary-neon-dim);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 8px;
}

.safe-badge {
  font-size: 11px;
  color: #a8b0c2;
  display: flex;
  align-items: center;
  gap: 4px;
}

.safe-badge i {
  color: #3b82f6;
}

/* --- Table of Contents --- */
.toc-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 30px;
}

.toc-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toc-title i {
  color: var(--primary-neon);
}

.toc-list {
  list-style: none;
  margin-left: 0 !important;
}

.toc-list li {
  margin-bottom: 12px !important;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 12px;
}

.toc-list li:last-child {
  margin-bottom: 0 !important;
  border-bottom: none;
  padding-bottom: 0;
}

.toc-list a {
  color: #cbd5e1 !important;
  text-decoration: none;
  font-size: 15px;
  transition: var(--transition-fast);
  display: block;
}

.toc-list a:hover {
  color: var(--primary-neon) !important;
  transform: translateX(5px);
}

/* --- News Section --- */
.news-section {
  margin-top: 60px;
  margin-bottom: 60px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-neon-dim);
  box-shadow: var(--shadow-card);
}

.news-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-content {
  padding: 20px;
}

.news-date {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.news-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.news-card:hover .news-title {
  color: var(--primary-neon);
}

.news-read-more {
  font-size: 14px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast);
}

.news-read-more i {
  color: var(--primary-neon);
}

.news-card:hover .news-read-more {
  color: var(--primary-neon);
}

/* --- Single Post (Game/App Details) --- */
.single-header {
  margin-top: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.single-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(180deg, rgba(0,255,102,0.1) 0%, rgba(0,0,0,0) 100%);
  z-index: 0;
}

.single-icon-container {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.single-icon {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 2px solid var(--border-color);
}

.single-info {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.single-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.2;
}

.dev-name {
  color: var(--primary-neon);
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 16px;
}

.meta-tags {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.meta-tag {
  background: rgba(255,255,255,0.05);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.download-cta-container {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: auto;
}

.btn-download-large {
  background: var(--primary-neon);
  color: #000;
  font-size: 18px;
  font-weight: 800;
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-neon);
}

.btn-download-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 255, 102, 0.5);
  background: #fff;
}

.vt-badge-large {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vt-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.vt-text i {
  color: #3b82f6;
}

.vt-subtext {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Layout: Main + Sidebar --- */
.content-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.magic-box {
  background: rgba(0, 255, 102, 0.05);
  border: 1px solid var(--primary-neon);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 30px;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 255, 102, 0.1) inset;
}

.magic-box-title {
  color: var(--primary-neon);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.magic-box ul {
  list-style: none;
  margin-left: 5px;
}

.magic-box li {
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
  color: #e2e8f0;
}

.magic-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-neon);
  font-weight: bold;
}

.gallery-slider {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 15px;
  margin-bottom: 30px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-neon) var(--bg-card);
}

.gallery-item {
  width: 300px;
  height: 170px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.article-content {
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.8;
}

.article-content h2, .article-content h3 {
  color: var(--text-main);
  margin: 30px 0 15px 0;
}

.article-content p {
  margin-bottom: 20px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 30px;
}

.widget-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.community-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0088cc;
  color: white;
  text-decoration: none;
  padding: 15px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 16px;
  transition: var(--transition-fast);
}

.community-btn:hover {
  background: #0099e6;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .single-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }
  
  .meta-tags, .download-cta-container {
    justify-content: center;
  }
  
  .download-cta-container {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-download-large {
    width: 100%;
    justify-content: center;
  }
  
  .content-layout {
    grid-template-columns: 1fr;
  }
}

/* --- Archive Layout (Games/Apps List) --- */
.archive-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 60px;
}

/* News/single variant: content left, sidebar right (collapses via the
   same .archive-layout media query below) */
.archive-layout--news {
  grid-template-columns: 1fr 300px;
}

.filter-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  align-self: start;
}

.filter-group {
  margin-bottom: 25px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-list {
  list-style: none;
}

.filter-list li {
  margin-bottom: 10px;
}

.filter-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.filter-list a:hover, .filter-list a.active {
  color: var(--primary-neon);
}

.filter-count {
  background: rgba(255,255,255,0.05);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 12px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.page-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
}

.page-btn:hover, .page-btn.active {
  background: var(--primary-neon);
  border-color: var(--primary-neon);
  color: #000;
}

@media (max-width: 900px) {
  .archive-layout {
    grid-template-columns: 1fr;
  }

  /* Keep filters accessible on mobile: compact wrapping pills */
  .filter-sidebar .filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .filter-sidebar .filter-list li {
    margin-bottom: 0;
  }
  .filter-sidebar .filter-list a {
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 6px 14px;
    gap: 8px;
  }
}

/* --- Legal / Basic Pages --- */
.page-header {
  text-align: center;
  padding: 40px 0;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-main);
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 16px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 60px;
}

.legal-content h2, .legal-content h3 {
  color: var(--text-main);
  margin: 30px 0 15px 0;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 20px;
}

.legal-content ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.legal-content li {
  margin-bottom: 10px;
}

.legal-content a {
  color: var(--primary-neon);
  text-decoration: none;
}

/* --- Contact Form --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto 60px;
}

.contact-info {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-main);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 15px;
  background: #0f1115;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 15px;
  transition: var(--transition-fast);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-neon);
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.1);
}

.btn-submit {
  background: var(--primary-neon);
  color: #000;
  border: none;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
  width: 100%;
}

.btn-submit:hover {
  background: #fff;
  box-shadow: var(--shadow-neon);
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 0 40px;
  background: var(--bg-card);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
}

.footer-text {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 300px;
  margin-top: 15px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-neon);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2a2f3a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: var(--primary-neon);
  color: #000;
}

.copyright {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Search stays usable: drops to its own full-width row */
  .header-content {
    flex-wrap: wrap;
    gap: 15px;
  }
  .search-bar {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    height: 250px;
  }

  .hero-content {
    padding: 20px;
  }

  .hero-title {
    font-size: 24px;
  }

  .legal-content,
  .contact-info,
  .contact-form {
    padding: 24px 20px;
  }

  .page-title {
    font-size: 28px;
  }
}

/* --- WordPress additions --- */

/* Breadcrumbs */
.breadcrumbs {
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--primary-neon);
}
.breadcrumb-sep {
  margin: 0 8px;
  font-size: 10px;
}
.breadcrumb-current {
  color: var(--text-main);
}

/* Related items (sidebar) */
.related-item {
  display: flex;
  gap: 15px;
  text-decoration: none;
  margin-bottom: 15px;
}
.related-icon {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}
.related-title {
  color: var(--text-main);
  font-size: 14px;
  margin-bottom: 5px;
}
.related-feature {
  font-size: 11px;
  color: var(--primary-neon);
  background: var(--primary-neon-dim);
  padding: 2px 6px;
  border-radius: 4px;
}

/* News list (row layout) */
.news-card-row {
  display: flex;
  flex-direction: row;
  min-height: 200px;
}
.news-img-row {
  width: 300px;
  height: auto;
  flex-shrink: 0;
  object-fit: cover;
}
.news-content-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 768px) {
  .news-card-row {
    flex-direction: column;
  }
  .news-img-row {
    width: 100%;
    height: 180px;
  }
}

/* Single post author row */
.post-author-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}
.post-author-avatar img {
  border-radius: 50%;
  display: block;
}

/* Contact methods */
.contact-method {
  display: flex;
  align-items: center;
  gap: 15px;
}
.contact-method-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-card-hover);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

/* Pagination: style paginate_links output */
.pagination span.page-btn {
  cursor: default;
}
.pagination .page-btn.dots {
  background: transparent;
  border: none;
}

/* Mobile nav toggle */
@media (max-width: 900px) {
  .nav-links.nav-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
    gap: 10px;
    z-index: 99;
  }
  .header .container {
    position: relative;
  }
}
