/* ═══ WORDPRESS FULL WIDTH OVERRIDE ═══ */
html, body, #page, #content, #primary, #secondary,
.site, .site-content, .wp-site-blocks, 
.entry-content, .post-content, .page-content,
.hentry, article, .wp-block-group,
#wpadminbar ~ * { 
  max-width: 100% !important; 
  box-sizing: border-box !important;
}
body { 
  margin: 0 !important; 
  padding: 0 !important; 
  width: 100% !important;
}
/* Remove any WordPress theme compat padding */
.wp-admin-bar-showing { margin-top: 0 !important; }

/*
Theme Name: UVJVS Community Theme
Theme URI: https://uvjvs.com
Author: Udaipur Vishwakarma Jangid Vikas Sansthan
Author URI: https://uvjvs.com
Description: Official community theme for Udaipur Vishwakarma Jangid Vikas Sansthan. Includes member directory, matrimony, events, jobs, donations and admin panel.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: uvjvs
Tags: community, membership, directory, matrimony
*/

/* ─── CSS VARIABLES ─── */
:root {
  --primary: #1E40AF;
  --primary-h: #1e3a8a;
  --primary-light: #DBEAFE;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --success: #10b981;
  --success-light: #D1FAE5;
  --danger: #ef4444;
  --danger-light: #FEE2E2;
  --purple: #8B5CF6;
  --purple-light: #F5F3FF;
  --muted: #6B7280;
  --muted-bg: #F9FAFB;
  --border: #E5E7EB;
  --card: #FFFFFF;
  --bg: #F3F4F6;
  --text: #111827;
  --text-2: #374151;
  --sidebar-dark: #1e3a8a;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.10);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html {
  width: 100%;
  overflow-x: hidden;
}
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
}
/* Override WordPress default content width boxing */
.site, #page, #content, .site-content, #primary, .content-area, 
.wp-site-blocks, .entry-content, .post-content {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}
a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-h); }
img { max-width: 100%; height: auto; display: block; }
input, select, textarea, button { font-family: inherit; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--primary-h);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; color: var(--text-2); }

/* ─── LAYOUT ─── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }
.container-sm { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }
.section { padding: 56px 0; }
.section-sm { padding: 6px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }

/* ─── HEADER ─── */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  width: 100% !important;
  left: 0;
  right: 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 0 16px;
  max-width: 100%;
  margin: 0 auto;
  gap: 12px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.logo-text .org-name {
  font-family: 'DM Serif Display', serif;
  font-size: 15px;
  color: var(--primary-h);
  line-height: 1.2;
  display: block;
}
.logo-text .org-sub {
  font-size: 10px;
  color: var(--muted);
  display: block;
}
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding: 4px 9px;
  border-radius: 6px;
  transition: all 0.15s;
  text-decoration: none;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-login {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-2);
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-login:hover { border-color: var(--primary); color: var(--primary); }
.btn-join {
  background: var(--primary);
  color: #fff !important;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  box-shadow: 0 2px 8px rgba(30,64,175,0.25);
  white-space: nowrap;
}
.btn-join:hover { background: var(--primary-h); transform: translateY(-1px); }

/* ─── DUAL TICKER ─── */
.ticker-dual {
  background: var(--primary);
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ticker-row {
  display: flex;
  align-items: center;
  padding: 3px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ticker-row:last-child { border-bottom: none; }
.ticker-row-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 3px 12px;
  margin-right: 10px;
  border-radius: 0 4px 4px 0;
  color: #fff;
}
.ticker-label-ann { background: rgba(0,0,0,.25); }
.ticker-label-evt { background: rgba(249,115,22,.5); }
.ticker-row-wrap {
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}
.ticker-track-evt { animation-duration: 32s; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  color: rgba(255,255,255,.85);
  font-size: 11px;
  flex-shrink: 0;
}
.ticker-no-events {
  color: rgba(255,255,255,.5);
  font-size: 12px;
  font-style: italic;
  padding-left: 8px;
}
@media(max-width:600px) {
  .ticker-row-label { font-size: 9px; padding: 2px 8px; }
  .ticker-item { font-size: 11px; }
}

/* ─── HERO ─── */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-h) 100%);
  padding: 72px 24px 64px;
  text-align: center;
  position: relative;
  overflow: visible;
}
.hero-section::before,
.hero-section::after {
  display: none !important;
  content: none !important;
  background: none !important;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.hero-hindi {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
}
.hero-stats {
  display: inline-flex;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 36px;
  backdrop-filter: blur(10px);
}
.hero-stat {
  padding: 16px 28px;
  border-right: 1px solid rgba(255,255,255,0.15);
  text-align: center;
}
.hero-stat:last-child { border-right: none; }
.hero-stat-n {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  color: #fff;
  line-height: 1;
  margin-bottom: 3px;
}
.hero-stat-l {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-hero-p {
  background: #fff;
  color: var(--primary) !important;
  padding: 12px 28px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.btn-hero-p:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.btn-hero-o {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.5);
  padding: 12px 28px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.btn-hero-o:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ─── CARDS ─── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 22px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: var(--shadow-hover); }
.card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  color: var(--primary-h);
  margin-bottom: 14px;
}

/* ─── MEMBER CARD ─── */
.member-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}
.member-card:hover { box-shadow: var(--shadow-hover); border-color: var(--primary); transform: translateY(-2px); }
.member-card-top { height: 56px; background: var(--muted-bg); position: relative; border-bottom: 1px solid var(--border); }
.member-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  position: absolute;
  bottom: -29px;
  left: 50%;
  transform: translateX(-50%);
  border: 2.5px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.member-card-body { padding: 38px 16px 16px; text-align: center; }
