/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://example.com/hello-elementor-child
 Description:  Child theme for Hello Elementor
 Author:       Saad
 Author URI:   https://example.com
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  hello-elementor-child
*/




/* ===== Courses Grid ===== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  background-color: white;
  padding: 2rem;
}

/* ===== Course Card ===== */
.course-card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  height: 100%;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* ===== Image ===== */
.course-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

/* ===== Content ===== */
.course-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

/* ===== Text Section ===== */
.course-text {
  flex: 1;
}

.course-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #111;
}

.course-details {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* ===== Meta (Price + Duration) ===== */
.course-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.course-meta .meta-item {
  border: 2px solid #000;
  border-radius: 40px;
  padding: 6px 16px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== Enroll Button (sticks to bottom) ===== */
.enroll-btn {
  display: block;
  text-align: center;
  background-color: #000;
  color: #fff;
  padding: 14px 0;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto; /* pushes button to bottom */
}

.enroll-btn:hover {
  background-color: #222;
  color:white;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 1024px) {
  .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.25rem;
  }

  .course-card {
    border-radius: 12px;
  }

  .course-image img {
    height: 200px;
  }

  .course-title {
    font-size: 1.15rem;
  }

  .course-details {
    font-size: 0.9rem;
  }

  .enroll-btn {
    font-size: 1rem;
    padding: 12px 0;
  }
}