/* ==========================================================================
   GLOBAL YOUTH DIALOGUE & EXCHANGE (GYDE) - Modern Design System
   Strict Palette: #4851BA (Royal Indigo), #9E59AC (Orchid Violet),
                   #000000 (Onyx Black), #FFFFFF (Pure White) & variations
   Typography: Sora & Cairo (Arabic RTL)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Sora:wght@300;400;500;600;700;800&display=swap');

:root,
[data-theme="light"] {
  /* Brand Core Tokens (4 Colors Only) */
  --color-primary-1: #4851BA;
  --color-primary-2: #9E59AC;
  --color-dark: #000000;
  --color-light: #FFFFFF;
  --brand-primary: #4851BA;
  --brand-primary-hover: #3B43A1;

  /* Primary Variations & Gradients */
  --brand-gradient: linear-gradient(135deg, #4851BA 0%, #9E59AC 100%);
  --brand-gradient-hover: linear-gradient(135deg, #3B43A1 0%, #8A4B96 100%);
  --brand-gradient-subtle: linear-gradient(135deg, rgba(72, 81, 186, 0.08) 0%, rgba(158, 89, 172, 0.08) 100%);
  --brand-gradient-border: linear-gradient(135deg, rgba(72, 81, 186, 0.4) 0%, rgba(158, 89, 172, 0.4) 100%);

  /* Legacy variable mappings (for complete system backward compatibility) */
  --brand-green: #4851BA;
  --brand-green-hover: #3B43A1;
  --brand-green-light: rgba(72, 81, 186, 0.08);
  --brand-green-subtle: rgba(72, 81, 186, 0.14);
  --brand-green-border: rgba(72, 81, 186, 0.28);

  --brand-navy: #000000;
  --brand-navy-hover: rgba(0, 0, 0, 0.85);
  --brand-navy-light: rgba(0, 0, 0, 0.04);
  --brand-navy-subtle: rgba(72, 81, 186, 0.12);

  --accent-gold: #9E59AC;
  --accent-gold-light: rgba(158, 89, 172, 0.08);
  --accent-gold-border: rgba(158, 89, 172, 0.3);

  /* Presenter & Accreditation Tokens (Black in Light Theme, White in Dark Theme) */
  --presenter-bg: #000000;
  --presenter-text: #FFFFFF;
  --presenter-border: #000000;
  --presenter-hover: #1f2937;
  --presenter-subtle: rgba(0, 0, 0, 0.04);
  --presenter-badge-bg: rgba(0, 0, 0, 0.07);
  --presenter-badge-text: #000000;
  --presenter-badge-border: rgba(0, 0, 0, 0.22);
  --presenter-title: #000000;
  --presenter-card-bg: linear-gradient(135deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.01) 100%);
  --presenter-card-border: rgba(0, 0, 0, 0.15);
  --presenter-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);

  /* Light Theme Canvas & Surfaces */
  --bg-body: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-subtle: rgba(72, 81, 186, 0.03);
  --bg-muted: rgba(0, 0, 0, 0.04);

  /* Typography Colors */
  --text-main: #000000;
  --text-body: rgba(0, 0, 0, 0.82);
  --text-muted: rgba(0, 0, 0, 0.58);
  --text-subtle: rgba(0, 0, 0, 0.4);
  --text-inverse: #FFFFFF;

  /* Borders & Dividers */
  --border-light: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(72, 81, 186, 0.2);
  --border-focus: #4851BA;

  /* Status Tokens (Derived from 4 colors) */
  --status-proposed: rgba(0, 0, 0, 0.55);
  --status-review: #9E59AC;
  --status-approved: #4851BA;
  --status-scheduled: #9E59AC;
  --status-completed: #4851BA;
  --status-success: #4851BA;
  --status-danger: #000000;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(72, 81, 186, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px rgba(72, 81, 186, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 48px rgba(72, 81, 186, 0.16), 0 8px 20px rgba(0, 0, 0, 0.06);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 36px;
  --radius-full: 9999px;

  /* Header Controls Sizing */
  --header-btn-height: 32px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);

  /* Fonts */
  --font-sans: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic: 'Cairo', 'Sora', sans-serif;
}

/* ==========================================================================
   DARK THEME (Edolus-Inspired Cinematic Obsidian)
   ========================================================================== */
[data-theme="dark"] {
  --bg-body: #000000;
  --bg-surface: rgba(255, 255, 255, 0.04);
  --bg-surface-elevated: rgba(255, 255, 255, 0.07);
  --bg-subtle: rgba(72, 81, 186, 0.12);
  --bg-muted: rgba(255, 255, 255, 0.08);

  --text-main: #FFFFFF;
  --text-body: rgba(255, 255, 255, 0.88);
  --text-muted: rgba(255, 255, 255, 0.65);
  --text-subtle: rgba(255, 255, 255, 0.45);
  --text-inverse: #000000;

  --border-light: rgba(255, 255, 255, 0.1);
  --border-medium: rgba(158, 89, 172, 0.3);
  --border-focus: #9E59AC;

  --brand-green: #9E59AC;
  --brand-green-hover: #B56BC5;
  --brand-green-light: rgba(158, 89, 172, 0.18);
  --brand-green-subtle: rgba(158, 89, 172, 0.28);
  --brand-green-border: rgba(158, 89, 172, 0.45);

  --brand-navy: #4851BA;
  --brand-navy-hover: #5A64D4;
  --brand-navy-light: rgba(72, 81, 186, 0.18);
  --brand-navy-subtle: rgba(72, 81, 186, 0.28);

  --accent-gold: #9E59AC;
  --accent-gold-light: rgba(158, 89, 172, 0.18);
  --accent-gold-border: rgba(158, 89, 172, 0.45);
  --brand-primary: #4851BA;
  --brand-primary-hover: #5A64D4;

  /* Presenter & Accreditation Tokens (White in Dark Theme) */
  --presenter-bg: #FFFFFF;
  --presenter-text: #000000;
  --presenter-border: #FFFFFF;
  --presenter-hover: #e2e8f0;
  --presenter-subtle: rgba(255, 255, 255, 0.08);
  --presenter-badge-bg: rgba(255, 255, 255, 0.16);
  --presenter-badge-text: #FFFFFF;
  --presenter-badge-border: rgba(255, 255, 255, 0.35);
  --presenter-title: #FFFFFF;
  --presenter-card-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  --presenter-card-border: rgba(255, 255, 255, 0.25);
  --presenter-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.7);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 16px rgba(72, 81, 186, 0.22);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.9), 0 0 28px rgba(158, 89, 172, 0.28);
  --shadow-xl: 0 24px 56px rgba(0, 0, 0, 0.95), 0 0 42px rgba(72, 81, 186, 0.38);
}

/* RTL Mode (Arabic) */
body.rtl-mode {
  font-family: var(--font-arabic), var(--font-sans);
  direction: rtl;
}

body.rtl-mode .serif-text {
  font-family: var(--font-arabic), serif;
  font-weight: 700;
}

/* Base Reset & Document Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.site-header,
.site-footer,
.hero-section,
.app-view,
.portal-wrapper,
.portal-content,
.container,
.container-wide {
  max-width: 100%;
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

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

/* Typography Helpers */
.serif-text {
  font-family: var(--font-serif);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 600;
}

.text-muted { color: var(--text-muted); }
.text-gold { color: var(--accent-gold); }
.text-green { color: var(--brand-green); }
.text-navy { color: var(--brand-navy); }

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-wide {
  width: 100%;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

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

.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(72, 81, 186, 0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="dark"] .site-header {
  background: rgba(0, 0, 0, 0.94);
  border-bottom: 1px solid rgba(158, 89, 172, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 1.25rem;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
}

/* Brand Identity */
.brand-identity {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(72, 81, 186, 0.22));
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.brand-identity:hover .brand-logo-img {
  transform: scale(1.03);
}

.brand-logo-img.logo-dark {
  display: none;
}

.brand-logo-img.logo-light {
  display: block;
}

[data-theme="dark"] .brand-logo-img {
  filter: drop-shadow(0 2px 14px rgba(158, 89, 172, 0.45));
}

[data-theme="dark"] .brand-logo-img.logo-dark {
  display: block;
}

[data-theme="dark"] .brand-logo-img.logo-light {
  display: none;
}

@media (max-width: 640px) {
  .brand-logo-img {
    height: 40px;
    max-width: 190px;
  }
}

.brand-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(72, 81, 186, 0.3);
  flex-shrink: 0;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex-shrink: 1;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.brand-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.015em;
  color: var(--brand-navy);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.brand-sub {
  font-size: 0.54rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.25;
  width: 100%;
  display: block;
  text-align: justify;
  text-align-last: justify;
  letter-spacing: 0.02em;
  margin-top: 1px;
  white-space: nowrap;
}

body.rtl-mode .brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0;
}

/* Navigation Links - Clean, Modern Minimalist Aesthetic */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  flex-wrap: nowrap;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.72);
  transition: var(--transition-fast);
  padding: 0.3rem 0;
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--color-primary-1);
}

.nav-link.active {
  color: var(--color-primary-1);
  font-weight: 700;
}

[data-theme="dark"] .nav-link {
  color: rgba(255, 255, 255, 0.78);
}

[data-theme="dark"] .nav-link:hover {
  color: #FFFFFF;
}

[data-theme="dark"] .nav-link.active {
  color: var(--color-primary-2);
}

/* Header Controls & Quick Switchers */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

/* Global Search Button in Header */
.header-control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: var(--header-btn-height, 32px);
  padding: 0 0.85rem;
  border: 1px solid rgba(72, 81, 186, 0.28);
  border-radius: var(--radius-full);
  background: rgba(72, 81, 186, 0.05);
  color: #000000;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: all var(--transition-fast);
}

.header-control-btn .svg-icon {
  color: var(--color-primary-1);
  display: inline-flex;
  align-items: center;
}

.header-control-btn:hover {
  background: rgba(72, 81, 186, 0.14);
  border-color: var(--color-primary-1);
  color: var(--color-primary-1);
}

[data-theme="dark"] .header-control-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(158, 89, 172, 0.35);
  color: #FFFFFF;
}

[data-theme="dark"] .header-control-btn .svg-icon {
  color: var(--color-primary-2);
}

[data-theme="dark"] .header-control-btn:hover {
  background: rgba(158, 89, 172, 0.2);
  border-color: var(--color-primary-2);
  color: #FFFFFF;
}

/* Language Switcher Button */
.btn-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: var(--header-btn-height, 32px);
  padding: 0 0.85rem;
  border: 1px solid rgba(72, 81, 186, 0.28);
  border-radius: var(--radius-full);
  background: rgba(72, 81, 186, 0.05);
  color: #000000;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: all var(--transition-fast);
}

.btn-lang .svg-icon {
  color: var(--color-primary-1);
  display: inline-flex;
  align-items: center;
}

.btn-lang:hover {
  background: rgba(72, 81, 186, 0.14);
  border-color: var(--color-primary-1);
  color: var(--color-primary-1);
}

[data-theme="dark"] .btn-lang {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(158, 89, 172, 0.35);
  color: #FFFFFF;
}

[data-theme="dark"] .btn-lang .svg-icon {
  color: var(--color-primary-2);
}

[data-theme="dark"] .btn-lang:hover {
  background: rgba(158, 89, 172, 0.2);
  border-color: var(--color-primary-2);
  color: #FFFFFF;
}

/* Auth Actions Container & Buttons */
#authActionsContainer {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

#authActionsContainer .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid rgba(72, 81, 186, 0.28);
  background: rgba(72, 81, 186, 0.05);
  color: #000000;
  white-space: nowrap;
  line-height: 1.2;
  transition: all var(--transition-fast);
}

#authActionsContainer .btn-outline:hover {
  background: rgba(72, 81, 186, 0.14);
  border-color: var(--color-primary-1);
  color: var(--color-primary-1);
}

[data-theme="dark"] #authActionsContainer .btn-outline {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(158, 89, 172, 0.35);
  color: #FFFFFF;
}

[data-theme="dark"] #authActionsContainer .btn-outline:hover {
  background: rgba(158, 89, 172, 0.2);
  border-color: var(--color-primary-2);
  color: #FFFFFF;
}

#authActionsContainer .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 1.05rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: var(--brand-gradient);
  border: 1px solid rgba(158, 89, 172, 0.3);
  color: #FFFFFF;
  white-space: nowrap;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(72, 81, 186, 0.35);
  transition: all var(--transition-fast);
}

#authActionsContainer .btn-primary:hover {
  background: var(--brand-gradient-hover);
  box-shadow: 0 4px 14px rgba(158, 89, 172, 0.45);
  transform: translateY(-1px);
  color: #FFFFFF;
}

/* User Role Badge in Header */
.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--brand-green-light);
  color: var(--brand-green);
  border: 1px solid var(--brand-green-border);
}

