:root {
  --bg-primary: #0a0f1a;
  --bg-secondary: #0d1526;
  --bg-card: #0f1a2e;
  --text-primary: #ffffff;
  --text-secondary: #8899aa;
  --text-muted: #556677;
  --accent: #00b4ff;
  --accent-dim: #0077aa;
  --border: #1a2a3a;
  --border-bright: #1e3a5a;
  --grid-color: rgba(0, 180, 255, 0.04);
  --nav-bg: rgba(10, 15, 26, 0.95);
}

html[data-theme="light"] {
  --bg-primary: #f0f4f8;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #0a0f1a;
  --text-secondary: #445566;
  --text-muted: #889aa8;
  --accent: #1a6fd8;
  --accent-dim: #0d4a99;
  --border: #dde4ee;
  --border-bright: #b8ccdd;
  --grid-color: rgba(26, 111, 216, 0.06);
  --nav-bg: rgba(240, 244, 248, 0.97);
}

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

body {
  font-family: "Courier New", monospace;
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(var(--grid-color) 1px, transparent 1px), linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Hide MkDocs chrome so only custom layout is visible */
.md-header,
.md-sidebar,
.md-tabs,
.md-footer,
.md-top,
.md-source,
.md-search {
  display: none !important;
}

.md-main__inner {
  margin-top: 0 !important;
  max-width: none !important;
  grid-template-columns: 1fr !important;
}

.md-content {
  margin: 0 !important;
}

.md-content__inner {
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
}

.md-content__inner:before,
.md-content__inner:after {
  display: none !important;
}

nav#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 2vw, 2rem);
  height: 56px;
  gap: 0;
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.nav-logo {
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.25rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-primary) !important;
  text-decoration: none;
  margin-right: clamp(0.9rem, 1.8vw, 2rem);
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.site-logo {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--border-bright);
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 0;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  color: var(--text-secondary) !important;
  text-decoration: none;
  font-size: clamp(0.72rem, 0.64rem + 0.18vw, 0.9rem);
  letter-spacing: clamp(0.08em, 0.04em + 0.12vw, 0.16em);
  text-transform: uppercase;
  padding: 0 clamp(0.55rem, 0.7vw, 1rem);
  height: 56px;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
  flex: 0 0 auto;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent) !important;
}

.nav-links a.active {
  border: 1px solid var(--accent);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1vw, 1rem);
  margin-left: auto;
  flex: 0 0 auto;
}

.lang-btn,
.theme-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 1px;
  padding: 4px 8px;
  transition: color 0.2s;
}

.lang-btn:hover,
.theme-btn:hover {
  color: var(--accent);
}

.theme-btn {
  font-size: 1rem;
}

.floating-site-controls {
  position: fixed;
  top: 78px;
  right: 24px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.floating-control-btn {
  min-width: 46px;
  min-height: 46px;
  padding: 0 0.9rem;
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(14, 24, 42, 0.96), rgba(10, 15, 26, 0.98));
  color: #f7fbff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(3, 12, 24, 0.28);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.floating-control-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 79, 128, 0.2);
}

.locale-ar {
  direction: rtl;
}

html[lang="ar"] .locale-en {
  display: none !important;
}

html:not([lang="ar"]) .locale-ar {
  display: none !important;
}

