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

:root {
  --bg-primary: #10303f;
  --bg-secondary: #173d50;
  --bg-card: #1e4d62;
  --gold: #d4a843;
  --gold-dim: rgba(212, 168, 67, 0.15);
  --gold-glow: rgba(212, 168, 67, 0.3);
  --text-primary: #ffffff;
  --text-secondary: #a0b4c4;
  --font-ar: 'Noto Sans Arabic', sans-serif;
  --font-en: 'Inter', sans-serif;

  /* Light section tokens */
  --bg-light: #f5f3ee;
  --bg-light-card: #ffffff;
  --bg-light-card-border: #e0ddd5;
  --text-light-primary: #1a2a36;
  --text-light-secondary: #5a6a78;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ar);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 16px;
  direction: rtl;
  text-align: right;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

/* ── Section themes ── */
.section-dark {
  background: var(--bg-secondary);
}

.section-light {
  background: var(--bg-light);
  color: var(--text-light-primary);
}

.section-light .section-label {
  color: var(--gold);
}

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

.section-light .about-text {
  color: var(--text-light-secondary);
}

.section-light .stat-card {
  background: var(--bg-light-card);
  border-color: var(--bg-light-card-border);
}

.section-light .stat-label {
  color: var(--text-light-secondary);
}

.section-light .speaker-card {
  background: var(--bg-light-card);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.section-light .speaker-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.section-light .speaker-name {
  color: var(--text-light-primary);
}

.section-light .speaker-role {
  color: var(--text-light-secondary);
}

.section-light .speaker-photo {
  border-color: var(--bg-light-card-border);
}

.section-light .sponsor-card {
  background: var(--bg-light-card);
}

.section-light .sponsor-card--main {
  background: var(--bg-secondary);
  border-color: var(--gold);
}

.section-light .sponsor-card--main .sponsor-name {
  color: var(--text-primary);
}

.section-light .sponsor-card--secondary {
  border-color: var(--bg-light-card-border);
}

.section-light .sponsor-name {
  color: var(--text-light-primary);
}

.section-light .sponsors-subtitle {
  color: var(--text-light-secondary);
}

.section-label {
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 48px;
}

/* ── Navigation ── */
body {
  padding-top: 70px;
}

.nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 70px;
  background: rgba(16, 48, 63, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 168, 67, 0.15);
  z-index: 1000;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logos {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  height: 42px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.3s;
}

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

.nav-cta {
  background: var(--gold);
  color: var(--bg-primary) !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 700 !important;
  transition: opacity 0.3s;
}

.nav-cta:hover {
  opacity: 0.85;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    left: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gold-dim);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
  }
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 168, 67, 0.08) 0%, transparent 60%),
              var(--bg-primary);
}

.hero-content {
  max-width: 800px;
}

.hero-label {
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 40px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  direction: ltr;
}

.countdown-box {
  background: var(--bg-card);
  border: 1px solid var(--gold-dim);
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 80px;
  text-align: center;
}

.countdown-value {
  display: block;
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
}

.countdown-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.hero-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--bg-primary);
  padding: 14px 40px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--gold-glow);
}

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

  .hero-meta {
    flex-direction: column;
    gap: 8px;
  }

  .countdown-box {
    min-width: 64px;
    padding: 12px 10px;
  }

  .countdown-value {
    font-size: 24px;
  }
}

/* ── Patronage ── */
.patronage {
  background: var(--bg-light);
}

.patronage-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

.patronage-uni-logo {
  height: 80px;
  width: auto;
  margin-bottom: 12px;
}

.patronage-uni-name {
  font-size: 28px;
  font-weight: 700;
  color: var(--bg-primary);
  margin-bottom: 32px;
}

.patronage-label {
  font-size: 15px;
  font-weight: 600;
  color: #999;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.patronage-card {
  display: flex;
  align-items: center;
  gap: 32px;
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--bg-light-card-border);
  max-width: 600px;
  text-align: right;
}

.patronage-photo {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-primary);
  flex-shrink: 0;
}

.patronage-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.patronage-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--bg-primary);
}

.patronage-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
}

.patronage-bio {
  font-size: 14px;
  color: var(--text-light-secondary);
  line-height: 1.7;
}

.patronage-hosted {
  margin-top: 28px;
  font-size: 15px;
  color: var(--text-light-secondary);
}

.patronage-hosted strong {
  color: var(--bg-primary);
  font-weight: 700;
}

@media (max-width: 640px) {
  .patronage-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
    gap: 20px;
  }

  .patronage-photo {
    width: 110px;
    height: 110px;
  }

  .patronage-name {
    font-size: 20px;
  }

  .patronage-uni-logo {
    height: 56px;
  }

  .patronage-uni-name {
    font-size: 22px;
  }
}

/* ── About ── */
.about-text {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 2;
  max-width: 800px;
  margin-bottom: 48px;
}