.member-name { font-size: 14px; font-weight: 700; color: var(--primary-h); margin-bottom: 3px; }
.member-role { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.member-tags { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.member-tag {
  background: var(--muted-bg);
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
}
.member-connect {
  width: 100%;
  background: var(--muted-bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}
.member-connect:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ─── BIODATA CARD ─── */
.biodata-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
  position: relative;
}
.biodata-card:hover { box-shadow: var(--shadow-hover); border-color: var(--primary); }
.biodata-head {
  background: var(--muted-bg);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.biodata-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.biodata-info { flex: 1; }
.biodata-name { font-size: 14px; font-weight: 700; color: var(--primary-h); margin-bottom: 2px; }
.biodata-id { font-size: 11px; color: var(--muted); }
.match-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.biodata-body { padding: 14px 16px; }
.bio-field-row { display: grid; gap: 10px; margin-bottom: 10px; }
.bio-field-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.bio-field-row-2 { grid-template-columns: 1fr 1fr; }
.bio-field-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 2px; }
.bio-field-value { font-size: 13px; font-weight: 500; color: var(--text); }
.bio-divider { height: 1px; background: var(--border); margin: 10px 0; }
.biodata-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 7px;
}
.biodata-footer button { flex: 1; }

/* ─── EVENT CARD ─── */
.event-card {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  transition: all 0.18s;
}
.event-card:hover { box-shadow: var(--shadow-hover); border-color: var(--primary); transform: translateY(-2px); }
.event-date-box {
  width: 60px;
  flex-shrink: 0;
  background: var(--primary-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 4px;
}
.event-day { font-family: 'DM Serif Display', serif; font-size: 1.7rem; color: var(--primary); line-height: 1; }
.event-month { font-size: 10px; color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.event-info { padding: 12px 16px; flex: 1; }
.event-type { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent); margin-bottom: 3px; }
.event-name { font-size: 14px; font-weight: 700; color: var(--primary-h); margin-bottom: 4px; }
.event-details { font-size: 12px; color: var(--muted); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 7px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(30,64,175,0.2); }
.btn-primary:hover { background: var(--primary-h); transform: translateY(-1px); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost { background: transparent; color: var(--muted); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { opacity: 0.9; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.9; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { opacity: 0.9; }
.btn-full { width: 100%; justify-content: center; }

/* ─── BADGE ─── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--accent-light); color: var(--accent); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-purple { background: var(--purple-light); color: var(--purple); }

/* ─── FORMS ─── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 6px;
}
.form-label .req { color: var(--danger); }
.form-input {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  font-family: inherit;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,64,175,0.08);
}
.form-input::placeholder { color: #9CA3AF; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ─── TOGGLE ─── */
.toggle-wrap {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle-wrap.on { background: var(--success); }
.toggle-wrap.off { background: #D1D5DB; }
.toggle-knob {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-wrap.on .toggle-knob { transform: translateX(16px); }

/* ─── SECTION HEADERS ─── */
.section-header { margin-bottom: 32px; }
.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 6px;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.section-desc { font-size: 14px; color: var(--muted); }

/* ─── QUICK LINKS ─── */
.quick-link-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 4px 5px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}
.quick-link-card:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30,64,175,0.2);
}
.quick-link-card:hover .ql-icon,
.quick-link-card:hover .ql-title,
.quick-link-card:hover .ql-desc { color: #fff; }
.ql-icon { font-size: 16px; margin-bottom: 2px; line-height: 1; }
.ql-title { font-size: 10px; font-weight: 700; color: var(--text); margin-bottom: 0; line-height: 1.2; }
.ql-desc { display: none; }

/* ─── POSTS LIST ─── */
.posts-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.post-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  transition: background 0.12s;
  cursor: pointer;
}
.post-row:last-child { border-bottom: none; }
.post-row:hover { background: var(--muted-bg); }
.post-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.post-title { font-size: 13px; color: var(--text-2); margin-bottom: 4px; line-height: 1.4; }
.post-meta { display: flex; align-items: center; gap: 8px; }
.post-time { font-size: 11px; color: var(--muted); }

/* ─── PROGRESS BAR ─── */
.progress-track { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease; }

/* ─── ANNOUNCEMENT CARD ─── */
.ann-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}
.ann-card:hover { box-shadow: var(--shadow-hover); border-color: var(--primary); }
.ann-img {
  background: linear-gradient(135deg, var(--primary-light), #c7d7f4);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  border-bottom: 1px solid var(--border);
}
.ann-body { padding: 16px; }
.ann-title { font-size: 14px; font-weight: 700; color: var(--primary-h); margin: 8px 0 6px; }
.ann-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }
.ann-meta { font-size: 11px; color: var(--muted); margin-top: 10px; }

/* ─── TABLES ─── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: #fff; }
thead tr { background: var(--primary-light); }
th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary);
  white-space: nowrap;
}
td {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--muted-bg); }

/* ─── PAGE HEADER ─── */
.page-hero {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 32px 0 24px;
}
.page-hero h1 { font-size: 1.9rem; margin-bottom: 4px; }
.page-hero p { font-size: 14px; color: var(--muted); margin: 0; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--primary-h);
  color: rgba(255,255,255,0.75);
  padding: 10px 0 6px;
  margin-top: 24px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-brand { font-family: 'DM Serif Display', serif; font-size: 18px; color: #fff; margin-bottom: 10px; }
.footer-desc { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-col-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.9); margin-bottom: 12px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 7px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 8px;
}

/* ─── ALERTS / MESSAGES ─── */
.alert {
  padding: 12px 16px;
  border-radius: 9px;
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-info { background: var(--primary-light); color: var(--primary); border: 1px solid rgba(30,64,175,0.2); }
.alert-success { background: var(--success-light); color: var(--success); border: 1px solid rgba(16,185,129,0.2); }
.alert-warning { background: var(--accent-light); color: #92400e; border: 1px solid rgba(245,158,11,0.2); }
.alert-danger { background: var(--danger-light); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }

/* ─── LOGIN / REGISTER PAGE ─── */
.auth-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  padding: 36px;
  width: 100%;
  max-width: 460px;
}
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo .logo-icon-big {
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 12px;
}
.auth-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--primary-h);
  text-align: center;
  margin-bottom: 4px;
}
.auth-subtitle { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 24px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-footer-text { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ─── DASHBOARD (MEMBER) ─── */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 28px 0; }
.dash-sidebar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 0;
  height: fit-content;
  position: sticky;
  top: 80px;
}
.dash-user-info { padding: 14px 18px 16px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.dash-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 9px;
  border: 2px solid var(--border);
}
.dash-name { font-size: 14px; font-weight: 700; color: var(--primary-h); }
.dash-role { font-size: 11px; color: var(--muted); }
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.dash-nav-item:hover { background: var(--muted-bg); color: var(--text); }
.dash-nav-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; border-left-color: var(--primary); }
.dash-nav-icon { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }

/* ─── ADMIN PANEL ─── */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 230px;
  background: var(--sidebar-dark);
  flex-shrink: 0;
  position: fixed;
  top: 64px;
  left: 0;
  height: calc(100vh - 64px);
  overflow-y: auto;
  z-index: 50;
}
.admin-main { margin-left: 230px; flex: 1; padding: 24px; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all 0.15s;
  border-left: 3px solid transparent;
  border: none;
  background: transparent;
  width: 100%;
  cursor: pointer;
  text-align: left;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-nav-item.active { background: rgba(255,255,255,0.1); color: #fff; font-weight: 600; border-left: 3px solid var(--accent); }
.admin-section-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.25);
  padding: 10px 20px 4px;
}
.admin-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}
.admin-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.admin-stat-val { font-size: 1.8rem; font-weight: 800; color: var(--primary-h); line-height: 1; margin-bottom: 4px; }
.admin-stat-lbl { font-size: 12px; color: var(--muted); }
.admin-stat-sub { font-size: 11px; color: var(--success); font-weight: 600; margin-top: 2px; }

