/*
Theme Name: Midz-30
Theme URI: https://midz-30.co.uk
Author: ds2k Homelab
Author URI: https://ds2k.co.uk
Description: A clean, modern automotive community theme for Midz-30 — featuring car listings, builds showcase, events, forums, and more.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: midz-30
Tags: custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   MIDZ-30 THEME — CSS RESET & VARIABLES
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
  --white:      #FFFFFF;
  --off-white:  #F8F8F6;
  --light:      #F0EFEC;
  --border:     #E2E1DC;
  --mid:        #9A9890;
  --dark-mid:   #4A4845;
  --dark:       #1A1917;
  --black:      #0A0908;
  --red:        #C8102E;
  --red-dark:   #A00D25;
  --red-light:  #FCEEF1;
  --gold:       #B8952A;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  16px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow:     0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.14);

  --container:  1280px;
  --gap:        32px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html { overflow-x: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* =========================================================
   TYPOGRAPHY
========================================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--black);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; color: var(--dark-mid); font-size: 1rem; line-height: 1.75; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--dark); }

/* =========================================================
   UTILITY CLASSES
========================================================= */

.container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gap);
}

.container--narrow { max-width: 820px; margin: 0 auto; padding: 0 var(--gap); }
.container--wide   { max-width: 1440px; margin: 0 auto; padding: 0 var(--gap); }

.section { padding: 80px 0; }
.section--sm { padding: 48px 0; }
.section--lg { padding: 120px 0; }
.section--dark { background: var(--dark); }
.section--light { background: var(--off-white); }

.section-header { margin-bottom: 48px; }
.section-header--center { text-align: center; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--red);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--black);
  line-height: 1.1;
}

.section-title--light { color: var(--white); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  :root { --gap: 20px; }
  .section { padding: 60px 0; }
  .section--lg { padding: 80px 0; }
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}
.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--dark);
  background: var(--dark);
  color: var(--white);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn--outline-light:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}

.btn--sm { padding: 10px 18px; font-size: 0.8rem; }
.btn--lg { padding: 18px 36px; font-size: 1rem; }

/* =========================================================
   BADGE / TAG
========================================================= */

.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}

.badge--red   { background: var(--red); color: var(--white); }
.badge--dark  { background: var(--dark); color: var(--white); }
.badge--light { background: var(--light); color: var(--dark-mid); }
.badge--gold  { background: var(--gold); color: var(--white); }

/* =========================================================
   CARDS
========================================================= */

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--light);
}

.card__image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--light) 0%, var(--border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  font-size: 2rem;
}

.card__body { padding: 24px; }
.card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.card__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--mid);
  font-weight: 500;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--black);
  transition: color 0.15s;
}

.card:hover .card__title { color: var(--red); }

.card__excerpt {
  font-size: 0.9rem;
  color: var(--dark-mid);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* =========================================================
   SITE HEADER
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 48px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg { width: 22px; height: 22px; fill: white; }

.logo-text { display: flex; flex-direction: column; line-height: 1; }

.logo-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
}

.logo-tagline {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
}

/* Primary Nav */
.primary-nav { flex: 1; display: flex; align-items: center; }

.primary-nav ul {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 4px;
}

.primary-nav a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-mid);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.primary-nav a:hover,
.primary-nav .current-menu-item a {
  color: var(--red);
  background: var(--red-light);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-search {
  display: flex;
  align-items: center;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  height: 38px;
  gap: 8px;
  transition: border-color 0.15s;
}

.header-search:focus-within { border-color: var(--red); }

.header-search input {
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--dark);
  width: 160px;
  outline: none;
}

.header-search input::placeholder { color: var(--mid); }

.header-search svg { width: 16px; height: 16px; color: var(--mid); flex-shrink: 0; }

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.2s;
}

@media (max-width: 1024px) {
  .primary-nav { display: none; }
  .header-search { display: none; }
  .mobile-toggle { display: flex; }
  .header-inner { gap: 16px; justify-content: space-between; }
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 20px;
}

.mobile-nav.is-open { display: block; }

.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }

.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.mobile-nav a:hover { background: var(--off-white); color: var(--red); }

/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;
  background: var(--black);
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0A0908 0%, #1A1917 60%, #2A1210 100%);
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: repeating-linear-gradient(
    45deg,
    var(--white) 0,
    var(--white) 1px,
    transparent 0,
    transparent 50%
  );
  background-size: 30px 30px;
}

.hero__accent {
  position: absolute;
  right: -100px;
  top: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,16,46,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 100px 0;
  max-width: 680px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid rgba(200,16,46,0.4);
  border-radius: 3px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 24px;
}

.hero__title span { color: var(--red); }

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 500px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* =========================================================
   FEATURED BUILDS
========================================================= */

.build-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.build-card:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }

.build-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.build-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #E8E8E4 0%, #D0CFCA 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--mid);
}

.build-card__placeholder svg { width: 48px; height: 48px; opacity: 0.4; }
.build-card__placeholder span { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; }

.build-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,9,8,0.9) 0%, rgba(10,9,8,0.2) 50%, transparent 100%);
}

.build-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
}

.build-card__year {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.build-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 8px;
}

.build-card__owner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}

.build-card__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--white);
}

