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

:root {
  /* New Palette */
  --color-primary: #C55E90; /* Fuchsia Plum */
  --color-primary-light: #A0D14D; /* Yellow Green */
  --color-primary-dark: #8A3E63;

  --color-background-dark: #462d54; /* Deep Purple */
  --color-background-card: rgba(44, 28, 56, 0.8); /* Deep Purple with opacity */
  --color-background-alt: #241730; /* Darkest Purple */

  --color-text-main: #F5F5F5;
  --color-text-muted: rgba(255, 255, 255, 0.6);
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-hover: rgba(197, 94, 144, 0.4);

  /* Surfaces & overlays (theme-aware) */
  --surface-panel: #2c1c38;
  --surface-section-alt: #3a2647;
  --surface-placeholder: #5c3d70;
  --surface-footer: #201428;
  --header-bg: rgba(44, 28, 56, 0.85);
  --ticker-bg: rgba(58, 38, 71, 0.8);
  --recessed-bg: rgba(0, 0, 0, 0.3);
  --recessed-bg-strong: rgba(0, 0, 0, 0.4);
  --overlay-faint: rgba(255, 255, 255, 0.03);
  --overlay-soft: rgba(255, 255, 255, 0.05);
  --overlay-soft-strong: rgba(255, 255, 255, 0.1);
  --overlay-soft-stronger: rgba(255, 255, 255, 0.2);
  --placeholder-text: rgba(255, 255, 255, 0.3);
  --feature-gradient-1: rgba(58, 38, 71, 0.85);
  --feature-gradient-2: rgba(36, 23, 48, 0.9);
  --modal-backdrop: rgba(0, 0, 0, 0.8);

  --font-main: 'Cairo', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

[data-theme="light"] {
  --color-primary: #C55E90;
  --color-primary-light: #6E9A2E;
  --color-primary-dark: #8A3E63;

  --color-background-dark: #FFFFFF;
  --color-background-card: rgba(255, 255, 255, 0.85);
  --color-background-alt: #F4F4F5;

  --color-text-main: #16171A;
  --color-text-muted: rgba(15, 16, 15, 0.62);
  --color-border: rgba(15, 16, 15, 0.12);
  --color-border-hover: rgba(197, 94, 144, 0.35);

  --surface-panel: #F3F3F5;
  --surface-section-alt: #F8F8F9;
  --surface-placeholder: #E7E7EA;
  --surface-footer: #F0F0F2;
  --header-bg: rgba(255, 255, 255, 0.85);
  --ticker-bg: rgba(240, 240, 242, 0.9);
  --recessed-bg: rgba(15, 16, 15, 0.05);
  --recessed-bg-strong: rgba(15, 16, 15, 0.07);
  --overlay-faint: rgba(15, 16, 15, 0.03);
  --overlay-soft: rgba(15, 16, 15, 0.05);
  --overlay-soft-strong: rgba(15, 16, 15, 0.09);
  --overlay-soft-stronger: rgba(15, 16, 15, 0.14);
  --placeholder-text: rgba(15, 16, 15, 0.35);
  --feature-gradient-1: rgba(255, 255, 255, 0.9);
  --feature-gradient-2: rgba(247, 247, 248, 0.95);
  --modal-backdrop: rgba(15, 16, 15, 0.5);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--color-background-dark);
  color: var(--color-text-main);
  line-height: 1.6;
  /* direction now inherited from the <html dir="..."> attribute of each page,
     so Arabic pages stay RTL and French pages render correctly LTR */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(197, 94, 144, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(197, 94, 144, 0); }
  100% { box-shadow: 0 0 0 0 rgba(197, 94, 144, 0); }
}

@keyframes marquee {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100vw); }
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

/* Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-primary { color: var(--color-primary); }
.text-gradient {
  background: linear-gradient(90deg, #A0D14D, #C55E90);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-glass {
  background: var(--color-background-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(197, 94, 144, 0.3);
}

.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 94, 144, 0.5);
}

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

.btn-outline:hover {
  background: var(--overlay-soft);
  border-color: var(--overlay-soft-stronger);
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  height: 80px;
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  flex-shrink: 0;
}

.logo-img {
  height: 50px;
  object-fit: contain;
}

/* Two logo artworks: one tuned for dark backgrounds, one for light */
.logo-img-light {
  display: none;
}

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

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

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  height: 100%;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-main);
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--overlay-soft);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
  background: var(--overlay-soft-strong);
  border-color: var(--color-border-hover);
}

.lang-switch {
  display: flex;
  background: var(--overlay-soft);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
}

.lang-btn {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: transparent;
  color: var(--color-text-muted);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-btn.active {
  background: var(--color-primary);
  color: white;
}

.lang-btn:not(.active):hover {
  background: var(--overlay-soft-strong);
  color: var(--color-text-main);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-main);
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-gradient-1 {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(197, 94, 144, 0.15) 0%, rgba(197, 94, 144, 0) 70%);
  border-radius: 50%;
  filter: blur(60px);
}

