:root {
  --brand: #6c5ce7;
  --brand-2: #00b894;
  --accent: #ff7675;
  --bg: #f5f7ff;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
}

body {
  font-family: "Cairo", sans-serif;
  background: linear-gradient(180deg, #f9faff 0%, var(--bg) 100%);
  color: var(--text);
  min-height: 100vh;
}

main {
  min-height: 70vh;
}

.site-navbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.brand-badge {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.hero-section {
  padding: 2rem 0;
}

.hero-card {
  border: 0;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 16px 35px rgba(17, 24, 39, 0.08);
}

#heroCarousel .carousel-item img {
  width: 100%;
  height: min(60vh, 520px);
  object-fit: cover;
}

.section-title {
  font-weight: 800;
  margin-bottom: 1rem;
}

.event-card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.12);
}

.event-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.id-box {
  border: 1px dashed var(--brand);
  border-radius: 1rem;
  background: #ffffffb8;
}

.policy-card,
.contact-card,
.detail-card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.07);
}

.team-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
}

.footer {
  border-top: 1px solid var(--border);
  background: #ffffffde;
}

#scrollTopBtn {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 1100;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  display: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 10px 20px rgba(108, 92, 231, 0.35);
}

body.dark-mode {
  --bg: #0f172a;
  --surface: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2937;
  background: linear-gradient(180deg, #0b1020 0%, #0f172a 100%);
}

body.dark-mode .site-navbar,
body.dark-mode .footer {
  background: rgba(17, 24, 39, 0.92);
}

body.dark-mode .navbar-brand,
body.dark-mode .nav-link,
body.dark-mode .navbar-nav .nav-link.active {
  color: var(--text) !important;
}

body.dark-mode .nav-link:hover,
body.dark-mode .navbar-brand:hover {
  color: #ffffff !important;
}

body.dark-mode #darkModeToggle {
  color: var(--text);
  border-color: var(--muted);
}

body.dark-mode #darkModeToggle:hover {
  color: #0f172a;
  background-color: var(--text);
  border-color: var(--text);
}

body.dark-mode .card,
body.dark-mode .hero-card,
body.dark-mode .id-box {
  background-color: var(--surface);
  color: var(--text);
}

body.dark-mode .modal-content {
  background-color: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

body.dark-mode .modal-header,
body.dark-mode .modal-footer {
  border-color: var(--border);
}

body.dark-mode .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

body.dark-mode .text-muted,
body.dark-mode .event-meta {
  color: var(--muted) !important;
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 1rem;
  }

  #heroCarousel .carousel-item img {
    height: min(42vh, 320px);
  }
}