.builds-grid-featured {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.builds-grid-featured .build-card:first-child {
  grid-row: 1 / 3;
  aspect-ratio: auto;
  min-height: 400px;
}

@media (max-width: 900px) {
  .builds-grid-featured { grid-template-columns: 1fr 1fr; }
  .builds-grid-featured .build-card:first-child { grid-row: auto; aspect-ratio: 4/3; min-height: unset; }
}
@media (max-width: 600px) {
  .builds-grid-featured { grid-template-columns: 1fr; }
}

/* =========================================================
   NEWS CARDS
========================================================= */

.news-card {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.news-card:last-child { border-bottom: none; }

.news-card__image {
  width: 100px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
}

.news-card__body { flex: 1; min-width: 0; }

.news-card__category {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.news-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 6px;
  transition: color 0.15s;
}

.news-card:hover .news-card__title { color: var(--red); }

.news-card__meta { font-size: 0.78rem; color: var(--mid); }

/* =========================================================
   EVENTS
========================================================= */

.event-card {
  display: flex;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.event-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.event-card__date {
  background: var(--red);
  color: var(--white);
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  text-align: center;
}

.event-card__day {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.event-card__month {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

.event-card__body { padding: 20px 24px; flex: 1; }

.event-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 8px;
  transition: color 0.15s;
}

.event-card:hover .event-card__title { color: var(--red); }

.event-card__details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.event-card__detail {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--mid);
}

.event-card__detail svg { width: 13px; height: 13px; flex-shrink: 0; }

/* =========================================================
   CAR LISTING CARDS
========================================================= */

.listing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.listing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.listing-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  font-size: 2.5rem;
}

.listing-card__body { padding: 20px; }

.listing-card__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--red);
  margin-bottom: 6px;
}

.listing-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 12px;
  transition: color 0.15s;
}

.listing-card:hover .listing-card__title { color: var(--red); }

.listing-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.listing-card__spec {
  font-size: 0.78rem;
  color: var(--dark-mid);
  background: var(--off-white);
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 500;
}

.listing-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--mid);
}

/* =========================================================
   FORUM PREVIEW
========================================================= */

.forum-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.forum-row:last-child { border-bottom: none; }

.forum-icon {
  width: 40px;
  height: 40px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}

.forum-icon svg { width: 18px; height: 18px; }

.forum-info { flex: 1; min-width: 0; }

.forum-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}

.forum-row:hover .forum-title { color: var(--red); }
.forum-subtitle { font-size: 0.8rem; color: var(--mid); margin-top: 2px; }

.forum-stats {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.forum-stat { text-align: center; }
.forum-stat-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
}
.forum-stat-label { font-size: 0.7rem; color: var(--mid); text-transform: uppercase; letter-spacing: 0.08em; }

/* =========================================================
   MEMBERS STRIP
========================================================= */

.member-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--white);
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.member-avatar:hover { transform: scale(1.1); z-index: 1; }

.avatars-stack {
  display: flex;
}

.avatars-stack .member-avatar { margin-left: -12px; }
.avatars-stack .member-avatar:first-child { margin-left: 0; }

/* =========================================================
   CTA BANNER
========================================================= */

.cta-banner {
  background: var(--red);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: 'MIDZ-30';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 14rem;
  font-weight: 900;
  color: rgba(255,255,255,0.06);
  letter-spacing: -0.05em;
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
}

.cta-banner__text {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-top: 8px;
}

/* =========================================================
   SITE FOOTER
========================================================= */

.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.65);
  padding: 80px 0 0;
}

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

.footer-brand { }

.footer-brand .logo-name { color: var(--white); }
.footer-brand .logo-tagline { color: rgba(255,255,255,0.4); }

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin-top: 20px;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.15s;
}

.footer-social a:hover { background: var(--red); color: var(--white); }

.footer-nav h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }

.footer-nav a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.15s;
}

.footer-nav a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  margin: 0;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   CONTENT PAGES
========================================================= */

.page-header {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
}

.page-header__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--mid);
  margin-bottom: 16px;
}

.page-header__breadcrumb a:hover { color: var(--red); }
.page-header__breadcrumb span { color: var(--border); }

.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--black);
}

.page-header__subtitle {
  color: var(--dark-mid);
  margin-top: 12px;
  font-size: 1rem;
}

/* Content */
.entry-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--dark-mid);
}

.entry-content h2, .entry-content h3, .entry-content h4 { margin: 2rem 0 1rem; }
.entry-content p { margin-bottom: 1.25rem; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.entry-content li { margin-bottom: 0.5rem; list-style: disc; }
.entry-content a { color: var(--red); text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color 0.15s; }
.entry-content a:hover { text-decoration-color: var(--red); }
.entry-content blockquote {
  border-left: 4px solid var(--red);
  padding: 16px 24px;
  background: var(--off-white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--dark);
}

/* Sidebar */
.content-sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

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

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.sidebar-widget__header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--off-white);
}

.sidebar-widget__title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
}

.sidebar-widget__body { padding: 20px; }

/* =========================================================
   WORDPRESS NATIVE ELEMENTS
========================================================= */

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--dark);
  transition: all 0.15s;
}

.pagination a:hover { background: var(--off-white); }
.pagination .current { background: var(--red); color: var(--white); border-color: var(--red); }

/* Forms */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 11px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  appearance: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.1);
}

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

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

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

