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

/* ============================================================
   APEX CENTER — Premium Design System
   Colors from logo: Navy Blue + Royal Gold
   ============================================================ */

:root {
  /* ── Brand Colors ── */
  --navy:           #1B2A4A;
  --navy-deep:      #0F1B33;
  --navy-light:     #2A3F6B;
  --navy-muted:     #3A5080;
  --gold:           #C8A85C;
  --gold-light:     #E8D5A3;
  --gold-dark:      #A8893C;
  --gold-glow:      rgba(200, 168, 92, 0.25);

  /* ── Semantic ── */
  --primary-color:          var(--navy);
  --primary-container:      var(--navy-light);
  --secondary-color:        var(--gold);
  --secondary-container:    var(--gold-light);
  --accent-color:           var(--gold);
  --success-color:          #2ECC71;
  --danger-color:           #E74C3C;
  --warning-color:          #F39C12;

  /* ── Surface (Light Mode) ── */
  --bg-primary:       #F8F6F1;
  --bg-secondary:     #EFECE5;
  --bg-card:          rgba(255, 255, 255, 0.85);
  --bg-card-solid:    #FFFFFF;
  --bg-input:         #FFFFFF;
  --bg-input-hover:   #F5F3EE;
  --bg-dropdown:      #FFFFFF;
  --bg-code:          #F0EDE6;
  --bg-table-header:  #1B2A4A;
  --bg-table-row-alt: rgba(27, 42, 74, 0.03);
  --bg-table-hover:   rgba(200, 168, 92, 0.08);

  /* ── Text (Light Mode) ── */
  --text-primary:     #1A1A2E;
  --text-secondary:   #555770;
  --text-muted:       #8E90A0;
  --text-on-primary:  #FFFFFF;
  --text-on-gold:     #1B2A4A;
  --text-link:        var(--navy-light);

  /* ── Borders (Light Mode) ── */
  --border-color:     #E2DFD6;
  --border-light:     #EBE8E0;
  --border-input:     #D4D0C8;
  --border-focus:     var(--gold);
  --border-card:      rgba(200, 168, 92, 0.15);

  /* ── Glass ── */
  --glass-bg:         rgba(255, 255, 255, 0.65);
  --glass-border:     rgba(255, 255, 255, 0.45);
  --glass-blur:       16px;
  --glass-shadow:     0 8px 32px rgba(27, 42, 74, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);

  /* ── Spacing ── */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-base: 12px;
  --space-md:  24px;
  --space-lg:  48px;
  --space-xl:  80px;

  /* ── Shapes ── */
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* ── Transitions ── */
  --transition-fast:   all 0.2s ease;
  --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Shadows ── */
  --shadow-sm:   0 2px 8px rgba(27, 42, 74, 0.06);
  --shadow-md:   0 8px 24px rgba(27, 42, 74, 0.1);
  --shadow-lg:   0 16px 48px rgba(27, 42, 74, 0.12);
  --shadow-xl:   0 24px 64px rgba(27, 42, 74, 0.16);
  --shadow-gold: 0 8px 24px rgba(200, 168, 92, 0.2);

  /* ── Theme Toggle ── */
  --toggle-size: 48px;

  color-scheme: light;
}

/* ============================================================
   DARK MODE
   ============================================================ */
[data-theme="dark"] {
  --bg-primary:       #0A1628;
  --bg-secondary:     #111D35;
  --bg-card:          rgba(20, 35, 65, 0.7);
  --bg-card-solid:    #142341;
  --bg-input:         #0E1A30;
  --bg-input-hover:   #162440;
  --bg-dropdown:      #0E1A30;
  --bg-code:          #0E1A30;
  --bg-table-header:  #0D1525;
  --bg-table-row-alt: rgba(200, 168, 92, 0.04);
  --bg-table-hover:   rgba(200, 168, 92, 0.1);

  --text-primary:     #E8E4DC;
  --text-secondary:   #A0A4B8;
  --text-muted:       #6B6F84;
  --text-on-primary:  #FFFFFF;
  --text-link:        var(--gold-light);

  --border-color:     rgba(200, 168, 92, 0.12);
  --border-light:     rgba(200, 168, 92, 0.08);
  --border-input:     rgba(200, 168, 92, 0.2);
  --border-focus:     var(--gold);
  --border-card:      rgba(200, 168, 92, 0.1);

  --glass-bg:         rgba(15, 27, 51, 0.75);
  --glass-border:     rgba(200, 168, 92, 0.1);
  --glass-shadow:     0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);

  --shadow-sm:   0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md:   0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg:   0 16px 48px rgba(0, 0, 0, 0.35);
  --shadow-xl:   0 24px 64px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 8px 24px rgba(200, 168, 92, 0.15);

  color-scheme: dark;
}