.hero-gradient-2 {
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(160, 209, 77, 0.2) 0%, rgba(160, 209, 77, 0) 70%);
  border-radius: 50%;
  filter: blur(80px);
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4rem;
}

.hero-text {
  flex: 1;
}

.hero-visual {
  flex: 0 0 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--overlay-soft);
  border: 1px solid var(--overlay-soft-strong);
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}

.hero-title {
  font-size: clamp(2.25rem, 3.6vw, 4.25rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  color: var(--color-text-muted);
  font-weight: 300;
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-card {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), #FF7B72);
}

.hero-card-subtitle {
  font-size: 0.875rem;
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.hero-card-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.hero-card-date {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1rem;
}

.countdown {
  display: flex;
  background: var(--recessed-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 2rem;
}

.countdown-item {
  flex: 1;
  text-align: center;
  border-left: 1px solid var(--color-border);
}

.countdown-item:first-child {
  border-left: none;
}

.cd-val {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.cd-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero candidate list strip */
.hero-list-strip {
  margin-top: 2.5rem;
  position: relative;
  z-index: 2;
}

.hero-list-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.hero-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  max-width: 680px;
}

.hero-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--overlay-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: var(--transition-smooth);
}

.hero-list-item:hover {
  border-color: var(--color-border-hover);
}

.hero-list-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
}

.hero-list-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--surface-placeholder);
}

.hero-list-avatar-fallback {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--overlay-soft-strong);
  color: var(--color-primary-light);
  font-weight: 800;
  font-size: 0.95rem;
}

.hero-list-text { min-width: 0; }

