:root {
  --bg-recard: #fffbfb;
  --bg-vacdate: #f9fafb;
  --text-primary: #050505;
  --text-secondary: #0a0a0a;
  --btn-primary: #38bdf8;
  --btn-text: #0f172a;
  --border: #d3d4cf59;
  --cardBorder: #eef1f6;
}
.dark {
  --bg-recard: #101010;
  --bg-vacdate: #414243;
  --text-primary: #e5e7eb;
  --text-secondary: #cbd5f5;
  --btn-primary: #60a5fa;
  --btn-text: #020617;
  --border: #a4ad8059;
  --cardBorder: #323233;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
}
.re-contenar {
  padding: 20px 15px;
}
.re-text {
  padding: 20px 15px;
  font-size: x-large;
  font-weight: 500;
  border: 2px solid var(--border);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.recent-exams {
  margin-top: 30px;
  margin-bottom: 50px;
  display: grid; /* or flex */
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  overflow-x: auto;
}

/* ========================= Recent Exam Cards========================= */

.recent-exam-card {
  background: var(--bg-recard);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--cardBorder);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.recent-exam-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* =========================
   Exam Title
========================= */

.exam-date {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

/* =========================
   Vacancy
========================= */

.exam-vaccency {
  display: inline-block;
  background: var(--bg-vacdate);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
}

/* =========================
   Dates Section
========================= */

.exam-details {
  background: var(--bg-vacdate);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--text-primary);
  display: flex;
  flex-direction: row;
  gap: 50px;
}

/* =========================
   Official Website Link
========================= */

.website-link {
  font-size: 15px;
  color: var(--text-secondary);
}

.website-link a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.website-link a:hover {
  text-decoration: underline;
}

/* =========================
   Buttons
========================= */

.exam-btns {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.exam-btns a {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Apply Button */
.apply-btn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
}

.apply-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Notification Button */
.notification-btn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
}

.notification-btn:hover {
  background: #869bb6;
  color: white;
}

/* =========================
   No Data Message
========================= */

.no-data {
  text-align: center;
  padding: 30px;
  font-size: 15px;
  color: #6b7280;
}

/* =========================
   Responsive (Mobile)
========================= */
@media (max-width: 1200px) {
  .recent-exams {
    grid-template-columns: 2fr;
  }
}

@media (max-width: 900px) {
  .recent-exams {
    grid-template-columns: 1fr;
  }
  .exam-btns {
    flex-direction: column;
  }

  .recent-exam-card {
    padding: 16px;
  }
  .exam-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}
