/* ======= Start of original achievements.css ======= */
* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f4f6fb;
  color: #1c1c1c;
  overflow-x: hidden;
}

.achievements-container {
  max-width: 1200px;
  width: 100%;
  margin: auto;
  padding: 30px 20px;
}

.page-title {
  margin-bottom: 25px;
  color: #1c3faa;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.summary-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.summary-card i {
  font-size: 30px;
  color: #ffcc00;
  margin-bottom: 10px;
}

.summary-card h3 {
  margin: 10px 0;
  font-size: 16px;
  color: #555;
}

.summary-card span {
  font-size: 26px;
  font-weight: 700;
  color: #1c3faa;
}

.section-block {
  margin-bottom: 40px;
}

.section-block h2 {
  margin-bottom: 20px;
  color: #1c3faa;
}

.certificates-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.certificate-card {
  background: white;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.certificate-card h4 {
  margin: 0 0 8px;
}

.certificate-card span {
  font-size: 14px;
  color: #666;
}

.certificate-card .certificate-code {
  display: block;
  margin-top: 6px;
  color: #1c3faa;
  font-weight: 600;
}

.certificate-qr {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.certificate-qr img {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 6px;
}

.certificate-qr span {
  font-size: 12px;
  color: #4b5563;
}

.certificate-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.certificate-card .verify-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #1c3faa;
  color: #1c3faa;
  text-decoration: none;
  font-weight: 700;
}

.certificate-card button {
  margin-top: 0;
  background: #ffcc00;
  border: none;
  padding: 8px 14px;
  font-weight: 700;
  color: #1c3faa;
  border-radius: 6px;
  cursor: pointer;
}

.certificate-card .download-btn {
  display: inline-block;
  margin-bottom: 10px;
  background: #ffcc00;
  border: none;
  padding: 6px 12px;
  font-weight: 700;
  color: #1c3faa;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s;
}

.certificate-card .download-btn:hover {
  background: #e6b800;
}

.courses-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.course-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.course-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.course-card .course-content {
  padding: 15px;
}

.course-card h4 {
  margin: 0 0 6px;
}

.course-card span {
  font-size: 14px;
  color: #666;
}

@media (max-width: 800px) {
  .summary-cards {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .certificates-list,
  .courses-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}
/* ======= End of original achievements.css ======= */

/* ======= تصحيحات إضافية لتجنب تضارب مع header/footer ======= */
.achievements-container, .summary-cards, .certificates-list, .courses-list, .course-card, .certificate-card {
  z-index: 1; /* يضمن عدم التداخل مع الهيدر والفوتر */
}