.about-text strong {
  color: var(--gold);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-dim);
  border-radius: 16px;
  padding: 32px 16px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

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

.stat-value {
  display: block;
  font-family: var(--font-en);
  font-size: 40px;
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  display: block;
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 8px;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Speakers ── */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.speaker-card {
  background: var(--bg-card);
  border-top: 3px solid var(--gold);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.speaker-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.speaker-card--keynote {
  border-top-width: 4px;
  background: linear-gradient(180deg, rgba(212, 168, 67, 0.08) 0%, var(--bg-card) 40%);
}

.speaker-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  border: 3px solid var(--gold-dim);
}

.speaker-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.speaker-role {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.speaker-talk {
  font-size: 13px;
  color: var(--gold);
  line-height: 1.6;
  border-top: 1px solid var(--gold-dim);
  padding-top: 12px;
  margin-top: 4px;
}

@media (max-width: 1024px) {
  .speakers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ── Agenda Timeline ── */
.agenda-period {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 24px;
  margin-top: 48px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold-dim);
}

.agenda-period:first-of-type {
  margin-top: 0;
}

.timeline {
  display: grid;
  grid-template-columns: auto 24px 1fr;
  gap: 0 20px;
  margin-bottom: 40px;
}

.timeline-item {
  display: contents;
}

.timeline-time {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 6px 14px;
  border-radius: 8px;
  text-align: center;
  direction: ltr;
  align-self: start;
  margin-top: 16px;
  white-space: nowrap;
}

.timeline-dot {
  position: relative;
  align-self: stretch;
}

.timeline-dot::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--bg-secondary);
  z-index: 1;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% - 34px);
  background: var(--gold-dim);
}

.timeline-item:last-child .timeline-dot::after {
  display: none;
}

.timeline-content {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 8px 0;
  border: 1px solid var(--gold-dim);
}

.timeline-duration {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.6;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.5;
}

/* Break items */
.timeline-item--break .timeline-content {
  border-style: dashed;
  border-color: var(--gold-dim);
  background: rgba(26, 58, 74, 0.5);
}

.timeline-item--break .timeline-dot::before {
  background: var(--bg-secondary);
  border-color: var(--gold);
}

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

  .timeline-dot {
    display: none;
  }

  .timeline-time {
    margin-top: 16px;
    justify-self: start;
  }

  .timeline-content {
    margin: 4px 0 16px;
  }
}

/* ── Sponsors ── */
.sponsors-main {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.sponsor-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 40px 48px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.sponsor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.sponsor-card--main {
  border: 2px solid var(--gold);
  min-width: 260px;
}

.sponsor-card--secondary {
  border: 1px solid var(--gold-dim);
  min-width: 220px;
  padding: 32px 40px;
}

.sponsor-logo {
  height: 64px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(1.1);
}

.sponsor-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.sponsors-subtitle {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
}

.sponsors-secondary {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .sponsors-main,
  .sponsors-secondary {
    flex-direction: column;
    align-items: center;
  }

  .sponsor-card--main,
  .sponsor-card--secondary {
    min-width: 0;
    width: 100%;
    max-width: 320px;
  }
}

/* ── Footer ── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--gold-dim);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-tagline {
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
}

.footer-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}

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

.footer-links li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.footer-social-link:hover {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--gold-dim);
  text-align: center;
  padding: 20px 24px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-logos {
    justify-content: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* ── Registration ── */
.register-section {
  background: var(--bg-secondary);
}

.register-container {
  max-width: 600px;
}

.register-container .section-title {
  text-align: center;
}

.register-container .section-label {
  text-align: center;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-ar);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--gold-dim);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--gold);
}

.form-group input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  font-family: var(--font-ar);
  font-size: 18px;
  font-weight: 700;
  color: var(--bg-primary);
  background: var(--gold);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.2s, box-shadow 0.2s;
  margin-top: 8px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--gold-glow);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-error {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 12px;
  text-align: center;
  min-height: 20px;
}

/* ── Ticket ── */
.ticket-container {
  margin-top: 40px;
  text-align: center;
}

.ticket-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.ticket-header {
  background: var(--bg-primary);
  padding: 24px 20px;
  text-align: center;
}

.ticket-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}

.ticket-header p {
  font-size: 13px;
  color: var(--text-secondary);
}

.ticket-body {
  padding: 32px 20px;
  background: #ffffff;
  text-align: center;
}

.ticket-attendee {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.ticket-qr {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.ticket-uuid {
  font-family: var(--font-en);
  font-size: 12px;
  color: #666666;
  word-break: break-all;
  direction: ltr;
}

.ticket-footer {
  background: #f5f5f5;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #555555;
}

.download-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 32px;
  font-family: var(--font-ar);
  font-size: 16px;
  font-weight: 700;
  color: var(--bg-primary);
  background: var(--gold);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.2s;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--gold-glow);
}

.ticket-note {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 16px;
}

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

  .ticket-footer {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}
