.modules-section {
  padding: 90px 6%;
  background: #ffffff;
  font-family: "Inter", Arial, sans-serif;
}

.modules-container {
  max-width: 1250px;
  margin: 0 auto;
}

.modules-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.modules-badge {
  display: inline-block;
  background: #eaf2ff;
  color: #1264e2;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.modules-header h2 {
  font-size: 42px;
  line-height: 1.15;
  color: #071631;
  margin: 0 0 16px;
}

.modules-header p {
  font-size: 18px;
  line-height: 1.6;
  color: #5d6b82;
  margin: 0;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.module-card {
  display: block;
  background: #ffffff;
  border: 1px solid #e7edf6;
  border-radius: 18px;
  padding: 28px;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(15, 35, 80, 0.05);
  transition: all 0.25s ease;
}

.module-card:hover {
  transform: translateY(-5px);
  border-color: #2f73f6;
  box-shadow: 0 18px 45px rgba(47, 115, 246, 0.14);
}

.module-icon {
  width: 54px;
  height: 54px;
  background: #edf4ff;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.module-card h3 {
  font-size: 21px;
  color: #071631;
  margin: 0 0 12px;
}

.module-card p {
  font-size: 15.5px;
  line-height: 1.6;
  color: #5d6b82;
  margin: 0 0 20px;
}

.module-card span {
  color: #1264e2;
  font-weight: 700;
  font-size: 15px;
}

@media (max-width: 1000px) {
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modules-header h2 {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .modules-section {
    padding: 60px 20px;
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }

  .modules-header h2 {
    font-size: 30px;
  }
}