.user-badge.badge-coordinator {
  background: var(--brand-navy-light);
  color: var(--brand-navy);
  border-color: var(--brand-navy-subtle);
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  line-height: 1.3;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--brand-green);
  color: #fff;
  box-shadow: 0 2px 4px rgba(14, 77, 60, 0.25);
}

.btn-primary:hover {
  background-color: var(--brand-green-hover);
  box-shadow: 0 4px 10px rgba(14, 77, 60, 0.3);
}

.btn-navy {
  background-color: var(--brand-navy);
  color: #fff;
}

.btn-navy:hover {
  background-color: var(--brand-navy-hover);
}

.btn-accent {
  background: var(--brand-gradient);
  color: #FFFFFF;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(158, 89, 172, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-accent:hover {
  background: var(--brand-gradient-hover);
  box-shadow: 0 6px 20px rgba(158, 89, 172, 0.5);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.flag-svg {
  display: inline-block;
  vertical-align: middle;
  width: 22px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  object-fit: cover;
}

.flag-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
  margin-inline-end: 5px;
}

.timer-banner-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-inline-end: 6px;
}

.timer-banner-icon svg {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-medium);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: var(--bg-subtle);
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.btn-subtle {
  background-color: var(--bg-subtle);
  color: var(--text-main);
}

.btn-subtle:hover {
  background-color: var(--border-light);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.02rem;
  border-radius: var(--radius-lg);
}

/* Status Pill Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-proposed { background: #F1F5F9; color: #475569; }
.badge-review { background: #FEF3C7; color: #B45309; }
.badge-approved { background: #DBEAFE; color: #1D4ED8; }
.badge-scheduled { background: #EDE9FE; color: #6D28D9; }
.badge-completed { background: #D1FAE5; color: #065F46; }
.badge-published { background: #DCFCE7; color: #166534; }
.badge-category { background: var(--bg-subtle); color: var(--brand-green); font-weight: 500; }

/* ==========================================================================
   PUBLIC LANDING SECTIONS
   ========================================================================== */

/* Hero Section */
.hero-section {
  padding: 5rem 0 4rem;
  background: radial-gradient(circle at 50% 10%, #EBF4F0 0%, #F7FAF9 65%);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-navy);
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  line-height: 1.4;
}

.hero-title {
  font-size: 3.25rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  max-width: 900px;
  margin: 0 auto 1.5rem;
  color: var(--brand-navy);
  line-height: 1.18;
}

.hero-subtext {
  font-size: 1.15rem;
  color: var(--text-body);
  max-width: 720px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Key Metrics Bar */
.metrics-strip {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 1.75rem 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.metric-item {
  border-inline-end: 1px solid var(--border-light);
  padding: 0.5rem 1rem;
}

.metric-item:last-child {
  border-inline-end: none;
}

.metric-number {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--brand-green);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Section Header Utility */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-green);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: 2.35rem;
  color: var(--brand-navy);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* About Section */
.about-section {
  padding: 5rem 0;
  background-color: var(--bg-surface);
}

.about-card-hero {
  background: linear-gradient(135deg, #000000 0%, #151624 50%, #25284E 100%);
  border: 1px solid rgba(158, 89, 172, 0.35);
  border-radius: var(--radius-xl);
  color: #fff;
  padding: 3.5rem 3rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.about-card-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(158, 89, 172, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.origin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.about-card-hero h3 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.about-card-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 860px;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.mv-card {
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: var(--transition-normal);
}

.mv-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-green-border);
}

.mv-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--brand-green-light);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.mv-card h4 {
  font-size: 1.35rem;
  color: var(--brand-navy);
  margin-bottom: 0.75rem;
}

.mv-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* 5-Step Process Section */
.process-section {
  padding: 5rem 0;
  background-color: var(--bg-body);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  position: relative;
}

.process-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.4rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.process-card:hover {
  border-color: var(--brand-green);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.process-step-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-green);
  font-family: var(--font-serif);
  line-height: 1;
  margin-bottom: 0.85rem;
}

.process-card h4 {
  font-size: 1.15rem;
  color: var(--brand-navy);
  margin-bottom: 0.65rem;
}

.process-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Topic Categories Section */
.topics-section {
  padding: 5rem 0;
  background-color: var(--bg-surface);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.category-card {
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  border-color: var(--brand-green-border);
  background: var(--bg-surface);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-green-light);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.category-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.category-card h4 {
  font-size: 1.15rem;
  color: var(--brand-navy);
  margin-bottom: 0.5rem;
}

.category-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.category-footer {
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-medium);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Members-Only Sessions Preview Notice */
.sessions-public-section {
  padding: 5rem 0;
  background-color: var(--bg-body);
}

.members-banner {
  background: linear-gradient(135deg, #000000 0%, #151624 50%, #25284E 100%);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  color: #fff;
  text-align: center;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(158, 89, 172, 0.35);
}

.members-banner-lock {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: rgba(158, 89, 172, 0.2);
  color: #9E59AC;
  border: 1px solid rgba(158, 89, 172, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.25rem;
}

.members-banner h3 {
  color: #fff;
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
}

.members-banner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  max-width: 680px;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

/* Public Session Filter Controls */
#publicSessionStatusFilters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

#publicSessionStatusFilters .btn {
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 1.15rem;
  transition: all var(--transition-fast);
}

#publicSessionStatusFilters .btn-primary {
  background: var(--color-primary-1);
  border-color: var(--color-primary-1);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(72, 81, 186, 0.35);
}

#publicSessionStatusFilters .btn-outline {
  border: 1px solid rgba(72, 81, 186, 0.28);
  color: var(--color-primary-1);
  background: transparent;
}

#publicSessionStatusFilters .btn-outline:hover {
  background: rgba(72, 81, 186, 0.08);
  border-color: var(--color-primary-1);
  color: var(--color-primary-1);
}

[data-theme="dark"] #publicSessionStatusFilters .btn-primary {
  background: var(--color-primary-2);
  border-color: var(--color-primary-2);
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(158, 89, 172, 0.45);
}

[data-theme="dark"] #publicSessionStatusFilters .btn-outline {
  border: 1px solid rgba(158, 89, 172, 0.35);
  color: #FFFFFF;
}

[data-theme="dark"] #publicSessionStatusFilters .btn-outline:hover {
  border-color: var(--color-primary-2);
  color: #FFFFFF;
  background: rgba(158, 89, 172, 0.2);
}

/* Delete Trial Data Button (Admin Dashboard) */
.btn-delete-trial-data {
  border: 1px solid rgba(220, 38, 38, 0.45) !important;
  color: #dc2626 !important;
  background: rgba(220, 38, 38, 0.05) !important;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-delete-trial-data:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-delete-trial-data {
  border: 1px solid rgba(239, 68, 68, 0.5) !important;
  color: #f87171 !important;
  background: rgba(239, 68, 68, 0.1) !important;
}

[data-theme="dark"] .btn-delete-trial-data:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.5);
}

.btn-sidebar-delete-trial {
  color: #dc2626 !important;
  border-color: rgba(220, 38, 38, 0.35) !important;
  background: rgba(220, 38, 38, 0.05) !important;
  transition: all var(--transition-fast);
}

.btn-sidebar-delete-trial:hover {
  background: rgba(220, 38, 38, 0.14) !important;
  border-color: rgba(220, 38, 38, 0.6) !important;
  color: #b91c1c !important;
}

[data-theme="dark"] .btn-sidebar-delete-trial {
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  background: rgba(239, 68, 68, 0.08) !important;
}

[data-theme="dark"] .btn-sidebar-delete-trial:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(239, 68, 68, 0.7) !important;
  color: #fca5a5 !important;
}

.public-sessions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.session-card-preview {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
}

.session-card-preview:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-green-border);
}

.session-lock-tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

body.rtl-mode .session-lock-tag {
  right: auto;
  left: 1.25rem;
}

.session-num-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-green);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.session-card-preview h4 {
  font-size: 1.2rem;
  color: var(--brand-navy);
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

.session-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.session-countries-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.country-pill {
  font-size: 0.75rem;
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

/* Brand Triad (Connect, Challenge, Create) */
.brand-triad-section {
  padding: 5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
}

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

.triad-item {
  text-align: center;
  padding: 2.5rem 1.75rem;
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  transition: var(--transition-normal);
}

.triad-item:hover {
  transform: translateY(-4px);
  border-color: var(--brand-green);
  box-shadow: var(--shadow-md);
}

.triad-word {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--brand-navy);
  margin-bottom: 0.75rem;
}

.triad-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   PUBLIC SECTION ARCHITECTURE & BAR SWITCHER
   ========================================================================== */
.public-section {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.public-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   HOME UPCOMING SESSION SPOTLIGHT BOX
   ========================================================================== */
.home-upcoming-section {
  padding: 4.5rem 0 3rem;
  background: var(--bg-body);
  position: relative;
}

.home-upcoming-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.home-upcoming-title-wrap {
  max-width: 680px;
}

.home-upcoming-main-title {
  font-size: 2.15rem;
  color: var(--brand-navy);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.home-upcoming-sub {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.home-upcoming-all-btn {
  white-space: nowrap;
}

/* THE SIGNATURE HOME SPOTLIGHT CARD (Strict 4 Colors) */
.home-session-spotlight {
  position: relative;
  background: linear-gradient(135deg, #000000 0%, #151624 50%, #25284E 100%);
  border: 1px solid rgba(158, 89, 172, 0.4);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 16px 45px -10px rgba(72, 81, 186, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  transition: var(--transition-normal);
}

.home-session-spotlight::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(158, 89, 172, 0.28) 0%, rgba(72, 81, 186, 0.12) 50%, transparent 70%);
  pointer-events: none;
}

.home-session-spotlight:hover {
  box-shadow: 0 24px 55px -10px rgba(158, 89, 172, 0.5), 0 0 20px rgba(72, 81, 186, 0.3);
  border-color: rgba(158, 89, 172, 0.6);
}

.home-session-glow-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-gradient);
}

.home-session-card-inner {
  padding: 2.75rem 2.5rem;
  position: relative;
  z-index: 1;
}

.home-session-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.home-session-sphere-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFFFFF;
  backdrop-filter: blur(8px);
}

.home-session-live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9E59AC;
  box-shadow: 0 0 0 0 rgba(158, 89, 172, 0.8);
  animation: pulse-purple 2s infinite;
}

@keyframes pulse-purple {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(158, 89, 172, 0.8); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(158, 89, 172, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(158, 89, 172, 0); }
}

.home-session-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFFFFF;
  background: rgba(72, 81, 186, 0.3);
  border: 1px solid rgba(72, 81, 186, 0.6);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.home-session-main-title {
  font-size: 2.15rem;
  color: #FFFFFF;
  margin-bottom: 0.85rem;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.home-session-description {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 900px;
}

.home-session-motion-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-inline-start: 4px solid var(--color-primary-2);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.6rem;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(6px);
}

.home-motion-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary-2);
  margin-bottom: 0.45rem;
}

.home-motion-text {
  font-size: 1.2rem;
  font-style: italic;
  color: #FFFFFF;
  line-height: 1.55;
  margin: 0;
}

.home-session-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.home-session-detail-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.home-detail-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(72, 81, 186, 0.25);
  border: 1px solid rgba(72, 81, 186, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}

.home-detail-content {
  display: flex;
  flex-direction: column;
}

.home-detail-label {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.home-detail-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFFFFF;
}

.home-session-participants-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.home-participant-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.home-part-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.72);
}

.home-speakers-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.home-part-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  color: #FFFFFF;
}

.home-part-flag {
  display: inline-flex;
  align-items: center;
}

.home-part-name {
  font-weight: 600;
  color: #FFFFFF;
}

.home-part-country {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
}

.home-session-delegations-strip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.home-del-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.home-del-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.home-del-pills .country-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.home-session-actions-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.home-session-btn-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.home-session-access-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.75);
}
.home-session-access-hint svg {
  color: #E6C875;
}

/* Secondary Upcoming Sessions Under Spotlight */
.home-secondary-sessions {
  background: rgba(6, 20, 29, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.75rem 2.5rem;
}

.home-secondary-title {
  color: #E6C875;
  font-size: 1.12rem;
  margin-bottom: 1rem;
}

.home-secondary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.home-secondary-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  transition: var(--transition-normal);
}

.home-secondary-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(230, 200, 117, 0.35);
  transform: translateY(-2px);
}

.home-secondary-badge {
  color: #A7F3D0;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.home-secondary-card h5 {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.home-secondary-meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.home-secondary-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.home-secondary-meta svg {
  color: #E6C875;
}

/* Home Section Feature Cards */
.home-highlights-section {
  padding: 3.5rem 0 5rem;
  background: var(--bg-body);
}

.home-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.highlight-feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.highlight-feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-green-border);
  box-shadow: var(--shadow-md);
}

.feature-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--brand-green-light);
  color: var(--brand-green);
  border: 1px solid var(--brand-green-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition-normal);
}

.highlight-feature-card:hover .feature-icon-badge {
  background: var(--brand-green);
  color: #fff;
  transform: scale(1.05);
}

