/* =======================
   Courses Grid (Complete Responsive + Persian Font)
======================= */

@import url('https://cdn.fontcdn.ir/Font/Persian/Vazir/Vazir.css');

html, body {
  width: 100%;
  overflow-x: hidden;
  font-family: 'Vazir', sans-serif;
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

/* Courses Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto 100px auto;
  padding: 0 40px;
}

.course-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.course-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.course-info {
  padding: 25px;
  text-align: center;
}

.course-info h3 {
  font-size: 20px;
  color: white;
  margin-bottom: 10px;
  line-height: 1.4;
}

.course-info p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  line-height: 1.7;
}

.orange-btn {
  display: inline-block;
  background: linear-gradient(135deg, #3051e8, #c67205);
  color: white;
  padding: 10px 22px;
  border-radius: 22px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.orange-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(198, 108, 5, 0.4);
}

/* =======================
   RESPONSIVE DESIGN
======================= */

/* Desktop Large (default) */
@media (min-width: 993px) {
  .courses-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablets (<= 992px) */
@media (max-width: 992px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 0 30px;
  }

  .course-card img {
    height: 200px;
  }

  .course-info h3 {
    font-size: 18px;
  }

  .course-info p {
    font-size: 14px;
  }

  .orange-btn {
    font-size: 13px;
    padding: 9px 18px;
  }
}

/* Mobile phones (<= 768px) */
@media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: 1fr; /* تک ستونه */
    gap: 25px;
    padding: 0 25px;
  }

  .course-card img {
    height: 180px;
  }

  .course-info {
    padding: 20px;
  }

  .course-info h3 {
    font-size: 17px;
  }

  .course-info p {
    font-size: 13px;
    line-height: 1.6;
  }

  .orange-btn {
    font-size: 13px;
    padding: 8px 16px;
  }
}

/* Extra small devices (<= 480px) */
@media (max-width: 480px) {
  .courses-grid {
    grid-template-columns: 1fr; /* تک ستونه */
    gap: 20px;
    padding: 0 15px;
  }

  .course-card {
    border-radius: 18px;
  }

  .course-card img {
    height: 150px;
  }

  .course-info h3 {
    font-size: 16px;
  }

  .course-info p {
    font-size: 12px;
  }

  .orange-btn {
    font-size: 12px;
    padding: 7px 14px;
  }
}
