
/* 1️⃣ Hide toggle & label by default */
.nav-toggle,
.nav-toggle-label {
  display: none;
}

/* 2️⃣ Default nav stays as is on desktop */
.nav-inner {
  display: flex;
  justify-content: center;
  gap: 2rem;
}


/* ✅ Combined Section Styling */
#certificates-courses {
  padding: 2rem;
  background-color: #f9f9f9; /* optional */
}

.certificates-courses-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.certificates-info {
  flex: 1 1 300px;
  text-align: center;
}

.certificates-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.certificate-images {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.certificate-images img {
  width: 250px; /* smaller, consistent */
  height: auto;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.certificate-description {
  max-width: 600px;
  margin: 20px auto 0;
  padding: 15px;
  background-color: #f3f2f2;
  border-radius: 6px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.certificate-description p {
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.6;
}

.courses-info {
  flex: 1 1 300px;
  text-align: center;
}

.courses-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.course-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.course-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 220px;
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  background: #fff;
}

.course-card:hover {
  transform: translateY(-5px);
}

.course-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.course-card h3 {
  margin: 1rem 0 0.5rem;
}

.course-card p {
  font-size: 1rem;
  color: #333;
  margin: 0.5rem 0;
}

.course-card p strong {
  font-weight: bold;
}
.course-notes {
  max-width: 800px;
  margin: 30px auto 0;
  padding: 20px;
  background-color: #f3f2f2;
  border-radius: 6px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.course-notes p {
  font-size: 1rem;
  color: #444;
  margin: 10px 0;
  line-height: 1.5;
}

/* ✅ Lightbox stays same */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
  text-align: center;
}

.lightbox:target {
  display: block;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  margin: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px #fff;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  text-decoration: none;
  font-weight: bold;
}
@media (max-width: 768px) {
  .certificate-images {
    flex-direction: column;
    align-items: center;
  }

  .course-cards {
    flex-direction: column;
    align-items: center;
  }

  .course-card {
    width: 90%;
  }

  .certificate-description,
  .course-notes {
    padding: 15px;
  }
 .nav-toggle-label {
    display: block;
  }

  /* Hide nav links by default */
  .nav-inner {
    display: none;
    flex-direction: column;
    gap: 15px;
    background-color: #f5f5f5;
    padding: 10px 0;
    border-radius: 5px;
    max-width: 300px;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  /* Show nav links when checkbox checked */
  .nav-toggle:checked + .nav-toggle-label + .nav-bar .nav-inner {
    display: flex;
  }
}