.highlight-feature-card h3 {
  font-size: 1.35rem;
  color: var(--brand-navy);
  margin-bottom: 0.5rem;
}

.highlight-feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.feature-learn-more {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand-green);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Category Subtopic Pills */
.category-subtopics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding-top: 0.35rem;
}

.subtopic-tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--brand-green-light);
  color: var(--brand-green);
  border: 1px solid var(--brand-green-border);
  line-height: 1.3;
  transition: var(--transition-fast);
}

.subtopic-tag:hover {
  background: var(--brand-green-subtle);
}

/* 6-Stage Process Grid */
.process-grid-6 {
  grid-template-columns: repeat(3, 1fr) !important;
}

/* ==========================================================================
   OUR IMPACT SECTION
   ========================================================================== */
.impact-section {
  padding: 5rem 0;
  background: var(--bg-body);
}

.impact-intro-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
}

.impact-lead-text {
  font-size: 1.12rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.impact-pillars-heading {
  font-size: 1.3rem;
  color: var(--brand-green);
  font-weight: 700;
}

.impact-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.impact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.4rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.impact-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-green-border);
  box-shadow: var(--shadow-md);
}

.impact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--brand-green-light);
  color: var(--brand-green);
  border: 1px solid var(--brand-green-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition-normal);
}

.impact-card:hover .impact-card-icon {
  background: var(--brand-green);
  color: #fff;
  transform: scale(1.05);
}

.journey-heading-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.journey-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(184, 142, 62, 0.2);
  color: var(--accent-gold);
  border: 1px solid rgba(184, 142, 62, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.impact-card-title {
  font-size: 1.12rem;
  color: var(--brand-navy);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.impact-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Member Growth Journey */
.impact-journey-card {
  background: linear-gradient(135deg, #000000 0%, #151624 50%, #25284E 100%);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.25rem;
  color: #fff;
  text-align: center;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(158, 89, 172, 0.35);
}

.impact-journey-card h3 {
  font-size: 1.75rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.journey-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.75rem;
}

.journey-flow-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0 2rem;
}

.journey-step {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
  backdrop-filter: blur(4px);
}

.journey-step-final {
  background: var(--brand-gradient);
  color: #FFFFFF;
  border-color: rgba(158, 89, 172, 0.5);
}

.journey-step-num {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.journey-step-final .journey-step-num {
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
}

.journey-arrow {
  color: var(--accent-gold);
  font-size: 1.15rem;
  font-weight: 700;
  user-select: none;
}

.journey-note {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Takeaways & Creed Grid */
.impact-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.takeaways-card, .creed-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
}

.takeaways-card h3, .creed-card h3 {
  font-size: 1.4rem;
  color: var(--brand-navy);
  margin-bottom: 0.5rem;
}

.takeaways-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.takeaways-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.takeaways-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.45;
}

.takeaway-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-green-light);
  color: var(--brand-green);
  border: 1px solid var(--brand-green-border);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.creed-items {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.25rem 0 1.75rem;
}

.creed-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.5;
}

.creed-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.creed-motto-box {
  padding: 1.25rem 1.5rem;
  background: var(--brand-green-light);
  border-inline-start: 4px solid var(--brand-green);
  border-radius: var(--radius-sm);
  margin-top: auto;
}

.creed-motto {
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 600;
  color: var(--brand-green);
  line-height: 1.45;
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--brand-navy-hover);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h4 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 480px;
}

.footer-col h5 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* ==========================================================================
   PORTAL LAYOUT (MEMBER & COORDINATOR)
   ========================================================================== */

.portal-section {
  width: 100%;
  min-height: calc(100vh - 72px);
}

.portal-wrapper {
  display: flex;
  min-height: calc(100vh - 72px);
  width: 100%;
  background: var(--bg-body);
}

/* Sidebar Navigation - Full Height & No Cutting */
.portal-sidebar {
  width: 265px;
  background: var(--bg-surface);
  border-inline-end: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 0.85rem 0.75rem 1.25rem 0.75rem;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
  box-sizing: border-box;
}

.portal-sidebar::-webkit-scrollbar {
  width: 4px;
}

.portal-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}

.portal-user-card {
  padding: 0.5rem 0.65rem;
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.portal-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-indigo, #4851BA) 0%, var(--brand-purple, #9E59AC) 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  text-transform: uppercase;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(72, 81, 186, 0.25);
}

.portal-user-avatar.avatar-coord {
  background: linear-gradient(135deg, #1e1b4b 0%, #4851BA 100%);
  box-shadow: 0 2px 6px rgba(30, 27, 75, 0.3);
}

.portal-user-avatar.avatar-presenter {
  background: var(--presenter-bg);
  color: var(--presenter-text);
  border: 1px solid var(--presenter-border);
  box-shadow: var(--presenter-shadow);
}

.portal-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.portal-user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.portal-user-name {
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.2;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-user-role {
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  flex-grow: 1;
  margin: 0;
  padding: 0;
}

.sidebar-item-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-body);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  text-align: start;
  transition: var(--transition-fast);
}

.sidebar-item-btn:hover {
  background: var(--bg-subtle);
  color: var(--brand-green);
}

.sidebar-item-btn.active {
  background: var(--brand-green-light);
  color: var(--brand-green);
  font-weight: 600;
}

.portal-sidebar.sidebar-coord .sidebar-item-btn.active {
  background: var(--brand-navy-light);
  color: var(--brand-navy);
}

.sidebar-item-icon {
  font-size: 1rem;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-item-icon svg,
.mobile-tab-icon svg,
.qa-icon svg,
.mv-icon svg,
.category-icon svg,
.kpi-icon svg,
.svg-icon svg {
  display: block;
  stroke: currentColor;
}

.sidebar-item-icon svg { width: 16px; height: 16px; }
.mobile-tab-icon svg { width: 18px; height: 18px; }
.qa-icon svg { width: 26px; height: 26px; }
.mv-icon svg { width: 24px; height: 24px; }
.category-icon svg { width: 22px; height: 22px; }
.kpi-icon svg { width: 26px; height: 26px; }

.sidebar-bottom {
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-shrink: 0;
}

.sidebar-bottom .btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.82rem;
  line-height: 1.25;
  border-radius: var(--radius-md);
  margin: 0;
  text-align: start;
}

.sidebar-menu .btn-be-presenter {
  padding: 0.4rem 0.65rem;
  font-size: 0.82rem;
  gap: 0.45rem;
}

/* Main Portal Content Area */
.portal-content {
  flex-grow: 1;
  padding: 2.25rem 2.5rem;
  overflow-y: auto;
}

.portal-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.portal-page-title h2 {
  font-size: 1.85rem;
  color: var(--brand-navy);
}

.portal-page-title p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.2rem;
}

/* Spotlight Card (Next Session) */
.spotlight-card {
  background: linear-gradient(135deg, #000000 0%, #151624 50%, #25284E 100%);
  border-radius: var(--radius-xl);
  color: #fff;
  padding: 2.25rem 2rem;
  margin-bottom: 2.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(158, 89, 172, 0.35);
  position: relative;
  overflow: hidden;
}

.spotlight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.spotlight-card h3 {
  color: #fff;
  font-size: 1.7rem;
  margin-bottom: 1rem;
  max-width: 820px;
}

.spotlight-meta-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  flex-wrap: wrap;
}

.spotlight-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.spotlight-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Dashboard 2-Column Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.card-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.panel-header h4 {
  font-size: 1.15rem;
  color: var(--brand-navy);
}

/* Quick Access Grid */
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.qa-card {
  padding: 1.15rem;
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.qa-card:hover {
  background: var(--bg-surface);
  border-color: var(--brand-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.qa-icon {
  font-size: 1.5rem;
  color: var(--brand-green);
}

.qa-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-navy);
}

/* Activity Items */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-body);
  font-size: 0.88rem;
}

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--brand-green-light);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

/* ==========================================================================
   PORTAL VIEWS: SESSIONS, WRITINGS, TOPICS, FEEDBACK
   ========================================================================== */

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.search-box {
  flex-grow: 1;
  max-width: 380px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.25rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  font-size: 0.88rem;
}

body.rtl-mode .search-input {
  padding: 0.6rem 2.25rem 0.6rem 1rem;
}

.search-icon-pos {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  color: var(--text-subtle);
}

body.rtl-mode .search-icon-pos {
  left: auto;
  right: 0.75rem;
}

.filter-select {
  padding: 0.6rem 1rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  font-size: 0.88rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Sessions Cards Grid */
.sessions-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.session-full-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.session-full-card:hover {
  border-color: var(--brand-green-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.s-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.session-full-card h4 {
  font-size: 1.25rem;
  color: var(--brand-navy);
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

.s-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
}

.s-speaker-row {
  background: var(--bg-body);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.s-speaker-label {
  font-weight: 600;
  color: var(--brand-navy);
  margin-bottom: 0.35rem;
}

.s-card-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

/* Academic Writings Library (Library view) */
.writings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.writing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.writing-card:hover {
  border-color: var(--brand-green);
  box-shadow: var(--shadow-md);
}

.w-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.writing-card h3 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--brand-navy);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.w-author-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.w-excerpt {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.w-sections-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: var(--bg-body);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}

.w-preview-box h5 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-green);
  margin-bottom: 0.4rem;
}

/* Topic Suggestion & Tracker */
.topic-tracker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.topic-row-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.t-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.t-row-top h4 {
  font-size: 1.18rem;
  color: var(--brand-navy);
  margin-bottom: 0.35rem;
}

.motion-quote {
  background: var(--accent-gold-light);
  border-inline-start: 3px solid var(--accent-gold);
  padding: 0.6rem 0.85rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  font-style: italic;
  color: #5C4314;
}

/* Topic Pipeline Tracker Bar */
.topic-progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.5rem;
  background: var(--bg-body);
  border-radius: var(--radius-md);
  position: relative;
}

.progress-step-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-subtle);
  position: relative;
  z-index: 1;
}

.progress-step-item.done {
  color: var(--brand-green);
}

.progress-step-item.active {
  color: var(--brand-navy);
  font-weight: 700;
}

.step-dot {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--border-medium);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

.progress-step-item.done .step-dot {
  background: var(--brand-green);
}

.progress-step-item.active .step-dot {
  background: var(--brand-navy);
}

/* Forms Styling */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

[data-theme="dark"] .form-label {
  color: #FFFFFF !important;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(14, 77, 60, 0.12);
}

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

.form-helper {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Qualitative Feedback Form */
.rating-pills {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.rating-pill-option {
  flex: 1;
  text-align: center;
  padding: 0.65rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-surface);
  transition: var(--transition-fast);
}

.rating-pill-option.selected {
  background: var(--brand-green-light);
  border-color: var(--brand-green);
  color: var(--brand-green);
}

/* Community Directory Grid */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.member-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.member-card:hover {
  border-color: var(--brand-green-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.m-card-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.m-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-indigo, #4851BA) 0%, var(--brand-purple, #9E59AC) 100%);
  color: #FFFFFF;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  text-transform: uppercase;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(72, 81, 186, 0.2);
}

.m-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.m-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--brand-navy);
}

.m-country {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.m-bio {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.m-interests-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
}

.interest-tag {
  font-size: 0.72rem;
  background: var(--bg-subtle);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

/* ==========================================================================
   COORDINATOR PORTAL SPECIFICS
   ========================================================================== */

/* Coordinator Metrics Bar */
.coord-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.kpi-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--brand-navy-light);
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.kpi-num {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.kpi-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Applications Table / Cards */
.application-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: var(--transition-fast);
}

.application-item:hover {
  border-color: var(--brand-navy);
}

.app-meta {
  display: flex;
  flex-direction: column;
}

.app-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--brand-navy);
}

.app-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.app-motivation {
  font-size: 0.88rem;
  color: var(--text-body);
  max-width: 450px;
  margin-top: 0.35rem;
}

.app-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* ==========================================================================
   MODALS & OVERLAYS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 29, 44, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.98);
  transition: var(--transition-normal);
  padding: 2.25rem;
  position: relative;
}

.modal-dialog.modal-wide {
  max-width: 860px;
}

.modal-backdrop.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--bg-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

body.rtl-mode .modal-close-btn {
  right: auto;
  left: 1.25rem;
}

.modal-close-btn:hover {
  background: var(--border-medium);
}

.modal-title {
  font-size: 1.65rem;
  color: var(--brand-navy);
  margin-bottom: 0.4rem;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

/* Quick Role Switcher Box inside Login Modal */
.demo-role-switcher {
  background: var(--bg-body);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.demo-role-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-navy);
  margin-bottom: 0.65rem;
}

.demo-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

/* Mobile Bottom Navigation Bar */
.mobile-tab-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  z-index: 1000;
  padding: 0 0.5rem;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.4rem;
  cursor: pointer;
}

.mobile-tab-btn.active {
  color: var(--brand-green);
  font-weight: 700;
}

