/*
Theme Name:   WhatsApp Groups World
Theme URI:    https://whatsappgroups.shop
Description:  A WhatsApp Groups directory site — browse and join WhatsApp groups from around the world, organized by country and category. Optimized for AdsKeepers ad network monetization.
Author:       WhatsApp Groups World
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  adskeepers-pro
Tags:         blog, directory, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, translation-ready
*/

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

:root {
  --color-bg:       #ffffff;
  --color-surface:  #f0faf2;
  --color-border:   #d1e8d5;
  --color-text:     #0d1f12;
  --color-muted:    #4b7055;
  --color-accent:   #25d366;
  --color-accent2:  #128c7e;
  --color-accent3:  #075e54;
  --color-nav-bg:   #075e54;
  --color-nav-text: #f1f1f1;
  --font-sans:      'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --font-serif:     'Merriweather', Georgia, serif;
  --radius:         8px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08);
  --shadow-md:      0 4px 12px rgba(0,0,0,.12);
  --max-w:          1200px;
  --gap:            24px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-accent2); text-decoration: none; }
a:hover { color: var(--color-accent); }
img, video { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5em; }
input, textarea, select, button { font-family: inherit; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 900;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
  min-height: 70px;
}
.site-branding .brand-link { display: flex; flex-direction: column; }
.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent3);
  letter-spacing: -.5px;
}
.brand-name span { color: var(--color-accent); }
.brand-desc { font-size: .75rem; color: var(--color-muted); }
.custom-logo { height: 50px; width: auto; }

/* Header ad slot */
.adsk-slot-adsk_header_banner {
  display: flex; flex-direction: column; align-items: center;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-navigation {
  background: var(--color-nav-bg);
}
.main-navigation .container {
  display: flex;
  align-items: center;
}
#primary-menu {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
}
#primary-menu > li > a {
  display: block;
  padding: 12px 16px;
  color: var(--color-nav-text);
  font-size: .875rem;
  font-weight: 500;
  transition: background .15s, color .15s;
}
#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a {
  background: var(--color-accent);
  color: var(--color-accent3);
  font-weight: 700;
}
#primary-menu li { position: relative; }
#primary-menu .sub-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: #fff;
  min-width: 180px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  list-style: none; padding: 4px 0; z-index: 999;
}
#primary-menu li:hover > .sub-menu { display: block; }
#primary-menu .sub-menu a {
  display: block; padding: 8px 16px;
  color: var(--color-text); font-size: .85rem;
}
#primary-menu .sub-menu a:hover { background: var(--color-surface); }

/* Mobile toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger { display: block; width: 24px; height: 2px; background: var(--color-text); border-radius: 2px; }

/* ============================================================
   BELOW HEADER AD BAR
   ============================================================ */
.adsk-below-header-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 8px 0;
  text-align: center;
}

/* ============================================================
   CONTENT LAYOUT
   ============================================================ */
.site-content { padding: 32px 0; }
.content-area-wrap {
  display: grid;
  gap: var(--gap);
}
.content-area-wrap.with-sidebar {
  grid-template-columns: 1fr 300px;
  align-items: start;
}
.content-area-wrap.full-width {
  grid-template-columns: 1fr;
}

/* ============================================================
   AD SLOT COMMON STYLES
   ============================================================ */
.adsk-ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 16px auto;
  max-width: 100%;
  overflow: hidden;
}
.adsk-ad-label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-muted);
  margin-bottom: 4px;
  display: block;
  text-align: center;
}
.adsk-in-content-ad {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px;
  margin: 28px auto;
}
.grid-ad-break {
  grid-column: 1 / -1;
  text-align: center;
}
.adsk-above-content { margin: 16px 0 24px; text-align: center; }

/* ============================================================
   HERO POST
   ============================================================ */
