/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8f9fa;
  color: #333;
  padding: 40px 20px;
}

/* Header styles */
header {
  text-align: center;
  margin-bottom: 40px;
}

header h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

header p {
  font-size: 1rem;
  color: #555;
  margin-top: 10px;
}

/* Navigation */
nav {
  margin-top: 15px;
}

nav a {
  margin: 0 12px;
  text-decoration: none;
  color: #007bff;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

nav a:hover,
nav a.active {
  color: #0056b3;
  text-decoration: underline;
}

/* Main grid layout */
.certifications {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 0 10px;
}

/* Card styles */
.cert-card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.cert-card h3 {
  font-size: 1.2rem;
  color: #1d3557;
  margin-bottom: 8px;
}

.cert-card p {
  font-size: 0.95rem;
  color: #444;
  margin: 5px 0;
}

/* Link button */
.cert-card a {
  display: inline-block;
  margin-top: 10px;
  color: #007bff;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.cert-card a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Responsive tweak */
@media (max-width: 480px) {
  header h1 {
    font-size: 2rem;
  }

  .cert-card {
    padding: 20px;
  }
}
