/* Module Cards Component Styles */

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.module-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.module-number {
  background: #0f172a;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 20px;
}

.module-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 15px;
}

.module-description {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.module-topics {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 25px;
}

.module-topics h4 {
  color: #495057;
  font-size: 0.9em;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.topic-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.topic-list li {
  padding: 3px 0;
  color: #6c757d;
  font-size: 0.9em;
}

.topic-list li:before {
  content: "•";
  color: #0f172a;
  font-weight: bold;
  margin-right: 8px;
}

.module-button {
  background: #0f172a;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
  font-weight: 500;
  text-align: center;
  margin-top: auto;
}

.module-button:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.module-button.coming-soon {
  background: #6c757d;
  cursor: not-allowed;
}

.module-button.coming-soon:hover {
  transform: none;
}

@media (max-width: 768px) {
  .modules-grid {
    grid-template-columns: 1fr;
    padding: 40px 15px;
    gap: 25px;
  }
  
  .module-card {
    padding: 25px;
  }
  
  .module-title {
    font-size: 1.3em;
  }
  
  .module-description {
    font-size: 0.95em;
  }
}