/* ─── PAGINATION ─── */
.pagination { display: flex; gap: 5px; align-items: center; }
.page-btn {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-family: inherit;
}
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

/* ─── RESPONSIVE ─── */
/* ── HOME PAGE RESPONSIVE GRIDS ── */
.home-main-grid  { display:grid; grid-template-columns:1.5fr 1fr; gap:28px; align-items:stretch; }
.stats-bar-grid  { display:grid; grid-template-columns:repeat(8,1fr); gap:10px; }

@media (max-width: 900px) {
  .home-main-grid { grid-template-columns:1fr; }
}
@media (max-width: 768px) {
  .stats-bar-grid { grid-template-columns:repeat(4,1fr); }
}
@media (max-width: 480px) {
  .stats-bar-grid { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .admin-sidebar { width: 200px; }
  .admin-main { margin-left: 200px; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; border: none; gap: 0; }
  .hero-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .main-nav { display: none; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .form-grid-2 { grid-template-columns: 1fr; }
}

/* ─── LOGO IMAGE ─── */
.site-logo { display:flex; align-items:center; gap:10px; text-decoration:none; }
.site-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
  border: 2px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.site-logo:hover .site-logo-img { transform: rotate(12deg) scale(1.08); }
.logo-text { flex-shrink: 0; }
.logo-text .org-name {
  font-family: 'DM Serif Display', serif;
  font-size: 16px;
  color: var(--primary-h);
  line-height: 1.2;
  display: block;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo-text .org-sub {
  font-size: 10px;
  color: var(--muted);
  display: block;
  line-height: 1.4;
  white-space: nowrap;
}

/* ─── DONATE PAGE ─── */
.donate-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .donate-grid {
    grid-template-columns: 1fr;
  }
  .donate-grid > div:last-child {
    position: static !important;
  }
}

/* ─── MAIN CONTENT FULL WIDTH ─── */
#main-content {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}
/* Fix WordPress adding unexpected padding/margin to body */
body.wp-admin-bar #main-content {
  padding-top: 0;
}


/* ══════════════════════════════════════════════
   COMPREHENSIVE MOBILE RESPONSIVE FIXES
   ══════════════════════════════════════════════ */

/* Donate page grid */
.donate-grid { display:grid; grid-template-columns:1fr 380px; gap:24px; align-items:start; }

/* Jobs page grid */
.jobs-grid { display:grid; grid-template-columns:1fr 280px; gap:20px; }

@media (max-width: 900px) {
  /* All inline grids collapse to single column */
  .donate-grid,
  .jobs-grid { grid-template-columns:1fr !important; }

  /* Directory filters */
  div[style*="repeat(4,1fr)"] { grid-template-columns:repeat(2,1fr) !important; }

  /* Gallery */
  div[style*="repeat(4,1fr)"] { grid-template-columns:repeat(2,1fr) !important; }

  /* Admin dashboard stats */
  div[style*="repeat(4,1fr)"][style*="max-width:900px"] { grid-template-columns:repeat(2,1fr) !important; }

  /* Any 2-col inline grid */
  div[style*="1fr 1fr"] { grid-template-columns:1fr !important; }
  div[style*="1.5fr 1fr"] { grid-template-columns:1fr !important; }
  div[style*="1fr 380px"] { grid-template-columns:1fr !important; }
  div[style*="1fr 280px"] { grid-template-columns:1fr !important; }
  div[style*="240px 1fr"] { grid-template-columns:1fr !important; }

  /* Auth card full width */
  .auth-wrap { padding:12px !important; }
  .auth-card { padding:20px !important; }

  /* Suffix tabs wrap on small screens */
  .suffix-tabs { flex-wrap:wrap; }

  /* Form prefix display */
  .prefix-display { font-size:11px !important; padding:0 6px !important; }
}

@media (max-width: 600px) {
  /* Stats bar 2 columns on small phones */
  .stats-bar-grid { grid-template-columns:repeat(2,1fr) !important; }

  /* Gallery 2 columns */
  div[style*="repeat(4,1fr)"] { grid-template-columns:repeat(2,1fr) !important; }

  /* Hero section */
  .hero { padding:40px 16px !important; }
  .hero h1 { font-size:22px !important; }
  .hero h2 { font-size:16px !important; }

  /* Nav logo text */
  .logo-text { display:none; }

  /* Tables scroll horizontally */
  .widefat { display:block; overflow-x:auto; white-space:nowrap; }

  /* Buttons full width on mobile */
  .btn-full { width:100% !important; }

  /* Step indicator text smaller */
  .reg-step { font-size:10px !important; padding:3px 6px !important; }

  /* Form grid always 1 col on phones */
  .form-grid-2 { grid-template-columns:1fr !important; }
  .form-grid-2 .form-group[style*="span 2"] { grid-column:span 1 !important; }
}

/* Hero logo responsive */
.hero-logo {
  width:192px; height:192px;
  display:block; margin:0 auto;
  background:#ffffff;
  border-radius:50%;
  padding:12px;
  box-shadow:0 8px 32px rgba(0,0,0,0.3);
  transition:transform 0.4s cubic-bezier(.34,1.56,.64,1);
}
@media (max-width:600px) {
  .hero-logo { width:130px !important; height:130px !important; padding:8px !important; }
}