.mobile-tab-icon {
  font-size: 1.15rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

body.rtl-mode .toast-container {
  right: auto;
  left: 2rem;
}

.toast {
  background: var(--brand-gradient);
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: 0 10px 25px -4px rgba(72, 81, 186, 0.45), 0 6px 12px -2px rgba(158, 89, 172, 0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.toast-success {
  background: var(--brand-gradient);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 28px -4px rgba(72, 81, 186, 0.5), 0 6px 14px -2px rgba(158, 89, 172, 0.35);
}

.toast.toast-error {
  background: linear-gradient(135deg, #991B1B 0%, #7F1D1D 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px -4px rgba(153, 27, 27, 0.45);
}

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

/* ==========================================================================
   PHASE 2 DESIGN SYSTEM: Search, Notifications, Calendar, Chapters, PR Studio, Analytics
   ========================================================================== */

/* Notification Bell & Unread Badge */
.header-notif-btn {
  position: relative;
  width: var(--header-btn-height, 32px);
  height: var(--header-btn-height, 32px);
  padding: 0;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-body);
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.header-notif-btn:hover {
  background: var(--brand-green-light);
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.notif-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #B91C1C;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  height: 16px;
  min-width: 16px;
  padding: 0 3px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-surface);
}

/* Global Search Modal */
.search-modal-box {
  background: var(--bg-surface);
  width: 100%;
  max-width: 640px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  animation: modalScale 0.2s ease forwards;
}

.search-input-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface);
}

.search-input-header input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.1rem;
  color: var(--text-main);
  background: transparent;
  font-family: var(--font-sans);
}

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

.search-filter-pills {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  overflow-x: hidden;
}

.search-filter-pill {
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.search-filter-pill:hover,
.search-filter-pill.active {
  background: var(--brand-green);
  color: #fff;
  border-color: var(--brand-green);
}

.search-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.search-result-card {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.search-result-card:hover {
  background: var(--brand-green-light);
  border-color: var(--brand-green-border);
}

.search-result-info {
  flex: 1;
}

.search-result-title {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.search-result-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.search-result-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-body);
  border: 1px solid var(--border-medium);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* In-App Notifications Modal & Cards */
.notif-modal-box {
  background: var(--bg-surface);
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border-medium);
}

.notif-header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.notif-cards-list {
  max-height: 420px;
  overflow-y: auto;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.notif-card {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.notif-card.unread {
  background: var(--brand-green-light);
  border-color: var(--brand-green-border);
}

.notif-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.notif-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-green);
}

.notif-card.unread .notif-icon-wrap {
  background: #fff;
  border: 1px solid var(--brand-green-border);
}

.notif-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.notif-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-main);
}

.notif-time-tag {
  font-size: 0.72rem;
  color: var(--text-subtle);
  white-space: nowrap;
}

.notif-body {
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.45;
}

.unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-green);
  flex-shrink: 0;
  margin-top: 6px;
}

/* Timezone Converter & Calendar System */
.tz-converter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.tz-pills-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tz-pill {
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tz-pill:hover,
.tz-pill.active {
  background: var(--brand-navy);
  color: #fff;
  border-color: var(--brand-navy);
}

.calendar-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.calendar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  transition: var(--transition-fast);
}

.calendar-card:hover {
  border-color: var(--brand-green-border);
  box-shadow: var(--shadow-md);
}

.calendar-date-block {
  text-align: center;
  background: var(--brand-green-light);
  border: 1px solid var(--brand-green-border);
  border-radius: var(--radius-md);
  padding: 1rem 0.75rem;
}

.calendar-date-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand-green);
  line-height: 1;
}

.calendar-date-month {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--brand-green);
  margin-top: 0.25rem;
}

.calendar-time-converted {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-weight: 500;
}

.calendar-meta-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.calendar-motion-quote {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-body);
  margin-bottom: 0.65rem;
  border-inline-start: 3px solid var(--brand-green);
  padding-inline-start: 0.75rem;
}

.calendar-speakers-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.calendar-actions-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 170px;
}

/* Country Representatives Hub */
.chapters-hero-banner {
  background: linear-gradient(135deg, var(--brand-navy) 0%, #15394B 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
}

.reps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.rep-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rep-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-green-border);
  box-shadow: var(--shadow-md);
}

.rep-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.rep-flag-box {
  font-size: 2rem;
  line-height: 1;
}

.rep-name {
  font-weight: 600;
  color: var(--text-main);
  font-size: 1rem;
}

.rep-chapter-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.rep-bio {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.rep-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Media & PR Content Studio */
.media-kits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.media-kit-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.media-kit-type-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--brand-navy-light);
  color: var(--brand-navy);
  margin-bottom: 0.6rem;
}

.media-kit-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.media-copy-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.5;
  white-space: pre-wrap;
  max-height: 160px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

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

/* Delegate Participation Analytics & Honor Badges */
.analytics-hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.analytics-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.analytics-stat-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--brand-green);
  line-height: 1.1;
}

.analytics-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-weight: 500;
}

.badges-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.badge-honor-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.badge-honor-card.locked {
  opacity: 0.65;
  filter: grayscale(1);
}

.badge-icon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.badge-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--brand-green-light);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.badge-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.badge-progress-wrap {
  margin-top: auto;
}

.badge-progress-bar {
  height: 6px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.badge-progress-fill {
  height: 100%;
  background: var(--brand-green);
  border-radius: var(--radius-full);
}

.badge-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PHASE 3 DESIGN SYSTEM: Live Debate Chamber, Speech Timer, POI, Certificate, Print
   ========================================================================== */

/* Upvoting on Topics */
.topic-upvote-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-body);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.topic-upvote-btn:hover,
.topic-upvote-btn.has-voted {
  background: var(--brand-green-light);
  border-color: var(--brand-green);
  color: var(--brand-green);
}

/* Live Debate Chamber & Speech Timer */
.debate-chamber-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
}

.timer-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-digits-display {
  font-family: 'Inter', monospace;
  font-size: 5rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1;
  margin: 1.25rem 0;
  letter-spacing: -0.04em;
}

.poi-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
}

.poi-banner.protected {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.poi-banner.open {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  animation: pulseGreen 1.5s infinite;
}

.poi-banner.overtime {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.timer-actions-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Floor POI Queue */
.poi-queue-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.poi-standing-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 0.6rem;
  animation: toastIn 0.25s ease;
}

/* Speaker Matrix Grid */
.speakers-matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.matrix-bench-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.bench-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bench-speaker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.82rem;
}

/* Official Certificate Modal & Card */
.certificate-preview-box {
  background: #FFFFFF;
  border: 12px double #4851BA;
  border-radius: 4px;
  padding: 3rem 2.5rem;
  position: relative;
  box-shadow: var(--shadow-xl);
  text-align: center;
  color: var(--brand-navy);
  margin: 1rem 0;
}

.cert-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 2px solid #9E59AC;
}
.cert-tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.cert-tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.cert-bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.cert-br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.cert-header-seal {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  border: 3px solid #9E59AC;
  margin-bottom: 1rem;
}

.cert-main-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.cert-sub-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #9E59AC;
  margin-bottom: 1.5rem;
}

.cert-recipient {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: #4851BA;
  border-bottom: 2px solid #E5ECE9;
  display: inline-block;
  padding: 0 2rem 0.35rem;
  margin: 0.5rem 0 1rem;
}

.cert-body-p {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 650px;
  margin: 0 auto 1.5rem;
  color: #2C3E3A;
}

.cert-signatures-row {
  display: flex;
  justify-content: space-around;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #CAD9D3;
}

.cert-sig-item {
  text-align: center;
}

.cert-sig-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-navy);
}

/* ==========================================================================
   DEDICATED AUTH VIEWS (MEMBER LOGIN & ADMIN LOGIN FULL-PAGE)
   ========================================================================== */

.auth-page-view {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: var(--bg-body);
}

.auth-page-admin-bg {
  background: radial-gradient(circle at top, rgba(14, 43, 61, 0.04) 0%, var(--bg-body) 70%);
}

.auth-page-card {
  width: 100%;
  max-width: 490px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px -8px rgba(14, 43, 61, 0.1), 0 4px 12px rgba(0, 0, 0, 0.04);
  padding: 2.75rem 2.5rem;
  position: relative;
  transition: var(--transition-normal);
}

.auth-card-member {
  border-top: 4px solid var(--brand-green);
}

.auth-card-admin {
  border-top: 4px solid var(--brand-navy);
}

.auth-card-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--brand-green-light);
  color: var(--brand-green);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-badge-admin {
  background: rgba(14, 43, 61, 0.08);
  color: var(--brand-navy);
}

.auth-page-title {
  font-size: 1.85rem;
  color: var(--brand-navy);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.auth-page-arabic {
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  color: var(--brand-green);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.auth-page-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.auth-demo-box {
  background: var(--bg-body);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.auth-demo-box-admin {
  border-color: rgba(14, 43, 61, 0.25);
  background: rgba(14, 43, 61, 0.03);
}

.auth-demo-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.55rem;
}

.auth-demo-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.auth-demo-btn {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
}

.auth-forgot-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: underline;
}

.auth-card-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.25rem 0;
  color: var(--border-medium);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-light);
}

.auth-divider span {
  padding: 0 0.75rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.auth-switch-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.auth-nav-link {
  font-size: 0.82rem;
  color: var(--brand-navy);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}

.auth-nav-link:hover {
  color: var(--brand-green);
  text-decoration: underline;
}

.clearance-notice {
  font-size: 0.78rem;
  color: #B91C1C;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

/* Print Styles */
@media print {
  body * {
    visibility: hidden;
  }
  .print-only-target, .print-only-target * {
    visibility: visible;
  }
  .print-only-target {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border-width: 6px;
  }
  .modal-close-btn, .btn, .header-inner, .site-header, .portal-sidebar, .mobile-tab-bar {
    display: none !important;
  }
}

/* ==========================================================================
   Comprehensive Device Responsiveness (Desktop, Tablet, Mobile)
   ========================================================================== */

/* Mobile Hamburger Toggle Button */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  padding: 0;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.mobile-menu-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--brand-green);
}

.mobile-menu-btn svg {
  width: 20px;
  height: 20px;
}

/* Mobile Nav Drawer Backdrop */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 29, 44, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Nav Drawer (Off-Canvas Sheet) */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(85vw, 320px);
  max-width: 100vw;
  background: var(--bg-surface);
  z-index: 2001;
  box-shadow: -6px 0 25px rgba(9, 29, 44, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  visibility: hidden;
  pointer-events: none;
}

body.rtl-mode .mobile-nav-drawer {
  right: auto;
  left: 0;
  transform: translateX(-100%);
  box-shadow: 6px 0 25px rgba(9, 29, 44, 0.15);
}

.mobile-nav-drawer.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.mobile-drawer-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--brand-green-light);
  color: var(--brand-green);
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

/* Bottom Tab Bar for Mobile Portals */
.mobile-tab-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  height: 58px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  z-index: 1000;
  padding: 0 0.15rem;
  padding-bottom: env(safe-area-inset-bottom, 0);
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -3px 12px rgba(9, 29, 44, 0.08);
  box-sizing: border-box;
  overflow: hidden;
}

.mobile-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.35rem 0.12rem;
  cursor: pointer;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  box-sizing: border-box;
  overflow: hidden;
}

.mobile-tab-btn span:last-child {
  font-size: 0.62rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
  text-align: center;
}

.mobile-tab-btn:hover {
  color: var(--brand-green);
}

.mobile-tab-btn.active {
  color: var(--brand-green);
  font-weight: 700;
  background: var(--brand-green-light);
}

.mobile-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

/* 1. Large Tablets & Small Laptops (<= 1150px) */
@media (max-width: 1150px) {
  :root {
    --header-btn-height: 30px;
  }
  .header-inner { gap: 0.5rem; }
  .main-nav { gap: 0.65rem; }
  .nav-link { font-size: 0.78rem; padding: 0.35rem 0.6rem; }
  .header-actions { gap: 0.35rem; }
  .header-control-btn { padding: 0 0.55rem; font-size: 0.75rem; }
  .btn-lang { padding: 0 0.55rem; font-size: 0.75rem; }
  #themeToggleIcon svg { width: 16px; height: 16px; }
}