.hero-post {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  margin-bottom: var(--gap);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.hero-post .hero-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-post .hero-body {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.hero-post .entry-title { font-family: var(--font-serif); font-size: 1.75rem; line-height: 1.3; }
.hero-post .entry-title a { color: var(--color-text); }
.hero-post .entry-title a:hover { color: var(--color-accent); }
.hero-post .entry-excerpt { color: var(--color-muted); font-size: .95rem; }

/* ============================================================
   POST GRID
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
}
.post-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16/9; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card-thumb:hover img { transform: scale(1.04); }
.card-cat {
  position: absolute; top: 8px; left: 8px;
  background: var(--color-accent); color: #fff;
  font-size: .7rem; font-weight: 600;
  padding: 2px 8px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .05em;
}
.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card-title { font-size: 1rem; font-weight: 600; line-height: 1.4; }
.card-title a { color: var(--color-text); }
.card-title a:hover { color: var(--color-accent); }
.card-excerpt { font-size: .85rem; color: var(--color-muted); margin-top: auto; }
.post-meta { font-size: .75rem; color: var(--color-muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.post-meta .sep { opacity: .4; }
.post-meta a { color: var(--color-accent2); }
.read-time { white-space: nowrap; }

/* ============================================================
   SINGLE ARTICLE
   ============================================================ */
.single-article { max-width: 780px; }
.entry-header { margin-bottom: 24px; }
.entry-header .entry-title { font-family: var(--font-serif); font-size: 2rem; line-height: 1.3; margin: 12px 0; }
.author-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.author-avatar { border-radius: 50%; }
.author-name { font-size: .875rem; color: var(--color-muted); }

.featured-media { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; }
.featured-media img { width: 100%; }
.featured-media figcaption { font-size: .8rem; color: var(--color-muted); padding: 6px 0; text-align: center; }

.entry-content {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text);
}
.entry-content h2, .entry-content h3, .entry-content h4 {
  font-family: var(--font-sans);
  margin: 1.8em 0 .6em;
  line-height: 1.3;
}
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content p { margin-bottom: 1.25em; }
.entry-content blockquote {
  border-left: 4px solid var(--color-accent);
  margin: 1.5em 0;
  padding: 12px 20px;
  background: var(--color-surface);
  font-style: italic;
  color: var(--color-muted);
}
.entry-content a { color: var(--color-accent); text-decoration: underline; }
.entry-content ul, .entry-content ol { margin: 1em 0 1em 1.5em; }
.entry-content li { margin-bottom: .4em; }
.entry-content img { border-radius: var(--radius); margin: 1em 0; }
.entry-content pre, .entry-content code {
  font-family: 'Courier New', monospace;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: .15em .4em;
  font-size: .9em;
}
.entry-content pre { padding: 16px; overflow-x: auto; }

/* Tags */
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 24px 0; font-size: .85rem; }
.entry-tags a { background: var(--color-surface); border: 1px solid var(--color-border); padding: 3px 10px; border-radius: 20px; color: var(--color-text); }
.entry-tags a:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* Share bar */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0; font-size: .875rem; }
.share-btn { padding: 6px 14px; border-radius: var(--radius); font-weight: 600; color: #fff !important; text-decoration: none !important; }
.share-fb { background: #1877f2; }
.share-tw { background: #000; }
.share-wa { background: #25d366; }

/* Post navigation */
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin: 32px 0; padding: 16px 0; border-top: 1px solid var(--color-border); font-size: .875rem; }
.post-nav a { color: var(--color-accent2); }
.post-nav a:hover { color: var(--color-accent); }

/* Author box */
.author-box {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 20px; margin: 32px 0;
}
.author-box-avatar { border-radius: 50%; flex-shrink: 0; }
.author-box-name { display: block; font-size: 1rem; margin-bottom: 4px; }
.author-box-info p { font-size: .875rem; color: var(--color-muted); }

/* Related posts */
.related-posts { margin: 32px 0; }
.related-posts h2 { font-size: 1.25rem; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: var(--gap); }
.related-card { display: flex; flex-direction: column; gap: 6px; }
.related-card img { border-radius: var(--radius); aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.related-title { font-size: .875rem; font-weight: 600; color: var(--color-text); line-height: 1.4; }
.related-card:hover .related-title { color: var(--color-accent); }

/* Buttons */
.btn-read, .read-more, .btn-search {
  display: inline-block;
  padding: 10px 22px;
  background: var(--color-accent);
  color: #fff !important;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .875rem;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: background .15s;
}
.btn-read:hover, .read-more:hover, .btn-search:hover { background: #c1121f; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 18px; }
.widget-title { font-size: .95rem; font-weight: 700; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--color-accent); }
.widget ul { list-style: none; padding: 0; }
.widget ul li { padding: 6px 0; border-bottom: 1px solid var(--color-border); font-size: .875rem; }
.widget ul li:last-child { border: none; }
.widget ul a { color: var(--color-text); }
.widget ul a:hover { color: var(--color-accent); }
.sidebar-sticky-ad { position: sticky; top: 80px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { margin: 32px 0; display: flex; justify-content: center; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a, .nav-links span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  font-size: .875rem; color: var(--color-text);
}
.nav-links a:hover { background: var(--color-surface); }
.nav-links .current { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* ============================================================
   SEARCH FORM
   ============================================================ */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
  flex: 1; padding: 10px 14px; border: 1px solid var(--color-border);
  border-radius: var(--radius); font-size: .9rem;
  outline: none;
}
.search-form input[type="search"]:focus { border-color: var(--color-accent2); }
.search-form button { padding: 10px 16px; }

/* ============================================================
   ABOVE FOOTER AD BAR
   ============================================================ */
.adsk-above-footer-bar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 10px 0;
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-nav-bg);
  color: var(--color-nav-text);
  padding: 40px 0 20px;
}
.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--gap);
  margin-bottom: 32px;
}
.footer-col .widget { background: transparent; border: none; padding: 0; }
.footer-col .widget-title { color: #fff; border-color: var(--color-accent); }
.footer-col .widget ul a { color: rgba(255,255,255,.7); }
.footer-col .widget ul a:hover { color: #fff; }
.footer-col .widget ul li { border-color: rgba(255,255,255,.1); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; }
.footer-nav a { color: rgba(255,255,255,.7); font-size: .8rem; padding: 4px 8px; }
.footer-nav a:hover { color: #fff; }
.copyright { font-size: .8rem; color: rgba(255,255,255,.5); }
.copyright a { color: rgba(255,255,255,.7); }

/* ============================================================
   PAGE TEMPLATE
   ============================================================ */
.page-content { max-width: 780px; font-family: var(--font-serif); font-size: 1.0625rem; line-height: 1.8; }
.page-links { margin: 24px 0; }

/* ============================================================
   ARCHIVE
   ============================================================ */
.archive-header { margin-bottom: 28px; padding-bottom: 16px; border-bottom: 2px solid var(--color-border); }
.archive-header .archive-title { font-size: 1.75rem; }
.archive-header .archive-description { color: var(--color-muted); margin-top: 8px; }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area { margin-top: 40px; border-top: 1px solid var(--color-border); padding-top: 24px; }
.comments-title { font-size: 1.25rem; margin-bottom: 20px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: .85rem; color: var(--color-muted); }
.comment-meta .fn { font-weight: 600; color: var(--color-text); }
.comment-body p { font-size: .9rem; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--color-border);
  border-radius: var(--radius); font-size: .9rem; margin-bottom: 12px;
}
.comment-form textarea { min-height: 100px; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--color-accent2); outline: none; }

/* ============================================================
   404
   ============================================================ */
.error-404 { text-align: center; padding: 80px 20px; }
.error-404 .error-code { font-size: 8rem; font-weight: 800; color: var(--color-accent); line-height: 1; }
.error-404 h1 { font-size: 2rem; margin: 8px 0; }
.error-404 p { color: var(--color-muted); margin-bottom: 24px; }

/* ============================================================
   NO RESULTS / SEARCH
   ============================================================ */
.no-results, .search-no-results { text-align: center; padding: 60px 20px; }
.no-results h1, .search-no-results h1 { font-size: 1.75rem; margin-bottom: 12px; }
.no-results p, .search-no-results p { color: var(--color-muted); margin-bottom: 20px; }
.search-results-header { margin-bottom: 24px; }
.search-results-header h1 { font-size: 1.5rem; }
.search-results-header p { color: var(--color-muted); font-size: .9rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .content-area-wrap.with-sidebar { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .hero-post { grid-template-columns: 1fr; }
  .hero-post .hero-body { padding: 20px; }
  .entry-header .entry-title { font-size: 1.5rem; }
  .menu-toggle { display: flex; }
  #primary-menu { display: none; flex-direction: column; width: 100%; }
  #primary-menu.open { display: flex; }
  #primary-menu > li > a { border-bottom: 1px solid rgba(255,255,255,.1); }
  .main-navigation .container { flex-direction: column; align-items: flex-start; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
  .header-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .posts-grid { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .share-bar { gap: 6px; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.skip-link { position: absolute; top: -40px; left: 0; background: var(--color-accent); color: #fff; padding: 8px 16px; z-index: 9999; }
.skip-link:focus { top: 0; }

/* ============================================================
   WHATSAPP GROUPS — SITE IDENTITY BAR
   ============================================================ */
.wa-identity-bar {
  background: var(--color-accent);
  color: var(--color-accent3);
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  padding: 5px 12px;
  letter-spacing: .03em;
}
.wa-identity-bar a { color: var(--color-accent3); text-decoration: underline; }

/* ============================================================
   WHATSAPP GROUPS — HERO BANNER
   ============================================================ */
.wa-hero {
  background: linear-gradient(135deg, var(--color-accent3) 0%, var(--color-accent2) 100%);
  color: #fff;
  padding: 52px 0 44px;
  text-align: center;
  margin-bottom: 32px;
}
.wa-hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 10px; line-height: 1.2; }
.wa-hero h1 span { color: var(--color-accent); }
.wa-hero p { font-size: 1.1rem; opacity: .9; max-width: 600px; margin: 0 auto 24px; }
.wa-hero .search-wrap { display: flex; max-width: 520px; margin: 0 auto; gap: 0; }
.wa-hero .search-wrap input {
  flex: 1; padding: 13px 18px;
  border: none; border-radius: var(--radius) 0 0 var(--radius);
  font-size: 1rem; outline: none;
}
.wa-hero .search-wrap button {
  padding: 13px 22px;
  background: var(--color-accent);
  color: var(--color-accent3);
  font-weight: 700; font-size: .95rem;
  border: none; border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer; white-space: nowrap;
}
.wa-hero .search-wrap button:hover { background: #1ebe57; }

/* ============================================================
   REGION / CATEGORY TABS
   ============================================================ */
.region-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
}
.region-tab {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 30px;
  font-size: .82rem; font-weight: 600;
  color: var(--color-text);
  text-decoration: none !important;
  transition: background .15s, border-color .15s;
}
.region-tab:hover, .region-tab.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent3) !important;
}
.region-tab .flag { font-size: 1.1rem; }

/* ============================================================
   GROUP CARDS
   ============================================================ */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}
.group-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.group-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.group-card-header {
  background: var(--color-accent3);
  padding: 18px 16px 14px;
  display: flex; align-items: center; gap: 12px;
  position: relative;
}
.group-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; flex-shrink: 0;
  overflow: hidden;
}
.group-icon img { width: 100%; height: 100%; object-fit: cover; }
.group-header-info { flex: 1; min-width: 0; }
.group-name { font-size: 1rem; font-weight: 700; color: #fff; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.group-region { font-size: .72rem; color: rgba(255,255,255,.7); margin-top: 2px; }
.group-member-count {
  background: rgba(255,255,255,.15);
  color: #fff; font-size: .7rem; font-weight: 600;
  padding: 3px 8px; border-radius: 20px;
  white-space: nowrap;
}

.group-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.group-desc { font-size: .875rem; color: var(--color-muted); line-height: 1.55; flex: 1; }
.group-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.group-tag {
  font-size: .7rem; font-weight: 600;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-accent2);
  padding: 2px 9px; border-radius: 20px;
}
.group-card-footer { padding: 12px 16px; border-top: 1px solid var(--color-border); }
.btn-join-group {
  display: block; width: 100%;
  padding: 11px;
  background: var(--color-accent);
  color: var(--color-accent3) !important;
  font-weight: 700; font-size: .9rem;
  text-align: center; border-radius: var(--radius);
  text-decoration: none !important;
  transition: background .15s;
}
.btn-join-group:hover { background: #1ebe57; }
.btn-join-group::before { content: '📲 '; }

/* ============================================================
   SINGLE GROUP POST — JOIN BOX
   ============================================================ */
.group-join-box {
  background: var(--color-accent3);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  margin: 28px 0;
  color: #fff;
}
.group-join-box h3 { font-size: 1.3rem; margin-bottom: 8px; }
.group-join-box p { opacity: .85; font-size: .9rem; margin-bottom: 18px; }
.group-join-box .btn-join-big {
  display: inline-block;
  padding: 14px 36px;
  background: var(--color-accent);
  color: var(--color-accent3) !important;
  font-size: 1.1rem; font-weight: 800;
  border-radius: var(--radius);
  text-decoration: none !important;
  transition: background .15s;
}
.group-join-box .btn-join-big:hover { background: #1ebe57; }
.group-join-box .btn-join-big::before { content: '💬 '; }
.group-meta-row {
  display: flex; flex-wrap: wrap; gap: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px; font-size: .875rem;
}
.group-meta-item { display: flex; align-items: center; gap: 6px; color: var(--color-muted); }
.group-meta-item strong { color: var(--color-text); }

/* ============================================================
   GROUPS DIRECTORY PAGE
   ============================================================ */
.groups-page-header { margin-bottom: 28px; }
.groups-page-header h1 { font-size: 2rem; margin-bottom: 6px; }
.groups-page-header p { color: var(--color-muted); }

.country-section { margin-bottom: 40px; }
.country-section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
  margin-bottom: 18px;
}
.country-flag { font-size: 1.4rem; }

/* ============================================================
   SECTION HEADINGS (homepage category sections)
   ============================================================ */
.section-heading {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.section-heading h2 { font-size: 1.3rem; font-weight: 700; }
.section-heading h2::before { content: ''; display: inline-block; width: 4px; height: 1.1em; background: var(--color-accent); border-radius: 2px; margin-right: 10px; vertical-align: middle; }
.section-heading a { font-size: .85rem; color: var(--color-accent2); }
.section-heading a:hover { color: var(--color-accent); }

/* ============================================================
   STATS BAR (homepage)
   ============================================================ */
.wa-stats-bar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex; flex-wrap: wrap;
  padding: 18px 24px; gap: 24px;
  margin-bottom: 32px;
  justify-content: space-around;
}
.wa-stat { text-align: center; }
.wa-stat-number { font-size: 1.8rem; font-weight: 800; color: var(--color-accent2); display: block; }
.wa-stat-label { font-size: .78rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: .04em; }

/* ============================================================
   POST CARD — override accent for WA theme
   ============================================================ */
.card-cat { background: var(--color-accent2) !important; }
.btn-read, .read-more, .btn-search {
  background: var(--color-accent);
  color: var(--color-accent3) !important;
}
.btn-read:hover, .read-more:hover, .btn-search:hover { background: #1ebe57; }
.share-wa { background: #25d366; }
.share-fb { background: #1877f2; }
.share-tw { background: #000; }

/* ============================================================
   RESPONSIVE — group cards
   ============================================================ */
@media (max-width: 768px) {
  .wa-hero h1 { font-size: 1.7rem; }
  .groups-grid { grid-template-columns: 1fr 1fr; }
  .wa-stats-bar { gap: 12px; }
}
@media (max-width: 480px) {
  .groups-grid { grid-template-columns: 1fr; }
  .region-tabs { gap: 6px; }
  .region-tab { padding: 5px 12px; font-size: .78rem; }
}
