.course-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 16px;
  margin: 12px 0;
  min-width: 250px;
  max-width: 400px;
  color: #222;
}
.course-card h4 {
  margin: 0 0 8px 0;
  font-size: 1.2em;
  color: #2575fc;
}
.course-card p {
  margin: 4px 0;
  font-size: 1em;
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: url('../images/page-bg.jpg') center/cover no-repeat;
}
.navbar {
  display: flex;
  align-items: center;
  background: #003366;
  color: #fff;
  padding: 1rem 2rem;
}
.logo {
  font-size: 1.7rem;
  font-weight: bold;
  margin-right: 2rem;
}
.search-bar {
  flex: 1;
  padding: 0.5rem;
  margin-right: 1rem;
  border-radius: 4px;
  border: none;
}
.navbar-buttons {
  display: flex;
  gap: 0.75rem;
}
.register-btn {
  background: #ff6600;
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
}
.login-btn {
  background: #fff;
  color: #003366;
  border: 2px solid #003366;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
}
.hero {
  position: relative;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4a6fa5 url('https://images.unsplash.com/photo-1515378791036-0648a3ef77b2?auto=format&fit=crop&w=1500&q=80') center/cover no-repeat;
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
}
.hero-overlay {
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  padding: 2rem 3rem;
  border-radius: 12px;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.highlight {
  color: #ff6600;
  font-weight: bold;
}
.hero-search-group {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}
.hero-search {
  padding: 0.5rem;
  width: 320px;
  border-radius: 4px 0 0 4px;
  border: none;
}
.search-btn {
  padding: 0.5rem 1.2rem;
  background: #ff6600;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: bold;
}
.partners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background: #fff;
  padding: 2rem 0;
}
.partners img {
  height: 40px;
  filter: grayscale(80%);
}
.trending {
  padding: 2rem;
  background: #f0f4f8;
}
.trending h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}
.courses {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.course-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1rem;
  width: 220px;
  text-align: center;
  transition: box-shadow 0.2s;
}
.course-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.course-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* Certificate Styles */
.certificate-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  text-align: center;
  max-width: 350px;
}

.certificate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.certificate-header {
  margin-bottom: 20px;
}

.certificate-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.certificate-header h3 {
  color: #3498db;
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.certificate-details {
  margin-bottom: 24px;
  text-align: left;
}

.certificate-details p {
  margin: 8px 0;
  color: #666;
  font-size: 14px;
}

.certificate-details strong {
  color: #333;
  font-weight: 600;
}

.certificate-status {
  color: #27ae60 !important;
  font-weight: 600;
}

.certificate-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.certificate-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #27ae60;
  color: white;
}

.certificate-btn:hover {
  background: #219a52;
}

/* Certificates Grid Layout */
#certificatesList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

/* Certificate Modal */
.certificate-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.certificate-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.certificate-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  z-index: 1001;
}

.certificate-close:hover {
  color: #333;
}

.certificate-preview {
  padding: 20px;
  transform: scale(0.8);
  transform-origin: top center;
}

.certificate-modal-actions {
  padding: 20px;
  text-align: center;
  border-top: 1px solid #eee;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.no-certificates {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.no-certificates .icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.7;
}

.no-certificates h3 {
  color: #666;
  margin-bottom: 12px;
}

.no-certificates p {
  color: #777;
  font-size: 16px;
}