/* 2. Standard Tablets / iPads in Portrait & Small Screens (<= 992px) */
@media (max-width: 992px) {
  .brand-sub { display: none !important; }
  .main-nav { display: none !important; }
  .mobile-menu-btn { display: inline-flex !important; }
  #headerNotifBtn { display: none !important; }
  
  .categories-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem; }
  .public-sessions-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem; }
  .process-grid, .process-grid-6 { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem; }
  .reps-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem; }
  .community-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem; }
  .home-highlights-grid { grid-template-columns: 1fr !important; gap: 1rem; }
  .impact-pillars-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem; }
  .impact-outcomes-grid { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .dashboard-grid { grid-template-columns: 1fr !important; }
  .coord-kpi-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .analytics-hero-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .badges-showcase-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* 3. Phablets & Mobile Phones (<= 768px) */
@media (max-width: 768px) {
  html {
    font-size: 14.5px !important;
  }
  #authActionsContainer { display: none !important; }
  #headerSearchBtn { display: none !important; }
  .header-inner { padding: 0 0.65rem; height: 48px; gap: 0.3rem; }
  .search-btn-label { display: none !important; }
  .mobile-menu-btn { display: inline-flex !important; order: 10; }
  .header-actions { gap: 0.3rem; flex-shrink: 1; }
  .container, .container-wide { padding-left: 0.85rem !important; padding-right: 0.85rem !important; }
  .brand-logo-img { height: 30px !important; max-width: 140px !important; }

  .hero-section { padding: 1.5rem 0 1.25rem; }
  .hero-grid { grid-template-columns: 1fr !important; gap: 1.25rem; }
  .hero-content { align-items: center; text-align: center; }
  .hero-eyebrow {
    font-size: 0.64rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    margin-bottom: 0.45rem !important;
    justify-content: center;
  }
  .hero-title { font-size: clamp(1.3rem, 4.5vw, 1.62rem) !important; line-height: 1.24; text-align: center; }
  .hero-subtitle-lead { font-size: 0.86rem; text-align: center; line-height: 1.45; }
  .hero-subtext { font-size: 0.78rem; margin-bottom: 1rem; max-width: 100%; text-align: center; margin-inline: auto; line-height: 1.45; }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 1.25rem;
    gap: 0.55rem;
    justify-content: center;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1.15rem;
    font-size: 0.88rem;
  }

  .hero-meta-grid {
    margin: 0 auto !important;
    max-width: 440px !important;
    width: 100% !important;
    justify-items: center !important;
    justify-content: center !important;
  }
  .hero-meta-item {
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  /* Photo Collage scaled gracefully for mobile */
  .hero-collage-wrap { perspective: none; }
  .hero-collage-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 460px;
    margin: 1rem auto 0;
    gap: 0.75rem;
    animation: none;
  }
  .collage-main-card,
  .collage-stack-col {
    height: 270px;
  }
  .collage-main-card {
    border-radius: 20px;
    border-width: 2px;
  }
  .collage-stack-card {
    border-radius: 16px;
    border-width: 2px;
  }
  .collage-badge-tag {
    font-size: 0.62rem;
    padding: 0.22rem 0.38rem;
    bottom: 8px;
    inset-inline-start: 8px;
    inset-inline-end: 8px;
    gap: 0.22rem;
  }
  .collage-badge-tag svg {
    width: 12px;
    height: 12px;
  }
  .hero-sunburst-accent {
    width: 50px;
    height: 50px;
    top: -12px;
    inset-inline-start: -12px;
  }

  /* Floating Live Session Countdown on mobile */
  .floating-countdown-strip {
    margin-top: 1.25rem;
    margin-bottom: 1.75rem;
  }
  .floating-countdown-card {
    padding: 1.25rem 1rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.15rem;
    border-radius: var(--radius-lg);
  }
  .countdown-label-wrap {
    min-width: 0;
    align-items: center;
    text-align: center;
  }
  .countdown-topic-title {
    font-size: 1.05rem;
    text-align: center;
  }
  .countdown-boxes-group {
    width: 100%;
    justify-content: center;
    gap: 0.35rem;
  }
  .countdown-box {
    min-width: 52px;
    padding: 0.35rem 0.45rem;
  }
  .countdown-digit {
    font-size: 1.35rem;
  }
  .countdown-unit {
    font-size: 0.65rem;
  }
  .floating-countdown-card .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* Continuous Silky Marquee Ribbon on mobile */
  .marquee-ribbon-wrap {
    padding: 0.65rem 0;
  }
  .marquee-item {
    font-size: 0.78rem;
    padding: 0 0.85rem;
    gap: 0.45rem;
  }
  .marquee-item svg {
    width: 12px;
    height: 12px;
  }

  /* Interactive Debate Motion Poll Card */
  .home-motion-poll-card {
    padding: 1.25rem 1rem;
    margin: 1.75rem 0;
    border-radius: var(--radius-lg);
  }
  .poll-motion-text {
    font-size: 1.1rem;
  }
  .poll-vote-actions {
    flex-direction: column;
    gap: 0.65rem;
  }
  .poll-vote-btn {
    width: 100%;
    min-width: 0;
    padding: 0.65rem 1rem;
  }

  /* Portal page header on mobile */
  .portal-page-title h2 { font-size: 1.15rem; }
  .portal-page-title p { font-size: 0.78rem; }
  .portal-page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
  .portal-page-header .header-actions-group,
  .portal-page-header .portal-header-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .portal-page-header .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  /* KPI cards compact on mobile */
  .coord-kpi-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.6rem; }
  .kpi-card { padding: 0.85rem 0.7rem; gap: 0.6rem; min-width: 0; overflow: hidden; }
  .kpi-icon { width: 36px; height: 36px; flex-shrink: 0; }
  .kpi-info { min-width: 0; overflow: hidden; }
  .kpi-info h3 { font-size: 1.25rem; }
  .kpi-info p { font-size: 0.74rem; white-space: normal; }
  
  /* Key Metrics Strip on mobile */
  .metrics-strip { padding: 1rem 0; }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .metric-item {
    border-inline-end: none;
    padding: 0.65rem 0.4rem;
    text-align: center;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
  }
  .metric-number-animated { font-size: 1.45rem; }
  .metric-item-bar.active { width: 28px; }
  .metric-number { font-size: 1.35rem; }
  .metric-label { font-size: 0.7rem; }
  
  /* Universal Single-column stacked layouts on mobile */
  .process-grid, .process-grid-6,
  .categories-grid,
  .public-sessions-grid,
  .home-highlights-grid,
  .impact-pillars-grid,
  .impact-outcomes-grid,
  .reps-grid,
  .community-grid,
  .mission-vision-grid,
  .triad-grid,
  .footer-top,
  .media-kits-grid,
  .calendar-card,
  .topic-bank-grid,
  .dashboard-grid,
  .quick-access-grid,
  .sessions-card-grid,
  .writings-grid,
  .topic-tracker-grid,
  .form-grid-2,
  .form-grid-3,
  .w-sections-preview,
  .debate-chamber-grid,
  .speakers-matrix-grid,
  .home-session-details-grid,
  .analytics-hero-grid,
  .badges-showcase-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Section heading sizes on mobile */
  .section-title { font-size: 1.28rem; }
  .section-desc { font-size: 0.8rem; }
  .section-header { margin-bottom: 1.25rem; }
  .about-section, .process-section, .topics-section,
  .sessions-public-section, .brand-triad-section,
  .impact-section, .home-upcoming-section, .home-highlights-section {
    padding: 1.75rem 0;
  }
  .home-upcoming-main-title { font-size: 1.22rem; }
  .home-upcoming-sub { font-size: 0.78rem; }
  .home-session-main-title { font-size: 1.22rem; }
  .home-session-description { font-size: 0.82rem; }
  .home-session-card-inner { padding: 1.15rem 0.95rem; }
  .home-secondary-sessions { padding: 0.95rem 0.85rem; }
  .about-card-hero h3 { font-size: 1.2rem; }
  .about-card-hero p { font-size: 0.82rem; }
  .about-card-hero { padding: 1.15rem 0.95rem; margin-bottom: 1.25rem; }
  .members-banner h3 { font-size: 1.15rem; }
  .members-banner p { font-size: 0.82rem; }
  .members-banner { padding: 1.25rem 1rem; margin-bottom: 1.25rem; }
  .triad-word { font-size: 1.25rem; }
  .triad-desc { font-size: 0.8rem; }
  .triad-item { padding: 1.1rem 0.9rem; }
  .highlight-feature-card h3 { font-size: 1rem; }
  .highlight-feature-card p { font-size: 0.78rem; }
  .highlight-feature-card { padding: 1rem 0.85rem; }
  .mv-card h4 { font-size: 1rem; }
  .mv-card p { font-size: 0.82rem; }
  .mv-card { padding: 1.1rem 0.9rem; }
  .impact-journey-card h3 { font-size: 1.15rem; }
  .journey-subtitle { font-size: 0.8rem; }
  .takeaways-card h3, .creed-card h3 { font-size: 1.05rem; }
  .footer-top { gap: 1.15rem; }
  .footer-brand h4 { font-size: 1rem; }
  .footer-col h5 { font-size: 0.82rem; }

  /* Mobile Toast Positioning */
  .toast-container {
    bottom: 4.8rem !important;
    left: 1rem !important;
    right: 1rem !important;
    align-items: center !important;
  }
  .toast {
    max-width: 100% !important;
    padding: 0.72rem 1.15rem !important;
    font-size: 0.84rem !important;
    justify-content: center !important;
    text-align: center !important;
  }
  
  /* Portals on mobile devices */
  .portal-wrapper {
    flex-direction: column !important;
    max-width: 100% !important;
    overflow-x: clip !important;
  }
  .portal-sidebar {
    display: none !important;
  }
  .portal-content {
    padding: 1rem 0.85rem 5.8rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: clip !important;
  }
  .portal-subview {
    max-width: 100% !important;
    overflow-x: clip !important;
  }

  /* Horizontally scrollable touch-friendly mobile bottom tab bar */
  .mobile-tab-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: 60px !important;
    background: var(--bg-surface) !important;
    border-top: 1px solid var(--border-light) !important;
    z-index: 1000 !important;
    padding: 0 0.5rem !important;
    padding-bottom: env(safe-area-inset-bottom, 0) !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.25rem !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    box-shadow: 0 -3px 12px rgba(9, 29, 44, 0.08) !important;
    box-sizing: border-box !important;
  }
  .mobile-tab-bar::-webkit-scrollbar {
    display: none !important;
  }
  .mobile-tab-btn {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 62px !important;
    max-width: 82px !important;
    height: 52px !important;
    padding: 0.35rem 0.25rem !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-muted) !important;
    box-sizing: border-box !important;
    background: transparent !important;
  }
  .mobile-tab-btn.active {
    color: var(--brand-green) !important;
    background: var(--brand-green-light) !important;
    font-weight: 700 !important;
  }
  .mobile-tab-btn span:last-child {
    font-size: 0.62rem !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    text-align: center !important;
  }
  .mobile-tab-icon svg {
    width: 17px !important;
    height: 17px !important;
  }

  /* Modals on Mobile */
  .modal-dialog {
    width: 95vw !important;
    max-width: 95vw !important;
    box-sizing: border-box !important;
    max-height: 88vh !important;
    padding: 1.25rem 1rem !important;
    margin: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .modal-footer {
    flex-direction: column-reverse !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }
  .modal-footer .btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .demo-buttons-grid { grid-template-columns: 1fr !important; }
  .auth-demo-grid { grid-template-columns: 1fr !important; }
  .auth-page-card { width: min(95vw, 440px) !important; max-width: 95vw !important; box-sizing: border-box !important; padding: 1.5rem 1rem !important; }
  
  /* Form Controls iOS Auto-zoom prevention (Requires min 16px font-size) */
  .form-control,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Search Modal */
  .search-modal-box {
    width: min(95vw, 580px) !important;
    max-width: 95vw !important;
    box-sizing: border-box !important;
    max-height: 85vh !important;
  }
  .search-filter-pills {
    flex-wrap: wrap !important;
    overflow-x: hidden !important;
    white-space: normal !important;
    padding: 0.5rem 0.75rem !important;
    gap: 0.35rem !important;
  }
  
  /* Applications & Requests Mobile Sizing */
  .application-item {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 1rem 0.85rem !important;
    gap: 0.75rem !important;
  }
  .app-meta {
    width: 100% !important;
    min-width: 0 !important;
  }
  .app-actions {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }
  .app-actions .btn {
    flex: 1 1 100% !important;
    width: 100% !important;
    justify-content: center !important;
  }
  
  /* Filter Bars on Mobile */
  .filter-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
    width: 100% !important;
  }
  .search-box, .filter-select {
    max-width: 100% !important;
    width: 100% !important;
  }
  .filter-pills, .status-filter-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
  }

  /* Calendar Subview on Mobile */
  .calendar-card {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding: 1.15rem 1rem !important;
  }
  .calendar-date-block {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    padding: 0.65rem 1rem !important;
  }
  .calendar-date-num {
    font-size: 1.55rem !important;
    line-height: 1 !important;
  }
  .calendar-date-month {
    font-size: 0.85rem !important;
    margin-top: 0 !important;
  }
  .calendar-time-converted {
    font-size: 0.76rem !important;
    margin-top: 0 !important;
    padding-inline-start: 0.5rem !important;
    border-inline-start: 1px solid rgba(0, 0, 0, 0.15) !important;
  }
  .calendar-actions-col {
    width: 100% !important;
    min-width: 0 !important;
  }
  .calendar-actions-col .btn {
    width: 100% !important;
    justify-content: center !important;
  }
  #tzSelectorPills {
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
  }
  .tz-pill {
    flex: 1 1 auto !important;
    font-size: 0.74rem !important;
    padding: 0.35rem 0.55rem !important;
    justify-content: center !important;
  }

  /* Official Certificate on Mobile */
  .certificate-preview-box {
    padding: 1.5rem 0.85rem !important;
    border-width: 5px !important;
    margin: 0.5rem 0 !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .cert-corner {
    width: 18px !important;
    height: 18px !important;
  }
  .cert-header-seal {
    width: 48px !important;
    height: 48px !important;
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
  }
  .cert-main-title {
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
  }
  .cert-sub-title {
    font-size: 0.62rem !important;
    letter-spacing: 0.08em !important;
    margin-bottom: 0.75rem !important;
  }
  .cert-recipient {
    font-size: 1.35rem !important;
    padding: 0 0.5rem 0.25rem !important;
    word-break: break-word !important;
    margin: 0.25rem 0 0.75rem !important;
    display: block !important;
  }
  .cert-body-p {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
  }
  .cert-signatures-row {
    flex-direction: column !important;
    gap: 1rem !important;
    margin-top: 1.25rem !important;
    padding-top: 0.85rem !important;
  }

  /* Speech Timer & Live Arena on Mobile */
  .timer-digits-display {
    font-size: clamp(2.6rem, 14vw, 3.8rem) !important;
    margin: 0.75rem 0 !important;
  }
  .timer-box {
    padding: 1.25rem 0.85rem !important;
  }
  .timer-actions-row {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    width: 100% !important;
    justify-content: center !important;
  }
  .timer-actions-row .btn {
    flex: 1 1 auto !important;
    justify-content: center !important;
  }
  .poi-standing-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }
  .poi-standing-item .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Pipeline Tracker on Mobile */
  .topic-progress-steps {
    flex-wrap: wrap !important;
    gap: 0.45rem 0.65rem !important;
    padding: 0.65rem !important;
    justify-content: flex-start !important;
  }
  .progress-step-item {
    font-size: 0.7rem !important;
    gap: 0.25rem !important;
  }

  /* Profile Card Header on Mobile */
  .profile-card-header {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1rem !important;
  }
  .profile-avatar-wrap {
    margin: 0 auto !important;
  }
}