/* ============================================================
   BASE & RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  direction: rtl;
  display: flex;
  flex-direction: column;
  line-height: 1.7;
  font-size: 16px;
  transition: background-color 0.5s ease, color 0.5s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
  background: var(--gold);
  color: var(--navy-deep);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h2 {
  color: var(--navy);
  margin-bottom: var(--space-md);
  font-weight: 800;
  font-size: 2rem;
  position: relative;
  display: inline-block;
}

[data-theme="dark"] h2 {
  color: var(--gold-light);
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}

a {
  color: var(--text-link);
  transition: var(--transition-fast);
}

a:hover {
  color: var(--gold);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  width: 100%;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--text-on-primary);
  padding: var(--space-md) 0;
  text-align: center;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -50%;
  width: 200%;
  height: 300%;
  background: radial-gradient(ellipse at 30% 50%, rgba(200, 168, 92, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(42, 63, 107, 0.15) 0%, transparent 60%);
  animation: headerGlow 15s ease-in-out infinite alternate;
}

@keyframes headerGlow {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-5%, 5%) rotate(3deg); }
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: var(--space-xs);
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
  color: white;
}

header p {
  font-size: 1.1rem;
  opacity: 0.8;
  font-weight: 400;
  position: relative;
}

/* ============================================================
   GLASS CARD COMPONENT
   ============================================================ */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold));
  background-size: 200% 100%;
  animation: shimmerBorder 4s ease infinite;
}

@keyframes shimmerBorder {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200, 168, 92, 0.25);
}

.text-center { text-align: center; }

/* ============================================================
   FORM STYLES — CRITICAL FOR DARK/LIGHT MODE
   ============================================================ */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
  transition: color 0.3s ease;
}

[data-theme="dark"] .form-group label {
  color: var(--gold-light);
}

/* ── Input, Select, Textarea ── */
.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="url"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border-input);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: 'Tajawal', 'Inter', sans-serif;
  transition: var(--transition-smooth);
  background-color: var(--bg-input);
  color: var(--text-primary);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-control:hover,
input:hover,
select:hover,
textarea:hover {
  background-color: var(--bg-input-hover);
  border-color: var(--gold);
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-glow);
  background-color: var(--bg-input);
}

/* ── Select Dropdown Arrow ── */
select.form-control,
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C8A85C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  padding-left: 44px;
  cursor: pointer;
}

/* ── Select Option Styling ── */
select option {
  background-color: var(--bg-dropdown);
  color: var(--text-primary);
  padding: 12px;
}

[data-theme="dark"] select option {
  background-color: #0E1A30;
  color: #E8E4DC;
}

/* ── Placeholder ── */
::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

[data-theme="dark"] ::placeholder {
  color: #6B6F84;
  opacity: 0.8;
}

/* ── File Input ── */
input[type="file"] {
  padding: 12px;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-family: 'Tajawal', sans-serif;
  font-weight: 600;
  cursor: pointer;
  margin-left: 12px;
  transition: var(--transition-fast);
}

input[type="file"]::file-selector-button:hover {
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--gold-dark) 100%);
}

[data-theme="dark"] input[type="file"]::file-selector-button {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  color: var(--navy-deep);
}

/* ── Radio & Checkbox ── */
input[type="radio"],
input[type="checkbox"] {
  width: auto;
  accent-color: var(--gold);
  cursor: pointer;
}

/* ── Disabled inputs ── */
.form-control:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--bg-secondary);
}

/* ============================================================
   TABLE STYLES — DARK/LIGHT MODE AWARE
   ============================================================ */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: var(--space-md) 0;
}

thead {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

[data-theme="dark"] thead {
  background: linear-gradient(135deg, #0D1525 0%, #162440 100%);
}

th {
  color: white;
  font-weight: 700;
  padding: 16px 20px;
  text-align: right;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-bottom: 3px solid var(--gold);
}

td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: var(--bg-card-solid);
}

[data-theme="dark"] td {
  background-color: var(--bg-card-solid);
}

tr:nth-child(even) td {
  background-color: var(--bg-table-row-alt);
}

[data-theme="dark"] tr:nth-child(even) td {
  background-color: rgba(200, 168, 92, 0.04);
}

tr:hover td {
  background-color: var(--bg-table-hover);
}

tr:last-child td {
  border-bottom: none;
}

/* ============================================================
   BUTTON COMPONENT
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 2px solid transparent;
  padding: 14px 28px;
  font-size: 1.05rem;
  line-height: 1.5;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
  width: 100%;
  gap: 10px;
  font-family: 'Tajawal', 'Inter', sans-serif;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-muted) 100%);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  border-color: var(--gold-dark);
  color: var(--navy-deep);
}

[data-theme="dark"] .btn-primary:hover {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
}

.btn-success {
  color: #fff;
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  border-color: #27ae60;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.2);
}

.btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
}

.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
  border-color: #c0392b;
}

.btn-secondary {
  color: var(--text-primary);
  background: var(--bg-card);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--gold);
  background: var(--bg-input-hover);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* ============================================================
   ALERT STYLES
   ============================================================ */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-weight: 600;
  line-height: 1.7;
}