.page {
  display: none;
  padding-top: 56px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.page.active {
  display: block;
}

.announcement {
  border: 1px solid var(--border-bright);
  padding: 0.6rem 2rem;
  margin: 1.5rem auto;
  max-width: 900px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ann-badge {
  background: var(--accent);
  color: #000;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 3px 8px;
}

.ann-text {
  font-size: 1rem;
  color: var(--text-primary);
}

.hero {
  text-align: center;
  padding: 3rem 2rem 2rem;
}

.hero-title {
  font-family: "Courier New", monospace;
  font-size: clamp(2.8rem, 6.2vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -2px;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1;
  text-shadow: 0 0 18px rgba(0, 180, 255, 0.14);
}

.hero-title .glitch {
  position: relative;
  display: inline-block;
  font-weight: 900;
  color: var(--text-primary);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.hero-title .glitch::before,
.hero-title .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent);
  opacity: 0;
  font-weight: 900;
}

.hero-title .accent,
.hero-title .accent.glitch {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(0, 180, 255, 0.24);
}

html[data-theme="light"] .hero-title {
  text-shadow: 0 2px 18px rgba(13, 74, 153, 0.08);
}

html[data-theme="light"] .hero-title .glitch {
  color: #0d1626;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.95), 0 3px 12px rgba(26, 111, 216, 0.12);
}

html[data-theme="light"] .hero-title .accent,
html[data-theme="light"] .hero-title .accent.glitch {
  color: #1a6fd8;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 3px 14px rgba(26, 111, 216, 0.18);
}

.hero-title .glitch::before {
  animation: glitch1 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  text-shadow: -3px 0 #ff003c;
}

.hero-title .glitch::after {
  animation: glitch2 3s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  text-shadow: 3px 0 #00fff9;
}

@keyframes glitch1 {
  0%,
  90%,
  100% {
    transform: translate(0);
    opacity: 0;
  }
  92% {
    transform: translate(-4px, 1px);
    opacity: 1;
  }
  94% {
    transform: translate(3px, -1px);
    opacity: 1;
  }
  96% {
    transform: translate(-2px, 2px);
    opacity: 1;
  }
  98% {
    transform: translate(0);
    opacity: 0;
  }
}

@keyframes glitch2 {
  0%,
  91%,
  100% {
    transform: translate(0);
    opacity: 0;
  }
  93% {
    transform: translate(4px, -1px);
    opacity: 1;
  }
  95% {
    transform: translate(-3px, 1px);
    opacity: 1;
  }
  97% {
    transform: translate(2px, -2px);
    opacity: 1;
  }
  99% {
    transform: translate(0);
    opacity: 0;
  }
}

.hero-title .accent {
  color: var(--accent);
}

.hero-tagline {
  font-size: 1rem;
  letter-spacing: 4px;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--accent);
}

.countdown-sep {
  color: var(--accent);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-top: 4px;
}

.event-meta {
  display: flex;
  gap: 2rem;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.event-meta > span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.meta-icon {
  color: var(--accent);
  font-size: 1rem;
}

.icon-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  color: var(--accent);
}

.icon-inline svg {
  width: 100%;
  height: 100%;
}

.register-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  background: none;
  padding: 0.9rem 2.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.register-btn:hover {
  background: var(--accent);
  color: #000 !important;
}

.section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-primary);
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 2rem;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
}

.cat-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.cat-card:hover {
  border-color: var(--accent-dim);
}

.cat-path {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.cat-name {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.cat-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-bright);
}

.timeline-item {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.timeline-dot {
  position: absolute;
  left: -2.55rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border-bright);
  background: var(--bg-primary);
}

.timeline-dot.active {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 0.3rem;
  font-weight: 900;
}

.timeline-name {
  font-size: 1rem;
  font-weight: 900;
}

.timeline-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.timeline-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

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

.workshop-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 1.5rem;
  position: relative;
}

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

