/*
Theme Name: SCAV - Sudanese Community Association of Victoria
Theme URI: https://scav.org.au
Author: SCAV Web Team
Author URI: https://scav.org.au
Description: Custom WordPress theme for the Sudanese Community Association of Victoria. Features membership management, events calendar, committee profiles, Arabic RTL support, and Elementor compatibility.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scav
Tags: community, membership, events, rtl-language-support, custom-logo, custom-menu, translation-ready
*/

/* ==========================================================================
   DESIGN SYSTEM — Sudanese Flag Colors + Modern Typography
   ========================================================================== */

:root {
  /* Primary Palette (Sudanese Flag) */
  --scav-red: #CE1126;
  --scav-red-dark: #A30E1F;
  --scav-red-light: #E8455A;
  --scav-white: #FFFFFF;
  --scav-green: #007A33;
  --scav-green-dark: #005A25;
  --scav-green-light: #00A648;
  --scav-black: #000000;
  --scav-gold: #FDD017;
  --scav-gold-dark: #D4AF37;

  /* Neutral Palette */
  --scav-gray-50: #F9FAFB;
  --scav-gray-100: #F3F4F6;
  --scav-gray-200: #E5E7EB;
  --scav-gray-300: #D1D5DB;
  --scav-gray-400: #9CA3AF;
  --scav-gray-500: #6B7280;
  --scav-gray-600: #4B5563;
  --scav-gray-700: #374151;
  --scav-gray-800: #1F2937;
  --scav-gray-900: #111827;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --font-arabic: 'Noto Sans Arabic', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Container */
  --container-max: 1200px;
  --container-wide: 1400px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--scav-gray-800);
  background-color: var(--scav-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--scav-red);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--scav-red-dark);
}

ul, ol {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--scav-gray-900);
  margin-bottom: var(--space-md);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-md);
  color: var(--scav-gray-600);
}

.text-center { text-align: center; }
.text-white { color: var(--scav-white); }
.text-gold { color: var(--scav-gold); }

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}

.container-wide {
  max-width: var(--container-wide);
}