/* 4. Small Mobile Phones (<= 480px) */
@media (max-width: 480px) {
  html {
    font-size: 13.5px !important;
  }
  :root {
    --header-btn-height: 26px;
  }
  .container, .container-wide { padding-left: 0.65rem !important; padding-right: 0.65rem !important; }
  .brand-logo-img { height: 26px !important; max-width: 120px !important; }
  .brand-title { font-size: 0.78rem; }
  .brand-icon-wrapper { width: 26px; height: 26px; font-size: 0.7rem; }
  .btn-lang { padding: 0 0.28rem; font-size: 0.66rem; gap: 0.15rem; }
  .header-control-btn { padding: 0 0.28rem; font-size: 0.66rem; }
  #themeToggleIcon svg { width: 14px; height: 14px; }
  .header-inner { gap: 0.2rem; height: 44px; padding: 0 0.45rem; }
  .header-actions { gap: 0.2rem; flex-shrink: 0; }
  .mobile-menu-btn { width: 26px; height: 26px; }

  /* Hero Section Small Mobile */
  .hero-section { padding: 1.25rem 0 0.9rem; }
  .hero-eyebrow {
    font-size: 0.58rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.035em !important;
    margin-bottom: 0.35rem !important;
  }
  .hero-title { font-size: 1.22rem !important; line-height: 1.22; }
  .hero-subtitle-lead { font-size: 0.8rem; }
  .hero-subtext { font-size: 0.74rem; margin-bottom: 0.85rem; }
  .hero-meta-grid {
    grid-template-columns: 1fr !important;
    gap: 0.35rem !important;
    justify-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    width: 100% !important;
  }
  .hero-meta-item {
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  /* Photo Collage on small phones */
  .hero-collage-grid {
    max-width: 100%;
    gap: 0.5rem;
  }
  .collage-main-card,
  .collage-stack-col {
    height: 190px;
  }
  .collage-main-card {
    border-radius: 12px;
    border-width: 2px;
  }
  .collage-stack-card {
    border-radius: 10px;
    border-width: 2px;
  }
  .collage-badge-tag {
    font-size: 0.52rem;
    padding: 0.16rem 0.3rem;
    bottom: 5px;
    inset-inline-start: 5px;
    inset-inline-end: 5px;
    gap: 0.18rem;
  }
  .collage-badge-tag svg {
    width: 9px;
    height: 9px;
  }

  /* Countdown on small phones */
  .floating-countdown-card {
    padding: 0.85rem 0.65rem;
  }
  .countdown-boxes-group {
    gap: 0.22rem;
  }
  .countdown-box {
    min-width: 44px;
    padding: 0.25rem 0.3rem;
  }
  .countdown-digit {
    font-size: 1.12rem;
  }
  .countdown-unit {
    font-size: 0.56rem;
  }
  .countdown-sep {
    font-size: 1rem;
  }

  .metric-number-animated { font-size: 1.35rem; }
  
  /* Mobile Tab Bar compact */
  .mobile-tab-bar { height: 52px; padding: 0 0.08rem; }
  .mobile-tab-btn { padding: 0.22rem 0.08rem; gap: 0.1rem; }
  .mobile-tab-btn span:last-child { font-size: 0.56rem; }
  .mobile-tab-icon svg { width: 15px; height: 15px; }

  /* KPI cards */
  .coord-kpi-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.45rem; }
  .kpi-card { padding: 0.75rem 0.55rem; gap: 0.45rem; min-width: 0; overflow: hidden; }
  .kpi-icon { width: 30px; height: 30px; flex-shrink: 0; }
  .kpi-info { min-width: 0; overflow: hidden; }
  .kpi-info h3 { font-size: 1.15rem; }
  .kpi-info p { font-size: 0.7rem; }
  
  /* Portal headers & action buttons */
  .portal-page-header { flex-wrap: wrap; gap: 0.35rem; }
  .portal-page-header .header-actions-group { flex-wrap: wrap; gap: 0.3rem; width: 100%; }
  .portal-page-header .btn { font-size: 0.7rem; padding: 0.3rem 0.5rem; flex: 1 1 auto; justify-content: center; }
  .portal-content { padding: 0.5rem 0.4rem 4.8rem !important; }
  
  .category-card { padding: 0.75rem 0.65rem !important; }
  .session-card-preview { padding: 0.75rem 0.65rem !important; }
  .rep-card { padding: 0.75rem 0.65rem !important; }
  .about-card-hero { padding: 0.85rem 0.65rem !important; }
  .members-banner { padding: 0.85rem 0.65rem !important; }
  .impact-card { padding: 0.85rem 0.75rem !important; }
  .impact-intro-card { padding: 0.95rem 0.75rem !important; }
  .impact-journey-card { padding: 1rem 0.75rem !important; }
  .takeaways-card, .creed-card { padding: 0.95rem 0.75rem !important; }
  .journey-step { font-size: 0.7rem; padding: 0.25rem 0.45rem; }
  .journey-arrow { font-size: 0.8rem; }
  .modal-dialog { padding: 1rem 0.85rem !important; }
}

/* 5. Compact Small Mobiles (<= 360px) */
@media (max-width: 360px) {
  .brand-logo-img { height: 22px !important; max-width: 100px !important; }
  .coord-kpi-grid { grid-template-columns: 1fr !important; }
  .brand-title { font-size: 0.72rem; }
  .brand-icon-wrapper { width: 24px; height: 24px; font-size: 0.66rem; }
  .btn-lang { padding: 0.12rem 0.2rem; font-size: 0.62rem; }
  .mobile-menu-btn { width: 26px; height: 26px; }
  .mobile-tab-btn span:last-child { font-size: 0.52rem; }
  .mobile-tab-icon svg { width: 14px; height: 14px; }
  .metrics-grid { grid-template-columns: 1fr !important; }

  /* Extreme compact countdown */
  .countdown-box { min-width: 42px; padding: 0.25rem 0.2rem; }
  .countdown-digit { font-size: 1.05rem; }
  .countdown-sep { font-size: 0.9rem; }

  /* Extreme compact collage */
  .collage-main-card,
  .collage-stack-col {
    height: 175px;
  }
  .collage-badge-tag {
    font-size: 0.48rem;
    padding: 0.15rem 0.25rem;
  }
  .collage-badge-tag svg {
    width: 8px;
    height: 8px;
  }
}

/* ==========================================================================
   ACADEMIC TOPIC BANK STYLES
   ========================================================================== */
.topic-bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.35rem;
  margin-top: 1.25rem;
}

.topic-bank-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.topic-bank-card:hover {
  border-color: rgba(184, 142, 62, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(9, 29, 44, 0.09);
}

.topic-bank-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.topic-bank-badges {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.badge-bank-cat {
  background: rgba(14, 77, 60, 0.08);
  color: var(--brand-green);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.badge-bank-custom {
  background: rgba(184, 142, 62, 0.12);
  color: #92400E;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 142, 62, 0.3);
}

.badge-bank-format {
  background: rgba(9, 29, 44, 0.06);
  color: var(--brand-navy);
  font-size: 0.74rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.topic-bank-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.4;
  margin-bottom: 0.35rem;
}

.topic-bank-card-title-ar {
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.65rem;
  direction: rtl;
  text-align: right;
}

body.rtl-mode .topic-bank-card-title-ar {
  text-align: right;
}

.topic-bank-card-desc {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 1.1rem;
  flex-grow: 1;
}

.topic-bank-subtopics-box {
  background: rgba(14, 77, 60, 0.025);
  border: 1px solid rgba(14, 77, 60, 0.1);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.topic-bank-subtopics-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.topic-bank-subtopics-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.topic-bank-subtopics-list li {
  font-size: 0.84rem;
  color: var(--text-body);
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.subtopic-bullet {
  color: var(--accent-gold);
  font-weight: 700;
  line-height: 1;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.topic-bank-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

.topic-bank-author-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.bank-count-pill {
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  color: var(--brand-navy);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

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

/* Presenter Portal Styles */
.portal-user-avatar.avatar-presenter {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--accent-gold) 100%);
  color: #ffffff;
}

.sidebar-presenter .sidebar-item-btn.active {
  background: rgba(184, 142, 62, 0.12);
  color: var(--brand-navy);
  font-weight: 700;
  border-inline-start-color: var(--accent-gold);
}

.modal-backdrop.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Dashboard In-Portal Notification Trigger */
.portal-notif-trigger-btn {
  position: relative;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-weight: 500;
  transition: var(--transition-fast);
}

.portal-notif-trigger-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--accent-gold);
  color: var(--brand-navy);
}

.portal-notif-count {
  background: #e02424;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Presenter & Accreditation Components (Black in Light Theme, White in Dark Theme) */
.btn-be-presenter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.5rem;
  background: var(--presenter-bg) !important;
  color: var(--presenter-text) !important;
  border: 1px solid var(--presenter-border) !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-md);
  box-shadow: var(--presenter-shadow);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-be-presenter svg {
  stroke: var(--presenter-text) !important;
}

.btn-be-presenter.btn-sm {
  width: auto;
  padding: 0.42rem 0.9rem;
  font-size: 0.84rem;
  border-radius: var(--radius-md);
}

.btn-be-presenter:hover {
  background: var(--presenter-hover) !important;
  color: var(--presenter-text) !important;
  border-color: var(--presenter-border) !important;
  transform: translateY(-1px);
  box-shadow: var(--presenter-shadow);
}

.btn-be-presenter.status-approved {
  background: var(--presenter-bg) !important;
  color: var(--presenter-text) !important;
  border: 1px solid var(--presenter-border) !important;
  box-shadow: var(--presenter-shadow);
}

.btn-be-presenter.status-approved:hover {
  background: var(--presenter-hover) !important;
  color: var(--presenter-text) !important;
}

.btn-be-presenter.status-pending {
  background: #d97706 !important;
  color: #ffffff !important;
  border-color: #d97706 !important;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.btn-be-presenter.status-pending:hover {
  background: #b45309 !important;
  color: #ffffff !important;
}

/* Accreditation Banner & Icon Components */
.presenter-accreditation-banner {
  background: var(--presenter-card-bg) !important;
  border: 1px solid var(--presenter-card-border) !important;
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.presenter-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--presenter-bg) !important;
  color: var(--presenter-text) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--presenter-shadow);
  transition: all var(--transition-fast);
}

.presenter-icon-circle svg {
  stroke: var(--presenter-text) !important;
}

.presenter-banner-title {
  color: var(--presenter-title) !important;
  font-size: 1rem;
  font-weight: 700;
  transition: color var(--transition-fast);
}

.presenter-status-badge {
  background: var(--presenter-badge-bg) !important;
  color: var(--presenter-badge-text) !important;
  border: 1px solid var(--presenter-badge-border) !important;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.qa-card.qa-card-presenter {
  border: 1px solid var(--presenter-card-border) !important;
  background: var(--presenter-subtle) !important;
}

.qa-card.qa-card-presenter .qa-icon {
  background: var(--presenter-bg) !important;
  color: var(--presenter-text) !important;
  box-shadow: var(--presenter-shadow);
}

.qa-card.qa-card-presenter .qa-icon svg {
  stroke: var(--presenter-text) !important;
}

.qa-card.qa-card-presenter .qa-title {
  color: var(--presenter-title) !important;
  font-weight: 700;
}

.btn-be-presenter.status-pending:hover {
  background: #b45309;
}

/* =========================================================================
   SESSION CATEGORIES STYLES (Presentation, Discussions, Guest Talk, Roundtable, Debate)
   ========================================================================= */

.badge-session-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-cat-pres {
  background: rgba(72, 81, 186, 0.15);
  color: var(--color-primary-1);
  border: 1px solid rgba(72, 81, 186, 0.35);
}

.badge-cat-disc {
  background: rgba(158, 89, 172, 0.15);
  color: var(--color-primary-2);
  border: 1px solid rgba(158, 89, 172, 0.35);
}

.badge-cat-guest {
  background: rgba(158, 89, 172, 0.2);
  color: var(--color-primary-2);
  border: 1px solid rgba(158, 89, 172, 0.45);
}

.badge-cat-round {
  background: rgba(72, 81, 186, 0.2);
  color: var(--color-primary-1);
  border: 1px solid rgba(72, 81, 186, 0.45);
}

.badge-cat-deb {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-main);
  border: 1px solid rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .badge-cat-deb {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Home Spotlight Guest Banner */
.home-guest-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(158, 89, 172, 0.4);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.6rem;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(8px);
}

.home-guest-photo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--color-primary-2);
  box-shadow: 0 4px 16px rgba(158, 89, 172, 0.35);
  flex-shrink: 0;
}

