.download-resume {
  text-align: center;
  margin-top: 1rem;
}

.download-resume a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid #2c3e50;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.download-resume a:hover {
  background-color: #2c3e50;
  color: white;
}


body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

header {
  background-color: #2c3e50;
  color: white;
  padding: 1.5rem 1rem; /* Reduced padding */
  text-align: center;
}

/* Remove your existing nav styles and replace with these */

.navbar {
  background-color: #34495e !important;
  padding: 0.5rem 1rem;
}

.navbar-dark .navbar-nav .nav-link {
  color: white;
  font-weight: bold;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
  background-color: #2c3e50;
  transform: translateY(-1px);
}

/* Optional: Add some spacing for the mobile menu */
@media (max-width: 991.98px) {
  .navbar-collapse {
    padding-top: 1rem;
  }
}

section {  
  max-width: 900px;
  margin: auto;
}

.certificate-card {
  background: #fff;
  margin: 0.75rem 0;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #5dade2;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.certificate-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.certificate-link {
  align-self: flex-start;
  text-decoration: none;
  color: #2c3e50;
  background: #eaf2f8;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.2s ease;
}

.certificate-link:hover {
  background: #d6eaf8;
}

.modern-link {
  display: inline-block;           /* ensures it doesn't stretch */
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.2s ease-in-out;
  max-width: fit-content;          /* limits the width */
}

.modern-link:hover {
  background: linear-gradient(135deg, #2980b9, #1f618d);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}


footer {
  text-align: center;
  padding: 1.5rem 1rem; /* Reduced padding */
  background-color: #2c3e50;
  color: white;
}