.section {
  padding: var(--space-4xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

.grid {
  display: grid;
  gap: var(--space-xl);
}

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

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  flex-direction: column;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* ==========================================================================
   TOP BAR
   ========================================================================== */

.top-bar {
  background: var(--scav-gray-900);
  color: var(--scav-gray-300);
  font-size: 0.85rem;
  padding: var(--space-sm) 0;
}

.top-bar a {
  color: var(--scav-gray-300);
  transition: color var(--transition-fast);
}

.top-bar a:hover {
  color: var(--scav-gold);
}

.top-bar__info {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.top-bar__info i {
  margin-right: var(--space-xs);
  color: var(--scav-gold);
}

.top-bar__social {
  display: flex;
  gap: var(--space-md);
}

.top-bar__social a {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}

.top-bar__social a:hover {
  background: var(--scav-red);
  color: var(--scav-white);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */

.site-header {
  background: var(--scav-white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  min-height: 80px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.site-logo img {
  height: 55px;
  width: auto;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
}

.site-logo__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--scav-gray-900);
  line-height: 1.2;
}

.site-logo__tagline {
  font-size: 0.75rem;
  color: var(--scav-gray-500);
  letter-spacing: 0.5px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.primary-nav a {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--scav-gray-700);
  padding: var(--space-sm) 0.6rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--scav-red);
  background: rgba(206, 17, 38, 0.06);
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--scav-red);
  transition: transform var(--transition-fast);
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-lang-toggle {
  font-family: var(--font-arabic) !important;
  background: var(--scav-green);
  color: var(--scav-white) !important;
  padding: var(--space-sm) var(--space-lg) !important;
  border-radius: var(--radius-full) !important;
  font-size: 0.95rem !important;
}

.nav-lang-toggle:hover {
  background: var(--scav-green-dark) !important;
  color: var(--scav-white) !important;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.hamburger {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--scav-gray-800);
  position: relative;
  transition: background var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--scav-gray-800);
  left: 0;
  transition: transform var(--transition-fast);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.mobile-menu-toggle.active .hamburger {
  background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.mobile-menu-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--scav-red);
  color: var(--scav-white);
  border-color: var(--scav-red);
}

.btn-primary:hover {
  background: var(--scav-red-dark);
  border-color: var(--scav-red-dark);
  color: var(--scav-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(206, 17, 38, 0.35);
}

.btn-secondary {
  background: var(--scav-green);
  color: var(--scav-white);
  border-color: var(--scav-green);
}

.btn-secondary:hover {
  background: var(--scav-green-dark);
  border-color: var(--scav-green-dark);
  color: var(--scav-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 122, 51, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--scav-white);
  border-color: var(--scav-white);
}

.btn-outline:hover {
  background: var(--scav-white);
  color: var(--scav-red);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--scav-gold);
  color: var(--scav-gray-900);
  border-color: var(--scav-gold);
}

.btn-gold:hover {
  background: var(--scav-gold-dark);
  border-color: var(--scav-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(253, 208, 23, 0.35);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

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

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--scav-gray-900) 0%, #1a1a2e 40%, var(--scav-red-dark) 100%);
  overflow: hidden;
  color: var(--scav-white);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('assets/images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.25;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

.hero__flags {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.hero__flags img {
  height: 45px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.hero__flags span {
  font-size: 1.5rem;
  color: var(--scav-gold);
}

.hero h1 {
  color: var(--scav-white);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--scav-gold);
  font-family: var(--font-heading);
  font-weight: 300;
  margin-bottom: var(--space-2xl);
  letter-spacing: 1px;
}

.hero__actions {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero__decoration {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(206, 17, 38, 0.3) 0%, transparent 70%);
  z-index: 1;
}

/* Red-green-black stripe at bottom */
.hero__stripe {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  display: flex;
  z-index: 3;
}

.hero__stripe span {
  flex: 1;
}

.hero__stripe .stripe-red { background: var(--scav-red); }
.hero__stripe .stripe-white { background: var(--scav-white); }
.hero__stripe .stripe-black { background: var(--scav-black); }
.hero__stripe .stripe-green { background: var(--scav-green); }

/* Page Hero (smaller, for inner pages) */
.page-hero {
  min-height: 350px;
  background: linear-gradient(135deg, var(--scav-gray-900) 0%, var(--scav-red-dark) 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/images/pattern-bg.svg') repeat;
  opacity: 0.05;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-hero h1 {
  color: var(--scav-white);
  margin-bottom: var(--space-sm);
}

.page-hero .breadcrumb {
  color: var(--scav-gray-300);
  font-size: 0.9rem;
}

.page-hero .breadcrumb a {
  color: var(--scav-gold);
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-header .label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--scav-red);
  margin-bottom: var(--space-sm);
  position: relative;
  padding: 0 var(--space-lg);
}

.section-header .label::before,
.section-header .label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 2px;
  background: var(--scav-gold);
}

.section-header .label::before { left: -10px; }
.section-header .label::after  { right: -10px; }

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: 1.05rem;
}

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

.card {
  background: var(--scav-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

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

.card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card__body {
  padding: var(--space-xl);
}

.card__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--scav-red);
  background: rgba(206, 17, 38, 0.08);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.card__title {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}

.card__text {
  font-size: 0.95rem;
  color: var(--scav-gray-500);
  margin-bottom: var(--space-lg);
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  font-size: 0.85rem;
  color: var(--scav-gray-400);
}

.card__meta i {
  margin-right: var(--space-xs);
  color: var(--scav-red);
}

/* Mission / Feature Cards */
.feature-card {
  background: var(--scav-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  border: 1px solid var(--scav-gray-200);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--scav-red), var(--scav-green));
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
  border-color: transparent;
}

.feature-card__icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--scav-red), var(--scav-red-dark));
  color: var(--scav-white);
}

.feature-card:nth-child(2) .feature-card__icon {
  background: linear-gradient(135deg, var(--scav-green), var(--scav-green-dark));
}

.feature-card:nth-child(3) .feature-card__icon {
  background: linear-gradient(135deg, var(--scav-gold), var(--scav-gold-dark));
  color: var(--scav-gray-900);
}

.feature-card h3 {
  margin-bottom: var(--space-sm);
}

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

.events-section {
  background: var(--scav-gray-50);
}

.event-card {
  background: var(--scav-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

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

.event-card__image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.event-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.event-card:hover .event-card__image img {
  transform: scale(1.05);
}

.event-card__date {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--scav-red);
  color: var(--scav-white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  text-align: center;
  line-height: 1.2;
}

.event-card__date .day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.event-card__date .month {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-card__category {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--scav-green);
  color: var(--scav-white);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.event-card__body {
  padding: var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-card__title {
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}

.event-card__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 0.85rem;
  color: var(--scav-gray-500);
}

.event-card__info i {
  width: 18px;
  color: var(--scav-red);
  margin-right: var(--space-sm);
}

.event-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ==========================================================================
   MEMBERSHIP CTA SECTION
   ========================================================================== */

.membership-cta {
  background: linear-gradient(135deg, var(--scav-red) 0%, var(--scav-red-dark) 50%, #8B0000 100%);
  color: var(--scav-white);
  position: relative;
  overflow: hidden;
}

.membership-cta::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.membership-cta::after {
  content: '';
  position: absolute;
  left: -50px;
  bottom: -50px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(0, 122, 51, 0.15);
}

.membership-cta .container {
  position: relative;
  z-index: 2;
}

.membership-cta h2 {
  color: var(--scav-white);
  margin-bottom: var(--space-md);
}

.membership-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: var(--space-xl);
}

.membership-cta .pricing {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.price-badge {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-2xl);
  text-align: center;
  transition: all var(--transition-base);
}

.price-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.price-badge .amount {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--scav-gold);
}

.price-badge .period {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.price-badge .type {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-top: var(--space-xs);
}

.membership-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.membership-benefits li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.membership-benefits li i {
  color: var(--scav-gold);
  font-size: 1.1rem;
}

/* ==========================================================================
   COMMITTEE / TEAM
   ========================================================================== */

.committee-card {
  background: var(--scav-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-base);
}

.committee-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.committee-card__photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  filter: grayscale(15%);
  transition: filter var(--transition-base);
}

.committee-card:hover .committee-card__photo {
  filter: grayscale(0);
}

.committee-card__body {
  padding: var(--space-xl);
}

.committee-card__name {
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
}

.committee-card__role {
  color: var(--scav-red);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
}

.committee-card__bio {
  font-size: 0.9rem;
  color: var(--scav-gray-500);
  margin-bottom: var(--space-md);
}

.committee-card__social {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
}

.committee-card__social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--scav-gray-100);
  color: var(--scav-gray-500);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.committee-card__social a:hover {
  background: var(--scav-red);
  color: var(--scav-white);
}

/* ==========================================================================
   GALLERY
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.7));
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__overlay span {
  color: var(--scav-white);
  font-family: var(--font-heading);
  font-weight: 600;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-info-item {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.contact-info-item__icon {
  width: 55px;
  height: 55px;
  min-width: 55px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--scav-red), var(--scav-red-dark));
  color: var(--scav-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-info-item h4 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.contact-info-item p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Contact Form */
.contact-form .form-group {
  margin-bottom: var(--space-lg);
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  color: var(--scav-gray-700);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--scav-gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
  background: var(--scav-white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--scav-red);
  box-shadow: 0 0 0 3px rgba(206, 17, 38, 0.1);
}

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

/* ==========================================================================
   MEMBERSHIP FORM
   ========================================================================== */

.membership-form {
  background: var(--scav-white);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  box-shadow: var(--shadow-xl);
  max-width: 650px;
  margin: 0 auto;
}

.membership-form h3 {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.membership-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.membership-type-option {
  border: 2px solid var(--scav-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.membership-type-option:hover {
  border-color: var(--scav-red);
}

.membership-type-option.selected {
  border-color: var(--scav-red);
  background: rgba(206, 17, 38, 0.04);
}

.membership-type-option .price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--scav-red);
}

.membership-type-option .label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--scav-gray-600);
}

.afterpay-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: #B2FCE4;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: var(--space-xl);
}

