:root {
  --primary-color: #9333ea;
  --secondary-color: #ec4899;
  --text-light: #e9d5ff;
  --bg-dark: #0f0f13;
}

/* ===== Body ===== */
body {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  background: linear-gradient(135deg, #0f0f13, #1a1a2e);
  color: #fff;
  direction: rtl;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ===== Hero Section ===== */
.hero {
  height: 100vh;
  position: relative;
  background: url('images/wallhaven-8g5p52_3840x2160.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to left,
    rgba(15, 3, 20, 1) 0%,
    rgba(15, 3, 20, 0.9) 20%,
    rgba(15, 3, 20, 0.7) 40%,
    rgba(15, 3, 20, 0.3) 50%,
    rgba(15, 3, 20, 0) 60%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  animation: fadeInUp 1s ease;
}

.hero-content h1 {
  font-size: 52px;
  background: linear-gradient(90deg, #a855f7, var(--secondary-color));
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 20px;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 30px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-content button {
  padding: 14px 30px;
  border: none;
  border-radius: 25px;
  background: linear-gradient(90deg, #a855f7, var(--primary-color));
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.5);
}

.hero-content button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.7);
  background: linear-gradient(90deg, var(--primary-color), #a855f7);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Live Search Results */
#search-results {
  position: absolute;
  top: 60px;
  width: 450px;
  background: #1a1a2e;
  border-radius: 12px;
  padding: 10px 0;
  display: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  z-index: 1000;
}

#search-results a {
  display: block;
  padding: 12px 18px;
  color: white;
  text-decoration: none;
  transition: 0.2s;
}

#search-results a:hover {
  background: rgba(255, 255, 255, 0.08);
}


/* ===== Courses Section ===== */
.courses-section {
  width: 100%;
  padding: 60px 20px;
  background: transparent; /* روی بک‌گراند اصلی قرار بگیرد */
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

.courses-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;     /* مرکز کردن محتوا */
  justify-items: center; /* اطمینان از قرارگیری مساوی */
}

/* کارت‌ها */
.course-card {
  background: linear-gradient(135deg, #1a1a2e, #2a2a3a);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4);
}