input[type="submit"] {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 28px;
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

input[type="submit"]:hover { background: var(--red-dark); border-color: var(--red-dark); }

/* Comments */
.comment-list { list-style: none; }

.comment {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.comment-body { flex: 1; }

.comment-author-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--black);
}

.comment-date { font-size: 0.8rem; color: var(--mid); margin-left: 8px; }

.comment-text {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--dark-mid);
  line-height: 1.7;
}

/* Alignment classes */
.alignleft  { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.82rem; color: var(--mid); margin-top: 6px; }

/* Screen reader */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--red);
  color: var(--white);
  padding: 10px 20px;
  z-index: 9999;
  font-weight: 700;
}
.skip-link:focus { top: 0; }

/* =========================================================
   FACEBOOK FEED SECTION
========================================================= */

.fb-feed-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) {
  .fb-feed-layout {
    grid-template-columns: 1fr;
  }
  .fb-feed-embed {
    min-height: 300px;
  }
  .fb-feed-embed .fb-group,
  .fb-feed-embed .fb-group span,
  .fb-feed-embed .fb-group span iframe {
    max-width: 100% !important;
  }
}

.fb-feed-embed {
  min-height: 500px;
}

/* Make the FB embed fill its container */
.fb-feed-embed .fb-group,
.fb-feed-embed .fb-group span,
.fb-feed-embed .fb-group span iframe {
  width: 100% !important;
  min-height: 500px;
}

.fb-feed-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Join CTA card */
.fb-cta-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  word-break: break-word;
}

.fb-cta-card__icon {
  width: 56px;
  height: 56px;
  background: #1877F2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
}

.fb-cta-card__icon svg { width: 28px; height: 28px; }

.fb-cta-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--black);
  margin-bottom: 12px;
}

.fb-cta-card p {
  font-size: 0.9rem;
  color: var(--dark-mid);
  line-height: 1.65;
  margin-bottom: 20px;
}

.fb-cta-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--off-white);
  border-radius: var(--radius);
  margin-bottom: 20px;
  text-align: left;
}

.fb-cta-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark-mid);
}

.fb-cta-stat svg { color: var(--red); flex-shrink: 0; }

/* Why join tips card */
.fb-tips-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.fb-tips-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fb-tips-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fb-tips-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--dark-mid);
  line-height: 1.4;
}

.fb-tips-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

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

/* =========================================================
   COMMUNITY FEATURES CSS
========================================================= */

/* Alerts */
.alert {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  border-left: 4px solid;
}
.alert strong { display: block; margin-bottom: 4px; }
.alert p { margin: 4px 0 0; font-size: 0.9rem; }
.alert--success { background: #D4EDDA; border-color: #28A745; color: #155724; }
.alert--error   { background: #F8D7DA; border-color: #DC3545; color: #721C24; }
.alert--info    { background: #D1ECF1; border-color: #17A2B8; color: #0C5460; }

/* Form grid */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* Form sections */
.form-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}
.form-section__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* File upload area */
.file-upload-area {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.file-upload-area:hover { border-color: var(--red); background: var(--red-light); }
.file-upload-area p { color: var(--mid); font-size: 0.9rem; margin: 0; }

/* Checkbox / radio labels */
.checkbox-label, .radio-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--dark-mid);
  cursor: pointer;
  line-height: 1.5;
}

/* Submit agreement */
.submit-agreement {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

/* Storage widget */
.storage-widget { font-size: 0.88rem; }
.storage-widget__label { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--dark-mid); }
.storage-bar { height: 8px; background: var(--light); border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
.storage-bar__fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; }
.storage-widget__percent { font-weight: 600; font-size: 0.82rem; }
.storage-warning { color: var(--red); font-size: 0.82rem; margin-top: 6px; }

/* Build of the Month */
.botm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .botm-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .botm-grid { grid-template-columns: 1fr; } }

.botm-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.botm-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.botm-card--voted { border-color: var(--red); }

.botm-card__voted-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  z-index: 2;
}

.botm-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.botm-card__img { width: 100%; height: 100%; object-fit: cover; }

.botm-card__car-tag {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,9,8,0.85), transparent);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 14px 10px;
}

.botm-card__body { padding: 20px; }
.botm-card__owner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--dark-mid);
}
.botm-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 16px;
}
.botm-card__title a { color: var(--black); transition: color 0.15s; }
.botm-card__title a:hover { color: var(--red); }

.botm-vote-bar {
  height: 6px;
  background: var(--light);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}
.botm-vote-bar__fill {
  height: 100%;
  background: var(--red);
  border-radius: 3px;
  transition: width 0.6s ease;
}
.botm-vote-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--mid);
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2,1fr); } }

.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; }
.gallery-item__link { display: block; width: 100%; height: 100%; }
.gallery-item__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover .gallery-item__img { transform: scale(1.05); }

.gallery-item__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,9,8,0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: flex-end;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }

.gallery-item__info { padding: 12px; }
.gallery-item__caption { font-family: var(--font-display); font-size: 0.85rem; font-weight: 800; color: var(--white); line-height: 1.2; }
.gallery-item__location, .gallery-item__author { font-size: 0.72rem; color: rgba(255,255,255,0.7); margin-top: 3px; }

/* YouTube channel grid */
.yt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 700px) { .yt-grid { grid-template-columns: 1fr; } }