.home-guest-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.home-guest-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-primary-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.home-guest-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  font-family: var(--font-serif);
}

.home-guest-bio {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

/* Home Spotlight Debate Box */
.home-debate-banner {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(158, 89, 172, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}

.home-debate-matchup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.85rem;
}

.home-debate-team-card {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-team-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.home-team-tag.prop {
  color: var(--color-primary-1);
}

.home-team-tag.opp {
  color: var(--color-primary-2);
}

.home-team-names {
  font-size: 0.9rem;
  color: #FFFFFF;
  font-weight: 600;
}

/* Guest Talk Modal Spotlight */
.modal-guest-spotlight {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(135deg, rgba(72, 81, 186, 0.08) 0%, rgba(158, 89, 172, 0.1) 100%);
  border: 1px solid rgba(158, 89, 172, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.modal-guest-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
  flex-shrink: 0;
}

/* Authentication Role Selector Cards */
.role-select-card {
  position: relative;
  transition: all 0.2s ease-in-out;
  user-select: none;
}

.role-select-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.role-select-card input[type="radio"] {
  cursor: pointer;
}

#signupOtpInput:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(72, 81, 186, 0.2);
}

/* 3-Button Segmented Role Tab Switcher (Member | Presenter | Admin) */
.role-segmented-switcher {
  display: flex;
  background: var(--bg-body, #f1f5f9);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 1.25rem;
  user-select: none;
}

.role-segmented-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.5rem;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted, #64748b);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  outline: none;
}

.role-segmented-tab svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  stroke: currentColor;
}

.role-segmented-tab:hover {
  color: var(--text-main, #0f2b48);
  background: rgba(255, 255, 255, 0.65);
}

.role-segmented-tab.active {
  background: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
}

.role-segmented-tab.active svg {
  stroke: currentColor !important;
}

.role-segmented-tab.tab-member.active,
.role-segmented-tab.tab-member.active span {
  color: #4851BA !important;
  border-bottom: 2.5px solid #4851BA;
}

.role-segmented-tab.tab-presenter.active,
.role-segmented-tab.tab-presenter.active span {
  color: #9E59AC !important;
  border-bottom: 2.5px solid #9E59AC;
}

.role-segmented-tab.tab-admin.active,
.role-segmented-tab.tab-admin.active span {
  color: #000000 !important;
  border-bottom: 2.5px solid #000000;
}

[data-theme="dark"] .role-segmented-switcher {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .role-segmented-tab {
  color: rgba(255, 255, 255, 0.72);
}

[data-theme="dark"] .role-segmented-tab:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .role-segmented-tab.active {
  background: #FFFFFF !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .role-segmented-tab.tab-member.active,
[data-theme="dark"] .role-segmented-tab.tab-member.active span {
  color: #4851BA !important;
  border-bottom-color: #4851BA;
}

[data-theme="dark"] .role-segmented-tab.tab-presenter.active,
[data-theme="dark"] .role-segmented-tab.tab-presenter.active span {
  color: #9E59AC !important;
  border-bottom-color: #9E59AC;
}

[data-theme="dark"] .role-segmented-tab.tab-admin.active,
[data-theme="dark"] .role-segmented-tab.tab-admin.active span {
  color: #000000 !important;
  border-bottom-color: #000000;
}

/* User Profile Form & Avatar Studio */
.portal-user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.profile-avatar-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--brand-purple, #9E59AC);
  overflow: visible;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(72, 81, 186, 0.15);
  flex-shrink: 0;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-avatar-initial {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-indigo, #4851BA) 0%, var(--brand-purple, #9E59AC) 100%);
  color: #FFFFFF;
  font-size: 2.85rem;
  font-weight: 800;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  user-select: none;
  border-radius: 50%;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.profile-avatar-flag-badge {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-surface, #ffffff);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  border: 2px solid var(--bg-surface, #ffffff);
  z-index: 2;
  overflow: hidden;
}

.profile-avatar-flag-badge .flag-svg,
.profile-avatar-flag-badge img.flag-svg {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  display: block;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .profile-avatar-flag-badge {
  background: var(--bg-card, #1e293b);
  border-color: var(--bg-card, #1e293b);
}

.profile-section-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.profile-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 1.15rem;
}

/* ==========================================================================
   THEME TOGGLE BUTTON & BRAND LOGO STYLES
   ========================================================================== */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--header-btn-height, 32px);
  height: var(--header-btn-height, 32px);
  border-radius: 50%;
  background: rgba(72, 81, 186, 0.05);
  border: 1px solid rgba(72, 81, 186, 0.28);
  color: #000000;
  cursor: pointer;
  transition: all var(--transition-normal);
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  line-height: 1;
}

.theme-toggle-btn:hover {
  background: rgba(72, 81, 186, 0.14);
  border-color: var(--color-primary-1);
  transform: scale(1.06);
}

#themeToggleIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}

#themeToggleIcon svg {
  display: block;
  margin: auto;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  stroke: currentColor;
}

[data-theme="dark"] .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(158, 89, 172, 0.35);
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(158, 89, 172, 0.35);
}

[data-theme="dark"] .theme-toggle-btn:hover {
  background: rgba(158, 89, 172, 0.22);
  border-color: var(--color-primary-2);
}

/* ==========================================================================
   YOUTH CHANGEMAKERS SUMMIT-INSPIRED HERO & ASYMMETRIC COLLAGE
   Strict 4 Colors: #4851BA, #9E59AC, #000000, #FFFFFF & variations
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(circle at 80% 20%, rgba(158, 89, 172, 0.08) 0%, rgba(72, 81, 186, 0.04) 40%, var(--bg-body) 75%);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  text-align: start;
}

[data-theme="dark"] .hero-section {
  background: radial-gradient(circle at 80% 20%, rgba(158, 89, 172, 0.16) 0%, rgba(72, 81, 186, 0.12) 45%, #000000 80%);
  border-bottom: 1px solid rgba(72, 81, 186, 0.2);
}

.hero-ambient-glow {
  position: absolute;
  top: 5%;
  inset-inline-end: 2%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(158, 89, 172, 0.22) 0%, rgba(72, 81, 186, 0.12) 45%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: orbBreathe 8s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes orbBreathe {
  0% { transform: scale(0.9) translate(0, 0); opacity: 0.7; }
  100% { transform: scale(1.15) translate(-20px, 15px); opacity: 1; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-content {
    align-items: center !important;
    text-align: center !important;
  }
  .hero-eyebrow {
    justify-content: center !important;
  }
  .hero-title {
    text-align: center !important;
  }
  .hero-subtitle-lead {
    text-align: center !important;
  }
  .hero-subtext {
    text-align: center !important;
    margin-inline: auto !important;
  }
  .hero-actions {
    justify-content: center !important;
    margin-inline: auto !important;
  }
  .hero-meta-grid {
    margin: 0 auto !important;
    justify-content: center !important;
    justify-items: center !important;
  }
  .hero-meta-item {
    justify-content: center !important;
    text-align: center !important;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary-1);
  margin-bottom: 0.8rem;
}

[data-theme="dark"] .hero-eyebrow {
  color: #9E59AC;
}

.hero-eyebrow-line {
  display: none !important;
}

.hero-title {
  font-size: 3.25rem;
  letter-spacing: -0.03em;
  font-weight: 800;
  line-height: 1.14;
  color: var(--text-main);
  margin-bottom: 1.15rem;
}

@media (max-width: 768px) {
  .hero-title { font-size: 1.85rem; }
}

.hero-subtitle-lead {
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--color-primary-1);
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

[data-theme="dark"] .hero-subtitle-lead {
  color: #9E59AC;
}

.hero-subtext {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  width: 100%;
  max-width: 540px;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-body);
}

.hero-meta-diamond {
  color: var(--color-primary-2);
  font-size: 0.75rem;
  line-height: 1;
}

/* ==========================================================================
   PHOTO COLLAGE (Youth Changemakers Summit Layout)
   ========================================================================== */
.hero-collage-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.hero-sunburst-accent {
  position: absolute;
  top: -24px;
  inset-inline-start: -24px;
  width: 90px;
  height: 90px;
  z-index: 1;
  color: var(--color-primary-2);
  opacity: 0.85;
  animation: sunburstSpin 24s linear infinite;
  pointer-events: none;
}

@keyframes sunburstSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes sunburstSpinReverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

/* Reusable Moving Geometric Sunburst Accents */
.moving-sunburst-accent {
  position: absolute;
  color: var(--color-primary-2);
  opacity: 0.85;
  pointer-events: none;
  animation: sunburstSpin 24s linear infinite;
  filter: drop-shadow(0 0 16px rgba(158, 89, 172, 0.45));
}

.moving-sunburst-accent.accent-indigo {
  color: var(--color-primary-1);
  animation: sunburstSpinReverse 28s linear infinite;
  filter: drop-shadow(0 0 16px rgba(72, 81, 186, 0.45));
}

/* Spotlight Card Moving Sunburst Placement */
.spotlight-sunburst-wrapper {
  position: relative;
  width: 100%;
}

.spotlight-sunburst-tr {
  top: -32px;
  inset-inline-end: -26px;
  width: 110px;
  height: 110px;
  z-index: 0;
}

.spotlight-sunburst-bl {
  bottom: -28px;
  inset-inline-start: -22px;
  width: 90px;
  height: 90px;
  z-index: 0;
}

.home-session-spotlight {
  position: relative;
  z-index: 1;
}

/* Highlight Card Moving Sunburst Placement */
.highlight-sunburst-card-wrap {
  position: relative;
  display: flex;
}

.highlight-sunburst-card-wrap .highlight-feature-card {
  width: 100%;
  position: relative;
  z-index: 1;
}

.highlight-featured-accent {
  border-color: rgba(158, 89, 172, 0.35) !important;
  box-shadow: 0 8px 28px rgba(158, 89, 172, 0.12) !important;
}

.highlight-card-sunburst {
  top: -22px;
  inset-inline-end: -22px;
  width: 75px;
  height: 75px;
  z-index: 0;
}

.hero-collage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 550px;
  position: relative;
  z-index: 2;
  animation: gentleFloat 6s ease-in-out infinite alternate;
}

@keyframes gentleFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

.collage-main-card {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255, 255, 255, 0.9);
  height: 420px;
  background: var(--bg-surface);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

[data-theme="dark"] .collage-main-card {
  border: 2px solid rgba(158, 89, 172, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(72, 81, 186, 0.35);
}

.collage-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.collage-main-card:hover .collage-main-img {
  transform: scale(1.05);
}

.collage-stack-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 420px;
}

.collage-stack-card {
  position: relative;
  flex: 1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: var(--bg-surface);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

[data-theme="dark"] .collage-stack-card {
  border: 2px solid rgba(72, 81, 186, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7), 0 0 18px rgba(158, 89, 172, 0.25);
}

.collage-stack-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.collage-stack-card:hover .collage-stack-img {
  transform: scale(1.06);
}

.collage-badge-tag {
  position: absolute;
  bottom: 10px;
  inset-inline-start: 10px;
  inset-inline-end: 10px;
  padding: 0.32rem 0.5rem;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
}

.collage-badge-tag span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  display: inline-block;
}

.collage-badge-tag svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
  vertical-align: middle;
}

/* ==========================================================================
   FLOATING COUNTDOWN BANNER (Overlapping Hero Bottom)
   ========================================================================== */
.floating-countdown-strip {
  position: relative;
  margin-top: -2rem;
  margin-bottom: 2rem;
  z-index: 10;
}

.floating-countdown-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 1.25rem 2rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  flex-wrap: wrap;
  transition: transform var(--transition-normal);
}

