:root {
  --primary-color: #0b6fb8;     
  --accent-color: #b80b2e;      
  --Background: #eef5fd;        
  --card-bg: #f7f9fc;           
  --text: #1c2b3a;              
}

i.fa,
i.fas,
i.far,
i.fal,
i.fad,
i.fab {
  color: var(--primary-color) !important;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--Background);
  margin: 0;
  padding: 0;
  direction: rtl;
  color: var(--text);
}

nav {
  text-align: center;
  padding: 20px;
}
nav a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: bold;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}
nav a:hover { color: var(--accent-color); }
nav a:hover::after { width: 100%; }


h1 {
  text-align: center;
  color: var(--accent-color);
  font-size: 2rem;
  margin-top: 10px;
}
p.intro {
  text-align: center;
  color: var(--text);
  max-width: 680px;
  margin: 10px auto 30px;
  line-height: 1.8;
}


.courses {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 20px 40px;
}


.course-container { margin: 20px; }

.card {
  background: var(--card-bg);
  color: var(--text);
  border-radius: 12px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}


.title-line {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 12px;
  color: var(--primary-color);
}
.card span {
  display: inline-block;
  margin: 4px 0;
}


.btn {
  margin-top: 15px;
  background-color: var(--accent-color);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  align-self: flex-end;
}
.btn:hover {
  background-color: #fff;
  color: var(--accent-color);
  box-shadow: 0 6px 14px rgba(184, 11, 46, 0.25);
  transform: translateY(-1px);
}

/*  ریسپانسیو */
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  p.intro { font-size: 14px; line-height: 1.7; padding: 0 10px; }

  .courses {
    flex-direction: column;
    align-items: center;
    padding-bottom: 24px;
  }

  .course-container { margin: 12px 0; }

  .card {
    width: 92%;
    font-size: 0.95em;
    padding: 16px;
  }

  .btn {
    width: auto;
    text-align: left;
    font-size: 0.9em;
    padding: 9px 16px;
  }
}