.alert-danger {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.2);
  color: var(--danger-color);
}

.alert-warning {
  background: rgba(243, 156, 18, 0.1);
  border: 1px solid rgba(243, 156, 18, 0.2);
  color: var(--warning-color);
}

.alert-success {
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.2);
  color: var(--success-color);
}

[data-theme="dark"] .alert-danger {
  background: rgba(231, 76, 60, 0.15);
  border-color: rgba(231, 76, 60, 0.3);
}

[data-theme="dark"] .alert-warning {
  background: rgba(243, 156, 18, 0.15);
  border-color: rgba(243, 156, 18, 0.3);
}

/* ============================================================
   INFO GRID
   ============================================================ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.info-item {
  background: var(--bg-card);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border-card);
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
}

.info-item:hover {
  background: var(--bg-card-solid);
  transform: scale(1.04);
  box-shadow: var(--shadow-gold);
}

.info-item i {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.info-item h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
  font-weight: 700;
}

/* ============================================================
   SPEAKERS/TRAINERS GRID
   ============================================================ */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.speaker-card {
  background: var(--bg-card-solid);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  text-align: center;
  padding-bottom: var(--space-md);
  border: 1px solid var(--border-card);
}

.speaker-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.speaker-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: var(--bg-secondary);
  transition: transform 0.6s ease;
}

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

.speaker-info {
  padding: var(--space-md);
}

.speaker-info h4 {
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  font-size: 1.3rem;
  font-weight: 700;
}

[data-theme="dark"] .speaker-info h4 {
  color: var(--gold-light);
}

.speaker-title {
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lecture-title {
  font-size: 0.95rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: var(--space-base);
  border-radius: var(--radius-sm);
  border-right: 5px solid var(--gold);
  text-align: right;
  line-height: 1.5;
  font-weight: 500;
}

/* ============================================================
   PATRONAGE SECTION
   ============================================================ */
.header-patronage-prominent {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(200, 168, 92, 0.15);
  width: 100%;
}

.patronage-intro {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: var(--space-md);
  position: relative;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.patronage-intro::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 12px auto;
}

.patrons-flex {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.patron-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  flex: 1;
  min-width: 260px;
}

.patron-frame {
  width: 150px;
  height: 150px;
  border-radius: var(--radius-full);
  border: 4px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(200, 168, 92, 0.15), 0 15px 35px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: var(--transition-smooth);
  flex-shrink: 0;
  background: white;
}

.patron-frame:hover {
  transform: scale(1.1) rotate(3deg);
  border-color: var(--gold-light);
  box-shadow: 0 0 0 6px rgba(200, 168, 92, 0.3), 0 20px 45px rgba(0, 0, 0, 0.4);
}

.patron-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.patron-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: center;
}

.p-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.p-title {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* ============================================================
   SPECIALIZATION GRID
   ============================================================ */
.specialization-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: var(--space-base);
}

.specialization-card {
  flex: 0 1 140px;
  cursor: pointer;
}

.specialization-card input[type="radio"] {
  display: none;
}

.specialization-card .card-content {
  border: 2px solid var(--border-input);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  transition: var(--transition-smooth);
  background: var(--bg-card-solid);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.specialization-card input[type="radio"]:checked + .card-content {
  border-color: var(--gold);
  background: rgba(200, 168, 92, 0.06);
  box-shadow: 0 0 0 4px var(--gold-glow), var(--shadow-md);
  transform: scale(1.05);
}

[data-theme="dark"] .specialization-card input[type="radio"]:checked + .card-content {
  background: rgba(200, 168, 92, 0.1);
}

.specialization-card .card-content img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-xs);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background: var(--navy-deep);
  color: #A0A4B8;
  margin-top: auto;
  border-top: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

footer p {
  position: relative;
}

footer a {
  color: #A0A4B8;
  text-decoration: none;
}

footer a:hover {
  color: var(--gold);
}

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  border: 3px solid rgba(200, 168, 92, 0.15);
  border-top: 3px solid var(--gold);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
  display: none;
}

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

/* ============================================================
   QR CONTAINER / TICKET
   ============================================================ */
.qr-container {
  background: var(--bg-card-solid);
  border: 2px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  max-width: 380px;
  margin: 0 auto;
}

