.same-background{
  background: linear-gradient(to bottom right, #f6fff8, #eafbea);
}
.modal-courses-section {
  /* padding: 30px 20px; */
  padding-top: 40px;
  text-align: center;
  /* background: #f0fff6; soft green background */
}

.modal-course-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #0b3d2e;
}

.modal-course-sub {
  font-size: 16px;
  margin-bottom: 40px;
  color: #3b6a57;
}

.modal-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: auto;
}

.modal-course-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  text-align: left;
  border: 1px solid #dff2e6;
  transition: .4s ease;
}

.modal-course-card:hover {
  box-shadow: 0 15px 25px rgba(0,0,0,0.10);
  border-color: #85e1b5;
}

/* BEAUTIFUL GREEN GRADIENT ICON BOX */
.modal-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(22,163,74,0.3);
}

.modal-icon-box i {
  font-size: 28px;
  color: white;
}

.modal-course-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #0b3d2e;
}

.modal-price {
  font-size: 20px;
  font-weight: 600;
  color: #16a34a;
  margin-bottom: 8px;
}

.modal-short {
  font-size: 15px;
  color: #445a4c;
  margin-bottom: 22px;
  line-height: 1.6;
}

/* Learn More link style */
.modal-learn-link {
  font-size: 15px;
  color: #0b3d2e;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: .3s ease;
}

.modal-learn-link .modal-arrow {
  display: inline-block;
  transition: .3s;
}

.modal-course-card:hover .modal-learn-link{
  color: #16a34a;
}

.modal-learn-link:hover .modal-arrow {
  transform: translateX(4px);
}

.modal-learn-link-all {
  padding: 10px;
  margin-top: 15px;
  margin-bottom: 25px;
  text-decoration: none;
  text-align: center;
  background-color: #16a34a; /* green */
  color: white;
  border-radius: 5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;  /* smooth hover */
}

/* Hover Effect */
.modal-learn-link-all:hover {
  background-color: #22c55e; /* lighter green */
  color: #fff;
  transform: translateY(-3px); /* small lift animation */
  box-shadow: 0 6px 12px rgba(22, 163, 74, 0.3);
}



/* -----------------------------------------
   📌  Responsive Design
------------------------------------------*/

/* Tablets – Reduce padding & font sizes */
@media (max-width: 1024px) {
  .modal-courses-section {
    padding: 60px 20px;
  }

  .modal-course-title {
    font-size: 32px;
  }

  .modal-course-sub {
    font-size: 15px;
  }

  .modal-course-card {
    padding: 28px;
  }
}

/* Large Mobile / Small Tablet */
@media (max-width: 768px) {

  .modal-courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
  }

  .modal-course-title {
    font-size: 30px;
  }

  .modal-course-card {
    padding: 24px;
  }

  .modal-icon-box {
    width: 58px;
    height: 58px;
  }

  .modal-icon-box i {
    font-size: 24px;
  }

  .modal-course-card h3 {
    font-size: 20px;
  }

  .modal-price {
    font-size: 18px;
  }
}

/* Mobile – Perfect layout (single column) */
@media (max-width: 576px) {

  .modal-courses-section {
    padding: 50px 18px;
  }

  .modal-course-title {
    font-size: 28px;
    line-height: 1.3;
  }

  .modal-course-sub {
    font-size: 14px;
    margin-bottom: 25px;
  }

  .modal-courses-grid {
    grid-template-columns: 1fr; /* Single column */
  }

  .modal-course-card {
    padding: 20px;
    border-radius: 14px;
  }

  .modal-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 12px;
  }

  .modal-icon-box i {
    font-size: 22px;
  }

  .modal-course-card h3 {
    font-size: 19px;
  }

  .modal-short {
    font-size: 14px;
    line-height: 1.5;
  }

  .modal-learn-link {
    font-size: 14px;
  }
}

/* Extra Small Devices – Very small phones */
@media (max-width: 400px) {

  .modal-course-title {
    font-size: 24px;
  }

  .modal-course-card {
    padding: 16px;
  }

  .modal-icon-box {
    width: 48px;
    height: 48px;
  }

  .modal-icon-box i {
    font-size: 20px;
  }
}