.hero-list-name {
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-list-role {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ticker */
.ticker-wrap {
  width: 100%;
  background: var(--ticker-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  height: 60px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.ticker-label {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  padding: 0 2rem;
  background: rgba(197, 94, 144, 0.1);
  border-left: 1px solid rgba(197, 94, 144, 0.3);
  color: var(--color-primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.ticker-content {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  padding-right: 200px;
  gap: 3rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Sections Common */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Services / Voter Guide Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(197, 94, 144, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(197, 94, 144, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.input-group {
  display: flex;
  align-items: center;
  background: var(--recessed-bg-strong);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.input-group input {
  background: transparent;
  border: none;
  color: var(--color-text-main);
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  margin-right: 0.75rem;
  outline: none;
}

.input-group input::placeholder {
  color: var(--placeholder-text);
}

.btn-full {
  width: 100%;
  padding: 1rem;
}

/* Feature Section */
.feature-section {
  background: linear-gradient(to bottom left, rgba(197, 94, 144, 0.05), var(--surface-panel));
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.feature-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  background: linear-gradient(135deg, var(--feature-gradient-1), var(--feature-gradient-2));
  border: 1px solid var(--overlay-soft);
  border-radius: var(--radius-xl);
  padding: 4rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.feature-container::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: var(--color-primary);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.feature-content {
  flex: 1;
}

.feature-stat {
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-stat span {
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 700;
}

.feature-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.feature-item:hover {
  background: var(--overlay-soft);
  transform: translateX(-10px);
}

.feature-item-icon {
  width: 56px;
  height: 56px;
  background: var(--recessed-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

/* Secretary General Section */
.sg-section {
  background: var(--surface-panel);
}

.sg-container {
  display: flex;
  align-items: center;
  background: linear-gradient(to right, var(--overlay-faint), transparent);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 4rem;
  gap: 4rem;
  position: relative;
  overflow: hidden;
}

.sg-container:hover {
  border-color: rgba(197, 94, 144, 0.2);
}

.sg-content {
  flex: 1;
  z-index: 10;
}

.sg-image-wrapper {
  flex: 0 0 350px;
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.hero-group-photo {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: -1rem;
}

.hero-group-photo img {
  width: 100%;
  max-width: 580px;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.35));
}

.sg-image-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(160deg, rgba(197, 94, 144, 0.18), rgba(160, 209, 77, 0.08) 60%, transparent);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(197, 94, 144, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  overflow: hidden;
}

.sg-rose-mark {
  opacity: 0.9;
}

.sg-initials {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-text-main);
  letter-spacing: 0.05em;
  opacity: 0.85;
}

/* Join & Contact Section */
.join-section {
  background-color: var(--surface-panel);
}

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

.join-card {
  padding: 3rem;
  border-radius: var(--radius-xl);
}

.join-card form {
  display: flex;
  flex-direction: column;
}

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

.contact-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.contact-list li svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

@media (max-width: 1024px) {
  .join-grid {
    grid-template-columns: 1fr;
  }

  .join-card {
    padding: 2rem;
  }
}

/* News Section */
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  height: 100%;
}

.news-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-border-hover);
}

.news-img {
  width: 100%;
  height: 240px;
  background-color: var(--surface-placeholder);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.news-img::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(45deg, rgba(218,41,28,0.2), transparent);
  opacity: 0.5;
}

.news-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.news-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  background: var(--overlay-soft);
  border: 1px solid var(--color-border);
  border-radius: 99px;
}

.news-date {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.news-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.4;
  transition: color 0.3s;
}

.news-card:hover .news-title {
  color: var(--color-primary);
}

.news-excerpt {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-link {
  margin-top: auto;
  color: var(--color-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-link svg {
  transition: transform 0.3s;
}

.news-card:hover .news-link svg {
  transform: translateX(-5px);
}

/* Footer */
footer {
  background: var(--surface-footer);
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
}

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

.footer-logo {
  height: 60px;
  margin-bottom: 1.5rem;
}

.footer-desc {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--overlay-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: var(--color-primary);
  color: white;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .hero-card {
    margin: 0 auto;
  }

  .hero-visual {
    flex: none;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }
  
  .badge {
    margin: 0 auto 2rem;
  }
  
  .feature-container {
    flex-direction: column;
    text-align: center;
  }
  
  .feature-stat {
    justify-content: center;
  }
  
  .sg-container {
    flex-direction: column;
    text-align: center;
    padding: 3rem 2rem;
  }
  
  .sg-image-wrapper {
    flex: auto;
    width: 100%;
    margin-top: 2rem;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .logo-img {
    height: 48px;
  }

  .nav-links {
    display: none;
  }

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

  .header-actions {
    display: none;
  }

  #main-nav.mobile-active ~ .header-actions {
    display: flex;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--color-background-dark);
    border-bottom: 1px solid var(--color-border);
    z-index: 101;
  }

  #main-nav.mobile-active ~ .header-actions .btn {
    display: inline-flex;
  }

  .news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* Programme Page */
.programme-hero {
  padding: 5rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.programme-eyebrow {
  color: var(--color-text-muted);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.programme-mega-number {
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0.5rem 0;
}

.programme-tagline {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.programme-pillars {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pillar-chip {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--overlay-faint);
}

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.engagement-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  position: relative;
  transition: var(--transition-smooth);
  scroll-margin-top: 100px;
}

.engagement-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
}

.engagement-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--color-primary);
  color: white;
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.engagement-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.engagement-tagline {
  color: var(--color-primary-light);
  font-weight: 700;
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.engagement-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.engagement-list li {
  display: flex;
  gap: 0.6rem;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.engagement-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary-light);
  margin-top: 0.55rem;
  flex-shrink: 0;
}

.programme-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-weight: 700;
  margin-bottom: 2rem;
}

.programme-back:hover { color: var(--color-primary); }

@media (max-width: 640px) {
  .engagement-grid {
    grid-template-columns: 1fr;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--modal-backdrop);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-box {
  background: var(--color-background-card);
  border: 1px solid var(--color-border);
  padding: 3rem;
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 500px;
  position: relative;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.modal-overlay.hidden .modal-box {
  transform: translateY(50px);
}

.modal-close {
  position: absolute;
  top: 1rem;
  left: 1rem; /* RTL means left is end */
  background: none;
  border: none;
  color: var(--color-text-main);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--color-primary);
}

/* Mobile Menu Active State */
@media (max-width: 768px) {
  .nav-links.mobile-active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 144px;
    left: 0;
    width: 100%;
    height: calc(100vh - 144px);
    background: var(--color-background-dark);
    padding: 2rem;
    z-index: 99;
    overflow-y: auto;
  }
  
  .nav-links.mobile-active .nav-link {
    width: 100%;
    height: auto;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1.25rem;
  }
}

/* Regional List Section */
.regional-section {
  background: var(--surface-section-alt);
}

.regional-team-photo {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto 2.5rem;
}

.regional-leader {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: var(--overlay-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-bottom: 3rem;
}

.regional-leader-photo {
  flex: 0 0 160px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-primary);
}

.regional-leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.regional-leader-role {
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.regional-leader-info h3 {
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 1.1rem;
}

.regional-leader-bio {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--color-text-muted);
}

.regional-leader-bio li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.regional-leader-bio li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary-light);
  flex-shrink: 0;
}

.regional-candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.regional-candidate-card {
  text-align: center;
  background: var(--overlay-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  transition: var(--transition-smooth);
}

.regional-candidate-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
}

.regional-candidate-avatar {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 1rem;
}

.regional-candidate-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.regional-candidate-number {
  position: absolute;
  bottom: -2px;
  inset-inline-end: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface-section-alt);
}

.regional-candidate-name {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.regional-candidate-role {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .regional-leader {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
}