.participant-id {
  font-family: 'Inter', monospace;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 4px;
  text-align: center;
  padding: 12px;
  background: linear-gradient(135deg, rgba(200, 168, 92, 0.08), rgba(200, 168, 92, 0.03));
  border-radius: var(--radius-sm);
  border: 2px dashed var(--gold);
}

/* ============================================================
   MODAL STYLES
   ============================================================ */
.details-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-content {
  background: var(--bg-card-solid);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  max-width: 500px;
  width: 90%;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-xl);
  position: relative;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
}

/* ============================================================
   SUPPORTERS SECTION
   ============================================================ */
.supporters-section {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.supporters-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(8px);
}

.supporter-item {
  flex: 0 1 200px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-base);
  transition: var(--transition-smooth);
  filter: grayscale(100%) opacity(0.6);
}

.supporter-item:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

.supporter-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ============================================================
   TOPICS SLIDESHOW
   ============================================================ */
.topics-slideshow-outer {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: var(--space-md) auto var(--space-lg);
  padding: 0 60px 50px;
}

.slides-viewport {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-card);
  aspect-ratio: 16 / 9;
  background: var(--bg-card-solid);
  cursor: grab;
}

.slides-viewport:active {
  cursor: grabbing;
}

.slides-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.topic-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.topic-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.slideshow-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(15, 27, 51, 0.8));
  padding: 40px var(--space-md) var(--space-md);
  color: white;
  text-align: center;
  pointer-events: none;
  z-index: 2;
}

.slideshow-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 5;
}

.dot {
  width: 10px;
  height: 10px;
  background: rgba(200, 168, 92, 0.2);
  border: 1.5px solid rgba(200, 168, 92, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dot.active {
  background: var(--gold);
  border-color: var(--gold);
  width: 30px;
  border-radius: 5px;
  box-shadow: 0 0 15px rgba(200, 168, 92, 0.5);
}

.slideshow-btn {
  position: absolute;
  top: calc(50% - 25px);
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-card);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.slideshow-btn svg {
  display: block;
  transition: transform 0.3s ease;
}

.slideshow-btn:hover svg {
  transform: scale(1.1);
}

.slideshow-btn:hover {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .slideshow-btn:hover {
  background: var(--gold);
  color: var(--navy-deep);
}

.prev-btn { right: 0; }
.next-btn { left: 0; }

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: var(--toggle-size);
  height: var(--toggle-size);
  border-radius: var(--radius-full);
  border: 2px solid var(--gold);
  background: var(--bg-card-solid);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: var(--shadow-md), 0 0 20px var(--gold-glow);
  transition: var(--transition-smooth);
  font-size: 1.3rem;
}

.theme-toggle:hover {
  transform: scale(1.15) rotate(15deg);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(200, 168, 92, 0.4);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  transition: opacity 0.3s, transform 0.3s;
  position: absolute;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg);
}

[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg);
}

:root .theme-toggle .icon-sun,
[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg);
}

:root .theme-toggle .icon-moon,
[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 168, 92, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(200, 168, 92, 0); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Scroll animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   UTILITY HELPERS
   ============================================================ */
.showAlert {
  display: block !important;
}

/* Helper function for alerts */
.alert[style*="display: block"],
.alert[style*="display:block"] {
  display: block !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  header img { max-height: 80px !important; }
  header h1 { font-size: 1.5rem; }
  header p { font-size: 0.9rem; }
  .container { padding: var(--space-md) var(--space-base); }
  .glass-card { padding: var(--space-md); }

  /* Patronage Mobile */
  .patrons-flex {
    gap: var(--space-base);
    flex-wrap: nowrap;
  }
  .patron-large {
    min-width: 0;
    gap: var(--space-xs);
  }
  .patron-frame {
    width: 75px;
    height: 75px;
    border-width: 3px;
  }
  .p-name { font-size: 0.85rem; }
  .p-title { font-size: 0.7rem; }
  .patronage-intro { font-size: 0.9rem; }
  .patronage-intro::after { margin: 8px auto; width: 40px; }
  .header-patronage-prominent {
    margin-top: var(--space-md);
    padding: var(--space-base);
  }

  /* Theme Toggle */
  .theme-toggle {
    bottom: 16px;
    left: 16px;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  /* Supporters */
  .supporters-container {
    gap: var(--space-md);
    padding: var(--space-base);
  }
  .supporter-item {
    flex: 0 1 140px;
    height: 80px;
  }

  /* Slideshow */
  .topics-slideshow-outer {
    padding: 0 0 40px;
    margin-bottom: var(--space-md);
  }
  .slides-viewport {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .slideshow-btn { display: none; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .glass-card { padding: var(--space-base) var(--space-sm); border-radius: var(--radius-md); }
  h2 { font-size: 1.5rem; }
  .btn { padding: 12px 20px; font-size: 0.95rem; }
}