.workshop-badge {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.workshop-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.workshop-check input {
  accent-color: var(--accent);
}

.workshop-name {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 1.2rem;
}

.workshop-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.detail-group label {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

.detail-group span {
  font-size: 1rem;
  font-weight: 700;
}

.view-btn {
  width: 100%;
  border: 1px solid var(--accent);
  background: none;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 0.7rem;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.view-btn:hover {
  background: var(--accent);
  color: #000;
}

.resource-section {
  margin-bottom: 2.5rem;
}

.resource-cat {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 400;
}

.resource-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
  padding: 0.9rem 1.2rem;
  margin-bottom: 2px;
  cursor: pointer;
  transition: border-color 0.2s;
  background: var(--bg-secondary);
  color: inherit;
  text-decoration: none;
}

.resource-item:hover {
  border-color: var(--accent-dim);
}

.resource-badge {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 3px 8px;
  border: 1px solid;
  min-width: 60px;
  text-align: center;
}

.badge-tool {
  border-color: #00b4aa;
  color: #00b4aa;
}

.badge-yt {
  border-color: #ff4444;
  color: #ff4444;
}

.badge-platform {
  border-color: var(--accent);
  color: var(--accent);
}

.badge-article {
  border-color: #aa88ff;
  color: #aa88ff;
}

.resource-name {
  flex: 1;
  font-size: 1rem;
}

.resource-ext {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  margin-bottom: 3rem;
}

.challenge-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border: 1px solid var(--border);
  text-align: center;
}

.challenge-diff {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.challenge-name {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.challenge-pts {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.platforms-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.platform-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

.platform-item:hover {
  border-color: var(--accent-dim);
}

.platform-name {
  font-size: 0.95rem;
  font-weight: 900;
}

.platform-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.platform-arrow {
  color: var(--text-muted);
}

.rules-box {
  border: 1px solid var(--border);
  padding: 2rem;
  background: var(--bg-secondary);
}

.rule-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.rule-item:last-child {
  border-bottom: none;
}

.rule-num {
  color: var(--accent);
  font-weight: 900;
  font-size: 1rem;
  min-width: 24px;
}

.rule-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

html[data-theme="light"] .rule-text {
  color: var(--text-primary);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  background: var(--bg-secondary);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  user-select: none;
}

.faq-q:hover {
  color: var(--accent);
}

.faq-chevron {
  color: var(--accent);
  font-style: normal;
  transition: transform 0.2s;
}

.faq-a {
  padding: 0 1.5rem 1rem;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: none;
}

.faq-item.open .faq-a {
  display: block;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-contact {
  text-align: center;
  margin-top: 3rem;
}

.faq-contact p {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.faq-contact a {
  color: var(--accent);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
}

.about-box {
  border: 1px solid var(--border);
  padding: 2rem;
  background: var(--bg-secondary);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

html[data-theme="light"] .about-box {
  color: var(--text-primary);
}

.about-box p + p {
  margin-top: 1rem;
}

.club-collab {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

.club-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.club-logo-card {
  min-width: 180px;
  padding: 1rem 1.1rem 0.9rem;
  border: 1px solid var(--border-bright);
  background: linear-gradient(180deg, rgba(15, 26, 46, 0.72), rgba(13, 21, 38, 0.92));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.club-logo-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.club-logo-label {
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.club-collab-plus {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.club-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.club-work-card {
  border: 1px solid var(--border);
  background: rgba(10, 15, 26, 0.55);
  padding: 1.25rem;
}

.club-work-title {
  margin-bottom: 0.8rem;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.club-work-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-secondary);
}

.club-work-list li {
  line-height: 1.9;
}

.club-work-list li + li {
  margin-top: 0.6rem;
}

.club-collab-note {
  margin-top: 1rem;
  color: var(--text-primary);
}

html[dir="rtl"] .club-work-list {
  padding-left: 0;
  padding-right: 1.15rem;
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .club-logo-label,
html[dir="rtl"] .club-work-title,
html[dir="rtl"] .club-collab-plus {
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .club-work-card,
html[dir="rtl"] .club-collab-note {
  text-align: right;
}

html[dir="rtl"] .club-work-list li::marker {
  color: var(--text-secondary);
}

html[data-theme="light"] .club-logo-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 246, 252, 0.98));
}

html[data-theme="light"] .club-work-card {
  background: rgba(255, 255, 255, 0.86);
}

@media (max-width: 820px) {
  .club-work-grid {
    grid-template-columns: 1fr;
  }

  .club-logo-card {
    width: min(100%, 260px);
  }
}

.tutorial-shell {
  width: min(100%, 1100px);
  margin: 0 auto;
}

.tutorial-hero-card,
.tutorial-open-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15, 26, 46, 0.96), rgba(13, 21, 38, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.tutorial-hero-card {
  padding: 2rem;
  border-radius: 28px;
}

.tutorial-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.75rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tutorial-title {
  margin: 1rem 0 0.75rem;
  color: var(--text-primary);
  font-family: "Courier New", monospace;
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow: 0 0 18px rgba(0, 180, 255, 0.1);
}

.tutorial-summary {
  max-width: 850px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.8;
}

.tutorial-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.tutorial-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.tutorial-meta-item strong {
  color: var(--text-primary);
}

.tutorial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.tutorial-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 16px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.tutorial-action:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-1px);
}

.tutorial-action.secondary {
  border-color: var(--border-bright);
  color: var(--text-primary);
}

.tutorial-action.secondary:hover {
  border-color: var(--accent);
  background: rgba(0, 180, 255, 0.12);
  color: var(--text-primary);
}

.tutorial-open-card {
  margin: 1.25rem 0 1.5rem;
  padding: 1.15rem 1.25rem;
  border-radius: 20px;
}

.tutorial-open-card h2 {
  margin: 0 0 0.9rem;
  color: var(--text-primary);
  font-family: "Courier New", monospace;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.15;
}

.tutorial-open-card ul {
  margin: 0;
  padding-left: 1.35rem;
}

.tutorial-open-card li + li {
  margin-top: 0.55rem;
}

.tutorial-content-card {
  margin: 1.25rem 0 1.5rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 26, 46, 0.96), rgba(13, 21, 38, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.tutorial-content-card h2 {
  margin: 0 0 0.85rem;
  color: var(--text-primary);
  font-family: "Courier New", monospace;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.05;
}

.tutorial-content-card p,
.tutorial-content-card li,
.tutorial-content-card td,
.tutorial-content-card th {
  color: var(--text-secondary);
}

.tutorial-content-card ul {
  margin: 0;
  padding-left: 1.35rem;
}

.tutorial-content-card li + li {
  margin-top: 0.55rem;
}

.tutorial-content-card table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
}

.tutorial-content-card th,
.tutorial-content-card td {
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}

.tutorial-content-card th {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.tutorial-open-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.tutorial-open-card a {
  display: inline-flex;
  align-items: center;
  margin-top: 0.85rem;
  color: var(--accent);
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
}

.tutorial-open-card a:hover {
  text-decoration: underline;
}

html[lang="ar"] .tutorial-hero-card,
html[lang="ar"] .tutorial-open-card {
  text-align: right;
}

html[lang="ar"] .tutorial-summary {
  margin-right: 0;
  margin-left: auto;
}

html[lang="ar"] .tutorial-meta {
  justify-content: flex-end;
}

html[lang="ar"] .tutorial-meta-item {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] .tutorial-actions {
  justify-content: flex-end;
}

html[lang="ar"] .tutorial-open-card ul {
  padding-right: 1.35rem;
  padding-left: 0;
}

html[lang="ar"] .tutorial-open-card li {
  direction: rtl;
  text-align: right;
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.tutorial-grid-card {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 26, 46, 0.96), rgba(13, 21, 38, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.tutorial-grid-card h2 {
  margin: 0.9rem 0 0.45rem;
  color: var(--text-primary);
  font-family: "Courier New", monospace;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.05;
}

.tutorial-grid-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.tutorial-grid-card .tutorial-action {
  width: 100%;
  margin-top: 1.1rem;
}

.iframe-wrap {
  width: min(100%, 1100px);
  margin: 0 auto 2rem;
  padding: 1rem;
  border: 1px solid var(--border-bright);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(0, 180, 255, 0.26), rgba(0, 119, 170, 0.22));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.iframe-wrap iframe {
  display: block;
  width: 100%;
  min-height: 78vh;
  border: 0;
  border-radius: 18px;
  background: #ffffff;
}

html[data-theme="light"] .iframe-wrap {
  background: linear-gradient(180deg, rgba(26, 111, 216, 0.5), rgba(112, 133, 255, 0.42));
  box-shadow: 0 14px 34px rgba(26, 111, 216, 0.16);
}

html[data-theme="light"] .tutorial-hero-card,
html[data-theme="light"] .tutorial-open-card,
html[data-theme="light"] .tutorial-grid-card,
html[data-theme="light"] .tutorial-content-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 248, 255, 0.98));
  box-shadow: inset 0 0 0 1px rgba(26, 111, 216, 0.04), 0 10px 28px rgba(26, 111, 216, 0.08);
}

html[data-theme="light"] .floating-control-btn {
  border-color: rgba(26, 111, 216, 0.42);
  background: linear-gradient(180deg, rgba(26, 111, 216, 0.96), rgba(13, 74, 153, 0.98));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(26, 111, 216, 0.26);
}

html[data-theme="light"] .floating-control-btn:hover {
  border-color: rgba(8, 63, 142, 0.9);
  color: #ffffff;
  background: linear-gradient(180deg, rgba(20, 94, 187, 0.98), rgba(10, 66, 145, 1));
}

html[data-theme="light"] .tutorial-title {
  color: #17325f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 22px rgba(26, 111, 216, 0.18);
}

@media (max-width: 980px) {
  .tutorial-shell,
  .iframe-wrap {
    width: min(100% - 24px, 100%);
  }

  .floating-site-controls {
    top: auto;
    right: 14px;
    bottom: 14px;
    gap: 0.55rem;
  }

  .floating-control-btn {
    min-width: 50px;
    min-height: 50px;
    padding: 0 0.95rem;
    font-size: 0.82rem;
  }

  .tutorial-hero-card {
    padding: 1.6rem;
    border-radius: 24px;
  }

  .tutorial-title {
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1;
    letter-spacing: -0.04em;
  }

  .tutorial-summary {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .tutorial-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .tutorial-meta-item {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  html[lang="ar"] .tutorial-meta-item {
    justify-content: flex-end;
  }

  .tutorial-open-card,
  .tutorial-content-card {
    border-radius: 18px;
  }

  .iframe-wrap {
    padding: 0.8rem;
    border-radius: 20px;
  }

  .iframe-wrap iframe {
    min-height: 68vh;
    border-radius: 14px;
  }
}

@media (max-width: 720px) {
  .floating-site-controls {
    right: 12px;
    bottom: 12px;
    gap: 0.45rem;
  }

  .floating-control-btn {
    min-width: 42px;
    min-height: 42px;
    padding: 0 0.75rem;
    font-size: 0.72rem;
  }

  .tutorial-hero-card {
    padding: 1.35rem;
  }

  .tutorial-title {
    font-size: clamp(1.7rem, 9vw, 2.35rem);
    line-height: 1.02;
  }

  .tutorial-kicker {
    width: 100%;
    justify-content: center;
    text-align: center;
    letter-spacing: 0.14em;
  }

  .tutorial-meta-item {
    padding: 0.75rem 0.85rem;
    font-size: 0.84rem;
  }

  .tutorial-actions {
    flex-direction: column;
  }

  .tutorial-action {
    width: 100%;
  }

  .tutorial-open-card,
  .tutorial-content-card {
    padding: 1rem;
  }

  .iframe-wrap {
    width: min(100% - 16px, 100%);
    padding: 0.55rem;
    border-radius: 16px;
  }

  .iframe-wrap iframe {
    min-height: 56vh;
    border-radius: 12px;
  }
}

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

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

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--accent-dim);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  margin: 0 auto 0.75rem;
  color: var(--text-primary);
}

.team-name {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 0.2rem;
}

.team-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.45rem;
  padding: 0.22rem 0.6rem;
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  background: rgba(0, 180, 255, 0.08);
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-role {
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--text-muted);
}

footer,
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.25rem 2rem 2rem;
  border-top: 1px solid var(--border);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 1200px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 10px rgba(0, 180, 255, 0.35);
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-bottom: 0.7rem;
  color: var(--text-primary);
}

.footer-logo span {
  color: var(--accent);
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.9px;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  margin-top: 1rem;
  color: var(--text-muted);
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  white-space: nowrap;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer-nav a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0, 180, 255, 0.35);
}

.footer-sep {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.6;
}

.footer-contact {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-contact a,
.footer-credit a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer-contact a:hover,
.footer-credit a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0, 180, 255, 0.35);
}

.footer-credit {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

html[dir="rtl"] .footer-nav {
  direction: rtl;
}

html[dir="rtl"] .section-title {
  border-left: none;
  border-right: 3px solid var(--accent);
  padding-left: 0;
  padding-right: 1rem;
}

html[dir="rtl"] .timeline {
  padding-left: 0;
  padding-right: 3rem;
}

html[dir="rtl"] .timeline::before {
  left: auto;
  right: 0.9rem;
}

html[dir="rtl"] .timeline-dot {
  left: auto;
  right: -2.55rem;
}

html[dir="rtl"] nav#nav {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav-logo {
  margin-right: 0;
  margin-left: 2rem;
}

html[dir="rtl"] .nav-controls {
  margin-left: 0;
  margin-right: auto;
}

@media (max-width: 1180px) {
  nav#nav {
    height: auto;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.8rem 1rem 0.65rem;
    gap: 0.7rem;
  }

  .nav-logo {
    margin-right: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1.05rem;
  }

  .site-logo {
    width: 22px;
    height: 22px;
  }

  .nav-controls {
    margin-left: 0;
    gap: 0.55rem;
    flex: 0 0 auto;
  }

  .lang-btn,
  .theme-btn {
    min-width: 40px;
    min-height: 40px;
    padding: 0 0.75rem;
    border: 1px solid var(--border-bright);
    border-radius: 999px;
    background: rgba(15, 26, 46, 0.9);
  }

  .announcement {
    margin: 1rem;
    max-width: none;
    padding: 0.8rem 1rem;
  }

  .nav-links {
    display: flex;
    order: 3;
    flex: 1 0 100%;
    gap: 0.45rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.15rem 0 0.2rem;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    flex-shrink: 0;
    min-width: max-content;
    height: auto;
    min-height: 40px;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(15, 26, 46, 0.82);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    writing-mode: horizontal-tb;
    line-height: 1;
    justify-content: center;
  }

  .nav-links a.active {
    border-color: var(--accent);
    background: rgba(0, 180, 255, 0.12);
  }

  .page {
    padding-top: 118px;
  }

  .section {
    padding: 2rem 1rem;
  }

  .workshop-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 2rem 1rem 1.75rem;
  }

  .footer-nav {
    gap: 0.35rem 0.5rem;
  }

  .footer-nav a {
    letter-spacing: 0.18em;
  }

  html[data-theme="light"] nav#nav {
    background: rgba(249, 252, 255, 0.96);
    border-bottom-color: rgba(26, 111, 216, 0.16);
    box-shadow: 0 12px 28px rgba(26, 111, 216, 0.08);
  }

  html[data-theme="light"] .lang-btn,
  html[data-theme="light"] .theme-btn {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 242, 250, 0.98));
    border-color: rgba(26, 111, 216, 0.28);
    color: #17325f;
    box-shadow: 0 8px 20px rgba(26, 111, 216, 0.14);
  }

  html[data-theme="light"] .lang-btn:hover,
  html[data-theme="light"] .theme-btn:hover {
    color: #0d4a99;
    border-color: #1a6fd8;
    background: linear-gradient(180deg, rgba(239, 247, 255, 0.98), rgba(225, 238, 255, 0.98));
  }

  html[data-theme="light"] .nav-links a {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 245, 252, 0.98));
    border-color: rgba(26, 111, 216, 0.2);
    color: #355070;
    box-shadow: 0 6px 16px rgba(26, 111, 216, 0.08);
  }

  html[data-theme="light"] .nav-links a:hover {
    color: #0d4a99;
    border-color: #1a6fd8;
  }

  html[data-theme="light"] .nav-links a.active {
    color: #0d4a99;
    border-color: #1a6fd8;
    background: linear-gradient(180deg, rgba(225, 238, 255, 1), rgba(213, 230, 255, 0.98));
    box-shadow: 0 8px 20px rgba(26, 111, 216, 0.14);
  }
}