.yt-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.yt-card:hover { box-shadow: var(--shadow); border-color: #FF0000; transform: translateY(-2px); }

.yt-card__icon { font-size: 2rem; flex-shrink: 0; width: 48px; text-align: center; }
.yt-card__body { flex: 1; min-width: 0; }
.yt-card__name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 900; color: var(--black); margin-bottom: 2px; }
.yt-card__handle { font-size: 0.78rem; color: #FF0000; font-weight: 600; margin-bottom: 8px; }
.yt-card__desc { font-size: 0.85rem; color: var(--dark-mid); line-height: 1.55; margin-bottom: 10px; }
.yt-card__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.yt-card__arrow { color: var(--mid); flex-shrink: 0; margin-top: 4px; transition: color 0.15s; }
.yt-card:hover .yt-card__arrow { color: var(--red); }

/* ---- Primary Nav Sub-menus ---- */
.primary-nav ul ul,
.primary-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    border: 1px solid var(--border, #e5e5e5);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    z-index: 999;
    padding: 6px 0;
}

.primary-nav ul li {
    position: relative;
}

.primary-nav ul li:hover > .sub-menu,
.primary-nav ul li:hover > ul {
    display: block;
}

.primary-nav .sub-menu li a {
    display: block;
    padding: 8px 16px;
    white-space: nowrap;
    font-size: 0.875rem;
}

.primary-nav .sub-menu li a:hover {
    background: var(--off-white, #f5f5f5);
    color: var(--blue, #1565C0);
}

/* ---- Fix Club Attending filter button ---- */
.midz30-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ---- Full width single post layout ---- */
.content-full-layout {
    max-width: 860px;
    margin: 0 auto;
}

/* ---- Sidebar search widget ---- */
.widget_search .search-form {
    display: flex;
    gap: 0;
}
.widget_search label {
    display: none;
}
.widget_search .search-field {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border, #e5e5e5);
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color .2s;
}
.widget_search .search-field:focus {
    border-color: var(--blue, #1565C0);
}
.widget_search .search-field::placeholder {
    color: var(--mid, #999);
}
.widget_search .search-submit {
    padding: 10px 18px;
    background: var(--blue, #1565C0);
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: .05em;
    cursor: pointer;
    transition: background .2s;
}
.widget_search .search-submit:hover {
    background: var(--black, #0a0908);
}

/* ---- Homepage Club Events ---- */
.homepage-event-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border, #e5e5e5);
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}
.homepage-event-card:last-child { border-bottom: none; }
.homepage-event-card:hover { opacity: 0.85; }

.homepage-event-card__date {
    flex-shrink: 0;
    width: 56px;
    text-align: center;
    background: var(--blue, #1565C0);
    color: #fff;
    border-radius: 8px;
    padding: 8px 0;
}
.homepage-event-card__day {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
}
.homepage-event-card__month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: 0.85;
}
.homepage-event-card__body { flex: 1; }
.homepage-event-card__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--black, #0a0908);
    margin-bottom: 4px;
    line-height: 1.3;
}
.homepage-event-card__location,
.homepage-event-card__time {
    font-size: 0.8rem;
    color: var(--dark-mid, #555);
    margin-top: 2px;
}

/* ---- Dark page header banner ---- */
.page-header--dark {
    background: var(--black, #0A0908);
    color: #fff;
    padding: 64px 0 48px;
}
.page-header--dark .page-header__title,
.page-header--dark h1 {
    color: #fff;
}
.page-header--dark .section-label {
    color: rgba(255,255,255,0.6);
}
.page-header--dark .page-header__subtitle {
    color: rgba(255,255,255,0.75);
}

/* ---- bbPress Forum Styling ---- */
#bbpress-forums {
    font-family: var(--font-body, sans-serif);
    font-size: 0.95rem;
}
#bbpress-forums .bbp-forum-title,
#bbpress-forums .bbp-topic-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--black, #0A0908);
}
#bbpress-forums .bbp-forum-title a,
#bbpress-forums .bbp-topic-title a {
    color: var(--black, #0A0908);
    text-decoration: none;
}
#bbpress-forums .bbp-forum-title a:hover,
#bbpress-forums .bbp-topic-title a:hover {
    color: var(--blue, #1565C0);
}
#bbpress-forums li.bbp-header,
#bbpress-forums li.bbp-footer {
    background: var(--off-white, #f5f5f5);
    border-radius: 6px;
}
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics {
    border: 1px solid var(--border, #e5e5e5);
    border-radius: 8px;
    overflow: hidden;
}
#bbpress-forums li.bbp-forum,
#bbpress-forums li.bbp-topic {
    border-bottom: 1px solid var(--border, #e5e5e5);
    padding: 16px;
}
#bbpress-forums li.bbp-forum:last-child,
#bbpress-forums li.bbp-topic:last-child {
    border-bottom: none;
}
#bbpress-forums .bbp-forum-freshness a,
#bbpress-forums .bbp-topic-freshness a {
    color: var(--blue, #1565C0);
    font-size: 0.82rem;
}
#bbpress-forums .bbp-forum-content {
    color: var(--dark-mid, #555);
    font-size: 0.85rem;
    margin-top: 4px;
}
/* New topic button */
#new-post,
#bbpress-forums #new-post {
    background: var(--blue, #1565C0);
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: .05em;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background .2s;
}
#new-post:hover { background: var(--black, #0A0908); }
/* Reply/post form */
#bbpress-forums #bbp-your-profile fieldset,
#bbpress-forums .bbp-form fieldset {
    border: 1px solid var(--border, #e5e5e5);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}
#bbpress-forums .bbp-form input[type="text"],
#bbpress-forums .bbp-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border, #e5e5e5);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.9rem;
}
#bbpress-forums .bbp-form input[type="text"]:focus,
#bbpress-forums .bbp-form textarea:focus {
    border-color: var(--blue, #1565C0);
    outline: none;
}
#bbpress-forums .bbp-submit-wrapper button,
#bbpress-forums input[type="submit"] {
    background: var(--blue, #1565C0);
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: .05em;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background .2s;
}
#bbpress-forums input[type="submit"]:hover { background: var(--black, #0A0908); }
/* Forum search button */
#bbp-search-form input[type="submit"] {
    background: var(--blue, #1565C0);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
}
#bbp-search-form input[type="text"] {
    padding: 8px 14px;
    border: 1px solid var(--border, #e5e5e5);
    border-right: none;
    border-radius: 6px 0 0 6px;
}
/* Breadcrumbs */
#bbpress-forums .bbp-breadcrumb {
    font-size: 0.82rem;
    color: var(--dark-mid, #555);
    margin-bottom: 16px;
}
#bbpress-forums .bbp-breadcrumb a {
    color: var(--blue, #1565C0);
    text-decoration: none;
}
/* Forum stats badges */
#bbpress-forums .bbp-forum-topic-count,
#bbpress-forums .bbp-forum-reply-count,
#bbpress-forums .bbp-topic-reply-count,
#bbpress-forums .bbp-topic-voice-count {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    color: var(--blue, #1565C0);
}

/* ---- Hide BuddyPress homepage CTA (replaced by theme footer CTA) ---- */
#buddypress .bp-feedback,
.bp-registration-disabled,
#buddypress div.bp-cta,
.buddypress-wrap .bp-cta,
#buddypress .register-section,
.bp-register-button-wrap,
#bp-register-button { 
    display: none !important; 
}
/* ============================================================
   Midz-30 Build System CSS
   ============================================================ */

/* ── Build Form ─────────────────────────────────────────── */
.build-form { max-width: 780px; }

.build-form__section {
    background: #fff;
    border: 1px solid var(--border, #e5e5e5);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
}
.build-form__section--consent {
    background: var(--off-white, #f9f9f9);
}
.build-form__section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border, #e5e5e5);
    color: var(--black, #0a0908);
}
.build-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.build-form__field { display: flex; flex-direction: column; gap: 5px; }
.build-form__field label {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--dark-mid, #555);
}
.build-form__field input[type="text"],
.build-form__field input[type="number"],
.build-form__field select,
.build-form__field textarea {
    padding: 10px 12px;
    border: 1.5px solid var(--border, #e5e5e5);
    border-radius: 6px;
    font-family: var(--font-body, sans-serif);
    font-size: 0.9rem;
    transition: border-color .2s;
    background: #fff;
}
.build-form__field input:focus,
.build-form__field select:focus,
.build-form__field textarea:focus {
    border-color: var(--blue, #1565C0);
    outline: none;
}
.build-form__field .req { color: var(--red, #E53935); }
.build-form__hint {
    font-size: 0.82rem;
    color: var(--dark-mid, #666);
    margin: 0 0 14px;
}
.build-form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    line-height: 1.5;
}
.build-form__checkbox input { margin-top: 3px; flex-shrink: 0; }

/* ── Parts Builder ──────────────────────────────────────── */
.part-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px;
    background: var(--off-white, #f9f9f9);
    border: 1px solid var(--border, #e5e5e5);
    border-radius: 8px;
    margin-bottom: 10px;
}
.part-row__fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 10px;
    flex: 1;
}
.part-row__field { display: flex; flex-direction: column; gap: 4px; }
.part-row__field label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--dark-mid, #555);
}
.part-row__field select,
.part-row__field input[type="text"] {
    padding: 8px 10px;
    border: 1.5px solid var(--border, #e5e5e5);
    border-radius: 5px;
    font-size: 0.85rem;
    font-family: var(--font-body, sans-serif);
    background: #fff;
}
.part-row__field--wide { grid-column: span 1; }
.part-row__remove {
    background: none;
    border: 1.5px solid var(--border, #e5e5e5);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 1rem;
    cursor: pointer;
    color: var(--dark-mid, #666);
    flex-shrink: 0;
    transition: all .15s;
    line-height: 1;
}
.part-row__remove:hover { background: var(--red, #E53935); color: #fff; border-color: var(--red, #E53935); }

/* ── Photo Upload ───────────────────────────────────────── */
#photo-upload-area {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 10px;
}
.photo-slot {
    position: relative;
    border: 2px dashed var(--border, #e5e5e5);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .2s;
    aspect-ratio: 4/3;
    background: var(--off-white, #f9f9f9);
}
.photo-slot--main { grid-row: span 1; }
.photo-slot--drag { border-color: var(--blue, #1565C0); background: rgba(21,101,192,.05); }
.photo-slot:hover { border-color: var(--blue, #1565C0); }
.photo-slot .photo-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.photo-slot__preview {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    text-align: center;
    pointer-events: none;
}
.photo-slot__icon { font-size: 1.5rem; }
.photo-slot__label { font-size: 0.75rem; font-weight: 700; color: var(--dark-mid, #555); }
.photo-slot__hint { font-size: 0.68rem; color: var(--mid, #999); }
.photo-slot__remove {
    position: absolute;
    top: 4px; right: 4px;
    background: rgba(0,0,0,.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px; height: 22px;
    font-size: 0.85rem;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

/* ── Build Gallery (single page) ────────────────────────── */
.build-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin-bottom: 32px;
}
.build-gallery__item { border-radius: 8px; overflow: hidden; display: block; }
.build-gallery__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .3s; }
.build-gallery__item:hover .build-gallery__img { transform: scale(1.03); }

/* ── Parts List (single page) ───────────────────────────── */
.build-parts { margin-top: 32px; }
.build-parts__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 1.3rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border, #e5e5e5);
}
.build-parts__list { list-style: none; margin: 0; padding: 0; }
.build-parts__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border, #e5e5e5);
    font-size: 0.9rem;
    flex-wrap: wrap;
}
.build-parts__item:last-child { border-bottom: none; }
.build-parts__type {
    font-weight: 800;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.95rem;
    color: var(--black, #0a0908);
    min-width: 120px;
}
.build-parts__mfr {
    background: var(--blue, #1565C0);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
}
.build-parts__desc { color: var(--dark-mid, #555); flex: 1; }

/* ── Daily Badge overlay on build cards ─────────────────── */
.build-card { position: relative; }
.daily-badge-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 100px;
    height: auto;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    pointer-events: none;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .build-form__grid { grid-template-columns: 1fr; }
    .part-row__fields { grid-template-columns: 1fr; }
    #photo-upload-area { grid-template-columns: 1fr 1fr; }
}

/* ---- YouTube channel real avatars ---- */
.yt-card__avatar { flex-shrink:0; width:64px; height:64px; }
.yt-card__avatar img { width:64px; height:64px; border-radius:50%; object-fit:cover; border:2px solid var(--border); }
.yt-card__avatar-fallback { width:64px; height:64px; border-radius:50%; background:var(--blue); color:#fff; display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-size:1.5rem; font-weight:900; }
.yt-card { display:flex; gap:16px; align-items:flex-start; }


/* ==========================================================
   SHOP — Midz-30 WooCommerce Styles
   ========================================================== */

/* Coming Soon Banner */
.shop-coming-soon-banner{background:linear-gradient(135deg,var(--dark) 0%,#0a2a5e 100%);border-bottom:3px solid var(--blue);padding:28px 0;text-align:center;color:#fff}
.shop-coming-soon-banner__inner{max-width:600px;margin:0 auto;padding:0 20px}
.shop-coming-soon-banner__badge{display:inline-block;background:var(--blue);color:#fff;font-family:var(--font-display);font-size:.75rem;font-weight:700;letter-spacing:2px;text-transform:uppercase;padding:4px 14px;border-radius:20px;margin-bottom:12px}
.shop-coming-soon-banner p{color:rgba(255,255,255,.85);margin:0 0 16px}
.shop-notify-form{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.shop-notify-input{padding:10px 16px;border-radius:var(--radius);border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.1);color:#fff;font-size:.95rem;min-width:260px}
.shop-notify-input::placeholder{color:rgba(255,255,255,.5)}
.shop-notify-input:focus{outline:none;border-color:var(--blue)}
.shop-notify-form .btn--blue{background:var(--blue);color:#fff!important;border:none;padding:10px 24px;border-radius:var(--radius);font-family:var(--font-display);font-weight:700;font-size:.9rem;letter-spacing:1px;text-transform:uppercase;cursor:pointer}
.shop-notify-form .btn--blue:hover{background:#0d47a1}

/* Shop Wrap */
.shop-wrap{padding:40px 0 64px;background:var(--off-white);min-height:60vh}

/* View toggle bar */
.shop-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px;flex-wrap:wrap;gap:12px}
.shop-view-toggle{display:flex;gap:6px}
.shop-view-btn{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:7px 10px;cursor:pointer;color:var(--dark-mid);transition:all .2s}
.shop-view-btn:hover,.shop-view-btn.active{background:var(--blue);color:#fff;border-color:var(--blue)}
.shop-view-btn svg{display:block}

/* WooCommerce reset */
.woocommerce ul.products{list-style:none!important;margin:0!important;padding:0!important}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important}

/* GRID VIEW (default) */
.woocommerce ul.products.view-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px}
.view-grid .midz-product-card__link{flex-direction:column}
.view-grid .midz-product-card__img-wrap{aspect-ratio:1/1;width:100%}

/* LIST VIEW */
.woocommerce ul.products.view-list{display:flex!important;flex-direction:column;gap:16px}
.view-list .midz-product-card{width:100%}
.view-list .midz-product-card__link{flex-direction:row;align-items:stretch}
.view-list .midz-product-card__img-wrap{width:180px;min-width:180px;aspect-ratio:1/1;flex-shrink:0}
.view-list .midz-product-card__body{padding:24px;justify-content:center}
.view-list .midz-product-card__name{font-size:1.4rem}

/* GALLERY VIEW */
.woocommerce ul.products.view-gallery{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}
.view-gallery .midz-product-card__link{flex-direction:column}
.view-gallery .midz-product-card__img-wrap{aspect-ratio:1/1}
.view-gallery .midz-product-card__body{padding:12px}
.view-gallery .midz-product-card__name{font-size:1rem}
.view-gallery .midz-product-card__cta{display:none}

/* Product Card base */
.midz-product-card{background:#fff;border-radius:var(--radius-lg);overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.07);transition:transform .2s,box-shadow .2s;list-style:none!important}
.midz-product-card:hover{transform:translateY(-3px);box-shadow:0 8px 28px rgba(21,101,192,.15)}
.midz-product-card__link{display:flex;text-decoration:none;color:inherit;height:100%}
.midz-product-card__img-wrap{position:relative;background:var(--off-white);overflow:hidden;flex-shrink:0}
.midz-product-card__img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.midz-product-card:hover .midz-product-card__img{transform:scale(1.04)}
.midz-product-card__placeholder{width:100%;height:100%;min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:linear-gradient(135deg,#f0f4ff,#e8eef8)}
.midz-product-card__placeholder-label{font-family:var(--font-display);font-size:.75rem;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:var(--blue);opacity:.7}
.midz-product-card__badge{position:absolute;top:10px;left:10px;background:var(--dark);color:#fff;font-family:var(--font-display);font-size:.65rem;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;padding:3px 10px;border-radius:20px}
.midz-product-card__body{padding:20px;display:flex;flex-direction:column;gap:6px;flex:1}
.midz-product-card__cat{font-family:var(--font-display);font-size:.7rem;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:var(--blue)}
.midz-product-card__name{font-family:var(--font-display);font-size:1.2rem;font-weight:700;color:var(--dark);margin:0;line-height:1.2}
.midz-product-card__price{font-weight:600;color:var(--dark-mid);font-size:.95rem}
.midz-product-card__price .woocommerce-Price-amount{color:var(--blue)}
.midz-product-card__cta{margin-top:auto;padding-top:10px;font-family:var(--font-display);font-size:.8rem;font-weight:700;letter-spacing:.5px;color:var(--blue);text-transform:uppercase}

/* WooCommerce UI overrides */
.woocommerce .woocommerce-ordering select{font-family:var(--font-display);border-radius:var(--radius);border:1px solid var(--border);padding:8px 12px}
.woocommerce div.product .product_title{font-family:var(--font-display);color:var(--dark)}
.woocommerce div.product p.price{color:var(--blue);font-size:1.4rem;font-weight:700}
.woocommerce #respond input#submit,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{background:var(--blue);color:#fff;font-family:var(--font-display);font-weight:700;border-radius:var(--radius);letter-spacing:.5px;border:none;padding:12px 24px}
.woocommerce #respond input#submit:hover,.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover{background:#0d47a1;color:#fff}
.woocommerce .woocommerce-info{border-top-color:var(--blue)}

/* Hide default WC shop title */
.woocommerce .woocommerce-products-header{display:none}

/* Force WooCommerce grid override */
.woocommerce ul.products.columns-1,
.woocommerce ul.products.columns-2,
.woocommerce ul.products.columns-3,
.woocommerce ul.products.columns-4,
.woocommerce ul.products.columns-5 {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 24px !important;
}
.woocommerce ul.products.columns-1.view-list,
.woocommerce ul.products.columns-2.view-list,
.woocommerce ul.products.columns-3.view-list,
.woocommerce ul.products.columns-4.view-list,
.woocommerce ul.products.columns-5.view-list {
    grid-template-columns: 1fr !important;
}
.woocommerce ul.products.columns-1.view-gallery,
.woocommerce ul.products.columns-2.view-gallery,
.woocommerce ul.products.columns-3.view-gallery,
.woocommerce ul.products.columns-4.view-gallery,
.woocommerce ul.products.columns-5.view-gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
}
.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
}
.midz-product-card__img-wrap {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
}
.midz-product-card__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.midz-product-card__placeholder {
    min-height: unset !important;
    height: 100% !important;
}

/* Fix list view image size */
.woocommerce ul.products.view-list .midz-product-card__img-wrap,
.woocommerce ul.products.columns-4.view-list .midz-product-card__img-wrap {
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    aspect-ratio: 1 / 1 !important;
    flex-shrink: 0 !important;
}
.woocommerce ul.products.view-list li.product,
.woocommerce ul.products.columns-4.view-list li.product {
    grid-column: 1 / -1 !important;
}
.woocommerce ul.products.view-list .midz-product-card__link,
.woocommerce ul.products.columns-4.view-list .midz-product-card__link {
    flex-direction: row !important;
    align-items: stretch !important;
    max-height: 200px !important;
}

/* ── Social Icons ───────────────────────────────────────────── */
.social-icons, .footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
}
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    transition: background 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
}
.social-icon:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-2px);
}
.social-icon svg {
    width: 18px;
    height: 18px;
}

/* Fix injected social icons layout */
.footer-social-injected {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    margin-top: 16px;
}

/* Nav spacing fix */
.primary-nav ul {
    gap: 4px !important;
}
.primary-nav ul li a {
    font-size: 0.78rem !important;
    padding: 6px 8px !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
}

/* Member Hub contact section fix */
.midz30-hub__contact .midz30-hub__join-btn {
    background: var(--blue) !important;
    color: #fff !important;
    border: none !important;
}
.midz30-hub__contact .midz30-hub__join-btn:hover {
    background: #0d47a1 !important;
    color: #fff !important;
}
.midz30-hub__contact .midz30-hub__section-title {
    border-left-color: var(--blue);
    justify-content: center;
    text-align: center;
}

/* Member Hub contact button - force visible */
.midz30-hub__contact a.midz30-hub__join-btn {
    background: #1565C0 !important;
    color: #ffffff !important;
    display: inline-block !important;
    opacity: 1 !important;
}

/* Centre nav items across full available space */
.header-inner {
    justify-content: space-between !important;
}
@media (min-width: 1025px) {
    .primary-nav {
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
    }
    .primary-nav ul {
        justify-content: center !important;
        width: 100% !important;
    }
}

@media (max-width: 640px) {
  .fb-feed-sidebar {
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
  }
  .fb-feed-sidebar .fb-cta-card,
  .fb-feed-sidebar .fb-cta-stats {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
}
/* ======================================================
   HOMEPAGE GUTENBERG BLOCK MOBILE FIXES
====================================================== */
@media (max-width: 640px) {
  /* Stack Gutenberg columns on mobile */
  .wp-block-columns {
    flex-direction: column !important;
  }
  .wp-block-column {
    width: 100% !important;
    flex-basis: 100% !important;
  }
  /* FB sidebar card text containment */
  .fb-feed-sidebar {
    width: 100%;
    box-sizing: border-box;
  }
  .fb-cta-card p,
  .fb-cta-card h3,
  .fb-cta-card a {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* ═══════════════════════════════════════════════
   NAV DROPDOWNS & DASHBOARD USER MENU
   ═══════════════════════════════════════════════ */

@media (min-width: 1025px) {
    .primary-nav ul { list-style: none; margin: 0; padding: 0; }
    .primary-nav > ul > li { position: relative; }
    .primary-nav > ul > li.menu-item-has-children > a::after {
        content: ''; display: inline-block; width: 7px; height: 7px;
        border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translateY(-2px); margin-left: 6px;
        vertical-align: middle; opacity: .55; transition: transform .2s, opacity .2s;
    }
    .primary-nav > ul > li.menu-item-has-children:hover > a::after {
        transform: rotate(-135deg) translateY(-2px); opacity: .9;
    }
    .primary-nav .sub-menu {
        position: absolute; top: calc(100% + 10px); left: 50%;
        transform: translateX(-50%) translateY(-6px);
        background: #131820; border: 1px solid rgba(255,255,255,.1);
        border-radius: 10px; min-width: 210px; padding: 5px;
        list-style: none; opacity: 0; pointer-events: none;
        transition: opacity .18s ease, transform .18s ease;
        box-shadow: 0 8px 28px rgba(0,0,0,.45); z-index: 900; white-space: nowrap;
    }
    .primary-nav .sub-menu::before {
        content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
    }
    .primary-nav > ul > li:hover > .sub-menu {
        opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0);
    }
    .primary-nav .sub-menu li a {
        display: block; padding: 8px 13px; border-radius: 7px;
        color: rgba(255,255,255,.82); font-size: 13.5px; font-weight: 600;
        text-decoration: none; transition: background .15s, color .15s;
    }
    .primary-nav .sub-menu li a:hover { background: rgba(255,255,255,.08); color: #fff; }
    .header-user-menu:hover .header-user-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
}

.header-user-menu { position: relative; }
.header-user-dropdown {
    position: absolute; top: calc(100% + 10px); right: 0;
    background: #fff; border: 1px solid var(--border, #E8E8F0);
    border-radius: 12px; min-width: 210px; padding: 5px;
    list-style: none; margin: 0; opacity: 0; pointer-events: none;
    transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease;
    box-shadow: 0 8px 28px rgba(0,0,0,.13); z-index: 1000;
}
.header-user-menu.open .header-user-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.hud-name {
    padding: 9px 13px 7px; font-size: 11.5px; font-weight: 700;
    color: var(--mid, #8A8AA0); text-transform: uppercase; letter-spacing: .4px;
    border-bottom: 1px solid var(--border, #E8E8F0); margin-bottom: 4px; pointer-events: none;
}
.header-user-dropdown li a {
    display: flex; align-items: center; gap: 8px; padding: 8px 13px;
    border-radius: 7px; color: var(--dark, #0D1117); font-size: 13.5px;
    font-weight: 600; text-decoration: none; transition: background .15s;
    font-family: 'Nunito', sans-serif;
}
.header-user-dropdown li a:hover { background: var(--off-white, #F8F8FC); }
.hud-sep { height: 1px; background: var(--border, #E8E8F0); margin: 4px 8px; pointer-events: none; }

.mobile-acc-btn {
    display: flex; width: 100%; justify-content: space-between; align-items: center;
    background: none; border: none; color: inherit; padding: 10px 20px;
    font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; text-align: left;
}
.mobile-acc-btn:hover { color: var(--blue, #1565C0); }
.mobile-acc-arrow { display: inline-block; transition: transform .25s ease; font-size: 12px; opacity: .7; }
.mobile-acc.open .mobile-acc-arrow { transform: rotate(180deg); }
.mobile-acc-body { list-style: none; padding: 0; margin: 0; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.mobile-acc-body.open { max-height: 300px; }
.mobile-acc-body li a {
    display: block; padding: 8px 20px 8px 34px; font-size: 13.5px;
    font-weight: 600; color: rgba(255,255,255,.72); text-decoration: none; transition: color .15s;
}
.mobile-acc-body li a:hover { color: #fff; }
