.module-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  transition: transform var(--transition);
}

.module-card:hover {
  transform: translateY(-5px);
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  background: var(--secondary);
  color: white;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition);
}

.btn:hover {
  background: var(--primary);
}
.content-section {
  margin-bottom: 2.5rem;
}

.example-box,
.text-box {
  background: #eef2ff;
  padding: 1rem;
  border-left: 4px solid var(--primary);
  margin-top: 1rem;
  border-radius: var(--radius);
}

.exercise label {
  display: block;
  margin: 0.5rem 0;
}

.feedback {
  margin-top: 1rem;
  font-weight: 600;
}

.feedback.success {
  color: var(--success);
  animation: pulse 0.4s ease;
}

.feedback.error {
  color: var(--error);
  animation: shake 0.4s ease;
}

@keyframes pulse {
  from { transform: scale(1); }
  to { transform: scale(1.03); }
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}
.term {
  font-weight: 700;
  color: var(--primary);
}

.exercise input[type="text"] {
  padding: 0.5rem;
  width: 100%;
  max-width: 300px;
  margin-top: 0.5rem;
}
.alert-box {
  background: #fff7ed;
  border-left: 4px solid #f97316;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: var(--radius);
}

.feedback strong {
  font-weight: 700;
}
.example-box strong {
  color: var(--primary);
}

.content-section h3 {
  margin-top: 1rem;
}
.compare-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
}

.compare-box h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.alert-box {
  background: #fff3cd;
  padding: 1rem;
  border-left: 4px solid #ffc107;
  margin: 1rem 0;
  border-radius: 4px;
}

.compare-box p {
  margin-bottom: 0.5rem;
}
.content-section ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}

.content-section ul li {
  margin-bottom: 0.4rem;
}

.alert-box {
  background: #fff3cd;
  padding: 1rem;
  border-left: 4px solid #ffc107;
  border-radius: 4px;
  margin-top: 1rem;
}
.simple-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.simple-table th,
.simple-table td {
  border: 1px solid #ddd;
  padding: 0.6rem;
  text-align: center;
}

.simple-table th {
  background-color: #f0f0f0;
}
.alert-box {
  background-color: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
}
.alert-box {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
}
.compare-box {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.compare-box > div {
  flex: 1;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 6px;
}
.compare-box {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.compare-box > div {
  flex: 1;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 6px;
}
.hero {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
  padding: 4rem 1rem;
  text-align: center;
}

.hero .btn {
  margin-top: 1.5rem;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.modules-grid a {
  display: block;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  transition: background 0.3s;
}

.modules-grid a:hover {
  background: #e0e0e0;
}
.exercise {
  margin-bottom: 2rem;
}

.exercise button {
  display: block;
  margin: 0.4rem 0;
  padding: 0.6rem;
  width: 100%;
  cursor: pointer;
}

.correct {
  background-color: #c8e6c9;
}

.wrong {
  background-color: #ffcdd2;
}

.feedback {
  margin-top: 0.8rem;
}

.correct-text {
  color: #2e7d32;
}

.wrong-text {
  color: #c62828;
}