[data-theme="dark"] .floating-countdown-card {
  background: rgba(14, 15, 24, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(158, 89, 172, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(72, 81, 186, 0.3);
}

.countdown-label-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 220px;
}

.countdown-radar-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary-1);
}

[data-theme="dark"] .countdown-radar-tag {
  color: #9E59AC;
}

.radar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary-2);
  position: relative;
}

.radar-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--color-primary-2);
  animation: radarPulse 1.8s ease-out infinite;
}

@keyframes radarPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.countdown-topic-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.countdown-boxes-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 0.45rem 0.6rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

[data-theme="dark"] .countdown-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(72, 81, 186, 0.3);
}

.countdown-digit {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary-1);
  letter-spacing: -0.02em;
}

[data-theme="dark"] .countdown-digit {
  color: #FFFFFF;
}

.countdown-unit {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.countdown-separator {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-2);
}

/* ==========================================================================
   CONTINUOUS SILKY MARQUEE RIBBON
   ========================================================================== */
.marquee-ribbon-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 0;
  position: relative;
}

[data-theme="dark"] .marquee-ribbon-wrap {
  background: rgba(72, 81, 186, 0.08);
  border-color: rgba(72, 81, 186, 0.25);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

body.rtl-mode .marquee-track {
  animation: marqueeScrollRtl 32s linear infinite;
}

@keyframes marqueeScrollRtl {
  0% { transform: translateX(0%); }
  100% { transform: translateX(50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-body);
  white-space: nowrap;
}

.marquee-star {
  color: var(--color-primary-2);
  font-size: 0.8rem;
}

.marquee-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
  vertical-align: middle;
}

/* ==========================================================================
   ANIMATED NUMBER COUNTERS (Metrics Bar)
   ========================================================================== */
.metric-number-animated {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary-1);
  line-height: 1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
  display: inline-block;
  position: relative;
}

[data-theme="dark"] .metric-number-animated {
  color: #FFFFFF;
  text-shadow: 0 0 16px rgba(158, 89, 172, 0.45);
}

.metric-item-bar {
  width: 0%;
  height: 3px;
  background: var(--brand-gradient);
  border-radius: 3px;
  margin: 0.5rem auto 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-item-bar.active {
  width: 44px;
}

/* ==========================================================================
   INTERACTIVE LIVE DEBATE MOTION POLL WIDGET
   ========================================================================== */
.home-motion-poll-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .home-motion-poll-card {
  background: rgba(18, 19, 30, 0.85);
  border: 1px solid rgba(158, 89, 172, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8), 0 0 24px rgba(72, 81, 186, 0.2);
}

.poll-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  background: var(--brand-gradient-subtle);
  border: 1px solid var(--color-primary-1);
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-primary-1);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

[data-theme="dark"] .poll-header-tag {
  color: #9E59AC;
  border-color: #9E59AC;
}

.poll-motion-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.poll-vote-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.poll-vote-btn {
  flex: 1;
  min-width: 140px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.poll-vote-aye {
  background: var(--color-primary-1);
  color: #FFFFFF;
  border: 1px solid transparent;
}

.poll-vote-aye:hover {
  background: #3B43A1;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(72, 81, 186, 0.4);
}

.poll-vote-nay {
  background: var(--color-primary-2);
  color: #FFFFFF;
  border: 1px solid transparent;
}

.poll-vote-nay:hover {
  background: #8A4B96;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(158, 89, 172, 0.4);
}

.poll-bar-container {
  display: none;
  width: 100%;
  height: 32px;
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  margin-top: 1rem;
  border: 1px solid var(--border-light);
}

.poll-bar-fill-aye {
  height: 100%;
  background: var(--color-primary-1);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-inline-start: 14px;
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.poll-bar-fill-nay {
  height: 100%;
  background: var(--color-primary-2);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-inline-end: 14px;
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}





/* ==========================================================================
   THE COMMUNITY - COORDINATOR ROSTER & DIRECTORY
   ========================================================================== */
.community-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.community-user-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius-lg, 14px);
  padding: 1.35rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.community-user-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--color-primary-1, #8A1538);
}

.community-card-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.community-card-avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.community-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4851ba, #9E59AC);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(72, 81, 186, 0.25);
  object-fit: cover;
}

.community-card-flag-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-surface, #ffffff);
  border: 2px solid var(--bg-surface, #ffffff);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.community-card-flag-badge .flag-svg,
.community-card-flag-badge img.flag-svg {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  object-fit: cover;
  display: block;
}

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

.community-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main, #0f172a);
  margin: 0 0 0.25rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.community-card-meta {
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.community-card-email {
  font-size: 0.8rem;
  color: var(--text-muted, #64748b);
  word-break: break-all;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.community-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light, #f1f5f9);
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  gap: 0.5rem;
}

.coord-filter-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.coord-filter-tab-btn {
  background: var(--bg-subtle, #f1f5f9);
  color: var(--text-main, #334155);
  border: 1px solid var(--border-light, #e2e8f0);
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.coord-filter-tab-btn:hover {
  background: rgba(138, 21, 56, 0.08);
  color: var(--color-primary-1, #8A1538);
  border-color: rgba(138, 21, 56, 0.3);
}

.coord-filter-tab-btn.active {
  background: var(--color-primary-1, #8A1538);
  color: #ffffff;
  border-color: var(--color-primary-1, #8A1538);
  box-shadow: 0 2px 8px rgba(138, 21, 56, 0.25);
}

[data-theme="dark"] .community-user-card {
  background: var(--bg-card, #1e293b);
  border-color: var(--border-dark, #334155);
}

[data-theme="dark"] .community-card-flag-badge {
  background: var(--bg-card, #1e293b);
  border-color: var(--bg-card, #1e293b);
}

[data-theme="dark"] .coord-filter-tab-btn {
  background: #1e293b;
  color: #cbd5e1;
  border-color: #334155;
}

[data-theme="dark"] .coord-filter-tab-btn.active {
  background: #9E59AC;
  color: #ffffff;
  border-color: #9E59AC;
}

@media (max-width: 768px) {
  .community-roster-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

/* Unified Apply for Community Membership Modal Styles */
.apply-step-item {
  transition: all 0.25s ease;
}

.apply-step-circle {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.btn-toggle-pw {
  opacity: 0.65;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-toggle-pw:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.15);
}

#applyInterestsGrid label {
  background: var(--bg-surface);
  transition: background 0.2s ease, border-color 0.2s ease;
}

#applyInterestsGrid label:hover {
  border-color: var(--color-primary-1, #4851ba);
  background: rgba(72, 81, 186, 0.04);
}

[data-theme="dark"] #applyInterestsGrid label {
  background: var(--bg-card, #1e293b);
  border-color: var(--border-light, #334155);
}

/* ==========================================================================
   MOBILE VIEWPORT PERFECTION & RESPONSIVE POLISH (All Screen Widths <= 768px)
   ========================================================================== */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  -webkit-text-size-adjust: 100%;
}

@media (max-width: 768px) {
  /* 1. Global Viewport & Container */
  .container, .container-wide {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    box-sizing: border-box !important;
  }

  /* 2. Site Header & Controls */
  .site-header {
    width: 100% !important;
    max-width: 100vw !important;
  }
  .header-inner {
    width: 100% !important;
    padding: 0 0.65rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.35rem !important;
  }
  .brand-logo-img {
    max-width: 130px !important;
    height: 28px !important;
    object-fit: contain !important;
  }
  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    flex-shrink: 0 !important;
  }
  .btn-lang, .header-control-btn {
    height: 30px !important;
    padding: 0 0.5rem !important;
    font-size: 0.72rem !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
  }

  /* 3. Universal Modals Mobile Layout */
  .modal-backdrop {
    padding: 0.5rem !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-y: auto !important;
  }
  .modal-dialog {
    width: 95vw !important;
    max-width: 95vw !important;
    margin: 0.5rem auto !important;
    padding: 1.25rem 1rem !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .modal-close-btn {
    top: 0.75rem !important;
    right: 0.75rem !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 1.25rem !important;
  }
  .rtl-mode .modal-close-btn {
    right: auto !important;
    left: 0.75rem !important;
  }

  /* 4. Apply for Community Membership Modal Mobile */
  #applyModal .modal-dialog {
    padding: 1.25rem 0.95rem !important;
  }
  #applyStepper {
    padding: 0 0.25rem !important;
    margin-bottom: 1.25rem !important;
  }
  .apply-step-circle {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.76rem !important;
  }
  .apply-step-item span {
    font-size: 0.66rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
  }
  #applyInterestsGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.4rem !important;
  }
  #applyInterestsGrid label {
    font-size: 0.75rem !important;
    padding: 0.35rem 0.5rem !important;
    margin: 0 !important;
  }
  #applyOtpInput {
    max-width: 220px !important;
    font-size: 1.45rem !important;
    letter-spacing: 0.25em !important;
  }

  /* 5. Community Dossier Modal Mobile */
  #coordUserDossierModal .modal-dialog {
    padding: 1.25rem 1rem !important;
  }
  #coordUserDossierContent > div:nth-child(2) {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
  }

  /* 6. Coordinator & Community Dashboard Mobile */
  .coord-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }
  .coord-filter-tabs {
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
  }
  .coord-filter-tab-btn {
    font-size: 0.74rem !important;
    padding: 0.35rem 0.65rem !important;
    flex: 1 1 auto !important;
    text-align: center !important;
  }
  .community-roster-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }
  .community-user-card {
    padding: 1rem 0.95rem !important;
  }
  .community-card-footer {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  /* 7. Public Grids & Sections */
  .process-grid, .process-grid-6,
  .categories-grid, .public-sessions-grid,
  .impact-pillars-grid, .reps-grid,
  .dashboard-grid, .quick-access-grid,
  .writings-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* 8. Hero Collage on Mobile */
  .hero-collage-wrap {
    perspective: none !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .hero-collage-grid {
    grid-template-columns: 1fr 1fr !important;
    max-width: 100% !important;
    margin: 1rem auto 0 !important;
    gap: 0.65rem !important;
  }
  .collage-main-card,
  .collage-stack-col {
    height: 200px !important;
  }
  .collage-badge-tag {
    font-size: 0.58rem !important;
    padding: 0.18rem 0.35rem !important;
  }
}

@media (max-width: 480px) {
  /* Extra Small Mobile (<= 480px) */
  html {
    font-size: 13.5px !important;
  }
  .container, .container-wide {
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
  }
  .brand-logo-img {
    max-width: 115px !important;
    height: 25px !important;
  }
  .header-inner {
    padding: 0 0.45rem !important;
    height: 44px !important;
  }
  .btn-lang {
    padding: 0 0.35rem !important;
    font-size: 0.66rem !important;
    height: 26px !important;
  }
  .header-control-btn {
    padding: 0 0.35rem !important;
    font-size: 0.66rem !important;
    height: 26px !important;
  }
  .hero-title {
    font-size: 1.3rem !important;
    line-height: 1.25 !important;
  }
  .hero-subtitle-lead {
    font-size: 0.84rem !important;
  }
  .hero-actions {
    width: 100% !important;
    max-width: 280px !important;
  }
  .hero-actions .btn {
    width: 100% !important;
    font-size: 0.84rem !important;
    padding: 0.55rem 0.95rem !important;
  }
  .coord-kpi-grid {
    grid-template-columns: 1fr !important;
    gap: 0.55rem !important;
  }
  #applyInterestsGrid {
    grid-template-columns: 1fr !important;
    gap: 0.35rem !important;
  }
  .collage-main-card,
  .collage-stack-col {
    height: 170px !important;
  }
}

/* ==========================================================================
   RTL MODE (ARABIC) MOBILE SPECIFIC ALIGNMENTS
   ========================================================================== */
.rtl-mode {
  direction: rtl !important;
  text-align: right !important;
}

.rtl-mode .header-inner {
  direction: rtl !important;
}

.rtl-mode .brand-identity {
  margin-left: auto !important;
  margin-right: 0 !important;
}

.rtl-mode .form-label,
.rtl-mode .form-helper,
.rtl-mode .form-control {
  text-align: right !important;
}

.rtl-mode .modal-dialog {
  text-align: right !important;
}

.rtl-mode .community-card-info {
  text-align: right !important;
}

.rtl-mode .community-card-meta {
  justify-content: flex-start !important;
}

.rtl-mode .community-card-footer {
  flex-direction: row-reverse !important;
}

.rtl-mode .btn-toggle-pw {
  right: auto !important;
  left: 10px !important;
}

.rtl-mode #applyStepper {
  direction: rtl !important;
}

.rtl-mode .coord-filter-tabs {
  direction: rtl !important;
}