@media (max-width: 720px) {
  nav#nav {
    padding: 0.7rem 0.75rem 0.6rem;
    gap: 0.6rem;
  }

  .nav-logo {
    font-size: 0.98rem;
    gap: 0.35rem;
  }

  .nav-controls {
    gap: 0.45rem;
  }

  .lang-btn,
  .theme-btn {
    min-width: 38px;
    min-height: 38px;
    padding: 0 0.65rem;
    font-size: 0.72rem;
  }

  .nav-links {
    gap: 0.38rem;
  }

  .nav-links a {
    min-height: 38px;
    padding: 0.55rem 0.82rem;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    min-width: max-content;
    word-break: keep-all;
    overflow-wrap: normal;
    writing-mode: horizontal-tb;
    line-height: 1;
    justify-content: center;
  }

  .page {
    padding-top: 112px;
  }

  .announcement {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
  }

  .ann-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .hero {
    padding: clamp(1.8rem, 6vw, 2.4rem) 1rem 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
    line-height: 0.96;
    width: 100%;
    max-width: min(100%, 20rem);
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
  }

  .hero-tagline {
    font-size: clamp(0.72rem, 2.8vw, 0.82rem);
    letter-spacing: clamp(0.16em, 0.9vw, 0.28em);
    line-height: 1.75;
    margin-bottom: 1.8rem;
    width: 100%;
    max-width: min(100%, 22rem);
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
  }

  .countdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 0.75rem;
    width: 100%;
    max-width: min(100%, 22rem);
    margin: 0 auto 1.6rem;
    font-size: clamp(2.2rem, 12vw, 3.3rem);
  }

  .countdown-sep {
    display: none;
  }

  .countdown-unit {
    min-width: 0;
    padding: 0.55rem 0.35rem;
    border: 1px solid rgba(30, 58, 90, 0.45);
    background: rgba(10, 15, 26, 0.28);
  }

  .countdown-label {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
  }

  .event-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    width: 100%;
    max-width: min(100%, 24rem);
    font-size: clamp(0.78rem, 2.8vw, 0.9rem);
    margin: 0 auto 1.8rem;
  }

  .event-meta > span {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    justify-content: start;
    gap: 0.6rem;
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(30, 58, 90, 0.45);
    background: rgba(10, 15, 26, 0.26);
    text-align: left;
    line-height: 1.45;
  }

  .event-meta > span > span:last-child {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .register-btn {
    width: 100%;
    max-width: min(100%, 22rem);
    justify-content: center;
    padding: 0.95rem 1.4rem;
    margin-left: auto;
    margin-right: auto;
  }
}
