/* ===== Filter Tabs (Courses Page) ===== */
.filter-bar {
  max-width: 1200px;
  margin: -20px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.filter-tabs {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  box-shadow: var(--shadow-card);
  gap: 4px;
}
.filter-tab {
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.filter-tab.active { background: var(--accent); color: #fff; }
.filter-tab:hover:not(.active) { color: var(--fg); background: rgba(21,50,91,0.04); }

/* ===== Courses Page Layout ===== */
.courses-page { padding: 48px 24px 80px; }
.courses-inner { max-width: 1200px; margin: 0 auto; }

/* ===== Contact Page ===== */
.contact-section { padding: 48px 24px 80px; }
.contact-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.contact-form-card h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 4px;
}
.contact-form-card .subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}
.contact-info {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-secondary);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.contact-info-item h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.contact-info-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}
.contact-info-item a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-info-item a:hover { color: #fff; }
.contact-social {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.contact-social h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.8);
}
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-secondary);
  transition: background 0.2s;
}
.social-link:hover { background: rgba(255,255,255,0.2); }
.contact-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}
.contact-success h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}
.contact-success p { font-size: 15px; color: var(--muted); }

/* ===== Register Page ===== */
.register-section { padding: 48px 24px 80px; }
.register-inner { max-width: 640px; margin: 0 auto; }
.register-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-card);
}
.register-card h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 4px;
}
.register-card .subtitle {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
}
.success-message {
  display: none;
  text-align: center;
  padding: 48px 24px;
}
.success-message h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}
.success-message p { font-size: 15px; color: var(--muted); }
.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(21,50,91,0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.success-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
}

/* ===== About Page ===== */
.mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.mission-text h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.3;
}
.mission-text .gold { color: var(--accent-secondary); }
.mission-text p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.mission-visual {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 48px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mission-visual .motif-char {
  position: absolute;
  font-family: var(--font-mono);
  color: rgba(201,162,74,0.12);
  font-weight: 700;
  user-select: none;
}
.mission-visual-text {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  color: #fff;
  text-align: center;
  z-index: 1;
  line-height: 1.4;
}
.mission-visual-text .gold { color: var(--accent-secondary); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.value-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-secondary);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}
.value-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}
.value-card p { font-size: 14px; color: var(--muted); line-height: 1.65; }

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-right: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  right: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-dot {
  position: absolute;
  right: -33px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--accent-secondary);
  border-radius: 50%;
  border: 2px solid var(--surface);
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-secondary);
  margin-bottom: 4px;
  letter-spacing: 0.06em;
}
.timeline-item h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 6px;
}
.timeline-item p { font-size: 14px; color: var(--muted); line-height: 1.6; }

.team-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.team-card { text-align: center; }
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-secondary);
}
.team-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}
.team-card .role { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ===== Shared Form Styles ===== */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  direction: rtl;
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21,50,91,0.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.form-checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}
.form-checkbox-group label {
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}
.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}
.form-footer a {
  color: var(--accent-secondary);
  text-decoration: none;
  font-weight: 600;
}

/* ===== Page-Specific Responsive ===== */
@media (max-width: 768px) {
  .contact-inner { grid-template-columns: 1fr; }
  .mission { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .register-card { padding: 28px 20px; }
}