/* ==========================================================================
   BENEFITS GRID
   ========================================================================== */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.benefit-item {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--scav-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--scav-gray-200);
  transition: all var(--transition-base);
}

.benefit-item:hover {
  border-color: var(--scav-red);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.benefit-item__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: rgba(206, 17, 38, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 1.5rem;
  color: var(--scav-red);
}

.benefit-item h4 {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.benefit-item p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* ==========================================================================
   PROGRAMS
   ========================================================================== */

.program-card {
  display: flex;
  background: var(--scav-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

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

.program-card__image {
  width: 40%;
  min-height: 250px;
  object-fit: cover;
}

.program-card__body {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

/* ==========================================================================
   STATS COUNTER
   ========================================================================== */

.stats-section {
  background: var(--scav-gray-900);
  color: var(--scav-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat-item {
  padding: var(--space-xl);
}

.stat-item__number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--scav-gold);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-item__label {
  font-size: 0.9rem;
  color: var(--scav-gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.site-footer {
  background: var(--scav-gray-900);
  color: var(--scav-gray-400);
}

.footer-top {
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-3xl);
}

.footer-col h4 {
  color: var(--scav-white);
  font-size: 1.05rem;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-md);
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--scav-red);
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  color: var(--scav-gray-400);
}

.footer-about__flags {
  display: flex;
  gap: var(--space-sm);
}

.footer-about__flags img {
  height: 30px;
  border-radius: var(--radius-sm);
  opacity: 0.8;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--scav-gray-400);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-links a::before {
  content: '›';
  color: var(--scav-red);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--scav-white);
  padding-left: var(--space-sm);
}

.footer-contact li {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
}

.footer-contact i {
  color: var(--scav-red);
  width: 18px;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-newsletter p {
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
}

.newsletter-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1px solid var(--scav-gray-700);
  border-radius: var(--radius-md);
  background: var(--scav-gray-800);
  color: var(--scav-white);
  font-size: 0.9rem;
}

.newsletter-form input::placeholder {
  color: var(--scav-gray-500);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--scav-red);
}

.newsletter-form button {
  padding: 0.7rem 1rem;
  background: var(--scav-red);
  color: var(--scav-white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.newsletter-form button:hover {
  background: var(--scav-red-dark);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--scav-gray-800);
  padding: var(--space-lg) 0;
}

.footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom__social {
  display: flex;
  gap: var(--space-sm);
}

.footer-bottom__social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--scav-gray-800);
  color: var(--scav-gray-400);
  transition: all var(--transition-fast);
}

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

/* Sudanese stripe above footer */
.footer-stripe {
  height: 4px;
  display: flex;
}

.footer-stripe span {
  flex: 1;
}

/* ==========================================================================
   MAP
   ========================================================================== */

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-fade-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-left {
  animation: fadeInLeft 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --space-4xl: 3rem;
    --space-3xl: 2.5rem;
  }

  .top-bar__info { display: none; }

  .primary-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--scav-white);
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-xs);
    z-index: 999;
    overflow-y: auto;
  }

  .primary-nav.active {
    display: flex;
  }

  .primary-nav a {
    width: 100%;
    padding: var(--space-md);
    font-size: 1.05rem;
  }

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

  .hero {
    min-height: 70vh;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__decoration { display: none; }

  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }

  .membership-type-selector { grid-template-columns: 1fr; }
  .membership-cta .pricing { flex-direction: column; align-items: stretch; }
  .membership-benefits { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .program-card { flex-direction: column; }
  .program-card__image { width: 100%; min-height: 200px; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-bottom__inner {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }

  .hero { min-height: 60vh; }

  .membership-form {
    padding: var(--space-xl);
  }

  .stats-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   WORDPRESS / ELEMENTOR COMPATIBILITY
   ========================================================================== */

.elementor-widget-container { width: 100%; }
.elementor-section.elementor-section-full_width { max-width: 100%; }

/* WPForms styling override */
.wpforms-container .wpforms-form input,
.wpforms-container .wpforms-form select,
.wpforms-container .wpforms-form textarea {
  border: 2px solid var(--scav-gray-200) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.75rem 1rem !important;
  font-family: var(--font-body) !important;
}

.wpforms-container .wpforms-form input:focus,
.wpforms-container .wpforms-form select:focus,
.wpforms-container .wpforms-form textarea:focus {
  border-color: var(--scav-red) !important;
}

.wpforms-container .wpforms-form .wpforms-submit {
  background: var(--scav-red) !important;
  border-radius: var(--radius-full) !important;
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
  padding: 0.75rem 2rem !important;
  border: none !important;
  transition: all var(--transition-base) !important;
}

.wpforms-container .wpforms-form .wpforms-submit:hover {
  background: var(--scav-red-dark) !important;
}

/* The Events Calendar overrides */
.tribe-events .tribe-events-calendar-month__day--current {
  background-color: rgba(206, 17, 38, 0.1);
}

.tribe-events .tribe-events-calendar-month__day:hover {
  background-color: rgba(206, 17, 38, 0.05);
}

/* Ultimate Member overrides */
.um .um-form input[type="text"],
.um .um-form input[type="email"],
.um .um-form input[type="tel"],
.um .um-form select {
  border: 2px solid var(--scav-gray-200) !important;
  border-radius: var(--radius-md) !important;
}

.um .um-form .um-button {
  background: var(--scav-red) !important;
  border-radius: var(--radius-full) !important;
}
